From fbb8a316eacb9d9128993f5f8693aaf77e56e2ac Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 20 May 2026 20:09:56 +0000 Subject: [PATCH 1/2] feat: add support for assessment tasks in BigQuery Migration API feat: add suggestion config to translation tasks docs: update comments for various fields in MigrationWorkflow, MigrationTask, and MigrationSubtask docs: Add comment that field `create_time` in message `.google.cloud.bigquery.migration.v2.MigrationWorkflow` is output only docs: Add comment that field `last_update_time` in message `.google.cloud.bigquery.migration.v2.MigrationWorkflow` is output only docs: Fixed typo in comment for enum value `PAUSED` in enum `State` is changed docs: Link to relevant documentation in comment for field `type` in message `.google.cloud.bigquery.migration.v2.MigrationTask` is changed docs: Add comment that field `create_time` in message `.google.cloud.bigquery.migration.v2.MigrationTask` is output only docs: Add comment that field `last_update_time` in message `.google.cloud.bigquery.migration.v2.MigrationTask` is output only docs: Add comment that field `resource_error_count` in message `.google.cloud.bigquery.migration.v2.MigrationTask` is output only docs: Add comment that field `metrics` in message `.google.cloud.bigquery.migration.v2.MigrationTask` is output only docs: Add comment that field `total_processing_error_count` in message `.google.cloud.bigquery.migration.v2.MigrationTask` is output only docs: Add comment that field `total_resource_error_count` in message `.google.cloud.bigquery.migration.v2.MigrationTask` is output only docs: Add comment that field `resource_error_count` in message `.google.cloud.bigquery.migration.v2.MigrationSubtask` is output only docs: Add comment that field `create_time` in message `.google.cloud.bigquery.migration.v2.MigrationSubtask` is output only docs: Add comment that field `last_update_time` in message `.google.cloud.bigquery.migration.v2.MigrationSubtask` is output only docs: Add comment for field `metrics` in message `.google.cloud.bigquery.migration.v2.MigrationSubtask` is output only PiperOrigin-RevId: 918496010 Source-Link: https://github.com/googleapis/googleapis/commit/43731d5d22f8e3526ba7aa708da9d5de26043d0f Source-Link: https://github.com/googleapis/googleapis-gen/commit/1a8cf1fa69363ffbfca334d355c8a453d6eb5665 Copy-Tag: eyJwIjoiQmlnUXVlcnlNaWdyYXRpb24vLk93bEJvdC55YW1sIiwiaCI6IjFhOGNmMWZhNjkzNjNmZmJmY2EzMzRkMzU1YzhhNDUzZDZlYjU2NjUifQ== --- .../Bigquery/Migration/V2/AssessmentTask.php | 25 + .../Migration/V2/MigrationEntities.php | 34 + .../Migration/V2/MigrationErrorDetails.php | 26 + .../Migration/V2/MigrationMetrics.php | 28 + .../Migration/V2/MigrationService.php | 31 + .../Migration/V2/TranslationConfig.php | 25 + .../Migration/V2/TranslationDetails.php | 25 + .../Migration/V2/TranslationSuggestion.php | 26 + .../Migration/V2/TranslationUsability.php | 26 + .../Migration/V2/AssessmentFeatureHandle.php | 81 +++ .../Migration/V2/AssessmentTaskDetails.php | 221 ++++++ .../Migration/V2/AzureSynapseDialect.php | 33 + .../BigQuery/Migration/V2/BigQueryDialect.php | 33 + .../V2/CreateMigrationWorkflowRequest.php | 132 ++++ .../BigQuery/Migration/V2/DB2Dialect.php | 33 + .../V2/DeleteMigrationWorkflowRequest.php | 86 +++ .../Cloud/BigQuery/Migration/V2/Dialect.php | 603 ++++++++++++++++ .../BigQuery/Migration/V2/ErrorDetail.php | 122 ++++ .../BigQuery/Migration/V2/ErrorLocation.php | 109 +++ .../Migration/V2/GcsReportLogMessage.php | 415 +++++++++++ .../V2/GetMigrationSubtaskRequest.php | 130 ++++ .../V2/GetMigrationWorkflowRequest.php | 130 ++++ .../Migration/V2/GreenplumDialect.php | 33 + .../BigQuery/Migration/V2/HiveQLDialect.php | 33 + .../V2/ListMigrationSubtasksRequest.php | 256 +++++++ .../V2/ListMigrationSubtasksResponse.php | 105 +++ .../V2/ListMigrationWorkflowsRequest.php | 214 ++++++ .../V2/ListMigrationWorkflowsResponse.php | 105 +++ .../Cloud/BigQuery/Migration/V2/Literal.php | 142 ++++ .../Migration/V2/MigrationSubtask.php | 449 ++++++++++++ .../Migration/V2/MigrationSubtask/State.php | 91 +++ .../BigQuery/Migration/V2/MigrationTask.php | 674 ++++++++++++++++++ .../Migration/V2/MigrationTask/State.php | 90 +++ .../Migration/V2/MigrationTaskResult.php | 75 ++ .../Migration/V2/MigrationWorkflow.php | 278 ++++++++ .../Migration/V2/MigrationWorkflow/State.php | 79 ++ .../BigQuery/Migration/V2/MySQLDialect.php | 33 + .../BigQuery/Migration/V2/NameMappingKey.php | 216 ++++++ .../Migration/V2/NameMappingKey/Type.php | 100 +++ .../Migration/V2/NameMappingValue.php | 182 +++++ .../BigQuery/Migration/V2/NetezzaDialect.php | 33 + .../Migration/V2/ObjectNameMapping.php | 122 ++++ .../Migration/V2/ObjectNameMappingList.php | 68 ++ .../BigQuery/Migration/V2/OracleDialect.php | 33 + .../Cloud/BigQuery/Migration/V2/Point.php | 153 ++++ .../Migration/V2/PostgresqlDialect.php | 33 + .../BigQuery/Migration/V2/PrestoDialect.php | 33 + .../BigQuery/Migration/V2/RedshiftDialect.php | 33 + .../Migration/V2/ResourceErrorDetail.php | 153 ++++ .../Migration/V2/SQLServerDialect.php | 33 + .../BigQuery/Migration/V2/SQLiteDialect.php | 33 + .../Migration/V2/SnowflakeDialect.php | 33 + .../Cloud/BigQuery/Migration/V2/SourceEnv.php | 163 +++++ .../Migration/V2/SourceEnvironment.php | 163 +++++ .../BigQuery/Migration/V2/SourceSpec.php | 175 +++++ .../Migration/V2/SourceTargetMapping.php | 121 ++++ .../BigQuery/Migration/V2/SparkSQLDialect.php | 33 + .../V2/StartMigrationWorkflowRequest.php | 86 +++ .../Migration/V2/SuggestionConfig.php | 67 ++ .../BigQuery/Migration/V2/SuggestionStep.php | 101 +++ .../V2/SuggestionStep/RewriteTarget.php | 61 ++ .../V2/SuggestionStep/SuggestionType.php | 61 ++ .../BigQuery/Migration/V2/TargetSpec.php | 75 ++ .../BigQuery/Migration/V2/TeradataDialect.php | 67 ++ .../Migration/V2/TeradataDialect/Mode.php | 61 ++ .../BigQuery/Migration/V2/TimeInterval.php | 131 ++++ .../BigQuery/Migration/V2/TimeSeries.php | 213 ++++++ .../Migration/V2/TranslationConfigDetails.php | 372 ++++++++++ .../Migration/V2/TranslationDetails.php | 278 ++++++++ .../Migration/V2/TranslationReportRecord.php | 211 ++++++ .../V2/TranslationReportRecord/Severity.php | 69 ++ .../Migration/V2/TranslationTaskResult.php | 135 ++++ .../BigQuery/Migration/V2/TypedValue.php | 213 ++++++ .../BigQuery/Migration/V2/VerticaDialect.php | 33 + .../create_migration_workflow.php | 74 ++ .../delete_migration_workflow.php | 74 ++ .../get_migration_subtask.php | 77 ++ .../get_migration_workflow.php | 76 ++ .../list_migration_subtasks.php | 81 +++ .../list_migration_workflows.php | 77 ++ .../start_migration_workflow.php | 77 ++ .../src/V2/Client/MigrationServiceClient.php | 470 ++++++++++++ .../v2/src/V2/gapic_metadata.json | 53 ++ .../migration_service_client_config.json | 79 ++ .../migration_service_descriptor_config.php | 133 ++++ .../migration_service_rest_client_config.php | 107 +++ .../V2/Client/MigrationServiceClientTest.php | 581 +++++++++++++++ 87 files changed, 11137 insertions(+) create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/AssessmentTask.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationEntities.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationErrorDetails.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationMetrics.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationService.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationConfig.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationDetails.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationSuggestion.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationUsability.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/AssessmentFeatureHandle.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/AssessmentTaskDetails.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/AzureSynapseDialect.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/BigQueryDialect.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/CreateMigrationWorkflowRequest.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/DB2Dialect.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/DeleteMigrationWorkflowRequest.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Dialect.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ErrorDetail.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ErrorLocation.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GcsReportLogMessage.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GetMigrationSubtaskRequest.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GetMigrationWorkflowRequest.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GreenplumDialect.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/HiveQLDialect.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationSubtasksRequest.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationSubtasksResponse.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationWorkflowsRequest.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationWorkflowsResponse.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Literal.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationSubtask.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationSubtask/State.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTask.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTask/State.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTaskResult.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationWorkflow.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationWorkflow/State.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MySQLDialect.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingKey.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingKey/Type.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingValue.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NetezzaDialect.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ObjectNameMapping.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ObjectNameMappingList.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/OracleDialect.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Point.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/PostgresqlDialect.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/PrestoDialect.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/RedshiftDialect.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ResourceErrorDetail.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SQLServerDialect.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SQLiteDialect.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SnowflakeDialect.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceEnv.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceEnvironment.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceSpec.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceTargetMapping.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SparkSQLDialect.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/StartMigrationWorkflowRequest.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionConfig.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionStep.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionStep/RewriteTarget.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionStep/SuggestionType.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TargetSpec.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TeradataDialect.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TeradataDialect/Mode.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TimeInterval.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TimeSeries.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationConfigDetails.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationDetails.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationReportRecord.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationReportRecord/Severity.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationTaskResult.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TypedValue.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/VerticaDialect.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/create_migration_workflow.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/delete_migration_workflow.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/get_migration_subtask.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/get_migration_workflow.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/list_migration_subtasks.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/list_migration_workflows.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/start_migration_workflow.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/src/V2/Client/MigrationServiceClient.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/src/V2/gapic_metadata.json create mode 100644 owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_client_config.json create mode 100644 owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_descriptor_config.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_rest_client_config.php create mode 100644 owl-bot-staging/BigQueryMigration/v2/tests/Unit/V2/Client/MigrationServiceClientTest.php diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/AssessmentTask.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/AssessmentTask.php new file mode 100644 index 000000000000..89869a069794 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/AssessmentTask.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\x8F\x05\x0A8google/cloud/bigquery/migration/v2/assessment_task.proto\x12\"google.cloud.bigquery.migration.v2\"\xF6\x01\x0A\x15AssessmentTaskDetails\x12\x17\x0A\x0Ainput_path\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1B\x0A\x0Eoutput_dataset\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x1B\x0A\x0Equerylogs_path\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdata_source\x18\x04 \x01(\x09B\x03\xE0A\x02\x12]\x0A\x0Efeature_handle\x18\x06 \x01(\x0B2;.google.cloud.bigquery.migration.v2.AssessmentFeatureHandleB\x03\xE0A\x01H\x00\x88\x01\x01B\x11\x0A\x0F_feature_handle\"\\\x0A\x17AssessmentFeatureHandle\x12'\x0A\x15add_shareable_dataset\x18\x01 \x01(\x08B\x03\xE0A\x01H\x00\x88\x01\x01B\x18\x0A\x16_add_shareable_datasetB\xCF\x01\x0A&com.google.cloud.bigquery.migration.v2B\x13AssessmentTaskProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xAA\x02\"Google.Cloud.BigQuery.Migration.V2\xCA\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationEntities.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationEntities.php new file mode 100644 index 000000000000..94a42b94cfce --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationEntities.php @@ -0,0 +1,34 @@ +internalAddGeneratedFile( + "\x0A\x9D\x1C\x0A;google/cloud/bigquery/migration/v2/migration_entities.proto\x12\"google.cloud.bigquery.migration.v2\x1A\x19google/api/resource.proto\x1A8google/cloud/bigquery/migration/v2/assessment_task.proto\x1A@google/cloud/bigquery/migration/v2/migration_error_details.proto\x1A:google/cloud/bigquery/migration/v2/migration_metrics.proto\x1A;google/cloud/bigquery/migration/v2/translation_config.proto\x1Agoogle/cloud/bigquery/migration/v2/translation_usability.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x1Egoogle/rpc/error_details.proto\"\x80\x05\x0A\x11MigrationWorkflow\x12\x17\x0A\x04name\x18\x01 \x01(\x09B\x09\xE0A\x03\xE0A\x05\xE0A\x08\x12\x14\x0A\x0Cdisplay_name\x18\x06 \x01(\x09\x12O\x0A\x05tasks\x18\x02 \x03(\x0B2@.google.cloud.bigquery.migration.v2.MigrationWorkflow.TasksEntry\x12O\x0A\x05state\x18\x03 \x01(\x0E2;.google.cloud.bigquery.migration.v2.MigrationWorkflow.StateB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x129\x0A\x10last_update_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x1A_\x0A\x0ATasksEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12@\x0A\x05value\x18\x02 \x01(\x0B21.google.cloud.bigquery.migration.v2.MigrationTask:\x028\x01\"Q\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05DRAFT\x10\x01\x12\x0B\x0A\x07RUNNING\x10\x02\x12\x0A\x0A\x06PAUSED\x10\x03\x12\x0D\x0A\x09COMPLETED\x10\x04:u\xEAAr\x0A2bigquerymigration.googleapis.com/MigrationWorkflow\x12internalAddGeneratedFile( + "\x0A\xDF\x05\x0A@google/cloud/bigquery/migration/v2/migration_error_details.proto\x12\"google.cloud.bigquery.migration.v2\x1A\x1Egoogle/rpc/error_details.proto\"\xB2\x01\x0A\x13ResourceErrorDetail\x124\x0A\x0Dresource_info\x18\x01 \x01(\x0B2\x18.google.rpc.ResourceInfoB\x03\xE0A\x02\x12K\x0A\x0Derror_details\x18\x02 \x03(\x0B2/.google.cloud.bigquery.migration.v2.ErrorDetailB\x03\xE0A\x02\x12\x18\x0A\x0Berror_count\x18\x03 \x01(\x05B\x03\xE0A\x02\"\x87\x01\x0A\x0BErrorDetail\x12H\x0A\x08location\x18\x01 \x01(\x0B21.google.cloud.bigquery.migration.v2.ErrorLocationB\x03\xE0A\x01\x12.\x0A\x0Aerror_info\x18\x02 \x01(\x0B2\x15.google.rpc.ErrorInfoB\x03\xE0A\x02\"7\x0A\x0DErrorLocation\x12\x11\x0A\x04line\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x13\x0A\x06column\x18\x02 \x01(\x05B\x03\xE0A\x01B\xD6\x01\x0A&com.google.cloud.bigquery.migration.v2B\x1AMigrationErrorDetailsProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xAA\x02\"Google.Cloud.BigQuery.Migration.V2\xCA\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationMetrics.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationMetrics.php new file mode 100644 index 000000000000..8fc601dfbcc9 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationMetrics.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\xB1\x08\x0A:google/cloud/bigquery/migration/v2/migration_metrics.proto\x12\"google.cloud.bigquery.migration.v2\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x17google/api/metric.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xE5\x01\x0A\x0ATimeSeries\x12\x13\x0A\x06metric\x18\x01 \x01(\x09B\x03\xE0A\x02\x12?\x0A\x0Avalue_type\x18\x02 \x01(\x0E2&.google.api.MetricDescriptor.ValueTypeB\x03\xE0A\x02\x12A\x0A\x0Bmetric_kind\x18\x03 \x01(\x0E2'.google.api.MetricDescriptor.MetricKindB\x03\xE0A\x01\x12>\x0A\x06points\x18\x04 \x03(\x0B2).google.cloud.bigquery.migration.v2.PointB\x03\xE0A\x02\"\x8A\x01\x0A\x05Point\x12B\x0A\x08interval\x18\x01 \x01(\x0B20.google.cloud.bigquery.migration.v2.TimeInterval\x12=\x0A\x05value\x18\x02 \x01(\x0B2..google.cloud.bigquery.migration.v2.TypedValue\"v\x0A\x0CTimeInterval\x123\x0A\x0Astart_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x02\"\xAA\x01\x0A\x0ATypedValue\x12\x14\x0A\x0Abool_value\x18\x01 \x01(\x08H\x00\x12\x15\x0A\x0Bint64_value\x18\x02 \x01(\x03H\x00\x12\x16\x0A\x0Cdouble_value\x18\x03 \x01(\x01H\x00\x12\x16\x0A\x0Cstring_value\x18\x04 \x01(\x09H\x00\x126\x0A\x12distribution_value\x18\x05 \x01(\x0B2\x18.google.api.DistributionH\x00B\x07\x0A\x05valueB\xD1\x01\x0A&com.google.cloud.bigquery.migration.v2B\x15MigrationMetricsProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xAA\x02\"Google.Cloud.BigQuery.Migration.V2\xCA\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationService.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationService.php new file mode 100644 index 000000000000..1f61eb27691e --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationService.php @@ -0,0 +1,31 @@ +internalAddGeneratedFile( + "\x0A\xD4\x1B\x0A:google/cloud/bigquery/migration/v2/migration_service.proto\x12\"google.cloud.bigquery.migration.v2\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A;google/cloud/bigquery/migration/v2/migration_entities.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\"\xB3\x01\x0A\x1ECreateMigrationWorkflowRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12V\x0A\x12migration_workflow\x18\x02 \x01(\x0B25.google.cloud.bigquery.migration.v2.MigrationWorkflowB\x03\xE0A\x02\"\x96\x01\x0A\x1BGetMigrationWorkflowRequest\x12H\x0A\x04name\x18\x01 \x01(\x09B:\xE0A\x02\xFAA4\x0A2bigquerymigration.googleapis.com/MigrationWorkflow\x12-\x0A\x09read_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\"\xB0\x01\x0A\x1DListMigrationWorkflowsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12-\x0A\x09read_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x04 \x01(\x09\"\x8D\x01\x0A\x1EListMigrationWorkflowsResponse\x12R\x0A\x13migration_workflows\x18\x01 \x03(\x0B25.google.cloud.bigquery.migration.v2.MigrationWorkflow\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"j\x0A\x1EDeleteMigrationWorkflowRequest\x12H\x0A\x04name\x18\x01 \x01(\x09B:\xE0A\x02\xFAA4\x0A2bigquerymigration.googleapis.com/MigrationWorkflow\"i\x0A\x1DStartMigrationWorkflowRequest\x12H\x0A\x04name\x18\x01 \x01(\x09B:\xE0A\x02\xFAA4\x0A2bigquerymigration.googleapis.com/MigrationWorkflow\"\x99\x01\x0A\x1AGetMigrationSubtaskRequest\x12G\x0A\x04name\x18\x01 \x01(\x09B9\xE0A\x02\xFAA3\x0A1bigquerymigration.googleapis.com/MigrationSubtask\x122\x0A\x09read_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\xE4\x01\x0A\x1CListMigrationSubtasksRequest\x12J\x0A\x06parent\x18\x01 \x01(\x09B:\xE0A\x02\xFAA4\x0A2bigquerymigration.googleapis.com/MigrationWorkflow\x122\x0A\x09read_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x8A\x01\x0A\x1DListMigrationSubtasksResponse\x12P\x0A\x12migration_subtasks\x18\x01 \x03(\x0B24.google.cloud.bigquery.migration.v2.MigrationSubtask\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x092\xCB\x0C\x0A\x10MigrationService\x12\xFB\x01\x0A\x17CreateMigrationWorkflow\x12B.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest\x1A5.google.cloud.bigquery.migration.v2.MigrationWorkflow\"e\xDAA\x19parent,migration_workflow\x82\xD3\xE4\x93\x02C\"-/v2/{parent=projects/*/locations/*}/workflows:\x12migration_workflow\x12\xCC\x01\x0A\x14GetMigrationWorkflow\x12?.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest\x1A5.google.cloud.bigquery.migration.v2.MigrationWorkflow\"<\xDAA\x04name\x82\xD3\xE4\x93\x02/\x12-/v2/{name=projects/*/locations/*/workflows/*}\x12\xDF\x01\x0A\x16ListMigrationWorkflows\x12A.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest\x1AB.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse\">\xDAA\x06parent\x82\xD3\xE4\x93\x02/\x12-/v2/{parent=projects/*/locations/*}/workflows\x12\xB3\x01\x0A\x17DeleteMigrationWorkflow\x12B.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest\x1A\x16.google.protobuf.Empty\"<\xDAA\x04name\x82\xD3\xE4\x93\x02/*-/v2/{name=projects/*/locations/*/workflows/*}\x12\xBA\x01\x0A\x16StartMigrationWorkflow\x12A.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest\x1A\x16.google.protobuf.Empty\"E\xDAA\x04name\x82\xD3\xE4\x93\x028\"3/v2/{name=projects/*/locations/*/workflows/*}:start:\x01*\x12\xD4\x01\x0A\x13GetMigrationSubtask\x12>.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest\x1A4.google.cloud.bigquery.migration.v2.MigrationSubtask\"G\xDAA\x04name\x82\xD3\xE4\x93\x02:\x128/v2/{name=projects/*/locations/*/workflows/*/subtasks/*}\x12\xE7\x01\x0A\x15ListMigrationSubtasks\x12@.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest\x1AA.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse\"I\xDAA\x06parent\x82\xD3\xE4\x93\x02:\x128/v2/{parent=projects/*/locations/*/workflows/*}/subtasks\x1AT\xCAA bigquerymigration.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xD1\x01\x0A&com.google.cloud.bigquery.migration.v2B\x15MigrationServiceProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xAA\x02\"Google.Cloud.BigQuery.Migration.V2\xCA\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationConfig.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationConfig.php new file mode 100644 index 000000000000..0f07392c9aeb --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationConfig.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xB6\x1A\x0A;google/cloud/bigquery/migration/v2/translation_config.proto\x12\"google.cloud.bigquery.migration.v2\"\xE0\x03\x0A\x18TranslationConfigDetails\x12\x19\x0A\x0Fgcs_source_path\x18\x01 \x01(\x09H\x00\x12\x19\x0A\x0Fgcs_target_path\x18\x02 \x01(\x09H\x01\x12V\x0A\x11name_mapping_list\x18\x05 \x01(\x0B29.google.cloud.bigquery.migration.v2.ObjectNameMappingListH\x02\x12C\x0A\x0Esource_dialect\x18\x03 \x01(\x0B2+.google.cloud.bigquery.migration.v2.Dialect\x12C\x0A\x0Etarget_dialect\x18\x04 \x01(\x0B2+.google.cloud.bigquery.migration.v2.Dialect\x12A\x0A\x0Asource_env\x18\x06 \x01(\x0B2-.google.cloud.bigquery.migration.v2.SourceEnv\x12\x16\x0A\x0Erequest_source\x18\x08 \x01(\x09\x12\x14\x0A\x0Ctarget_types\x18\x09 \x03(\x09B\x11\x0A\x0Fsource_locationB\x11\x0A\x0Ftarget_locationB\x15\x0A\x13output_name_mapping\"\xEB\x0A\x0A\x07Dialect\x12O\x0A\x10bigquery_dialect\x18\x01 \x01(\x0B23.google.cloud.bigquery.migration.v2.BigQueryDialectH\x00\x12K\x0A\x0Ehiveql_dialect\x18\x02 \x01(\x0B21.google.cloud.bigquery.migration.v2.HiveQLDialectH\x00\x12O\x0A\x10redshift_dialect\x18\x03 \x01(\x0B23.google.cloud.bigquery.migration.v2.RedshiftDialectH\x00\x12O\x0A\x10teradata_dialect\x18\x04 \x01(\x0B23.google.cloud.bigquery.migration.v2.TeradataDialectH\x00\x12K\x0A\x0Eoracle_dialect\x18\x05 \x01(\x0B21.google.cloud.bigquery.migration.v2.OracleDialectH\x00\x12O\x0A\x10sparksql_dialect\x18\x06 \x01(\x0B23.google.cloud.bigquery.migration.v2.SparkSQLDialectH\x00\x12Q\x0A\x11snowflake_dialect\x18\x07 \x01(\x0B24.google.cloud.bigquery.migration.v2.SnowflakeDialectH\x00\x12M\x0A\x0Fnetezza_dialect\x18\x08 \x01(\x0B22.google.cloud.bigquery.migration.v2.NetezzaDialectH\x00\x12X\x0A\x15azure_synapse_dialect\x18\x09 \x01(\x0B27.google.cloud.bigquery.migration.v2.AzureSynapseDialectH\x00\x12M\x0A\x0Fvertica_dialect\x18\x0A \x01(\x0B22.google.cloud.bigquery.migration.v2.VerticaDialectH\x00\x12R\x0A\x12sql_server_dialect\x18\x0B \x01(\x0B24.google.cloud.bigquery.migration.v2.SQLServerDialectH\x00\x12S\x0A\x12postgresql_dialect\x18\x0C \x01(\x0B25.google.cloud.bigquery.migration.v2.PostgresqlDialectH\x00\x12K\x0A\x0Epresto_dialect\x18\x0D \x01(\x0B21.google.cloud.bigquery.migration.v2.PrestoDialectH\x00\x12I\x0A\x0Dmysql_dialect\x18\x0E \x01(\x0B20.google.cloud.bigquery.migration.v2.MySQLDialectH\x00\x12E\x0A\x0Bdb2_dialect\x18\x0F \x01(\x0B2..google.cloud.bigquery.migration.v2.DB2DialectH\x00\x12K\x0A\x0Esqlite_dialect\x18\x10 \x01(\x0B21.google.cloud.bigquery.migration.v2.SQLiteDialectH\x00\x12Q\x0A\x11greenplum_dialect\x18\x11 \x01(\x0B24.google.cloud.bigquery.migration.v2.GreenplumDialectH\x00B\x0F\x0A\x0Ddialect_value\"\x11\x0A\x0FBigQueryDialect\"\x0F\x0A\x0DHiveQLDialect\"\x11\x0A\x0FRedshiftDialect\"\x8A\x01\x0A\x0FTeradataDialect\x12F\x0A\x04mode\x18\x01 \x01(\x0E28.google.cloud.bigquery.migration.v2.TeradataDialect.Mode\"/\x0A\x04Mode\x12\x14\x0A\x10MODE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03SQL\x10\x01\x12\x08\x0A\x04BTEQ\x10\x02\"\x0F\x0A\x0DOracleDialect\"\x11\x0A\x0FSparkSQLDialect\"\x12\x0A\x10SnowflakeDialect\"\x10\x0A\x0ENetezzaDialect\"\x15\x0A\x13AzureSynapseDialect\"\x10\x0A\x0EVerticaDialect\"\x12\x0A\x10SQLServerDialect\"\x13\x0A\x11PostgresqlDialect\"\x0F\x0A\x0DPrestoDialect\"\x0E\x0A\x0CMySQLDialect\"\x0C\x0A\x0ADB2Dialect\"\x0F\x0A\x0DSQLiteDialect\"\x12\x0A\x10GreenplumDialect\"`\x0A\x15ObjectNameMappingList\x12G\x0A\x08name_map\x18\x01 \x03(\x0B25.google.cloud.bigquery.migration.v2.ObjectNameMapping\"\x9D\x01\x0A\x11ObjectNameMapping\x12B\x0A\x06source\x18\x01 \x01(\x0B22.google.cloud.bigquery.migration.v2.NameMappingKey\x12D\x0A\x06target\x18\x02 \x01(\x0B24.google.cloud.bigquery.migration.v2.NameMappingValue\"\xAB\x02\x0A\x0ENameMappingKey\x12E\x0A\x04type\x18\x01 \x01(\x0E27.google.cloud.bigquery.migration.v2.NameMappingKey.Type\x12\x10\x0A\x08database\x18\x02 \x01(\x09\x12\x0E\x0A\x06schema\x18\x03 \x01(\x09\x12\x10\x0A\x08relation\x18\x04 \x01(\x09\x12\x11\x0A\x09attribute\x18\x05 \x01(\x09\"\x8A\x01\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08DATABASE\x10\x01\x12\x0A\x0A\x06SCHEMA\x10\x02\x12\x0C\x0A\x08RELATION\x10\x03\x12\x0D\x0A\x09ATTRIBUTE\x10\x04\x12\x12\x0A\x0ERELATION_ALIAS\x10\x05\x12\x13\x0A\x0FATTRIBUTE_ALIAS\x10\x06\x12\x0C\x0A\x08FUNCTION\x10\x07\"Y\x0A\x10NameMappingValue\x12\x10\x0A\x08database\x18\x01 \x01(\x09\x12\x0E\x0A\x06schema\x18\x02 \x01(\x09\x12\x10\x0A\x08relation\x18\x03 \x01(\x09\x12\x11\x0A\x09attribute\x18\x04 \x01(\x09\"f\x0A\x09SourceEnv\x12\x18\x0A\x10default_database\x18\x01 \x01(\x09\x12\x1A\x0A\x12schema_search_path\x18\x02 \x03(\x09\x12#\x0A\x16metadata_store_dataset\x18\x03 \x01(\x09B\x03\xE0A\x01B\xD2\x01\x0A&com.google.cloud.bigquery.migration.v2B\x16TranslationConfigProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xAA\x02\"Google.Cloud.BigQuery.Migration.V2\xCA\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationDetails.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationDetails.php new file mode 100644 index 000000000000..d527ccf4d836 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationDetails.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xCA\x0D\x0A\x0A\x07literal\x18\x02 \x01(\x0B2+.google.cloud.bigquery.migration.v2.LiteralH\x00\x12\x17\x0A\x0Dgcs_file_path\x18\x04 \x01(\x09H\x00\x12\x15\x0A\x08encoding\x18\x03 \x01(\x09B\x03\xE0A\x01B\x08\x0A\x06source\"#\x0A\x0ATargetSpec\x12\x15\x0A\x0Drelative_path\x18\x01 \x01(\x09\"h\x0A\x07Literal\x12\x18\x0A\x0Eliteral_string\x18\x02 \x01(\x09H\x00\x12\x17\x0A\x0Dliteral_bytes\x18\x03 \x01(\x0CH\x00\x12\x1A\x0A\x0Drelative_path\x18\x01 \x01(\x09B\x03\xE0A\x02B\x0E\x0A\x0Cliteral_data\"n\x0A\x11SourceEnvironment\x12\x18\x0A\x10default_database\x18\x01 \x01(\x09\x12\x1A\x0A\x12schema_search_path\x18\x02 \x03(\x09\x12#\x0A\x16metadata_store_dataset\x18\x03 \x01(\x09B\x03\xE0A\x01B\xD3\x01\x0A&com.google.cloud.bigquery.migration.v2B\x17TranslationDetailsProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xAA\x02\"Google.Cloud.BigQuery.Migration.V2\xCA\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationSuggestion.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationSuggestion.php new file mode 100644 index 000000000000..528a1b12b9c3 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationSuggestion.php @@ -0,0 +1,26 @@ +internalAddGeneratedFile( + "\x0A\xEC\x04\x0A?google/cloud/bigquery/migration/v2/translation_suggestion.proto\x12\"google.cloud.bigquery.migration.v2\x1A\x19google/api/resource.proto\"\x88\x02\x0A\x17TranslationReportRecord\x12V\x0A\x08severity\x18\x01 \x01(\x0E2D.google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity\x12\x13\x0A\x0Bscript_line\x18\x02 \x01(\x05\x12\x15\x0A\x0Dscript_column\x18\x03 \x01(\x05\x12\x10\x0A\x08category\x18\x04 \x01(\x09\x12\x0F\x0A\x07message\x18\x05 \x01(\x09\"F\x0A\x08Severity\x12\x18\x0A\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x08\x0A\x04INFO\x10\x01\x12\x0B\x0A\x07WARNING\x10\x02\x12\x09\x0A\x05ERROR\x10\x03B\xD6\x01\x0A&com.google.cloud.bigquery.migration.v2B\x1ATranslationSuggestionProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xAA\x02\"Google.Cloud.BigQuery.Migration.V2\xCA\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationUsability.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationUsability.php new file mode 100644 index 000000000000..02e7143098b7 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationUsability.php @@ -0,0 +1,26 @@ +internalAddGeneratedFile( + "\x0A\xD8\x04\x0A>google/cloud/bigquery/migration/v2/translation_usability.proto\x12\"google.cloud.bigquery.migration.v2\x1A\x19google/api/resource.proto\"\xF6\x01\x0A\x13GcsReportLogMessage\x12\x10\x0A\x08severity\x18\x01 \x01(\x09\x12\x10\x0A\x08category\x18\x02 \x01(\x09\x12\x11\x0A\x09file_path\x18\x03 \x01(\x09\x12\x10\x0A\x08filename\x18\x04 \x01(\x09\x12\x1A\x0A\x12source_script_line\x18\x05 \x01(\x05\x12\x1C\x0A\x14source_script_column\x18\x06 \x01(\x05\x12\x0F\x0A\x07message\x18\x07 \x01(\x09\x12\x16\x0A\x0Escript_context\x18\x08 \x01(\x09\x12\x0E\x0A\x06action\x18\x09 \x01(\x09\x12\x0E\x0A\x06effect\x18\x0A \x01(\x09\x12\x13\x0A\x0Bobject_name\x18\x0B \x01(\x09B\xD5\x01\x0A&com.google.cloud.bigquery.migration.v2B\x19TranslationUsabilityProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xAA\x02\"Google.Cloud.BigQuery.Migration.V2\xCA\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/AssessmentFeatureHandle.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/AssessmentFeatureHandle.php new file mode 100644 index 000000000000..74b25babd9ff --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/AssessmentFeatureHandle.php @@ -0,0 +1,81 @@ +google.cloud.bigquery.migration.v2.AssessmentFeatureHandle + */ +class AssessmentFeatureHandle extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Whether to create a dataset containing non-PII data in addition + * to the output dataset. + * + * Generated from protobuf field optional bool add_shareable_dataset = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $add_shareable_dataset = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $add_shareable_dataset + * Optional. Whether to create a dataset containing non-PII data in addition + * to the output dataset. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\AssessmentTask::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Whether to create a dataset containing non-PII data in addition + * to the output dataset. + * + * Generated from protobuf field optional bool add_shareable_dataset = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAddShareableDataset() + { + return isset($this->add_shareable_dataset) ? $this->add_shareable_dataset : false; + } + + public function hasAddShareableDataset() + { + return isset($this->add_shareable_dataset); + } + + public function clearAddShareableDataset() + { + unset($this->add_shareable_dataset); + } + + /** + * Optional. Whether to create a dataset containing non-PII data in addition + * to the output dataset. + * + * Generated from protobuf field optional bool add_shareable_dataset = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAddShareableDataset($var) + { + GPBUtil::checkBool($var); + $this->add_shareable_dataset = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/AssessmentTaskDetails.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/AssessmentTaskDetails.php new file mode 100644 index 000000000000..b8398f99ccbc --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/AssessmentTaskDetails.php @@ -0,0 +1,221 @@ +google.cloud.bigquery.migration.v2.AssessmentTaskDetails + */ +class AssessmentTaskDetails extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Cloud Storage path for assessment input files. + * + * Generated from protobuf field string input_path = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $input_path = ''; + /** + * Required. The BigQuery dataset for output. + * + * Generated from protobuf field string output_dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $output_dataset = ''; + /** + * Optional. An optional Cloud Storage path to write the query logs (which is + * then used as an input path on the translation task) + * + * Generated from protobuf field string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $querylogs_path = ''; + /** + * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT) + * from which the input data is extracted. + * + * Generated from protobuf field string data_source = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_source = ''; + /** + * Optional. A collection of additional feature flags for this assessment. + * + * Generated from protobuf field optional .google.cloud.bigquery.migration.v2.AssessmentFeatureHandle feature_handle = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $feature_handle = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $input_path + * Required. The Cloud Storage path for assessment input files. + * @type string $output_dataset + * Required. The BigQuery dataset for output. + * @type string $querylogs_path + * Optional. An optional Cloud Storage path to write the query logs (which is + * then used as an input path on the translation task) + * @type string $data_source + * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT) + * from which the input data is extracted. + * @type \Google\Cloud\BigQuery\Migration\V2\AssessmentFeatureHandle $feature_handle + * Optional. A collection of additional feature flags for this assessment. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\AssessmentTask::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Cloud Storage path for assessment input files. + * + * Generated from protobuf field string input_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getInputPath() + { + return $this->input_path; + } + + /** + * Required. The Cloud Storage path for assessment input files. + * + * Generated from protobuf field string input_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setInputPath($var) + { + GPBUtil::checkString($var, True); + $this->input_path = $var; + + return $this; + } + + /** + * Required. The BigQuery dataset for output. + * + * Generated from protobuf field string output_dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getOutputDataset() + { + return $this->output_dataset; + } + + /** + * Required. The BigQuery dataset for output. + * + * Generated from protobuf field string output_dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setOutputDataset($var) + { + GPBUtil::checkString($var, True); + $this->output_dataset = $var; + + 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) + * + * Generated from protobuf field string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getQuerylogsPath() + { + return $this->querylogs_path; + } + + /** + * Optional. An optional Cloud Storage path to write the query logs (which is + * then used as an input path on the translation task) + * + * Generated from protobuf field string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setQuerylogsPath($var) + { + GPBUtil::checkString($var, True); + $this->querylogs_path = $var; + + return $this; + } + + /** + * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT) + * from which the input data is extracted. + * + * Generated from protobuf field string data_source = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDataSource() + { + return $this->data_source; + } + + /** + * Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT) + * from which the input data is extracted. + * + * Generated from protobuf field string data_source = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDataSource($var) + { + GPBUtil::checkString($var, True); + $this->data_source = $var; + + return $this; + } + + /** + * Optional. A collection of additional feature flags for this assessment. + * + * Generated from protobuf field optional .google.cloud.bigquery.migration.v2.AssessmentFeatureHandle feature_handle = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\BigQuery\Migration\V2\AssessmentFeatureHandle|null + */ + public function getFeatureHandle() + { + return $this->feature_handle; + } + + public function hasFeatureHandle() + { + return isset($this->feature_handle); + } + + public function clearFeatureHandle() + { + unset($this->feature_handle); + } + + /** + * Optional. A collection of additional feature flags for this assessment. + * + * Generated from protobuf field optional .google.cloud.bigquery.migration.v2.AssessmentFeatureHandle feature_handle = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\BigQuery\Migration\V2\AssessmentFeatureHandle $var + * @return $this + */ + public function setFeatureHandle($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\AssessmentFeatureHandle::class); + $this->feature_handle = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/AzureSynapseDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/AzureSynapseDialect.php new file mode 100644 index 000000000000..5ab05cf09ad0 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/AzureSynapseDialect.php @@ -0,0 +1,33 @@ +google.cloud.bigquery.migration.v2.AzureSynapseDialect + */ +class AzureSynapseDialect extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/BigQueryDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/BigQueryDialect.php new file mode 100644 index 000000000000..5d493375b3bc --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/BigQueryDialect.php @@ -0,0 +1,33 @@ +google.cloud.bigquery.migration.v2.BigQueryDialect + */ +class BigQueryDialect extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/CreateMigrationWorkflowRequest.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/CreateMigrationWorkflowRequest.php new file mode 100644 index 000000000000..a14ddc1e0532 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/CreateMigrationWorkflowRequest.php @@ -0,0 +1,132 @@ +google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest + */ +class CreateMigrationWorkflowRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the project to which this migration workflow belongs. + * Example: `projects/foo/locations/bar` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The migration workflow to create. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $migration_workflow = null; + + /** + * @param string $parent Required. The name of the project to which this migration workflow belongs. + * Example: `projects/foo/locations/bar` + * Please see {@see MigrationServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow $migrationWorkflow Required. The migration workflow to create. + * + * @return \Google\Cloud\BigQuery\Migration\V2\CreateMigrationWorkflowRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow $migrationWorkflow): self + { + return (new self()) + ->setParent($parent) + ->setMigrationWorkflow($migrationWorkflow); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The name of the project to which this migration workflow belongs. + * Example: `projects/foo/locations/bar` + * @type \Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow $migration_workflow + * Required. The migration workflow to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the project to which this migration workflow belongs. + * Example: `projects/foo/locations/bar` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The name of the project to which this migration workflow belongs. + * Example: `projects/foo/locations/bar` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The migration workflow to create. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow|null + */ + public function getMigrationWorkflow() + { + return $this->migration_workflow; + } + + public function hasMigrationWorkflow() + { + return isset($this->migration_workflow); + } + + public function clearMigrationWorkflow() + { + unset($this->migration_workflow); + } + + /** + * Required. The migration workflow to create. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow $var + * @return $this + */ + public function setMigrationWorkflow($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow::class); + $this->migration_workflow = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/DB2Dialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/DB2Dialect.php new file mode 100644 index 000000000000..809082edc644 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/DB2Dialect.php @@ -0,0 +1,33 @@ +google.cloud.bigquery.migration.v2.DB2Dialect + */ +class DB2Dialect extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/DeleteMigrationWorkflowRequest.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/DeleteMigrationWorkflowRequest.php new file mode 100644 index 000000000000..0c40f56ed888 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/DeleteMigrationWorkflowRequest.php @@ -0,0 +1,86 @@ +google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest + */ +class DeleteMigrationWorkflowRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique identifier for the migration workflow. + * Example: `projects/123/locations/us/workflows/1234` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The unique identifier for the migration workflow. + * Example: `projects/123/locations/us/workflows/1234` + * Please see {@see MigrationServiceClient::migrationWorkflowName()} for help formatting this field. + * + * @return \Google\Cloud\BigQuery\Migration\V2\DeleteMigrationWorkflowRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique identifier for the migration workflow. + * Example: `projects/123/locations/us/workflows/1234` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique identifier for the migration workflow. + * Example: `projects/123/locations/us/workflows/1234` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique identifier for the migration workflow. + * Example: `projects/123/locations/us/workflows/1234` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Dialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Dialect.php new file mode 100644 index 000000000000..89cf8188c047 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Dialect.php @@ -0,0 +1,603 @@ +google.cloud.bigquery.migration.v2.Dialect + */ +class Dialect extends \Google\Protobuf\Internal\Message +{ + protected $dialect_value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\BigQuery\Migration\V2\BigQueryDialect $bigquery_dialect + * The BigQuery dialect + * @type \Google\Cloud\BigQuery\Migration\V2\HiveQLDialect $hiveql_dialect + * The HiveQL dialect + * @type \Google\Cloud\BigQuery\Migration\V2\RedshiftDialect $redshift_dialect + * The Redshift dialect + * @type \Google\Cloud\BigQuery\Migration\V2\TeradataDialect $teradata_dialect + * The Teradata dialect + * @type \Google\Cloud\BigQuery\Migration\V2\OracleDialect $oracle_dialect + * The Oracle dialect + * @type \Google\Cloud\BigQuery\Migration\V2\SparkSQLDialect $sparksql_dialect + * The SparkSQL dialect + * @type \Google\Cloud\BigQuery\Migration\V2\SnowflakeDialect $snowflake_dialect + * The Snowflake dialect + * @type \Google\Cloud\BigQuery\Migration\V2\NetezzaDialect $netezza_dialect + * The Netezza dialect + * @type \Google\Cloud\BigQuery\Migration\V2\AzureSynapseDialect $azure_synapse_dialect + * The Azure Synapse dialect + * @type \Google\Cloud\BigQuery\Migration\V2\VerticaDialect $vertica_dialect + * The Vertica dialect + * @type \Google\Cloud\BigQuery\Migration\V2\SQLServerDialect $sql_server_dialect + * The SQL Server dialect + * @type \Google\Cloud\BigQuery\Migration\V2\PostgresqlDialect $postgresql_dialect + * The Postgresql dialect + * @type \Google\Cloud\BigQuery\Migration\V2\PrestoDialect $presto_dialect + * The Presto dialect + * @type \Google\Cloud\BigQuery\Migration\V2\MySQLDialect $mysql_dialect + * The MySQL dialect + * @type \Google\Cloud\BigQuery\Migration\V2\DB2Dialect $db2_dialect + * DB2 dialect + * @type \Google\Cloud\BigQuery\Migration\V2\SQLiteDialect $sqlite_dialect + * SQLite dialect + * @type \Google\Cloud\BigQuery\Migration\V2\GreenplumDialect $greenplum_dialect + * Greenplum dialect + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + + /** + * The BigQuery dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.BigQueryDialect bigquery_dialect = 1; + * @return \Google\Cloud\BigQuery\Migration\V2\BigQueryDialect|null + */ + public function getBigqueryDialect() + { + return $this->readOneof(1); + } + + public function hasBigqueryDialect() + { + return $this->hasOneof(1); + } + + /** + * The BigQuery dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.BigQueryDialect bigquery_dialect = 1; + * @param \Google\Cloud\BigQuery\Migration\V2\BigQueryDialect $var + * @return $this + */ + public function setBigqueryDialect($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\BigQueryDialect::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The HiveQL dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.HiveQLDialect hiveql_dialect = 2; + * @return \Google\Cloud\BigQuery\Migration\V2\HiveQLDialect|null + */ + public function getHiveqlDialect() + { + return $this->readOneof(2); + } + + public function hasHiveqlDialect() + { + return $this->hasOneof(2); + } + + /** + * The HiveQL dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.HiveQLDialect hiveql_dialect = 2; + * @param \Google\Cloud\BigQuery\Migration\V2\HiveQLDialect $var + * @return $this + */ + public function setHiveqlDialect($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\HiveQLDialect::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The Redshift dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.RedshiftDialect redshift_dialect = 3; + * @return \Google\Cloud\BigQuery\Migration\V2\RedshiftDialect|null + */ + public function getRedshiftDialect() + { + return $this->readOneof(3); + } + + public function hasRedshiftDialect() + { + return $this->hasOneof(3); + } + + /** + * The Redshift dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.RedshiftDialect redshift_dialect = 3; + * @param \Google\Cloud\BigQuery\Migration\V2\RedshiftDialect $var + * @return $this + */ + public function setRedshiftDialect($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\RedshiftDialect::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * The Teradata dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TeradataDialect teradata_dialect = 4; + * @return \Google\Cloud\BigQuery\Migration\V2\TeradataDialect|null + */ + public function getTeradataDialect() + { + return $this->readOneof(4); + } + + public function hasTeradataDialect() + { + return $this->hasOneof(4); + } + + /** + * The Teradata dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TeradataDialect teradata_dialect = 4; + * @param \Google\Cloud\BigQuery\Migration\V2\TeradataDialect $var + * @return $this + */ + public function setTeradataDialect($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\TeradataDialect::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * The Oracle dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.OracleDialect oracle_dialect = 5; + * @return \Google\Cloud\BigQuery\Migration\V2\OracleDialect|null + */ + public function getOracleDialect() + { + return $this->readOneof(5); + } + + public function hasOracleDialect() + { + return $this->hasOneof(5); + } + + /** + * The Oracle dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.OracleDialect oracle_dialect = 5; + * @param \Google\Cloud\BigQuery\Migration\V2\OracleDialect $var + * @return $this + */ + public function setOracleDialect($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\OracleDialect::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * The SparkSQL dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SparkSQLDialect sparksql_dialect = 6; + * @return \Google\Cloud\BigQuery\Migration\V2\SparkSQLDialect|null + */ + public function getSparksqlDialect() + { + return $this->readOneof(6); + } + + public function hasSparksqlDialect() + { + return $this->hasOneof(6); + } + + /** + * The SparkSQL dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SparkSQLDialect sparksql_dialect = 6; + * @param \Google\Cloud\BigQuery\Migration\V2\SparkSQLDialect $var + * @return $this + */ + public function setSparksqlDialect($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\SparkSQLDialect::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * The Snowflake dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SnowflakeDialect snowflake_dialect = 7; + * @return \Google\Cloud\BigQuery\Migration\V2\SnowflakeDialect|null + */ + public function getSnowflakeDialect() + { + return $this->readOneof(7); + } + + public function hasSnowflakeDialect() + { + return $this->hasOneof(7); + } + + /** + * The Snowflake dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SnowflakeDialect snowflake_dialect = 7; + * @param \Google\Cloud\BigQuery\Migration\V2\SnowflakeDialect $var + * @return $this + */ + public function setSnowflakeDialect($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\SnowflakeDialect::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * The Netezza dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.NetezzaDialect netezza_dialect = 8; + * @return \Google\Cloud\BigQuery\Migration\V2\NetezzaDialect|null + */ + public function getNetezzaDialect() + { + return $this->readOneof(8); + } + + public function hasNetezzaDialect() + { + return $this->hasOneof(8); + } + + /** + * The Netezza dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.NetezzaDialect netezza_dialect = 8; + * @param \Google\Cloud\BigQuery\Migration\V2\NetezzaDialect $var + * @return $this + */ + public function setNetezzaDialect($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\NetezzaDialect::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * The Azure Synapse dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * @return \Google\Cloud\BigQuery\Migration\V2\AzureSynapseDialect|null + */ + public function getAzureSynapseDialect() + { + return $this->readOneof(9); + } + + public function hasAzureSynapseDialect() + { + return $this->hasOneof(9); + } + + /** + * The Azure Synapse dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; + * @param \Google\Cloud\BigQuery\Migration\V2\AzureSynapseDialect $var + * @return $this + */ + public function setAzureSynapseDialect($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\AzureSynapseDialect::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * The Vertica dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.VerticaDialect vertica_dialect = 10; + * @return \Google\Cloud\BigQuery\Migration\V2\VerticaDialect|null + */ + public function getVerticaDialect() + { + return $this->readOneof(10); + } + + public function hasVerticaDialect() + { + return $this->hasOneof(10); + } + + /** + * The Vertica dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.VerticaDialect vertica_dialect = 10; + * @param \Google\Cloud\BigQuery\Migration\V2\VerticaDialect $var + * @return $this + */ + public function setVerticaDialect($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\VerticaDialect::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * The SQL Server dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + * @return \Google\Cloud\BigQuery\Migration\V2\SQLServerDialect|null + */ + public function getSqlServerDialect() + { + return $this->readOneof(11); + } + + public function hasSqlServerDialect() + { + return $this->hasOneof(11); + } + + /** + * The SQL Server dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; + * @param \Google\Cloud\BigQuery\Migration\V2\SQLServerDialect $var + * @return $this + */ + public function setSqlServerDialect($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\SQLServerDialect::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * The Postgresql dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + * @return \Google\Cloud\BigQuery\Migration\V2\PostgresqlDialect|null + */ + public function getPostgresqlDialect() + { + return $this->readOneof(12); + } + + public function hasPostgresqlDialect() + { + return $this->hasOneof(12); + } + + /** + * The Postgresql dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; + * @param \Google\Cloud\BigQuery\Migration\V2\PostgresqlDialect $var + * @return $this + */ + public function setPostgresqlDialect($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\PostgresqlDialect::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * The Presto dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + * @return \Google\Cloud\BigQuery\Migration\V2\PrestoDialect|null + */ + public function getPrestoDialect() + { + return $this->readOneof(13); + } + + public function hasPrestoDialect() + { + return $this->hasOneof(13); + } + + /** + * The Presto dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; + * @param \Google\Cloud\BigQuery\Migration\V2\PrestoDialect $var + * @return $this + */ + public function setPrestoDialect($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\PrestoDialect::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * The MySQL dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.MySQLDialect mysql_dialect = 14; + * @return \Google\Cloud\BigQuery\Migration\V2\MySQLDialect|null + */ + public function getMysqlDialect() + { + return $this->readOneof(14); + } + + public function hasMysqlDialect() + { + return $this->hasOneof(14); + } + + /** + * The MySQL dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.MySQLDialect mysql_dialect = 14; + * @param \Google\Cloud\BigQuery\Migration\V2\MySQLDialect $var + * @return $this + */ + public function setMysqlDialect($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\MySQLDialect::class); + $this->writeOneof(14, $var); + + return $this; + } + + /** + * DB2 dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.DB2Dialect db2_dialect = 15; + * @return \Google\Cloud\BigQuery\Migration\V2\DB2Dialect|null + */ + public function getDb2Dialect() + { + return $this->readOneof(15); + } + + public function hasDb2Dialect() + { + return $this->hasOneof(15); + } + + /** + * DB2 dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.DB2Dialect db2_dialect = 15; + * @param \Google\Cloud\BigQuery\Migration\V2\DB2Dialect $var + * @return $this + */ + public function setDb2Dialect($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\DB2Dialect::class); + $this->writeOneof(15, $var); + + return $this; + } + + /** + * SQLite dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SQLiteDialect sqlite_dialect = 16; + * @return \Google\Cloud\BigQuery\Migration\V2\SQLiteDialect|null + */ + public function getSqliteDialect() + { + return $this->readOneof(16); + } + + public function hasSqliteDialect() + { + return $this->hasOneof(16); + } + + /** + * SQLite dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SQLiteDialect sqlite_dialect = 16; + * @param \Google\Cloud\BigQuery\Migration\V2\SQLiteDialect $var + * @return $this + */ + public function setSqliteDialect($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\SQLiteDialect::class); + $this->writeOneof(16, $var); + + return $this; + } + + /** + * Greenplum dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.GreenplumDialect greenplum_dialect = 17; + * @return \Google\Cloud\BigQuery\Migration\V2\GreenplumDialect|null + */ + public function getGreenplumDialect() + { + return $this->readOneof(17); + } + + public function hasGreenplumDialect() + { + return $this->hasOneof(17); + } + + /** + * Greenplum dialect + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.GreenplumDialect greenplum_dialect = 17; + * @param \Google\Cloud\BigQuery\Migration\V2\GreenplumDialect $var + * @return $this + */ + public function setGreenplumDialect($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\GreenplumDialect::class); + $this->writeOneof(17, $var); + + return $this; + } + + /** + * @return string + */ + public function getDialectValue() + { + return $this->whichOneof("dialect_value"); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ErrorDetail.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ErrorDetail.php new file mode 100644 index 000000000000..58180820a844 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ErrorDetail.php @@ -0,0 +1,122 @@ +google.cloud.bigquery.migration.v2.ErrorDetail + */ +class ErrorDetail extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The exact location within the resource (if applicable). + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $location = null; + /** + * Required. Describes the cause of the error with structured detail. + * + * Generated from protobuf field .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $error_info = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\BigQuery\Migration\V2\ErrorLocation $location + * Optional. The exact location within the resource (if applicable). + * @type \Google\Rpc\ErrorInfo $error_info + * Required. Describes the cause of the error with structured detail. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The exact location within the resource (if applicable). + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\BigQuery\Migration\V2\ErrorLocation|null + */ + public function getLocation() + { + return $this->location; + } + + public function hasLocation() + { + return isset($this->location); + } + + public function clearLocation() + { + unset($this->location); + } + + /** + * Optional. The exact location within the resource (if applicable). + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\BigQuery\Migration\V2\ErrorLocation $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\ErrorLocation::class); + $this->location = $var; + + return $this; + } + + /** + * Required. Describes the cause of the error with structured detail. + * + * Generated from protobuf field .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Rpc\ErrorInfo|null + */ + public function getErrorInfo() + { + return $this->error_info; + } + + public function hasErrorInfo() + { + return isset($this->error_info); + } + + public function clearErrorInfo() + { + unset($this->error_info); + } + + /** + * Required. Describes the cause of the error with structured detail. + * + * Generated from protobuf field .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Rpc\ErrorInfo $var + * @return $this + */ + public function setErrorInfo($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\ErrorInfo::class); + $this->error_info = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ErrorLocation.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ErrorLocation.php new file mode 100644 index 000000000000..60944b8f1f30 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ErrorLocation.php @@ -0,0 +1,109 @@ +google.cloud.bigquery.migration.v2.ErrorLocation + */ +class ErrorLocation extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. If applicable, denotes the line where the error occurred. A zero + * value means that there is no line information. + * + * Generated from protobuf field int32 line = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $line = 0; + /** + * Optional. If applicable, denotes the column where the error occurred. A + * zero value means that there is no columns information. + * + * Generated from protobuf field int32 column = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $column = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $line + * Optional. If applicable, denotes the line where the error occurred. A zero + * value means that there is no line information. + * @type int $column + * Optional. If applicable, denotes the column where the error occurred. A + * zero value means that there is no columns information. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * Optional. If applicable, denotes the line where the error occurred. A zero + * value means that there is no line information. + * + * Generated from protobuf field int32 line = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getLine() + { + return $this->line; + } + + /** + * Optional. If applicable, denotes the line where the error occurred. A zero + * value means that there is no line information. + * + * Generated from protobuf field int32 line = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setLine($var) + { + GPBUtil::checkInt32($var); + $this->line = $var; + + return $this; + } + + /** + * Optional. If applicable, denotes the column where the error occurred. A + * zero value means that there is no columns information. + * + * Generated from protobuf field int32 column = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getColumn() + { + return $this->column; + } + + /** + * Optional. If applicable, denotes the column where the error occurred. A + * zero value means that there is no columns information. + * + * Generated from protobuf field int32 column = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setColumn($var) + { + GPBUtil::checkInt32($var); + $this->column = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GcsReportLogMessage.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GcsReportLogMessage.php new file mode 100644 index 000000000000..3fd5b547ffce --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GcsReportLogMessage.php @@ -0,0 +1,415 @@ +google.cloud.bigquery.migration.v2.GcsReportLogMessage + */ +class GcsReportLogMessage extends \Google\Protobuf\Internal\Message +{ + /** + * Severity of the translation record. + * + * Generated from protobuf field string severity = 1; + */ + protected $severity = ''; + /** + * Category of the error/warning. Example: SyntaxError + * + * Generated from protobuf field string category = 2; + */ + protected $category = ''; + /** + * The file path in which the error occurred + * + * Generated from protobuf field string file_path = 3; + */ + protected $file_path = ''; + /** + * The file name in which the error occurred + * + * Generated from protobuf field string filename = 4; + */ + protected $filename = ''; + /** + * Specifies the row from the source text where the error occurred (0 based, + * -1 for messages without line location). Example: 2 + * + * Generated from protobuf field int32 source_script_line = 5; + */ + protected $source_script_line = 0; + /** + * Specifies the column from the source texts where the error occurred. (0 + * based, -1 for messages without column location) example: 6 + * + * Generated from protobuf field int32 source_script_column = 6; + */ + protected $source_script_column = 0; + /** + * Detailed message of the record. + * + * Generated from protobuf field string message = 7; + */ + protected $message = ''; + /** + * The script context (obfuscated) in which the error occurred + * + * Generated from protobuf field string script_context = 8; + */ + protected $script_context = ''; + /** + * Category of the error/warning. Example: SyntaxError + * + * Generated from protobuf field string action = 9; + */ + protected $action = ''; + /** + * Effect of the error/warning. Example: COMPATIBILITY + * + * Generated from protobuf field string effect = 10; + */ + protected $effect = ''; + /** + * Name of the affected object in the log message. + * + * Generated from protobuf field string object_name = 11; + */ + protected $object_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $severity + * Severity of the translation record. + * @type string $category + * Category of the error/warning. Example: SyntaxError + * @type string $file_path + * The file path in which the error occurred + * @type string $filename + * The file name in which the error occurred + * @type int $source_script_line + * Specifies the row from the source text where the error occurred (0 based, + * -1 for messages without line location). Example: 2 + * @type int $source_script_column + * Specifies the column from the source texts where the error occurred. (0 + * based, -1 for messages without column location) example: 6 + * @type string $message + * Detailed message of the record. + * @type string $script_context + * The script context (obfuscated) in which the error occurred + * @type string $action + * Category of the error/warning. Example: SyntaxError + * @type string $effect + * Effect of the error/warning. Example: COMPATIBILITY + * @type string $object_name + * Name of the affected object in the log message. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationUsability::initOnce(); + parent::__construct($data); + } + + /** + * Severity of the translation record. + * + * Generated from protobuf field string severity = 1; + * @return string + */ + public function getSeverity() + { + return $this->severity; + } + + /** + * Severity of the translation record. + * + * Generated from protobuf field string severity = 1; + * @param string $var + * @return $this + */ + public function setSeverity($var) + { + GPBUtil::checkString($var, True); + $this->severity = $var; + + return $this; + } + + /** + * Category of the error/warning. Example: SyntaxError + * + * Generated from protobuf field string category = 2; + * @return string + */ + public function getCategory() + { + return $this->category; + } + + /** + * Category of the error/warning. Example: SyntaxError + * + * Generated from protobuf field string category = 2; + * @param string $var + * @return $this + */ + public function setCategory($var) + { + GPBUtil::checkString($var, True); + $this->category = $var; + + return $this; + } + + /** + * The file path in which the error occurred + * + * Generated from protobuf field string file_path = 3; + * @return string + */ + public function getFilePath() + { + return $this->file_path; + } + + /** + * The file path in which the error occurred + * + * Generated from protobuf field string file_path = 3; + * @param string $var + * @return $this + */ + public function setFilePath($var) + { + GPBUtil::checkString($var, True); + $this->file_path = $var; + + return $this; + } + + /** + * The file name in which the error occurred + * + * Generated from protobuf field string filename = 4; + * @return string + */ + public function getFilename() + { + return $this->filename; + } + + /** + * The file name in which the error occurred + * + * Generated from protobuf field string filename = 4; + * @param string $var + * @return $this + */ + public function setFilename($var) + { + GPBUtil::checkString($var, True); + $this->filename = $var; + + return $this; + } + + /** + * Specifies the row from the source text where the error occurred (0 based, + * -1 for messages without line location). Example: 2 + * + * Generated from protobuf field int32 source_script_line = 5; + * @return int + */ + public function getSourceScriptLine() + { + return $this->source_script_line; + } + + /** + * Specifies the row from the source text where the error occurred (0 based, + * -1 for messages without line location). Example: 2 + * + * Generated from protobuf field int32 source_script_line = 5; + * @param int $var + * @return $this + */ + public function setSourceScriptLine($var) + { + GPBUtil::checkInt32($var); + $this->source_script_line = $var; + + return $this; + } + + /** + * Specifies the column from the source texts where the error occurred. (0 + * based, -1 for messages without column location) example: 6 + * + * Generated from protobuf field int32 source_script_column = 6; + * @return int + */ + public function getSourceScriptColumn() + { + return $this->source_script_column; + } + + /** + * Specifies the column from the source texts where the error occurred. (0 + * based, -1 for messages without column location) example: 6 + * + * Generated from protobuf field int32 source_script_column = 6; + * @param int $var + * @return $this + */ + public function setSourceScriptColumn($var) + { + GPBUtil::checkInt32($var); + $this->source_script_column = $var; + + return $this; + } + + /** + * Detailed message of the record. + * + * Generated from protobuf field string message = 7; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Detailed message of the record. + * + * Generated from protobuf field string message = 7; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * The script context (obfuscated) in which the error occurred + * + * Generated from protobuf field string script_context = 8; + * @return string + */ + public function getScriptContext() + { + return $this->script_context; + } + + /** + * The script context (obfuscated) in which the error occurred + * + * Generated from protobuf field string script_context = 8; + * @param string $var + * @return $this + */ + public function setScriptContext($var) + { + GPBUtil::checkString($var, True); + $this->script_context = $var; + + return $this; + } + + /** + * Category of the error/warning. Example: SyntaxError + * + * Generated from protobuf field string action = 9; + * @return string + */ + public function getAction() + { + return $this->action; + } + + /** + * Category of the error/warning. Example: SyntaxError + * + * Generated from protobuf field string action = 9; + * @param string $var + * @return $this + */ + public function setAction($var) + { + GPBUtil::checkString($var, True); + $this->action = $var; + + return $this; + } + + /** + * Effect of the error/warning. Example: COMPATIBILITY + * + * Generated from protobuf field string effect = 10; + * @return string + */ + public function getEffect() + { + return $this->effect; + } + + /** + * Effect of the error/warning. Example: COMPATIBILITY + * + * Generated from protobuf field string effect = 10; + * @param string $var + * @return $this + */ + public function setEffect($var) + { + GPBUtil::checkString($var, True); + $this->effect = $var; + + return $this; + } + + /** + * Name of the affected object in the log message. + * + * Generated from protobuf field string object_name = 11; + * @return string + */ + public function getObjectName() + { + return $this->object_name; + } + + /** + * Name of the affected object in the log message. + * + * Generated from protobuf field string object_name = 11; + * @param string $var + * @return $this + */ + public function setObjectName($var) + { + GPBUtil::checkString($var, True); + $this->object_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GetMigrationSubtaskRequest.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GetMigrationSubtaskRequest.php new file mode 100644 index 000000000000..bb7784bbcd1d --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GetMigrationSubtaskRequest.php @@ -0,0 +1,130 @@ +google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest + */ +class GetMigrationSubtaskRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique identifier for the migration subtask. + * Example: `projects/123/locations/us/workflows/1234/subtasks/543` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The list of fields to be retrieved. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $read_mask = null; + + /** + * @param string $name Required. The unique identifier for the migration subtask. + * Example: `projects/123/locations/us/workflows/1234/subtasks/543` + * Please see {@see MigrationServiceClient::migrationSubtaskName()} for help formatting this field. + * + * @return \Google\Cloud\BigQuery\Migration\V2\GetMigrationSubtaskRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique identifier for the migration subtask. + * Example: `projects/123/locations/us/workflows/1234/subtasks/543` + * @type \Google\Protobuf\FieldMask $read_mask + * Optional. The list of fields to be retrieved. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique identifier for the migration subtask. + * Example: `projects/123/locations/us/workflows/1234/subtasks/543` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique identifier for the migration subtask. + * Example: `projects/123/locations/us/workflows/1234/subtasks/543` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The list of fields to be retrieved. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getReadMask() + { + return $this->read_mask; + } + + public function hasReadMask() + { + return isset($this->read_mask); + } + + public function clearReadMask() + { + unset($this->read_mask); + } + + /** + * Optional. The list of fields to be retrieved. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setReadMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->read_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GetMigrationWorkflowRequest.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GetMigrationWorkflowRequest.php new file mode 100644 index 000000000000..75a79d59fa8b --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GetMigrationWorkflowRequest.php @@ -0,0 +1,130 @@ +google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest + */ +class GetMigrationWorkflowRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique identifier for the migration workflow. + * Example: `projects/123/locations/us/workflows/1234` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * The list of fields to be retrieved. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; + */ + protected $read_mask = null; + + /** + * @param string $name Required. The unique identifier for the migration workflow. + * Example: `projects/123/locations/us/workflows/1234` + * Please see {@see MigrationServiceClient::migrationWorkflowName()} for help formatting this field. + * + * @return \Google\Cloud\BigQuery\Migration\V2\GetMigrationWorkflowRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique identifier for the migration workflow. + * Example: `projects/123/locations/us/workflows/1234` + * @type \Google\Protobuf\FieldMask $read_mask + * The list of fields to be retrieved. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique identifier for the migration workflow. + * Example: `projects/123/locations/us/workflows/1234` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique identifier for the migration workflow. + * Example: `projects/123/locations/us/workflows/1234` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The list of fields to be retrieved. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; + * @return \Google\Protobuf\FieldMask|null + */ + public function getReadMask() + { + return $this->read_mask; + } + + public function hasReadMask() + { + return isset($this->read_mask); + } + + public function clearReadMask() + { + unset($this->read_mask); + } + + /** + * The list of fields to be retrieved. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setReadMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->read_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GreenplumDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GreenplumDialect.php new file mode 100644 index 000000000000..0076a39aa14e --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GreenplumDialect.php @@ -0,0 +1,33 @@ +google.cloud.bigquery.migration.v2.GreenplumDialect + */ +class GreenplumDialect extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/HiveQLDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/HiveQLDialect.php new file mode 100644 index 000000000000..1b3cebad16ff --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/HiveQLDialect.php @@ -0,0 +1,33 @@ +google.cloud.bigquery.migration.v2.HiveQLDialect + */ +class HiveQLDialect extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationSubtasksRequest.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationSubtasksRequest.php new file mode 100644 index 000000000000..6050fdf9ee6a --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationSubtasksRequest.php @@ -0,0 +1,256 @@ +google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest + */ +class ListMigrationSubtasksRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The migration task of the subtasks to list. + * Example: `projects/123/locations/us/workflows/1234` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The list of fields to be retrieved. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $read_mask = null; + /** + * Optional. The maximum number of migration tasks to return. The service may + * return fewer than this number. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from previous `ListMigrationSubtasks` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListMigrationSubtasks` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * 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 task ID (not the name in the named map). + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The migration task of the subtasks to list. + * Example: `projects/123/locations/us/workflows/1234` + * Please see {@see MigrationServiceClient::migrationWorkflowName()} for help formatting this field. + * + * @return \Google\Cloud\BigQuery\Migration\V2\ListMigrationSubtasksRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The migration task of the subtasks to list. + * Example: `projects/123/locations/us/workflows/1234` + * @type \Google\Protobuf\FieldMask $read_mask + * Optional. The list of fields to be retrieved. + * @type int $page_size + * Optional. The maximum number of migration tasks to return. The service may + * return fewer than this number. + * @type string $page_token + * Optional. A page token, received from previous `ListMigrationSubtasks` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListMigrationSubtasks` + * must match the call that provided the page token. + * @type string $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 task ID (not the name in the named map). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The migration task of the subtasks to list. + * Example: `projects/123/locations/us/workflows/1234` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The migration task of the subtasks to list. + * Example: `projects/123/locations/us/workflows/1234` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The list of fields to be retrieved. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getReadMask() + { + return $this->read_mask; + } + + public function hasReadMask() + { + return isset($this->read_mask); + } + + public function clearReadMask() + { + unset($this->read_mask); + } + + /** + * Optional. The list of fields to be retrieved. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setReadMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->read_mask = $var; + + return $this; + } + + /** + * Optional. The maximum number of migration tasks to return. The service may + * return fewer than this number. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of migration tasks to return. The service may + * return fewer than this number. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from previous `ListMigrationSubtasks` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListMigrationSubtasks` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from previous `ListMigrationSubtasks` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListMigrationSubtasks` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + 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 task ID (not the name in the named map). + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->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 task ID (not the name in the named map). + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationSubtasksResponse.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationSubtasksResponse.php new file mode 100644 index 000000000000..d61b70c51355 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationSubtasksResponse.php @@ -0,0 +1,105 @@ +google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse + */ +class ListMigrationSubtasksResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The migration subtasks for the specified task. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + */ + private $migration_subtasks; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\BigQuery\Migration\V2\MigrationSubtask[] $migration_subtasks + * The migration subtasks for the specified task. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationService::initOnce(); + parent::__construct($data); + } + + /** + * The migration subtasks for the specified task. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\MigrationSubtask> + */ + public function getMigrationSubtasks() + { + return $this->migration_subtasks; + } + + /** + * The migration subtasks for the specified task. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; + * @param \Google\Cloud\BigQuery\Migration\V2\MigrationSubtask[] $var + * @return $this + */ + public function setMigrationSubtasks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\MigrationSubtask::class); + $this->migration_subtasks = $arr; + + 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. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationWorkflowsRequest.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationWorkflowsRequest.php new file mode 100644 index 000000000000..f2342670e15f --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationWorkflowsRequest.php @@ -0,0 +1,214 @@ +google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest + */ +class ListMigrationWorkflowsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The project and location of the migration workflows to list. + * Example: `projects/123/locations/us` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The list of fields to be retrieved. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; + */ + protected $read_mask = null; + /** + * The maximum number of migration workflows to return. The service may return + * fewer than this number. + * + * Generated from protobuf field int32 page_size = 3; + */ + protected $page_size = 0; + /** + * A page token, received from previous `ListMigrationWorkflows` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListMigrationWorkflows` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 4; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The project and location of the migration workflows to list. + * Example: `projects/123/locations/us` + * Please see {@see MigrationServiceClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\BigQuery\Migration\V2\ListMigrationWorkflowsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The project and location of the migration workflows to list. + * Example: `projects/123/locations/us` + * @type \Google\Protobuf\FieldMask $read_mask + * The list of fields to be retrieved. + * @type int $page_size + * The maximum number of migration workflows to return. The service may return + * fewer than this number. + * @type string $page_token + * A page token, received from previous `ListMigrationWorkflows` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListMigrationWorkflows` + * must match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The project and location of the migration workflows to list. + * Example: `projects/123/locations/us` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The project and location of the migration workflows to list. + * Example: `projects/123/locations/us` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The list of fields to be retrieved. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; + * @return \Google\Protobuf\FieldMask|null + */ + public function getReadMask() + { + return $this->read_mask; + } + + public function hasReadMask() + { + return isset($this->read_mask); + } + + public function clearReadMask() + { + unset($this->read_mask); + } + + /** + * The list of fields to be retrieved. + * + * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setReadMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->read_mask = $var; + + return $this; + } + + /** + * The maximum number of migration workflows to return. The service may return + * fewer than this number. + * + * Generated from protobuf field int32 page_size = 3; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of migration workflows to return. The service may return + * fewer than this number. + * + * Generated from protobuf field int32 page_size = 3; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from previous `ListMigrationWorkflows` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListMigrationWorkflows` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 4; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from previous `ListMigrationWorkflows` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListMigrationWorkflows` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 4; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationWorkflowsResponse.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationWorkflowsResponse.php new file mode 100644 index 000000000000..caaa28ccb4c9 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationWorkflowsResponse.php @@ -0,0 +1,105 @@ +google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse + */ +class ListMigrationWorkflowsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The migration workflows for the specified project / location. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + */ + private $migration_workflows; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow[] $migration_workflows + * The migration workflows for the specified project / location. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationService::initOnce(); + parent::__construct($data); + } + + /** + * The migration workflows for the specified project / location. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow> + */ + public function getMigrationWorkflows() + { + return $this->migration_workflows; + } + + /** + * The migration workflows for the specified project / location. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; + * @param \Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow[] $var + * @return $this + */ + public function setMigrationWorkflows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow::class); + $this->migration_workflows = $arr; + + 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. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Literal.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Literal.php new file mode 100644 index 000000000000..077974576ec4 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Literal.php @@ -0,0 +1,142 @@ +google.cloud.bigquery.migration.v2.Literal + */ +class Literal extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The identifier of the literal entry. + * + * Generated from protobuf field string relative_path = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $relative_path = ''; + protected $literal_data; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $literal_string + * Literal string data. + * @type string $literal_bytes + * Literal byte data. + * @type string $relative_path + * Required. The identifier of the literal entry. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationDetails::initOnce(); + parent::__construct($data); + } + + /** + * Literal string data. + * + * Generated from protobuf field string literal_string = 2; + * @return string + */ + public function getLiteralString() + { + return $this->readOneof(2); + } + + public function hasLiteralString() + { + return $this->hasOneof(2); + } + + /** + * Literal string data. + * + * Generated from protobuf field string literal_string = 2; + * @param string $var + * @return $this + */ + public function setLiteralString($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Literal byte data. + * + * Generated from protobuf field bytes literal_bytes = 3; + * @return string + */ + public function getLiteralBytes() + { + return $this->readOneof(3); + } + + public function hasLiteralBytes() + { + return $this->hasOneof(3); + } + + /** + * Literal byte data. + * + * Generated from protobuf field bytes literal_bytes = 3; + * @param string $var + * @return $this + */ + public function setLiteralBytes($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Required. The identifier of the literal entry. + * + * Generated from protobuf field string relative_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getRelativePath() + { + return $this->relative_path; + } + + /** + * Required. The identifier of the literal entry. + * + * Generated from protobuf field string relative_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setRelativePath($var) + { + GPBUtil::checkString($var, True); + $this->relative_path = $var; + + return $this; + } + + /** + * @return string + */ + public function getLiteralData() + { + return $this->whichOneof("literal_data"); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationSubtask.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationSubtask.php new file mode 100644 index 000000000000..d633f8f24317 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationSubtask.php @@ -0,0 +1,449 @@ +google.cloud.bigquery.migration.v2.MigrationSubtask + */ +class MigrationSubtask extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Immutable. The resource name for the migration subtask. The ID + * is server-generated. + * Example: `projects/123/locations/us/workflows/345/subtasks/678` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $name = ''; + /** + * The unique ID of the task to which this subtask belongs. + * + * Generated from protobuf field string task_id = 2; + */ + protected $task_id = ''; + /** + * 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) + * to ensure it only creates subtasks for which there are compatible workers + * polling for Subtasks. + * + * Generated from protobuf field string type = 3; + */ + protected $type = ''; + /** + * Output only. The current state of the subtask. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. An explanation that may be populated when the task is in + * FAILED state. + * + * Generated from protobuf field .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $processing_error = null; + /** + * Output only. Provides details to errors and issues encountered while + * processing the subtask. Presence of error details does not mean that the + * subtask failed. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $resource_error_details; + /** + * Output only. The number or resources with errors. Note: This is not the + * total number of errors as each resource can have more than one error. This + * is used to indicate truncation by having a `resource_error_count` that is + * higher than the size of `resource_error_details`. + * + * Generated from protobuf field int32 resource_error_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $resource_error_count = 0; + /** + * Output only. Time when the subtask was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time when the subtask was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_update_time = null; + /** + * Output only. The metrics for the subtask. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $metrics; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $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` + * @type string $task_id + * The unique ID of the task to which this subtask belongs. + * @type string $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) + * to ensure it only creates subtasks for which there are compatible workers + * polling for Subtasks. + * @type int $state + * Output only. The current state of the subtask. + * @type \Google\Rpc\ErrorInfo $processing_error + * Output only. An explanation that may be populated when the task is in + * FAILED state. + * @type \Google\Cloud\BigQuery\Migration\V2\ResourceErrorDetail[] $resource_error_details + * Output only. Provides details to errors and issues encountered while + * processing the subtask. Presence of error details does not mean that the + * subtask failed. + * @type int $resource_error_count + * Output only. The number or resources with errors. Note: This is not the + * total number of errors as each resource can have more than one error. This + * is used to indicate truncation by having a `resource_error_count` that is + * higher than the size of `resource_error_details`. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when the subtask was created. + * @type \Google\Protobuf\Timestamp $last_update_time + * Output only. Time when the subtask was last updated. + * @type \Google\Cloud\BigQuery\Migration\V2\TimeSeries[] $metrics + * Output only. The metrics for the subtask. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationEntities::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Immutable. The resource name for the migration subtask. The ID + * is server-generated. + * Example: `projects/123/locations/us/workflows/345/subtasks/678` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getName() + { + return $this->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` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The unique ID of the task to which this subtask belongs. + * + * Generated from protobuf field string task_id = 2; + * @return string + */ + public function getTaskId() + { + return $this->task_id; + } + + /** + * The unique ID of the task to which this subtask belongs. + * + * Generated from protobuf field string task_id = 2; + * @param string $var + * @return $this + */ + public function setTaskId($var) + { + GPBUtil::checkString($var, True); + $this->task_id = $var; + + 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) + * to ensure it only creates subtasks for which there are compatible workers + * polling for Subtasks. + * + * Generated from protobuf field string type = 3; + * @return string + */ + public function getType() + { + return $this->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) + * to ensure it only creates subtasks for which there are compatible workers + * polling for Subtasks. + * + * Generated from protobuf field string type = 3; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Output only. The current state of the subtask. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current state of the subtask. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\Migration\V2\MigrationSubtask\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. An explanation that may be populated when the task is in + * FAILED state. + * + * Generated from protobuf field .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Rpc\ErrorInfo|null + */ + public function getProcessingError() + { + return $this->processing_error; + } + + public function hasProcessingError() + { + return isset($this->processing_error); + } + + public function clearProcessingError() + { + unset($this->processing_error); + } + + /** + * Output only. An explanation that may be populated when the task is in + * FAILED state. + * + * Generated from protobuf field .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Rpc\ErrorInfo $var + * @return $this + */ + public function setProcessingError($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\ErrorInfo::class); + $this->processing_error = $var; + + 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. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\ResourceErrorDetail> + */ + public function getResourceErrorDetails() + { + return $this->resource_error_details; + } + + /** + * Output only. Provides details to errors and issues encountered while + * processing the subtask. Presence of error details does not mean that the + * subtask failed. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\BigQuery\Migration\V2\ResourceErrorDetail[] $var + * @return $this + */ + public function setResourceErrorDetails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\ResourceErrorDetail::class); + $this->resource_error_details = $arr; + + return $this; + } + + /** + * Output only. The number or resources with errors. Note: This is not the + * total number of errors as each resource can have more than one error. This + * is used to indicate truncation by having a `resource_error_count` that is + * higher than the size of `resource_error_details`. + * + * Generated from protobuf field int32 resource_error_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getResourceErrorCount() + { + return $this->resource_error_count; + } + + /** + * Output only. The number or resources with errors. Note: This is not the + * total number of errors as each resource can have more than one error. This + * is used to indicate truncation by having a `resource_error_count` that is + * higher than the size of `resource_error_details`. + * + * Generated from protobuf field int32 resource_error_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setResourceErrorCount($var) + { + GPBUtil::checkInt32($var); + $this->resource_error_count = $var; + + return $this; + } + + /** + * Output only. Time when the subtask was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when the subtask was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time when the subtask was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastUpdateTime() + { + return $this->last_update_time; + } + + public function hasLastUpdateTime() + { + return isset($this->last_update_time); + } + + public function clearLastUpdateTime() + { + unset($this->last_update_time); + } + + /** + * Output only. Time when the subtask was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_update_time = $var; + + return $this; + } + + /** + * Output only. The metrics for the subtask. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\TimeSeries> + */ + public function getMetrics() + { + return $this->metrics; + } + + /** + * Output only. The metrics for the subtask. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\BigQuery\Migration\V2\TimeSeries[] $var + * @return $this + */ + public function setMetrics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\TimeSeries::class); + $this->metrics = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationSubtask/State.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationSubtask/State.php new file mode 100644 index 000000000000..c61e225ce18c --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationSubtask/State.php @@ -0,0 +1,91 @@ +google.cloud.bigquery.migration.v2.MigrationSubtask.State + */ +class State +{ + /** + * The state is unspecified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The subtask is ready, i.e. it is ready for execution. + * + * Generated from protobuf enum ACTIVE = 1; + */ + const ACTIVE = 1; + /** + * The subtask is running, i.e. it is assigned to a worker for execution. + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The subtask finished successfully. + * + * Generated from protobuf enum SUCCEEDED = 3; + */ + const SUCCEEDED = 3; + /** + * The subtask finished unsuccessfully. + * + * Generated from protobuf enum FAILED = 4; + */ + const 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. + * + * Generated from protobuf enum PAUSED = 5; + */ + const PAUSED = 5; + /** + * The subtask is pending a dependency. It will be scheduled once its + * dependencies are done. + * + * Generated from protobuf enum PENDING_DEPENDENCY = 6; + */ + const PENDING_DEPENDENCY = 6; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::ACTIVE => 'ACTIVE', + self::RUNNING => 'RUNNING', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + self::PAUSED => 'PAUSED', + self::PENDING_DEPENDENCY => 'PENDING_DEPENDENCY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTask.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTask.php new file mode 100644 index 000000000000..70dbf6fb2156 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTask.php @@ -0,0 +1,674 @@ +google.cloud.bigquery.migration.v2.MigrationTask + */ +class MigrationTask extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Immutable. The unique identifier for the migration task. The + * ID is server-generated. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $id = ''; + /** + * The type of the task. This must be one of the supported task types. + * Assessment: + * - `Assessment_Hive` - Assessment for Hive. + * - `Assessment_Redshift` - Assessment for Redshift. + * - `Assessment_Snowflake` - Assessment for Snowflake. + * - `Assessment_Teradata_v2` - Assessment for Teradata. + * - `Assessment_Oracle` - Assessment for Oracle. + * - `Assessment_Hadoop` - Assessment for Hadoop. + * - `Assessment_Informatica` - Assessment for Informatica. + * Translation: + * See [Supported Task + * Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types) + * for a list of supported task types. + * + * Generated from protobuf field string type = 2; + */ + protected $type = ''; + /** + * Output only. The current state of the task. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. An explanation that may be populated when the task is in + * FAILED state. + * + * Generated from protobuf field .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $processing_error = null; + /** + * Output only. Time when the task was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time when the task was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_update_time = null; + /** + * Output only. Provides details to errors and issues encountered while + * processing the task. Presence of error details does not mean that the task + * failed. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $resource_error_details; + /** + * Output only. The number or resources with errors. Note: This is not the + * total number of errors as each resource can have more than one error. This + * is used to indicate truncation by having a `resource_error_count` that is + * higher than the size of `resource_error_details`. + * + * Generated from protobuf field int32 resource_error_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $resource_error_count = 0; + /** + * Output only. The metrics for the task. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $metrics; + /** + * Output only. The result of the task. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $task_result = null; + /** + * Output only. Count of all the processing errors in this task and its + * subtasks. + * + * Generated from protobuf field int32 total_processing_error_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $total_processing_error_count = 0; + /** + * Output only. Count of all the resource errors in this task and its + * subtasks. + * + * Generated from protobuf field int32 total_resource_error_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $total_resource_error_count = 0; + protected $task_details; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\BigQuery\Migration\V2\AssessmentTaskDetails $assessment_task_details + * Task configuration for Assessment. + * @type \Google\Cloud\BigQuery\Migration\V2\TranslationConfigDetails $translation_config_details + * Task configuration for CW Batch/Offline SQL Translation. + * @type \Google\Cloud\BigQuery\Migration\V2\TranslationDetails $translation_details + * Task details for unified SQL Translation. + * @type string $id + * Output only. Immutable. The unique identifier for the migration task. The + * ID is server-generated. + * @type string $type + * The type of the task. This must be one of the supported task types. + * Assessment: + * - `Assessment_Hive` - Assessment for Hive. + * - `Assessment_Redshift` - Assessment for Redshift. + * - `Assessment_Snowflake` - Assessment for Snowflake. + * - `Assessment_Teradata_v2` - Assessment for Teradata. + * - `Assessment_Oracle` - Assessment for Oracle. + * - `Assessment_Hadoop` - Assessment for Hadoop. + * - `Assessment_Informatica` - Assessment for Informatica. + * Translation: + * See [Supported Task + * Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types) + * for a list of supported task types. + * @type int $state + * Output only. The current state of the task. + * @type \Google\Rpc\ErrorInfo $processing_error + * Output only. An explanation that may be populated when the task is in + * FAILED state. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when the task was created. + * @type \Google\Protobuf\Timestamp $last_update_time + * Output only. Time when the task was last updated. + * @type \Google\Cloud\BigQuery\Migration\V2\ResourceErrorDetail[] $resource_error_details + * Output only. Provides details to errors and issues encountered while + * processing the task. Presence of error details does not mean that the task + * failed. + * @type int $resource_error_count + * Output only. The number or resources with errors. Note: This is not the + * total number of errors as each resource can have more than one error. This + * is used to indicate truncation by having a `resource_error_count` that is + * higher than the size of `resource_error_details`. + * @type \Google\Cloud\BigQuery\Migration\V2\TimeSeries[] $metrics + * Output only. The metrics for the task. + * @type \Google\Cloud\BigQuery\Migration\V2\MigrationTaskResult $task_result + * Output only. The result of the task. + * @type int $total_processing_error_count + * Output only. Count of all the processing errors in this task and its + * subtasks. + * @type int $total_resource_error_count + * Output only. Count of all the resource errors in this task and its + * subtasks. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationEntities::initOnce(); + parent::__construct($data); + } + + /** + * Task configuration for Assessment. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.AssessmentTaskDetails assessment_task_details = 12; + * @return \Google\Cloud\BigQuery\Migration\V2\AssessmentTaskDetails|null + */ + public function getAssessmentTaskDetails() + { + return $this->readOneof(12); + } + + public function hasAssessmentTaskDetails() + { + return $this->hasOneof(12); + } + + /** + * Task configuration for Assessment. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.AssessmentTaskDetails assessment_task_details = 12; + * @param \Google\Cloud\BigQuery\Migration\V2\AssessmentTaskDetails $var + * @return $this + */ + public function setAssessmentTaskDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\AssessmentTaskDetails::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * Task configuration for CW Batch/Offline SQL Translation. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * @return \Google\Cloud\BigQuery\Migration\V2\TranslationConfigDetails|null + */ + public function getTranslationConfigDetails() + { + return $this->readOneof(14); + } + + public function hasTranslationConfigDetails() + { + return $this->hasOneof(14); + } + + /** + * Task configuration for CW Batch/Offline SQL Translation. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; + * @param \Google\Cloud\BigQuery\Migration\V2\TranslationConfigDetails $var + * @return $this + */ + public function setTranslationConfigDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\TranslationConfigDetails::class); + $this->writeOneof(14, $var); + + return $this; + } + + /** + * Task details for unified SQL Translation. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16; + * @return \Google\Cloud\BigQuery\Migration\V2\TranslationDetails|null + */ + public function getTranslationDetails() + { + return $this->readOneof(16); + } + + public function hasTranslationDetails() + { + return $this->hasOneof(16); + } + + /** + * Task details for unified SQL Translation. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16; + * @param \Google\Cloud\BigQuery\Migration\V2\TranslationDetails $var + * @return $this + */ + public function setTranslationDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\TranslationDetails::class); + $this->writeOneof(16, $var); + + return $this; + } + + /** + * Output only. Immutable. The unique identifier for the migration task. The + * ID is server-generated. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Output only. Immutable. The unique identifier for the migration task. The + * ID is server-generated. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * The type of the task. This must be one of the supported task types. + * Assessment: + * - `Assessment_Hive` - Assessment for Hive. + * - `Assessment_Redshift` - Assessment for Redshift. + * - `Assessment_Snowflake` - Assessment for Snowflake. + * - `Assessment_Teradata_v2` - Assessment for Teradata. + * - `Assessment_Oracle` - Assessment for Oracle. + * - `Assessment_Hadoop` - Assessment for Hadoop. + * - `Assessment_Informatica` - Assessment for Informatica. + * Translation: + * See [Supported Task + * Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types) + * for a list of supported task types. + * + * Generated from protobuf field string type = 2; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * The type of the task. This must be one of the supported task types. + * Assessment: + * - `Assessment_Hive` - Assessment for Hive. + * - `Assessment_Redshift` - Assessment for Redshift. + * - `Assessment_Snowflake` - Assessment for Snowflake. + * - `Assessment_Teradata_v2` - Assessment for Teradata. + * - `Assessment_Oracle` - Assessment for Oracle. + * - `Assessment_Hadoop` - Assessment for Hadoop. + * - `Assessment_Informatica` - Assessment for Informatica. + * Translation: + * See [Supported Task + * Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types) + * for a list of supported task types. + * + * Generated from protobuf field string type = 2; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Output only. The current state of the task. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current state of the task. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\Migration\V2\MigrationTask\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. An explanation that may be populated when the task is in + * FAILED state. + * + * Generated from protobuf field .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Rpc\ErrorInfo|null + */ + public function getProcessingError() + { + return $this->processing_error; + } + + public function hasProcessingError() + { + return isset($this->processing_error); + } + + public function clearProcessingError() + { + unset($this->processing_error); + } + + /** + * Output only. An explanation that may be populated when the task is in + * FAILED state. + * + * Generated from protobuf field .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Rpc\ErrorInfo $var + * @return $this + */ + public function setProcessingError($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\ErrorInfo::class); + $this->processing_error = $var; + + return $this; + } + + /** + * Output only. Time when the task was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when the task was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time when the task was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastUpdateTime() + { + return $this->last_update_time; + } + + public function hasLastUpdateTime() + { + return isset($this->last_update_time); + } + + public function clearLastUpdateTime() + { + unset($this->last_update_time); + } + + /** + * Output only. Time when the task was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_update_time = $var; + + return $this; + } + + /** + * Output only. Provides details to errors and issues encountered while + * processing the task. Presence of error details does not mean that the task + * failed. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\ResourceErrorDetail> + */ + public function getResourceErrorDetails() + { + return $this->resource_error_details; + } + + /** + * Output only. Provides details to errors and issues encountered while + * processing the task. Presence of error details does not mean that the task + * failed. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\BigQuery\Migration\V2\ResourceErrorDetail[] $var + * @return $this + */ + public function setResourceErrorDetails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\ResourceErrorDetail::class); + $this->resource_error_details = $arr; + + return $this; + } + + /** + * Output only. The number or resources with errors. Note: This is not the + * total number of errors as each resource can have more than one error. This + * is used to indicate truncation by having a `resource_error_count` that is + * higher than the size of `resource_error_details`. + * + * Generated from protobuf field int32 resource_error_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getResourceErrorCount() + { + return $this->resource_error_count; + } + + /** + * Output only. The number or resources with errors. Note: This is not the + * total number of errors as each resource can have more than one error. This + * is used to indicate truncation by having a `resource_error_count` that is + * higher than the size of `resource_error_details`. + * + * Generated from protobuf field int32 resource_error_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setResourceErrorCount($var) + { + GPBUtil::checkInt32($var); + $this->resource_error_count = $var; + + return $this; + } + + /** + * Output only. The metrics for the task. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\TimeSeries> + */ + public function getMetrics() + { + return $this->metrics; + } + + /** + * Output only. The metrics for the task. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\BigQuery\Migration\V2\TimeSeries[] $var + * @return $this + */ + public function setMetrics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\TimeSeries::class); + $this->metrics = $arr; + + return $this; + } + + /** + * Output only. The result of the task. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\BigQuery\Migration\V2\MigrationTaskResult|null + */ + public function getTaskResult() + { + return $this->task_result; + } + + public function hasTaskResult() + { + return isset($this->task_result); + } + + public function clearTaskResult() + { + unset($this->task_result); + } + + /** + * Output only. The result of the task. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\BigQuery\Migration\V2\MigrationTaskResult $var + * @return $this + */ + public function setTaskResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\MigrationTaskResult::class); + $this->task_result = $var; + + return $this; + } + + /** + * Output only. Count of all the processing errors in this task and its + * subtasks. + * + * Generated from protobuf field int32 total_processing_error_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getTotalProcessingErrorCount() + { + return $this->total_processing_error_count; + } + + /** + * Output only. Count of all the processing errors in this task and its + * subtasks. + * + * Generated from protobuf field int32 total_processing_error_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setTotalProcessingErrorCount($var) + { + GPBUtil::checkInt32($var); + $this->total_processing_error_count = $var; + + return $this; + } + + /** + * Output only. Count of all the resource errors in this task and its + * subtasks. + * + * Generated from protobuf field int32 total_resource_error_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getTotalResourceErrorCount() + { + return $this->total_resource_error_count; + } + + /** + * Output only. Count of all the resource errors in this task and its + * subtasks. + * + * Generated from protobuf field int32 total_resource_error_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setTotalResourceErrorCount($var) + { + GPBUtil::checkInt32($var); + $this->total_resource_error_count = $var; + + return $this; + } + + /** + * @return string + */ + public function getTaskDetails() + { + return $this->whichOneof("task_details"); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTask/State.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTask/State.php new file mode 100644 index 000000000000..6aa47c9b9b81 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTask/State.php @@ -0,0 +1,90 @@ +google.cloud.bigquery.migration.v2.MigrationTask.State + */ +class State +{ + /** + * The state is unspecified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The task is waiting for orchestration. + * + * Generated from protobuf enum PENDING = 1; + */ + const PENDING = 1; + /** + * The task is assigned to an orchestrator. + * + * Generated from protobuf enum ORCHESTRATING = 2; + */ + const ORCHESTRATING = 2; + /** + * The task is running, i.e. its subtasks are ready for execution. + * + * Generated from protobuf enum RUNNING = 3; + */ + const RUNNING = 3; + /** + * The task is paused. Assigned subtasks can continue, but no new subtasks + * will be scheduled. + * + * Generated from protobuf enum PAUSED = 4; + */ + const PAUSED = 4; + /** + * The task finished successfully. + * + * Generated from protobuf enum SUCCEEDED = 5; + */ + const SUCCEEDED = 5; + /** + * The task finished unsuccessfully. + * + * Generated from protobuf enum FAILED = 6; + */ + const FAILED = 6; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PENDING => 'PENDING', + self::ORCHESTRATING => 'ORCHESTRATING', + self::RUNNING => 'RUNNING', + self::PAUSED => 'PAUSED', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTaskResult.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTaskResult.php new file mode 100644 index 000000000000..66992b7c01fb --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTaskResult.php @@ -0,0 +1,75 @@ +google.cloud.bigquery.migration.v2.MigrationTaskResult + */ +class MigrationTaskResult extends \Google\Protobuf\Internal\Message +{ + protected $details; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\BigQuery\Migration\V2\TranslationTaskResult $translation_task_result + * Details specific to translation task types. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationEntities::initOnce(); + parent::__construct($data); + } + + /** + * Details specific to translation task types. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TranslationTaskResult translation_task_result = 2; + * @return \Google\Cloud\BigQuery\Migration\V2\TranslationTaskResult|null + */ + public function getTranslationTaskResult() + { + return $this->readOneof(2); + } + + public function hasTranslationTaskResult() + { + return $this->hasOneof(2); + } + + /** + * Details specific to translation task types. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TranslationTaskResult translation_task_result = 2; + * @param \Google\Cloud\BigQuery\Migration\V2\TranslationTaskResult $var + * @return $this + */ + public function setTranslationTaskResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\TranslationTaskResult::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getDetails() + { + return $this->whichOneof("details"); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationWorkflow.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationWorkflow.php new file mode 100644 index 000000000000..89111264b873 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationWorkflow.php @@ -0,0 +1,278 @@ +google.cloud.bigquery.migration.v2.MigrationWorkflow + */ +class MigrationWorkflow extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Immutable. Identifier. The unique identifier for the migration + * workflow. The ID is server-generated. + * Example: `projects/123/locations/us/workflows/345` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * 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. + * + * Generated from protobuf field string display_name = 6; + */ + protected $display_name = ''; + /** + * 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. + * + * Generated from protobuf field map tasks = 2; + */ + private $tasks; + /** + * Output only. That status of the workflow. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Time when the workflow was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time when the workflow was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_update_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Immutable. Identifier. The unique identifier for the migration + * workflow. The ID is server-generated. + * Example: `projects/123/locations/us/workflows/345` + * @type string $display_name + * 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. + * @type array|\Google\Protobuf\Internal\MapField $tasks + * 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. + * @type int $state + * Output only. That status of the workflow. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time when the workflow was created. + * @type \Google\Protobuf\Timestamp $last_update_time + * Output only. Time when the workflow was last updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationEntities::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Immutable. Identifier. The unique identifier for the migration + * workflow. The ID is server-generated. + * Example: `projects/123/locations/us/workflows/345` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Immutable. Identifier. The unique identifier for the migration + * workflow. The ID is server-generated. + * Example: `projects/123/locations/us/workflows/345` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + 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. + * + * Generated from protobuf field string display_name = 6; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * 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. + * + * Generated from protobuf field string display_name = 6; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + 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. + * + * Generated from protobuf field map tasks = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getTasks() + { + return $this->tasks; + } + + /** + * 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. + * + * Generated from protobuf field map tasks = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setTasks($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\MigrationTask::class); + $this->tasks = $arr; + + return $this; + } + + /** + * Output only. That status of the workflow. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. That status of the workflow. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Time when the workflow was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time when the workflow was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time when the workflow was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastUpdateTime() + { + return $this->last_update_time; + } + + public function hasLastUpdateTime() + { + return isset($this->last_update_time); + } + + public function clearLastUpdateTime() + { + unset($this->last_update_time); + } + + /** + * Output only. Time when the workflow was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_update_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationWorkflow/State.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationWorkflow/State.php new file mode 100644 index 000000000000..79b7c32d73e2 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationWorkflow/State.php @@ -0,0 +1,79 @@ +google.cloud.bigquery.migration.v2.MigrationWorkflow.State + */ +class State +{ + /** + * Workflow state is unspecified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Workflow is in draft status, i.e. tasks are not yet eligible for + * execution. + * + * Generated from protobuf enum DRAFT = 1; + */ + const DRAFT = 1; + /** + * Workflow is running (i.e. tasks are eligible for execution). + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * Workflow is paused. Tasks currently in progress may continue, but no + * further tasks will be scheduled. + * + * Generated from protobuf enum PAUSED = 3; + */ + const 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 + * scheduled. + * + * Generated from protobuf enum COMPLETED = 4; + */ + const COMPLETED = 4; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::DRAFT => 'DRAFT', + self::RUNNING => 'RUNNING', + self::PAUSED => 'PAUSED', + self::COMPLETED => 'COMPLETED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MySQLDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MySQLDialect.php new file mode 100644 index 000000000000..f2aebe9bd6d3 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MySQLDialect.php @@ -0,0 +1,33 @@ +google.cloud.bigquery.migration.v2.MySQLDialect + */ +class MySQLDialect extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingKey.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingKey.php new file mode 100644 index 000000000000..380544e36620 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingKey.php @@ -0,0 +1,216 @@ +google.cloud.bigquery.migration.v2.NameMappingKey + */ +class NameMappingKey extends \Google\Protobuf\Internal\Message +{ + /** + * The type of object that is being mapped. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.NameMappingKey.Type type = 1; + */ + protected $type = 0; + /** + * The database name (BigQuery project ID equivalent in the source data + * warehouse). + * + * Generated from protobuf field string database = 2; + */ + protected $database = ''; + /** + * The schema name (BigQuery dataset equivalent in the source data warehouse). + * + * Generated from protobuf field string schema = 3; + */ + protected $schema = ''; + /** + * The relation name (BigQuery table or view equivalent in the source data + * warehouse). + * + * Generated from protobuf field string relation = 4; + */ + protected $relation = ''; + /** + * The attribute name (BigQuery column equivalent in the source data + * warehouse). + * + * Generated from protobuf field string attribute = 5; + */ + protected $attribute = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * The type of object that is being mapped. + * @type string $database + * The database name (BigQuery project ID equivalent in the source data + * warehouse). + * @type string $schema + * The schema name (BigQuery dataset equivalent in the source data warehouse). + * @type string $relation + * The relation name (BigQuery table or view equivalent in the source data + * warehouse). + * @type string $attribute + * The attribute name (BigQuery column equivalent in the source data + * warehouse). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + + /** + * The type of object that is being mapped. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.NameMappingKey.Type type = 1; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of object that is being mapped. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.NameMappingKey.Type type = 1; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\Migration\V2\NameMappingKey\Type::class); + $this->type = $var; + + return $this; + } + + /** + * The database name (BigQuery project ID equivalent in the source data + * warehouse). + * + * Generated from protobuf field string database = 2; + * @return string + */ + public function getDatabase() + { + return $this->database; + } + + /** + * The database name (BigQuery project ID equivalent in the source data + * warehouse). + * + * Generated from protobuf field string database = 2; + * @param string $var + * @return $this + */ + public function setDatabase($var) + { + GPBUtil::checkString($var, True); + $this->database = $var; + + return $this; + } + + /** + * The schema name (BigQuery dataset equivalent in the source data warehouse). + * + * Generated from protobuf field string schema = 3; + * @return string + */ + public function getSchema() + { + return $this->schema; + } + + /** + * The schema name (BigQuery dataset equivalent in the source data warehouse). + * + * Generated from protobuf field string schema = 3; + * @param string $var + * @return $this + */ + public function setSchema($var) + { + GPBUtil::checkString($var, True); + $this->schema = $var; + + return $this; + } + + /** + * The relation name (BigQuery table or view equivalent in the source data + * warehouse). + * + * Generated from protobuf field string relation = 4; + * @return string + */ + public function getRelation() + { + return $this->relation; + } + + /** + * The relation name (BigQuery table or view equivalent in the source data + * warehouse). + * + * Generated from protobuf field string relation = 4; + * @param string $var + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkString($var, True); + $this->relation = $var; + + return $this; + } + + /** + * The attribute name (BigQuery column equivalent in the source data + * warehouse). + * + * Generated from protobuf field string attribute = 5; + * @return string + */ + public function getAttribute() + { + return $this->attribute; + } + + /** + * The attribute name (BigQuery column equivalent in the source data + * warehouse). + * + * Generated from protobuf field string attribute = 5; + * @param string $var + * @return $this + */ + public function setAttribute($var) + { + GPBUtil::checkString($var, True); + $this->attribute = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingKey/Type.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingKey/Type.php new file mode 100644 index 000000000000..e490ccca5e54 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingKey/Type.php @@ -0,0 +1,100 @@ +google.cloud.bigquery.migration.v2.NameMappingKey.Type + */ +class Type +{ + /** + * Unspecified name mapping type. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * The object being mapped is a database. + * + * Generated from protobuf enum DATABASE = 1; + */ + const DATABASE = 1; + /** + * The object being mapped is a schema. + * + * Generated from protobuf enum SCHEMA = 2; + */ + const SCHEMA = 2; + /** + * The object being mapped is a relation. + * + * Generated from protobuf enum RELATION = 3; + */ + const RELATION = 3; + /** + * The object being mapped is an attribute. + * + * Generated from protobuf enum ATTRIBUTE = 4; + */ + const ATTRIBUTE = 4; + /** + * The object being mapped is a relation alias. + * + * Generated from protobuf enum RELATION_ALIAS = 5; + */ + const RELATION_ALIAS = 5; + /** + * The object being mapped is a an attribute alias. + * + * Generated from protobuf enum ATTRIBUTE_ALIAS = 6; + */ + const ATTRIBUTE_ALIAS = 6; + /** + * The object being mapped is a function. + * + * Generated from protobuf enum FUNCTION = 7; + */ + const PBFUNCTION = 7; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::DATABASE => 'DATABASE', + self::SCHEMA => 'SCHEMA', + self::RELATION => 'RELATION', + self::ATTRIBUTE => 'ATTRIBUTE', + self::RELATION_ALIAS => 'RELATION_ALIAS', + self::ATTRIBUTE_ALIAS => 'ATTRIBUTE_ALIAS', + self::PBFUNCTION => 'FUNCTION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingValue.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingValue.php new file mode 100644 index 000000000000..a0979790ee2a --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingValue.php @@ -0,0 +1,182 @@ +google.cloud.bigquery.migration.v2.NameMappingValue + */ +class NameMappingValue extends \Google\Protobuf\Internal\Message +{ + /** + * The database name (BigQuery project ID equivalent in the target data + * warehouse). + * + * Generated from protobuf field string database = 1; + */ + protected $database = ''; + /** + * The schema name (BigQuery dataset equivalent in the target data warehouse). + * + * Generated from protobuf field string schema = 2; + */ + protected $schema = ''; + /** + * The relation name (BigQuery table or view equivalent in the target data + * warehouse). + * + * Generated from protobuf field string relation = 3; + */ + protected $relation = ''; + /** + * The attribute name (BigQuery column equivalent in the target data + * warehouse). + * + * Generated from protobuf field string attribute = 4; + */ + protected $attribute = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $database + * The database name (BigQuery project ID equivalent in the target data + * warehouse). + * @type string $schema + * The schema name (BigQuery dataset equivalent in the target data warehouse). + * @type string $relation + * The relation name (BigQuery table or view equivalent in the target data + * warehouse). + * @type string $attribute + * The attribute name (BigQuery column equivalent in the target data + * warehouse). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + + /** + * The database name (BigQuery project ID equivalent in the target data + * warehouse). + * + * Generated from protobuf field string database = 1; + * @return string + */ + public function getDatabase() + { + return $this->database; + } + + /** + * The database name (BigQuery project ID equivalent in the target data + * warehouse). + * + * Generated from protobuf field string database = 1; + * @param string $var + * @return $this + */ + public function setDatabase($var) + { + GPBUtil::checkString($var, True); + $this->database = $var; + + return $this; + } + + /** + * The schema name (BigQuery dataset equivalent in the target data warehouse). + * + * Generated from protobuf field string schema = 2; + * @return string + */ + public function getSchema() + { + return $this->schema; + } + + /** + * The schema name (BigQuery dataset equivalent in the target data warehouse). + * + * Generated from protobuf field string schema = 2; + * @param string $var + * @return $this + */ + public function setSchema($var) + { + GPBUtil::checkString($var, True); + $this->schema = $var; + + return $this; + } + + /** + * The relation name (BigQuery table or view equivalent in the target data + * warehouse). + * + * Generated from protobuf field string relation = 3; + * @return string + */ + public function getRelation() + { + return $this->relation; + } + + /** + * The relation name (BigQuery table or view equivalent in the target data + * warehouse). + * + * Generated from protobuf field string relation = 3; + * @param string $var + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkString($var, True); + $this->relation = $var; + + return $this; + } + + /** + * The attribute name (BigQuery column equivalent in the target data + * warehouse). + * + * Generated from protobuf field string attribute = 4; + * @return string + */ + public function getAttribute() + { + return $this->attribute; + } + + /** + * The attribute name (BigQuery column equivalent in the target data + * warehouse). + * + * Generated from protobuf field string attribute = 4; + * @param string $var + * @return $this + */ + public function setAttribute($var) + { + GPBUtil::checkString($var, True); + $this->attribute = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NetezzaDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NetezzaDialect.php new file mode 100644 index 000000000000..e6956f13c728 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NetezzaDialect.php @@ -0,0 +1,33 @@ +google.cloud.bigquery.migration.v2.NetezzaDialect + */ +class NetezzaDialect extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ObjectNameMapping.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ObjectNameMapping.php new file mode 100644 index 000000000000..0d8b65590c32 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ObjectNameMapping.php @@ -0,0 +1,122 @@ +google.cloud.bigquery.migration.v2.ObjectNameMapping + */ +class ObjectNameMapping extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the object in source that is being mapped. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; + */ + protected $source = null; + /** + * The desired target name of the object that is being mapped. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; + */ + protected $target = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\BigQuery\Migration\V2\NameMappingKey $source + * The name of the object in source that is being mapped. + * @type \Google\Cloud\BigQuery\Migration\V2\NameMappingValue $target + * The desired target name of the object that is being mapped. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + + /** + * The name of the object in source that is being mapped. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; + * @return \Google\Cloud\BigQuery\Migration\V2\NameMappingKey|null + */ + public function getSource() + { + return $this->source; + } + + public function hasSource() + { + return isset($this->source); + } + + public function clearSource() + { + unset($this->source); + } + + /** + * The name of the object in source that is being mapped. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; + * @param \Google\Cloud\BigQuery\Migration\V2\NameMappingKey $var + * @return $this + */ + public function setSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\NameMappingKey::class); + $this->source = $var; + + return $this; + } + + /** + * The desired target name of the object that is being mapped. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; + * @return \Google\Cloud\BigQuery\Migration\V2\NameMappingValue|null + */ + public function getTarget() + { + return $this->target; + } + + public function hasTarget() + { + return isset($this->target); + } + + public function clearTarget() + { + unset($this->target); + } + + /** + * The desired target name of the object that is being mapped. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; + * @param \Google\Cloud\BigQuery\Migration\V2\NameMappingValue $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\NameMappingValue::class); + $this->target = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ObjectNameMappingList.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ObjectNameMappingList.php new file mode 100644 index 000000000000..4199f97fdcd7 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ObjectNameMappingList.php @@ -0,0 +1,68 @@ +google.cloud.bigquery.migration.v2.ObjectNameMappingList + */ +class ObjectNameMappingList extends \Google\Protobuf\Internal\Message +{ + /** + * The elements of the object name map. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ObjectNameMapping name_map = 1; + */ + private $name_map; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\BigQuery\Migration\V2\ObjectNameMapping[] $name_map + * The elements of the object name map. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + + /** + * The elements of the object name map. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ObjectNameMapping name_map = 1; + * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\ObjectNameMapping> + */ + public function getNameMap() + { + return $this->name_map; + } + + /** + * The elements of the object name map. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ObjectNameMapping name_map = 1; + * @param \Google\Cloud\BigQuery\Migration\V2\ObjectNameMapping[] $var + * @return $this + */ + public function setNameMap($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\ObjectNameMapping::class); + $this->name_map = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/OracleDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/OracleDialect.php new file mode 100644 index 000000000000..931c22c64305 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/OracleDialect.php @@ -0,0 +1,33 @@ +google.cloud.bigquery.migration.v2.OracleDialect + */ +class OracleDialect extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Point.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Point.php new file mode 100644 index 000000000000..f7b5122fe09d --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Point.php @@ -0,0 +1,153 @@ +google.cloud.bigquery.migration.v2.Point + */ +class Point extends \Google\Protobuf\Internal\Message +{ + /** + * 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 + * equal the end time. For `DELTA` metrics, the start and end time should + * specify a non-zero interval, with subsequent points specifying contiguous + * and non-overlapping intervals. For `CUMULATIVE` metrics, the start and end + * time should specify a non-zero interval, with subsequent points specifying + * the same start time and increasing end times, until an event resets the + * cumulative value to zero and sets a new start time for the following + * points. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TimeInterval interval = 1; + */ + protected $interval = null; + /** + * The value of the data point. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TypedValue value = 2; + */ + protected $value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \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 + * equal the end time. For `DELTA` metrics, the start and end time should + * specify a non-zero interval, with subsequent points specifying contiguous + * and non-overlapping intervals. For `CUMULATIVE` metrics, the start and end + * time should specify a non-zero interval, with subsequent points specifying + * the same start time and increasing end times, until an event resets the + * cumulative value to zero and sets a new start time for the following + * points. + * @type \Google\Cloud\BigQuery\Migration\V2\TypedValue $value + * The value of the data point. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationMetrics::initOnce(); + parent::__construct($data); + } + + /** + * 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 + * equal the end time. For `DELTA` metrics, the start and end time should + * specify a non-zero interval, with subsequent points specifying contiguous + * and non-overlapping intervals. For `CUMULATIVE` metrics, the start and end + * time should specify a non-zero interval, with subsequent points specifying + * the same start time and increasing end times, until an event resets the + * cumulative value to zero and sets a new start time for the following + * points. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TimeInterval interval = 1; + * @return \Google\Cloud\BigQuery\Migration\V2\TimeInterval|null + */ + public function getInterval() + { + return $this->interval; + } + + public function hasInterval() + { + return isset($this->interval); + } + + public function clearInterval() + { + unset($this->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 + * equal the end time. For `DELTA` metrics, the start and end time should + * specify a non-zero interval, with subsequent points specifying contiguous + * and non-overlapping intervals. For `CUMULATIVE` metrics, the start and end + * time should specify a non-zero interval, with subsequent points specifying + * the same start time and increasing end times, until an event resets the + * cumulative value to zero and sets a new start time for the following + * points. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TimeInterval interval = 1; + * @param \Google\Cloud\BigQuery\Migration\V2\TimeInterval $var + * @return $this + */ + public function setInterval($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\TimeInterval::class); + $this->interval = $var; + + return $this; + } + + /** + * The value of the data point. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TypedValue value = 2; + * @return \Google\Cloud\BigQuery\Migration\V2\TypedValue|null + */ + public function getValue() + { + return $this->value; + } + + public function hasValue() + { + return isset($this->value); + } + + public function clearValue() + { + unset($this->value); + } + + /** + * The value of the data point. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TypedValue value = 2; + * @param \Google\Cloud\BigQuery\Migration\V2\TypedValue $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\TypedValue::class); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/PostgresqlDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/PostgresqlDialect.php new file mode 100644 index 000000000000..a72cb584b856 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/PostgresqlDialect.php @@ -0,0 +1,33 @@ +google.cloud.bigquery.migration.v2.PostgresqlDialect + */ +class PostgresqlDialect extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/PrestoDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/PrestoDialect.php new file mode 100644 index 000000000000..8dfb8f93d0b6 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/PrestoDialect.php @@ -0,0 +1,33 @@ +google.cloud.bigquery.migration.v2.PrestoDialect + */ +class PrestoDialect extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/RedshiftDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/RedshiftDialect.php new file mode 100644 index 000000000000..e363874a44d1 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/RedshiftDialect.php @@ -0,0 +1,33 @@ +google.cloud.bigquery.migration.v2.RedshiftDialect + */ +class RedshiftDialect extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ResourceErrorDetail.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ResourceErrorDetail.php new file mode 100644 index 000000000000..cb50c214b416 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ResourceErrorDetail.php @@ -0,0 +1,153 @@ +google.cloud.bigquery.migration.v2.ResourceErrorDetail + */ +class ResourceErrorDetail extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Information about the resource where the error is located. + * + * Generated from protobuf field .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $resource_info = null; + /** + * Required. The error details for the resource. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $error_details; + /** + * 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 + * `error_details`. + * + * Generated from protobuf field int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $error_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Rpc\ResourceInfo $resource_info + * Required. Information about the resource where the error is located. + * @type \Google\Cloud\BigQuery\Migration\V2\ErrorDetail[] $error_details + * Required. The error details for the resource. + * @type int $error_count + * 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 + * `error_details`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationErrorDetails::initOnce(); + parent::__construct($data); + } + + /** + * Required. Information about the resource where the error is located. + * + * Generated from protobuf field .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Rpc\ResourceInfo|null + */ + public function getResourceInfo() + { + return $this->resource_info; + } + + public function hasResourceInfo() + { + return isset($this->resource_info); + } + + public function clearResourceInfo() + { + unset($this->resource_info); + } + + /** + * Required. Information about the resource where the error is located. + * + * Generated from protobuf field .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Rpc\ResourceInfo $var + * @return $this + */ + public function setResourceInfo($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\ResourceInfo::class); + $this->resource_info = $var; + + return $this; + } + + /** + * Required. The error details for the resource. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\ErrorDetail> + */ + public function getErrorDetails() + { + return $this->error_details; + } + + /** + * Required. The error details for the resource. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\BigQuery\Migration\V2\ErrorDetail[] $var + * @return $this + */ + public function setErrorDetails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\ErrorDetail::class); + $this->error_details = $arr; + + 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 + * `error_details`. + * + * Generated from protobuf field int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getErrorCount() + { + return $this->error_count; + } + + /** + * 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 + * `error_details`. + * + * Generated from protobuf field int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setErrorCount($var) + { + GPBUtil::checkInt32($var); + $this->error_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SQLServerDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SQLServerDialect.php new file mode 100644 index 000000000000..bc73278be03b --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SQLServerDialect.php @@ -0,0 +1,33 @@ +google.cloud.bigquery.migration.v2.SQLServerDialect + */ +class SQLServerDialect extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SQLiteDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SQLiteDialect.php new file mode 100644 index 000000000000..01c66370831a --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SQLiteDialect.php @@ -0,0 +1,33 @@ +google.cloud.bigquery.migration.v2.SQLiteDialect + */ +class SQLiteDialect extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SnowflakeDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SnowflakeDialect.php new file mode 100644 index 000000000000..0e512b042861 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SnowflakeDialect.php @@ -0,0 +1,33 @@ +google.cloud.bigquery.migration.v2.SnowflakeDialect + */ +class SnowflakeDialect extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceEnv.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceEnv.php new file mode 100644 index 000000000000..c26e9b1946a8 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceEnv.php @@ -0,0 +1,163 @@ +google.cloud.bigquery.migration.v2.SourceEnv + */ +class SourceEnv extends \Google\Protobuf\Internal\Message +{ + /** + * The default database name to fully qualify SQL objects when their database + * name is missing. + * + * Generated from protobuf field string default_database = 1; + */ + protected $default_database = ''; + /** + * The schema search path. When SQL objects are missing schema name, + * translation engine will search through this list to find the value. + * + * Generated from protobuf field repeated string schema_search_path = 2; + */ + private $schema_search_path; + /** + * Optional. Expects a valid BigQuery dataset ID that exists, e.g., + * project-123.metadata_store_123. If specified, translation will search and + * read the required schema information from a metadata store in this dataset. + * If metadata store doesn't exist, translation will parse the metadata file + * and upload the schema info to a temp table in the dataset to speed up + * future translation jobs. + * + * Generated from protobuf field string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $metadata_store_dataset = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $default_database + * The default database name to fully qualify SQL objects when their database + * name is missing. + * @type string[] $schema_search_path + * The schema search path. When SQL objects are missing schema name, + * translation engine will search through this list to find the value. + * @type string $metadata_store_dataset + * Optional. Expects a valid BigQuery dataset ID that exists, e.g., + * project-123.metadata_store_123. If specified, translation will search and + * read the required schema information from a metadata store in this dataset. + * If metadata store doesn't exist, translation will parse the metadata file + * and upload the schema info to a temp table in the dataset to speed up + * future translation jobs. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + + /** + * The default database name to fully qualify SQL objects when their database + * name is missing. + * + * Generated from protobuf field string default_database = 1; + * @return string + */ + public function getDefaultDatabase() + { + return $this->default_database; + } + + /** + * The default database name to fully qualify SQL objects when their database + * name is missing. + * + * Generated from protobuf field string default_database = 1; + * @param string $var + * @return $this + */ + public function setDefaultDatabase($var) + { + GPBUtil::checkString($var, True); + $this->default_database = $var; + + return $this; + } + + /** + * The schema search path. When SQL objects are missing schema name, + * translation engine will search through this list to find the value. + * + * Generated from protobuf field repeated string schema_search_path = 2; + * @return RepeatedField + */ + public function getSchemaSearchPath() + { + return $this->schema_search_path; + } + + /** + * The schema search path. When SQL objects are missing schema name, + * translation engine will search through this list to find the value. + * + * Generated from protobuf field repeated string schema_search_path = 2; + * @param string[] $var + * @return $this + */ + public function setSchemaSearchPath($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->schema_search_path = $arr; + + return $this; + } + + /** + * Optional. Expects a valid BigQuery dataset ID that exists, e.g., + * project-123.metadata_store_123. If specified, translation will search and + * read the required schema information from a metadata store in this dataset. + * If metadata store doesn't exist, translation will parse the metadata file + * and upload the schema info to a temp table in the dataset to speed up + * future translation jobs. + * + * Generated from protobuf field string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getMetadataStoreDataset() + { + return $this->metadata_store_dataset; + } + + /** + * Optional. Expects a valid BigQuery dataset ID that exists, e.g., + * project-123.metadata_store_123. If specified, translation will search and + * read the required schema information from a metadata store in this dataset. + * If metadata store doesn't exist, translation will parse the metadata file + * and upload the schema info to a temp table in the dataset to speed up + * future translation jobs. + * + * Generated from protobuf field string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setMetadataStoreDataset($var) + { + GPBUtil::checkString($var, True); + $this->metadata_store_dataset = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceEnvironment.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceEnvironment.php new file mode 100644 index 000000000000..21b9cc62eab5 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceEnvironment.php @@ -0,0 +1,163 @@ +google.cloud.bigquery.migration.v2.SourceEnvironment + */ +class SourceEnvironment extends \Google\Protobuf\Internal\Message +{ + /** + * The default database name to fully qualify SQL objects when their database + * name is missing. + * + * Generated from protobuf field string default_database = 1; + */ + protected $default_database = ''; + /** + * The schema search path. When SQL objects are missing schema name, + * translation engine will search through this list to find the value. + * + * Generated from protobuf field repeated string schema_search_path = 2; + */ + private $schema_search_path; + /** + * Optional. Expects a validQ BigQuery dataset ID that exists, e.g., + * project-123.metadata_store_123. If specified, translation will search and + * read the required schema information from a metadata store in this dataset. + * If metadata store doesn't exist, translation will parse the metadata file + * and upload the schema info to a temp table in the dataset to speed up + * future translation jobs. + * + * Generated from protobuf field string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $metadata_store_dataset = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $default_database + * The default database name to fully qualify SQL objects when their database + * name is missing. + * @type string[] $schema_search_path + * The schema search path. When SQL objects are missing schema name, + * translation engine will search through this list to find the value. + * @type string $metadata_store_dataset + * Optional. Expects a validQ BigQuery dataset ID that exists, e.g., + * project-123.metadata_store_123. If specified, translation will search and + * read the required schema information from a metadata store in this dataset. + * If metadata store doesn't exist, translation will parse the metadata file + * and upload the schema info to a temp table in the dataset to speed up + * future translation jobs. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationDetails::initOnce(); + parent::__construct($data); + } + + /** + * The default database name to fully qualify SQL objects when their database + * name is missing. + * + * Generated from protobuf field string default_database = 1; + * @return string + */ + public function getDefaultDatabase() + { + return $this->default_database; + } + + /** + * The default database name to fully qualify SQL objects when their database + * name is missing. + * + * Generated from protobuf field string default_database = 1; + * @param string $var + * @return $this + */ + public function setDefaultDatabase($var) + { + GPBUtil::checkString($var, True); + $this->default_database = $var; + + return $this; + } + + /** + * The schema search path. When SQL objects are missing schema name, + * translation engine will search through this list to find the value. + * + * Generated from protobuf field repeated string schema_search_path = 2; + * @return RepeatedField + */ + public function getSchemaSearchPath() + { + return $this->schema_search_path; + } + + /** + * The schema search path. When SQL objects are missing schema name, + * translation engine will search through this list to find the value. + * + * Generated from protobuf field repeated string schema_search_path = 2; + * @param string[] $var + * @return $this + */ + public function setSchemaSearchPath($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->schema_search_path = $arr; + + return $this; + } + + /** + * Optional. Expects a validQ BigQuery dataset ID that exists, e.g., + * project-123.metadata_store_123. If specified, translation will search and + * read the required schema information from a metadata store in this dataset. + * If metadata store doesn't exist, translation will parse the metadata file + * and upload the schema info to a temp table in the dataset to speed up + * future translation jobs. + * + * Generated from protobuf field string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getMetadataStoreDataset() + { + return $this->metadata_store_dataset; + } + + /** + * Optional. Expects a validQ BigQuery dataset ID that exists, e.g., + * project-123.metadata_store_123. If specified, translation will search and + * read the required schema information from a metadata store in this dataset. + * If metadata store doesn't exist, translation will parse the metadata file + * and upload the schema info to a temp table in the dataset to speed up + * future translation jobs. + * + * Generated from protobuf field string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setMetadataStoreDataset($var) + { + GPBUtil::checkString($var, True); + $this->metadata_store_dataset = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceSpec.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceSpec.php new file mode 100644 index 000000000000..522af4edaa58 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceSpec.php @@ -0,0 +1,175 @@ +google.cloud.bigquery.migration.v2.SourceSpec + */ +class SourceSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The optional field to specify the encoding of the sql bytes. + * + * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $encoding = ''; + protected $source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $base_uri + * The base URI for all files to be read in as sources for translation. + * @type \Google\Cloud\BigQuery\Migration\V2\Literal $literal + * Source literal. + * @type string $gcs_file_path + * The path to a single source file in Cloud Storage. + * @type string $encoding + * Optional. The optional field to specify the encoding of the sql bytes. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationDetails::initOnce(); + parent::__construct($data); + } + + /** + * The base URI for all files to be read in as sources for translation. + * + * Generated from protobuf field string base_uri = 1; + * @return string + */ + public function getBaseUri() + { + return $this->readOneof(1); + } + + public function hasBaseUri() + { + return $this->hasOneof(1); + } + + /** + * The base URI for all files to be read in as sources for translation. + * + * Generated from protobuf field string base_uri = 1; + * @param string $var + * @return $this + */ + public function setBaseUri($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Source literal. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.Literal literal = 2; + * @return \Google\Cloud\BigQuery\Migration\V2\Literal|null + */ + public function getLiteral() + { + return $this->readOneof(2); + } + + public function hasLiteral() + { + return $this->hasOneof(2); + } + + /** + * Source literal. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.Literal literal = 2; + * @param \Google\Cloud\BigQuery\Migration\V2\Literal $var + * @return $this + */ + public function setLiteral($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\Literal::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The path to a single source file in Cloud Storage. + * + * Generated from protobuf field string gcs_file_path = 4; + * @return string + */ + public function getGcsFilePath() + { + return $this->readOneof(4); + } + + public function hasGcsFilePath() + { + return $this->hasOneof(4); + } + + /** + * The path to a single source file in Cloud Storage. + * + * Generated from protobuf field string gcs_file_path = 4; + * @param string $var + * @return $this + */ + public function setGcsFilePath($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Optional. The optional field to specify the encoding of the sql bytes. + * + * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEncoding() + { + return $this->encoding; + } + + /** + * Optional. The optional field to specify the encoding of the sql bytes. + * + * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEncoding($var) + { + GPBUtil::checkString($var, True); + $this->encoding = $var; + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceTargetMapping.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceTargetMapping.php new file mode 100644 index 000000000000..bb2f21e06a7d --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceTargetMapping.php @@ -0,0 +1,121 @@ +google.cloud.bigquery.migration.v2.SourceTargetMapping + */ +class SourceTargetMapping extends \Google\Protobuf\Internal\Message +{ + /** + * The source SQL or the path to it. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1; + */ + protected $source_spec = null; + /** + * The target SQL or the path for it. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2; + */ + protected $target_spec = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\BigQuery\Migration\V2\SourceSpec $source_spec + * The source SQL or the path to it. + * @type \Google\Cloud\BigQuery\Migration\V2\TargetSpec $target_spec + * The target SQL or the path for it. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationDetails::initOnce(); + parent::__construct($data); + } + + /** + * The source SQL or the path to it. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1; + * @return \Google\Cloud\BigQuery\Migration\V2\SourceSpec|null + */ + public function getSourceSpec() + { + return $this->source_spec; + } + + public function hasSourceSpec() + { + return isset($this->source_spec); + } + + public function clearSourceSpec() + { + unset($this->source_spec); + } + + /** + * The source SQL or the path to it. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1; + * @param \Google\Cloud\BigQuery\Migration\V2\SourceSpec $var + * @return $this + */ + public function setSourceSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\SourceSpec::class); + $this->source_spec = $var; + + return $this; + } + + /** + * The target SQL or the path for it. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2; + * @return \Google\Cloud\BigQuery\Migration\V2\TargetSpec|null + */ + public function getTargetSpec() + { + return $this->target_spec; + } + + public function hasTargetSpec() + { + return isset($this->target_spec); + } + + public function clearTargetSpec() + { + unset($this->target_spec); + } + + /** + * The target SQL or the path for it. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2; + * @param \Google\Cloud\BigQuery\Migration\V2\TargetSpec $var + * @return $this + */ + public function setTargetSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\TargetSpec::class); + $this->target_spec = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SparkSQLDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SparkSQLDialect.php new file mode 100644 index 000000000000..ffeb21ce40c5 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SparkSQLDialect.php @@ -0,0 +1,33 @@ +google.cloud.bigquery.migration.v2.SparkSQLDialect + */ +class SparkSQLDialect extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/StartMigrationWorkflowRequest.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/StartMigrationWorkflowRequest.php new file mode 100644 index 000000000000..d4391e65355f --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/StartMigrationWorkflowRequest.php @@ -0,0 +1,86 @@ +google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest + */ +class StartMigrationWorkflowRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The unique identifier for the migration workflow. + * Example: `projects/123/locations/us/workflows/1234` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The unique identifier for the migration workflow. + * Example: `projects/123/locations/us/workflows/1234` + * Please see {@see MigrationServiceClient::migrationWorkflowName()} for help formatting this field. + * + * @return \Google\Cloud\BigQuery\Migration\V2\StartMigrationWorkflowRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The unique identifier for the migration workflow. + * Example: `projects/123/locations/us/workflows/1234` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The unique identifier for the migration workflow. + * Example: `projects/123/locations/us/workflows/1234` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The unique identifier for the migration workflow. + * Example: `projects/123/locations/us/workflows/1234` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionConfig.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionConfig.php new file mode 100644 index 000000000000..477085e215c3 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionConfig.php @@ -0,0 +1,67 @@ +google.cloud.bigquery.migration.v2.SuggestionConfig + */ +class SuggestionConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The list of suggestion steps to skip. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1; + */ + private $skip_suggestion_steps; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\BigQuery\Migration\V2\SuggestionStep[] $skip_suggestion_steps + * The list of suggestion steps to skip. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationDetails::initOnce(); + parent::__construct($data); + } + + /** + * The list of suggestion steps to skip. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1; + * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\SuggestionStep> + */ + public function getSkipSuggestionSteps() + { + return $this->skip_suggestion_steps; + } + + /** + * The list of suggestion steps to skip. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.SuggestionStep skip_suggestion_steps = 1; + * @param \Google\Cloud\BigQuery\Migration\V2\SuggestionStep[] $var + * @return $this + */ + public function setSkipSuggestionSteps($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\SuggestionStep::class); + $this->skip_suggestion_steps = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionStep.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionStep.php new file mode 100644 index 000000000000..1e0883831ffd --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionStep.php @@ -0,0 +1,101 @@ +google.cloud.bigquery.migration.v2.SuggestionStep + */ +class SuggestionStep extends \Google\Protobuf\Internal\Message +{ + /** + * The type of suggestion. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType suggestion_type = 1; + */ + protected $suggestion_type = 0; + /** + * The rewrite target. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget rewrite_target = 2; + */ + protected $rewrite_target = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $suggestion_type + * The type of suggestion. + * @type int $rewrite_target + * The rewrite target. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationDetails::initOnce(); + parent::__construct($data); + } + + /** + * The type of suggestion. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType suggestion_type = 1; + * @return int + */ + public function getSuggestionType() + { + return $this->suggestion_type; + } + + /** + * The type of suggestion. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType suggestion_type = 1; + * @param int $var + * @return $this + */ + public function setSuggestionType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\Migration\V2\SuggestionStep\SuggestionType::class); + $this->suggestion_type = $var; + + return $this; + } + + /** + * The rewrite target. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget rewrite_target = 2; + * @return int + */ + public function getRewriteTarget() + { + return $this->rewrite_target; + } + + /** + * The rewrite target. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget rewrite_target = 2; + * @param int $var + * @return $this + */ + public function setRewriteTarget($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\Migration\V2\SuggestionStep\RewriteTarget::class); + $this->rewrite_target = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionStep/RewriteTarget.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionStep/RewriteTarget.php new file mode 100644 index 000000000000..e14cf0108be8 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionStep/RewriteTarget.php @@ -0,0 +1,61 @@ +google.cloud.bigquery.migration.v2.SuggestionStep.RewriteTarget + */ +class RewriteTarget +{ + /** + * Rewrite target unspecified. + * + * Generated from protobuf enum REWRITE_TARGET_UNSPECIFIED = 0; + */ + const REWRITE_TARGET_UNSPECIFIED = 0; + /** + * Source SQL. + * + * Generated from protobuf enum SOURCE_SQL = 1; + */ + const SOURCE_SQL = 1; + /** + * Target SQL. + * + * Generated from protobuf enum TARGET_SQL = 2; + */ + const TARGET_SQL = 2; + + private static $valueToName = [ + self::REWRITE_TARGET_UNSPECIFIED => 'REWRITE_TARGET_UNSPECIFIED', + self::SOURCE_SQL => 'SOURCE_SQL', + self::TARGET_SQL => 'TARGET_SQL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionStep/SuggestionType.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionStep/SuggestionType.php new file mode 100644 index 000000000000..171e9355aba1 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionStep/SuggestionType.php @@ -0,0 +1,61 @@ +google.cloud.bigquery.migration.v2.SuggestionStep.SuggestionType + */ +class SuggestionType +{ + /** + * Suggestion type unspecified. + * + * Generated from protobuf enum SUGGESTION_TYPE_UNSPECIFIED = 0; + */ + const SUGGESTION_TYPE_UNSPECIFIED = 0; + /** + * Query customization. + * + * Generated from protobuf enum QUERY_CUSTOMIZATION = 1; + */ + const QUERY_CUSTOMIZATION = 1; + /** + * Translation explanation. + * + * Generated from protobuf enum TRANSLATION_EXPLANATION = 2; + */ + const TRANSLATION_EXPLANATION = 2; + + private static $valueToName = [ + self::SUGGESTION_TYPE_UNSPECIFIED => 'SUGGESTION_TYPE_UNSPECIFIED', + self::QUERY_CUSTOMIZATION => 'QUERY_CUSTOMIZATION', + self::TRANSLATION_EXPLANATION => 'TRANSLATION_EXPLANATION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TargetSpec.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TargetSpec.php new file mode 100644 index 000000000000..b80eb7ebf3c3 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TargetSpec.php @@ -0,0 +1,75 @@ +google.cloud.bigquery.migration.v2.TargetSpec + */ +class TargetSpec extends \Google\Protobuf\Internal\Message +{ + /** + * The relative path for the target data. Given source file + * `base_uri/input/sql`, the output would be + * `target_base_uri/sql/relative_path/input.sql`. + * + * Generated from protobuf field string relative_path = 1; + */ + protected $relative_path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $relative_path + * The relative path for the target data. Given source file + * `base_uri/input/sql`, the output would be + * `target_base_uri/sql/relative_path/input.sql`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationDetails::initOnce(); + parent::__construct($data); + } + + /** + * The relative path for the target data. Given source file + * `base_uri/input/sql`, the output would be + * `target_base_uri/sql/relative_path/input.sql`. + * + * Generated from protobuf field string relative_path = 1; + * @return string + */ + public function getRelativePath() + { + return $this->relative_path; + } + + /** + * The relative path for the target data. Given source file + * `base_uri/input/sql`, the output would be + * `target_base_uri/sql/relative_path/input.sql`. + * + * Generated from protobuf field string relative_path = 1; + * @param string $var + * @return $this + */ + public function setRelativePath($var) + { + GPBUtil::checkString($var, True); + $this->relative_path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TeradataDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TeradataDialect.php new file mode 100644 index 000000000000..8dea579cd73d --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TeradataDialect.php @@ -0,0 +1,67 @@ +google.cloud.bigquery.migration.v2.TeradataDialect + */ +class TeradataDialect extends \Google\Protobuf\Internal\Message +{ + /** + * Which Teradata sub-dialect mode the user specifies. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TeradataDialect.Mode mode = 1; + */ + protected $mode = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $mode + * Which Teradata sub-dialect mode the user specifies. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + + /** + * Which Teradata sub-dialect mode the user specifies. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TeradataDialect.Mode mode = 1; + * @return int + */ + public function getMode() + { + return $this->mode; + } + + /** + * Which Teradata sub-dialect mode the user specifies. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TeradataDialect.Mode mode = 1; + * @param int $var + * @return $this + */ + public function setMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\Migration\V2\TeradataDialect\Mode::class); + $this->mode = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TeradataDialect/Mode.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TeradataDialect/Mode.php new file mode 100644 index 000000000000..4f5282531839 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TeradataDialect/Mode.php @@ -0,0 +1,61 @@ +google.cloud.bigquery.migration.v2.TeradataDialect.Mode + */ +class Mode +{ + /** + * Unspecified mode. + * + * Generated from protobuf enum MODE_UNSPECIFIED = 0; + */ + const MODE_UNSPECIFIED = 0; + /** + * Teradata SQL mode. + * + * Generated from protobuf enum SQL = 1; + */ + const SQL = 1; + /** + * BTEQ mode (which includes SQL). + * + * Generated from protobuf enum BTEQ = 2; + */ + const BTEQ = 2; + + private static $valueToName = [ + self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', + self::SQL => 'SQL', + self::BTEQ => 'BTEQ', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TimeInterval.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TimeInterval.php new file mode 100644 index 000000000000..315ffd70f789 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TimeInterval.php @@ -0,0 +1,131 @@ +google.cloud.bigquery.migration.v2.TimeInterval + */ +class TimeInterval extends \Google\Protobuf\Internal\Message +{ + /** + * 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. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $start_time = null; + /** + * Required. The end of the time interval. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $start_time + * 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. + * @type \Google\Protobuf\Timestamp $end_time + * Required. The end of the time interval. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationMetrics::initOnce(); + parent::__construct($data); + } + + /** + * 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. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * 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. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * Required. The end of the time interval. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Required. The end of the time interval. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TimeSeries.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TimeSeries.php new file mode 100644 index 000000000000..723fac82b185 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TimeSeries.php @@ -0,0 +1,213 @@ +google.cloud.bigquery.migration.v2.TimeSeries + */ +class TimeSeries extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the metric. + * If the metric is not known by the service yet, it will be auto-created. + * + * Generated from protobuf field string metric = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $metric = ''; + /** + * Required. The value type of the time series. + * + * Generated from protobuf field .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value_type = 0; + /** + * Optional. The metric kind of the time series. + * If present, it must be the same as the metric kind of the associated + * metric. If the associated metric's descriptor must be auto-created, then + * this field specifies the metric kind of the new descriptor and must be + * either `GAUGE` (the default) or `CUMULATIVE`. + * + * Generated from protobuf field .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $metric_kind = 0; + /** + * Required. The data points of this time series. When listing time series, + * points are returned in reverse time order. + * When creating a time series, this field must contain exactly one point and + * the point's type must be the same as the value type of the associated + * metric. If the associated metric's descriptor must be auto-created, then + * the value type of the descriptor is determined by the point's type, which + * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + private $points; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $metric + * Required. The name of the metric. + * If the metric is not known by the service yet, it will be auto-created. + * @type int $value_type + * Required. The value type of the time series. + * @type int $metric_kind + * Optional. The metric kind of the time series. + * If present, it must be the same as the metric kind of the associated + * metric. If the associated metric's descriptor must be auto-created, then + * this field specifies the metric kind of the new descriptor and must be + * either `GAUGE` (the default) or `CUMULATIVE`. + * @type \Google\Cloud\BigQuery\Migration\V2\Point[] $points + * Required. The data points of this time series. When listing time series, + * points are returned in reverse time order. + * When creating a time series, this field must contain exactly one point and + * the point's type must be the same as the value type of the associated + * metric. If the associated metric's descriptor must be auto-created, then + * the value type of the descriptor is determined by the point's type, which + * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationMetrics::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the metric. + * If the metric is not known by the service yet, it will be auto-created. + * + * Generated from protobuf field string metric = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getMetric() + { + return $this->metric; + } + + /** + * Required. The name of the metric. + * If the metric is not known by the service yet, it will be auto-created. + * + * Generated from protobuf field string metric = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setMetric($var) + { + GPBUtil::checkString($var, True); + $this->metric = $var; + + return $this; + } + + /** + * Required. The value type of the time series. + * + * Generated from protobuf field .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getValueType() + { + return $this->value_type; + } + + /** + * Required. The value type of the time series. + * + * Generated from protobuf field .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setValueType($var) + { + GPBUtil::checkEnum($var, \Google\Api\MetricDescriptor\ValueType::class); + $this->value_type = $var; + + return $this; + } + + /** + * Optional. The metric kind of the time series. + * If present, it must be the same as the metric kind of the associated + * metric. If the associated metric's descriptor must be auto-created, then + * this field specifies the metric kind of the new descriptor and must be + * either `GAUGE` (the default) or `CUMULATIVE`. + * + * Generated from protobuf field .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMetricKind() + { + return $this->metric_kind; + } + + /** + * Optional. The metric kind of the time series. + * If present, it must be the same as the metric kind of the associated + * metric. If the associated metric's descriptor must be auto-created, then + * this field specifies the metric kind of the new descriptor and must be + * either `GAUGE` (the default) or `CUMULATIVE`. + * + * Generated from protobuf field .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMetricKind($var) + { + GPBUtil::checkEnum($var, \Google\Api\MetricDescriptor\MetricKind::class); + $this->metric_kind = $var; + + return $this; + } + + /** + * Required. The data points of this time series. When listing time series, + * points are returned in reverse time order. + * When creating a time series, this field must contain exactly one point and + * the point's type must be the same as the value type of the associated + * metric. If the associated metric's descriptor must be auto-created, then + * the value type of the descriptor is determined by the point's type, which + * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\Point> + */ + public function getPoints() + { + return $this->points; + } + + /** + * Required. The data points of this time series. When listing time series, + * points are returned in reverse time order. + * When creating a time series, this field must contain exactly one point and + * the point's type must be the same as the value type of the associated + * metric. If the associated metric's descriptor must be auto-created, then + * the value type of the descriptor is determined by the point's type, which + * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\BigQuery\Migration\V2\Point[] $var + * @return $this + */ + public function setPoints($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\Point::class); + $this->points = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationConfigDetails.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationConfigDetails.php new file mode 100644 index 000000000000..64de4daf7d84 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationConfigDetails.php @@ -0,0 +1,372 @@ +google.cloud.bigquery.migration.v2.TranslationConfigDetails + */ +class TranslationConfigDetails extends \Google\Protobuf\Internal\Message +{ + /** + * The dialect of the input files. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3; + */ + protected $source_dialect = null; + /** + * The target dialect for the engine to translate the input to. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4; + */ + protected $target_dialect = null; + /** + * The default source environment values for the translation. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6; + */ + protected $source_env = null; + /** + * The indicator to show translation request initiator. + * + * Generated from protobuf field string request_source = 8; + */ + protected $request_source = ''; + /** + * The types of output to generate, e.g. sql, metadata etc. If not specified, + * a default set of targets will be generated. Some additional target types + * may be slower to generate. See the documentation for the set of available + * target types. + * + * Generated from protobuf field repeated string target_types = 9; + */ + private $target_types; + protected $source_location; + protected $target_location; + protected $output_name_mapping; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $gcs_source_path + * The Cloud Storage path for a directory of files to translate in a task. + * @type string $gcs_target_path + * The Cloud Storage path to write back the corresponding input files to. + * @type \Google\Cloud\BigQuery\Migration\V2\ObjectNameMappingList $name_mapping_list + * The mapping of objects to their desired output names in list form. + * @type \Google\Cloud\BigQuery\Migration\V2\Dialect $source_dialect + * The dialect of the input files. + * @type \Google\Cloud\BigQuery\Migration\V2\Dialect $target_dialect + * The target dialect for the engine to translate the input to. + * @type \Google\Cloud\BigQuery\Migration\V2\SourceEnv $source_env + * The default source environment values for the translation. + * @type string $request_source + * The indicator to show translation request initiator. + * @type string[] $target_types + * The types of output to generate, e.g. sql, metadata etc. If not specified, + * a default set of targets will be generated. Some additional target types + * may be slower to generate. See the documentation for the set of available + * target types. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + + /** + * The Cloud Storage path for a directory of files to translate in a task. + * + * Generated from protobuf field string gcs_source_path = 1; + * @return string + */ + public function getGcsSourcePath() + { + return $this->readOneof(1); + } + + public function hasGcsSourcePath() + { + return $this->hasOneof(1); + } + + /** + * The Cloud Storage path for a directory of files to translate in a task. + * + * Generated from protobuf field string gcs_source_path = 1; + * @param string $var + * @return $this + */ + public function setGcsSourcePath($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The Cloud Storage path to write back the corresponding input files to. + * + * Generated from protobuf field string gcs_target_path = 2; + * @return string + */ + public function getGcsTargetPath() + { + return $this->readOneof(2); + } + + public function hasGcsTargetPath() + { + return $this->hasOneof(2); + } + + /** + * The Cloud Storage path to write back the corresponding input files to. + * + * Generated from protobuf field string gcs_target_path = 2; + * @param string $var + * @return $this + */ + public function setGcsTargetPath($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The mapping of objects to their desired output names in list form. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; + * @return \Google\Cloud\BigQuery\Migration\V2\ObjectNameMappingList|null + */ + public function getNameMappingList() + { + return $this->readOneof(5); + } + + public function hasNameMappingList() + { + return $this->hasOneof(5); + } + + /** + * The mapping of objects to their desired output names in list form. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; + * @param \Google\Cloud\BigQuery\Migration\V2\ObjectNameMappingList $var + * @return $this + */ + public function setNameMappingList($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\ObjectNameMappingList::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * The dialect of the input files. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3; + * @return \Google\Cloud\BigQuery\Migration\V2\Dialect|null + */ + public function getSourceDialect() + { + return $this->source_dialect; + } + + public function hasSourceDialect() + { + return isset($this->source_dialect); + } + + public function clearSourceDialect() + { + unset($this->source_dialect); + } + + /** + * The dialect of the input files. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3; + * @param \Google\Cloud\BigQuery\Migration\V2\Dialect $var + * @return $this + */ + public function setSourceDialect($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\Dialect::class); + $this->source_dialect = $var; + + return $this; + } + + /** + * The target dialect for the engine to translate the input to. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4; + * @return \Google\Cloud\BigQuery\Migration\V2\Dialect|null + */ + public function getTargetDialect() + { + return $this->target_dialect; + } + + public function hasTargetDialect() + { + return isset($this->target_dialect); + } + + public function clearTargetDialect() + { + unset($this->target_dialect); + } + + /** + * The target dialect for the engine to translate the input to. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4; + * @param \Google\Cloud\BigQuery\Migration\V2\Dialect $var + * @return $this + */ + public function setTargetDialect($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\Dialect::class); + $this->target_dialect = $var; + + return $this; + } + + /** + * The default source environment values for the translation. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6; + * @return \Google\Cloud\BigQuery\Migration\V2\SourceEnv|null + */ + public function getSourceEnv() + { + return $this->source_env; + } + + public function hasSourceEnv() + { + return isset($this->source_env); + } + + public function clearSourceEnv() + { + unset($this->source_env); + } + + /** + * The default source environment values for the translation. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6; + * @param \Google\Cloud\BigQuery\Migration\V2\SourceEnv $var + * @return $this + */ + public function setSourceEnv($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\SourceEnv::class); + $this->source_env = $var; + + return $this; + } + + /** + * The indicator to show translation request initiator. + * + * Generated from protobuf field string request_source = 8; + * @return string + */ + public function getRequestSource() + { + return $this->request_source; + } + + /** + * The indicator to show translation request initiator. + * + * Generated from protobuf field string request_source = 8; + * @param string $var + * @return $this + */ + public function setRequestSource($var) + { + GPBUtil::checkString($var, True); + $this->request_source = $var; + + return $this; + } + + /** + * The types of output to generate, e.g. sql, metadata etc. If not specified, + * a default set of targets will be generated. Some additional target types + * may be slower to generate. See the documentation for the set of available + * target types. + * + * Generated from protobuf field repeated string target_types = 9; + * @return RepeatedField + */ + public function getTargetTypes() + { + return $this->target_types; + } + + /** + * The types of output to generate, e.g. sql, metadata etc. If not specified, + * a default set of targets will be generated. Some additional target types + * may be slower to generate. See the documentation for the set of available + * target types. + * + * Generated from protobuf field repeated string target_types = 9; + * @param string[] $var + * @return $this + */ + public function setTargetTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->target_types = $arr; + + return $this; + } + + /** + * @return string + */ + public function getSourceLocation() + { + return $this->whichOneof("source_location"); + } + + /** + * @return string + */ + public function getTargetLocation() + { + return $this->whichOneof("target_location"); + } + + /** + * @return string + */ + public function getOutputNameMapping() + { + return $this->whichOneof("output_name_mapping"); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationDetails.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationDetails.php new file mode 100644 index 000000000000..adc0f676f7da --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationDetails.php @@ -0,0 +1,278 @@ +google.cloud.bigquery.migration.v2.TranslationDetails + */ +class TranslationDetails extends \Google\Protobuf\Internal\Message +{ + /** + * The mapping from source to target SQL. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + */ + private $source_target_mapping; + /** + * The base URI for all writes to persistent storage. + * + * Generated from protobuf field string target_base_uri = 2; + */ + protected $target_base_uri = ''; + /** + * The default source environment values for the translation. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; + */ + protected $source_environment = null; + /** + * The list of literal targets that will be directly returned to the response. + * Each entry consists of the constructed path, EXCLUDING the base path. Not + * providing a target_base_uri will prevent writing to persistent storage. + * + * Generated from protobuf field repeated string target_return_literals = 4; + */ + private $target_return_literals; + /** + * The types of output to generate, e.g. sql, metadata, + * lineage_from_sql_scripts, etc. If not specified, a default set of + * targets will be generated. Some additional target types may be slower to + * generate. See the documentation for the set of available target types. + * + * Generated from protobuf field repeated string target_types = 5; + */ + private $target_types; + /** + * The configuration for the suggestion if requested as a target type. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6; + */ + protected $suggestion_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\BigQuery\Migration\V2\SourceTargetMapping[] $source_target_mapping + * The mapping from source to target SQL. + * @type string $target_base_uri + * The base URI for all writes to persistent storage. + * @type \Google\Cloud\BigQuery\Migration\V2\SourceEnvironment $source_environment + * The default source environment values for the translation. + * @type string[] $target_return_literals + * The list of literal targets that will be directly returned to the response. + * Each entry consists of the constructed path, EXCLUDING the base path. Not + * providing a target_base_uri will prevent writing to persistent storage. + * @type string[] $target_types + * The types of output to generate, e.g. sql, metadata, + * lineage_from_sql_scripts, etc. If not specified, a default set of + * targets will be generated. Some additional target types may be slower to + * generate. See the documentation for the set of available target types. + * @type \Google\Cloud\BigQuery\Migration\V2\SuggestionConfig $suggestion_config + * The configuration for the suggestion if requested as a target type. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationDetails::initOnce(); + parent::__construct($data); + } + + /** + * The mapping from source to target SQL. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\SourceTargetMapping> + */ + public function getSourceTargetMapping() + { + return $this->source_target_mapping; + } + + /** + * The mapping from source to target SQL. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; + * @param \Google\Cloud\BigQuery\Migration\V2\SourceTargetMapping[] $var + * @return $this + */ + public function setSourceTargetMapping($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\SourceTargetMapping::class); + $this->source_target_mapping = $arr; + + return $this; + } + + /** + * The base URI for all writes to persistent storage. + * + * Generated from protobuf field string target_base_uri = 2; + * @return string + */ + public function getTargetBaseUri() + { + return $this->target_base_uri; + } + + /** + * The base URI for all writes to persistent storage. + * + * Generated from protobuf field string target_base_uri = 2; + * @param string $var + * @return $this + */ + public function setTargetBaseUri($var) + { + GPBUtil::checkString($var, True); + $this->target_base_uri = $var; + + return $this; + } + + /** + * The default source environment values for the translation. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; + * @return \Google\Cloud\BigQuery\Migration\V2\SourceEnvironment|null + */ + public function getSourceEnvironment() + { + return $this->source_environment; + } + + public function hasSourceEnvironment() + { + return isset($this->source_environment); + } + + public function clearSourceEnvironment() + { + unset($this->source_environment); + } + + /** + * The default source environment values for the translation. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; + * @param \Google\Cloud\BigQuery\Migration\V2\SourceEnvironment $var + * @return $this + */ + public function setSourceEnvironment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\SourceEnvironment::class); + $this->source_environment = $var; + + return $this; + } + + /** + * The list of literal targets that will be directly returned to the response. + * Each entry consists of the constructed path, EXCLUDING the base path. Not + * providing a target_base_uri will prevent writing to persistent storage. + * + * Generated from protobuf field repeated string target_return_literals = 4; + * @return RepeatedField + */ + public function getTargetReturnLiterals() + { + return $this->target_return_literals; + } + + /** + * The list of literal targets that will be directly returned to the response. + * Each entry consists of the constructed path, EXCLUDING the base path. Not + * providing a target_base_uri will prevent writing to persistent storage. + * + * Generated from protobuf field repeated string target_return_literals = 4; + * @param string[] $var + * @return $this + */ + public function setTargetReturnLiterals($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->target_return_literals = $arr; + + return $this; + } + + /** + * The types of output to generate, e.g. sql, metadata, + * lineage_from_sql_scripts, etc. If not specified, a default set of + * targets will be generated. Some additional target types may be slower to + * generate. See the documentation for the set of available target types. + * + * Generated from protobuf field repeated string target_types = 5; + * @return RepeatedField + */ + public function getTargetTypes() + { + return $this->target_types; + } + + /** + * The types of output to generate, e.g. sql, metadata, + * lineage_from_sql_scripts, etc. If not specified, a default set of + * targets will be generated. Some additional target types may be slower to + * generate. See the documentation for the set of available target types. + * + * Generated from protobuf field repeated string target_types = 5; + * @param string[] $var + * @return $this + */ + public function setTargetTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->target_types = $arr; + + return $this; + } + + /** + * The configuration for the suggestion if requested as a target type. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6; + * @return \Google\Cloud\BigQuery\Migration\V2\SuggestionConfig|null + */ + public function getSuggestionConfig() + { + return $this->suggestion_config; + } + + public function hasSuggestionConfig() + { + return isset($this->suggestion_config); + } + + public function clearSuggestionConfig() + { + unset($this->suggestion_config); + } + + /** + * The configuration for the suggestion if requested as a target type. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6; + * @param \Google\Cloud\BigQuery\Migration\V2\SuggestionConfig $var + * @return $this + */ + public function setSuggestionConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\SuggestionConfig::class); + $this->suggestion_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationReportRecord.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationReportRecord.php new file mode 100644 index 000000000000..dd1ec6b9f722 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationReportRecord.php @@ -0,0 +1,211 @@ +google.cloud.bigquery.migration.v2.TranslationReportRecord + */ +class TranslationReportRecord extends \Google\Protobuf\Internal\Message +{ + /** + * Severity of the translation record. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity severity = 1; + */ + protected $severity = 0; + /** + * Specifies the row from the source text where the error occurred (0 based). + * Example: 2 + * + * Generated from protobuf field int32 script_line = 2; + */ + protected $script_line = 0; + /** + * Specifies the column from the source texts where the error occurred. (0 + * based) example: 6 + * + * Generated from protobuf field int32 script_column = 3; + */ + protected $script_column = 0; + /** + * Category of the error/warning. Example: SyntaxError + * + * Generated from protobuf field string category = 4; + */ + protected $category = ''; + /** + * Detailed message of the record. + * + * Generated from protobuf field string message = 5; + */ + protected $message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $severity + * Severity of the translation record. + * @type int $script_line + * Specifies the row from the source text where the error occurred (0 based). + * Example: 2 + * @type int $script_column + * Specifies the column from the source texts where the error occurred. (0 + * based) example: 6 + * @type string $category + * Category of the error/warning. Example: SyntaxError + * @type string $message + * Detailed message of the record. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationSuggestion::initOnce(); + parent::__construct($data); + } + + /** + * Severity of the translation record. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity severity = 1; + * @return int + */ + public function getSeverity() + { + return $this->severity; + } + + /** + * Severity of the translation record. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity severity = 1; + * @param int $var + * @return $this + */ + public function setSeverity($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\Migration\V2\TranslationReportRecord\Severity::class); + $this->severity = $var; + + return $this; + } + + /** + * Specifies the row from the source text where the error occurred (0 based). + * Example: 2 + * + * Generated from protobuf field int32 script_line = 2; + * @return int + */ + public function getScriptLine() + { + return $this->script_line; + } + + /** + * Specifies the row from the source text where the error occurred (0 based). + * Example: 2 + * + * Generated from protobuf field int32 script_line = 2; + * @param int $var + * @return $this + */ + public function setScriptLine($var) + { + GPBUtil::checkInt32($var); + $this->script_line = $var; + + return $this; + } + + /** + * Specifies the column from the source texts where the error occurred. (0 + * based) example: 6 + * + * Generated from protobuf field int32 script_column = 3; + * @return int + */ + public function getScriptColumn() + { + return $this->script_column; + } + + /** + * Specifies the column from the source texts where the error occurred. (0 + * based) example: 6 + * + * Generated from protobuf field int32 script_column = 3; + * @param int $var + * @return $this + */ + public function setScriptColumn($var) + { + GPBUtil::checkInt32($var); + $this->script_column = $var; + + return $this; + } + + /** + * Category of the error/warning. Example: SyntaxError + * + * Generated from protobuf field string category = 4; + * @return string + */ + public function getCategory() + { + return $this->category; + } + + /** + * Category of the error/warning. Example: SyntaxError + * + * Generated from protobuf field string category = 4; + * @param string $var + * @return $this + */ + public function setCategory($var) + { + GPBUtil::checkString($var, True); + $this->category = $var; + + return $this; + } + + /** + * Detailed message of the record. + * + * Generated from protobuf field string message = 5; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Detailed message of the record. + * + * Generated from protobuf field string message = 5; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationReportRecord/Severity.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationReportRecord/Severity.php new file mode 100644 index 000000000000..c2df77bb00db --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationReportRecord/Severity.php @@ -0,0 +1,69 @@ +google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity + */ +class Severity +{ + /** + * SeverityType not specified. + * + * Generated from protobuf enum SEVERITY_UNSPECIFIED = 0; + */ + const SEVERITY_UNSPECIFIED = 0; + /** + * INFO type. + * + * Generated from protobuf enum INFO = 1; + */ + const INFO = 1; + /** + * WARNING type. The translated query may still provide useful information + * if all the report records are WARNING. + * + * Generated from protobuf enum WARNING = 2; + */ + const WARNING = 2; + /** + * ERROR type. Translation failed. + * + * Generated from protobuf enum ERROR = 3; + */ + const ERROR = 3; + + private static $valueToName = [ + self::SEVERITY_UNSPECIFIED => 'SEVERITY_UNSPECIFIED', + self::INFO => 'INFO', + self::WARNING => 'WARNING', + self::ERROR => 'ERROR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationTaskResult.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationTaskResult.php new file mode 100644 index 000000000000..765b346ef975 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationTaskResult.php @@ -0,0 +1,135 @@ +google.cloud.bigquery.migration.v2.TranslationTaskResult + */ +class TranslationTaskResult extends \Google\Protobuf\Internal\Message +{ + /** + * The list of the translated literals. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + */ + private $translated_literals; + /** + * The records from the aggregate CSV report for a migration workflow. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + */ + private $report_log_messages; + /** + * The Cloud Console URI for the migration workflow. + * + * Generated from protobuf field string console_uri = 3; + */ + protected $console_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\BigQuery\Migration\V2\Literal[] $translated_literals + * The list of the translated literals. + * @type \Google\Cloud\BigQuery\Migration\V2\GcsReportLogMessage[] $report_log_messages + * The records from the aggregate CSV report for a migration workflow. + * @type string $console_uri + * The Cloud Console URI for the migration workflow. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationEntities::initOnce(); + parent::__construct($data); + } + + /** + * The list of the translated literals. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\Literal> + */ + public function getTranslatedLiterals() + { + return $this->translated_literals; + } + + /** + * The list of the translated literals. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; + * @param \Google\Cloud\BigQuery\Migration\V2\Literal[] $var + * @return $this + */ + public function setTranslatedLiterals($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\Literal::class); + $this->translated_literals = $arr; + + return $this; + } + + /** + * The records from the aggregate CSV report for a migration workflow. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\GcsReportLogMessage> + */ + public function getReportLogMessages() + { + return $this->report_log_messages; + } + + /** + * The records from the aggregate CSV report for a migration workflow. + * + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; + * @param \Google\Cloud\BigQuery\Migration\V2\GcsReportLogMessage[] $var + * @return $this + */ + public function setReportLogMessages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\GcsReportLogMessage::class); + $this->report_log_messages = $arr; + + return $this; + } + + /** + * The Cloud Console URI for the migration workflow. + * + * Generated from protobuf field string console_uri = 3; + * @return string + */ + public function getConsoleUri() + { + return $this->console_uri; + } + + /** + * The Cloud Console URI for the migration workflow. + * + * Generated from protobuf field string console_uri = 3; + * @param string $var + * @return $this + */ + public function setConsoleUri($var) + { + GPBUtil::checkString($var, True); + $this->console_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TypedValue.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TypedValue.php new file mode 100644 index 000000000000..9f81118e2790 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TypedValue.php @@ -0,0 +1,213 @@ +google.cloud.bigquery.migration.v2.TypedValue + */ +class TypedValue extends \Google\Protobuf\Internal\Message +{ + protected $value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $bool_value + * A Boolean value: `true` or `false`. + * @type int|string $int64_value + * A 64-bit integer. Its range is approximately `+/-9.2x10^18`. + * @type float $double_value + * A 64-bit double-precision floating-point number. Its magnitude + * is approximately `+/-10^(+/-300)` and it has 16 significant digits of + * precision. + * @type string $string_value + * A variable-length string value. + * @type \Google\Api\Distribution $distribution_value + * A distribution value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationMetrics::initOnce(); + parent::__construct($data); + } + + /** + * A Boolean value: `true` or `false`. + * + * Generated from protobuf field bool bool_value = 1; + * @return bool + */ + public function getBoolValue() + { + return $this->readOneof(1); + } + + public function hasBoolValue() + { + return $this->hasOneof(1); + } + + /** + * A Boolean value: `true` or `false`. + * + * Generated from protobuf field bool bool_value = 1; + * @param bool $var + * @return $this + */ + public function setBoolValue($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A 64-bit integer. Its range is approximately `+/-9.2x10^18`. + * + * Generated from protobuf field int64 int64_value = 2; + * @return int|string + */ + public function getInt64Value() + { + return $this->readOneof(2); + } + + public function hasInt64Value() + { + return $this->hasOneof(2); + } + + /** + * A 64-bit integer. Its range is approximately `+/-9.2x10^18`. + * + * Generated from protobuf field int64 int64_value = 2; + * @param int|string $var + * @return $this + */ + public function setInt64Value($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A 64-bit double-precision floating-point number. Its magnitude + * is approximately `+/-10^(+/-300)` and it has 16 significant digits of + * precision. + * + * Generated from protobuf field double double_value = 3; + * @return float + */ + public function getDoubleValue() + { + return $this->readOneof(3); + } + + public function hasDoubleValue() + { + return $this->hasOneof(3); + } + + /** + * A 64-bit double-precision floating-point number. Its magnitude + * is approximately `+/-10^(+/-300)` and it has 16 significant digits of + * precision. + * + * Generated from protobuf field double double_value = 3; + * @param float $var + * @return $this + */ + public function setDoubleValue($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * A variable-length string value. + * + * Generated from protobuf field string string_value = 4; + * @return string + */ + public function getStringValue() + { + return $this->readOneof(4); + } + + public function hasStringValue() + { + return $this->hasOneof(4); + } + + /** + * A variable-length string value. + * + * Generated from protobuf field string string_value = 4; + * @param string $var + * @return $this + */ + public function setStringValue($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * A distribution value. + * + * Generated from protobuf field .google.api.Distribution distribution_value = 5; + * @return \Google\Api\Distribution|null + */ + public function getDistributionValue() + { + return $this->readOneof(5); + } + + public function hasDistributionValue() + { + return $this->hasOneof(5); + } + + /** + * A distribution value. + * + * Generated from protobuf field .google.api.Distribution distribution_value = 5; + * @param \Google\Api\Distribution $var + * @return $this + */ + public function setDistributionValue($var) + { + GPBUtil::checkMessage($var, \Google\Api\Distribution::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * @return string + */ + public function getValue() + { + return $this->whichOneof("value"); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/VerticaDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/VerticaDialect.php new file mode 100644 index 000000000000..f361fd8eb135 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/VerticaDialect.php @@ -0,0 +1,33 @@ +google.cloud.bigquery.migration.v2.VerticaDialect + */ +class VerticaDialect extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/create_migration_workflow.php b/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/create_migration_workflow.php new file mode 100644 index 000000000000..8339312bf7ae --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/create_migration_workflow.php @@ -0,0 +1,74 @@ +setParent($formattedParent) + ->setMigrationWorkflow($migrationWorkflow); + + // Call the API and handle any network failures. + try { + /** @var MigrationWorkflow $response */ + $response = $migrationServiceClient->createMigrationWorkflow($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = MigrationServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + create_migration_workflow_sample($formattedParent); +} +// [END bigquerymigration_v2_generated_MigrationService_CreateMigrationWorkflow_sync] diff --git a/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/delete_migration_workflow.php b/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/delete_migration_workflow.php new file mode 100644 index 000000000000..3534d00d80b6 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/delete_migration_workflow.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $migrationServiceClient->deleteMigrationWorkflow($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = MigrationServiceClient::migrationWorkflowName( + '[PROJECT]', + '[LOCATION]', + '[WORKFLOW]' + ); + + delete_migration_workflow_sample($formattedName); +} +// [END bigquerymigration_v2_generated_MigrationService_DeleteMigrationWorkflow_sync] diff --git a/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/get_migration_subtask.php b/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/get_migration_subtask.php new file mode 100644 index 000000000000..c6ec77fd2461 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/get_migration_subtask.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var MigrationSubtask $response */ + $response = $migrationServiceClient->getMigrationSubtask($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = MigrationServiceClient::migrationSubtaskName( + '[PROJECT]', + '[LOCATION]', + '[WORKFLOW]', + '[SUBTASK]' + ); + + get_migration_subtask_sample($formattedName); +} +// [END bigquerymigration_v2_generated_MigrationService_GetMigrationSubtask_sync] diff --git a/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/get_migration_workflow.php b/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/get_migration_workflow.php new file mode 100644 index 000000000000..04c214e7a79b --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/get_migration_workflow.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var MigrationWorkflow $response */ + $response = $migrationServiceClient->getMigrationWorkflow($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = MigrationServiceClient::migrationWorkflowName( + '[PROJECT]', + '[LOCATION]', + '[WORKFLOW]' + ); + + get_migration_workflow_sample($formattedName); +} +// [END bigquerymigration_v2_generated_MigrationService_GetMigrationWorkflow_sync] diff --git a/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/list_migration_subtasks.php b/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/list_migration_subtasks.php new file mode 100644 index 000000000000..681e15612d8b --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/list_migration_subtasks.php @@ -0,0 +1,81 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $migrationServiceClient->listMigrationSubtasks($request); + + /** @var MigrationSubtask $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = MigrationServiceClient::migrationWorkflowName( + '[PROJECT]', + '[LOCATION]', + '[WORKFLOW]' + ); + + list_migration_subtasks_sample($formattedParent); +} +// [END bigquerymigration_v2_generated_MigrationService_ListMigrationSubtasks_sync] diff --git a/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/list_migration_workflows.php b/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/list_migration_workflows.php new file mode 100644 index 000000000000..df4f0413babf --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/list_migration_workflows.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $migrationServiceClient->listMigrationWorkflows($request); + + /** @var MigrationWorkflow $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = MigrationServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + list_migration_workflows_sample($formattedParent); +} +// [END bigquerymigration_v2_generated_MigrationService_ListMigrationWorkflows_sync] diff --git a/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/start_migration_workflow.php b/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/start_migration_workflow.php new file mode 100644 index 000000000000..f66840d2c40f --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/start_migration_workflow.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $migrationServiceClient->startMigrationWorkflow($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = MigrationServiceClient::migrationWorkflowName( + '[PROJECT]', + '[LOCATION]', + '[WORKFLOW]' + ); + + start_migration_workflow_sample($formattedName); +} +// [END bigquerymigration_v2_generated_MigrationService_StartMigrationWorkflow_sync] diff --git a/owl-bot-staging/BigQueryMigration/v2/src/V2/Client/MigrationServiceClient.php b/owl-bot-staging/BigQueryMigration/v2/src/V2/Client/MigrationServiceClient.php new file mode 100644 index 000000000000..3718807f050d --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/src/V2/Client/MigrationServiceClient.php @@ -0,0 +1,470 @@ + createMigrationWorkflowAsync(CreateMigrationWorkflowRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteMigrationWorkflowAsync(DeleteMigrationWorkflowRequest $request, array $optionalArgs = []) + * @method PromiseInterface getMigrationSubtaskAsync(GetMigrationSubtaskRequest $request, array $optionalArgs = []) + * @method PromiseInterface getMigrationWorkflowAsync(GetMigrationWorkflowRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMigrationSubtasksAsync(ListMigrationSubtasksRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMigrationWorkflowsAsync(ListMigrationWorkflowsRequest $request, array $optionalArgs = []) + * @method PromiseInterface startMigrationWorkflowAsync(StartMigrationWorkflowRequest $request, array $optionalArgs = []) + */ +final class MigrationServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.bigquery.migration.v2.MigrationService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'bigquerymigration.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'bigquerymigration.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/migration_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/migration_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/migration_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/migration_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * migration_subtask resource. + * + * @param string $project + * @param string $location + * @param string $workflow + * @param string $subtask + * + * @return string The formatted migration_subtask resource. + */ + public static function migrationSubtaskName(string $project, string $location, string $workflow, string $subtask): string + { + return self::getPathTemplate('migrationSubtask')->render([ + 'project' => $project, + 'location' => $location, + 'workflow' => $workflow, + 'subtask' => $subtask, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * migration_workflow resource. + * + * @param string $project + * @param string $location + * @param string $workflow + * + * @return string The formatted migration_workflow resource. + */ + public static function migrationWorkflowName(string $project, string $location, string $workflow): string + { + return self::getPathTemplate('migrationWorkflow')->render([ + 'project' => $project, + 'location' => $location, + 'workflow' => $workflow, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - location: projects/{project}/locations/{location} + * - migrationSubtask: projects/{project}/locations/{location}/workflows/{workflow}/subtasks/{subtask} + * - migrationWorkflow: projects/{project}/locations/{location}/workflows/{workflow} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'bigquerymigration.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\BigQuery\Migration\V2\MigrationServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new MigrationServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Creates a migration workflow. + * + * The async variant is + * {@see MigrationServiceClient::createMigrationWorkflowAsync()} . + * + * @example samples/V2/MigrationServiceClient/create_migration_workflow.php + * + * @param CreateMigrationWorkflowRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return MigrationWorkflow + * + * @throws ApiException Thrown if the API call fails. + */ + public function createMigrationWorkflow(CreateMigrationWorkflowRequest $request, array $callOptions = []): MigrationWorkflow + { + return $this->startApiCall('CreateMigrationWorkflow', $request, $callOptions)->wait(); + } + + /** + * Deletes a migration workflow by name. + * + * The async variant is + * {@see MigrationServiceClient::deleteMigrationWorkflowAsync()} . + * + * @example samples/V2/MigrationServiceClient/delete_migration_workflow.php + * + * @param DeleteMigrationWorkflowRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteMigrationWorkflow(DeleteMigrationWorkflowRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteMigrationWorkflow', $request, $callOptions)->wait(); + } + + /** + * Gets a previously created migration subtask. + * + * The async variant is {@see MigrationServiceClient::getMigrationSubtaskAsync()} . + * + * @example samples/V2/MigrationServiceClient/get_migration_subtask.php + * + * @param GetMigrationSubtaskRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return MigrationSubtask + * + * @throws ApiException Thrown if the API call fails. + */ + public function getMigrationSubtask(GetMigrationSubtaskRequest $request, array $callOptions = []): MigrationSubtask + { + return $this->startApiCall('GetMigrationSubtask', $request, $callOptions)->wait(); + } + + /** + * Gets a previously created migration workflow. + * + * The async variant is {@see MigrationServiceClient::getMigrationWorkflowAsync()} + * . + * + * @example samples/V2/MigrationServiceClient/get_migration_workflow.php + * + * @param GetMigrationWorkflowRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return MigrationWorkflow + * + * @throws ApiException Thrown if the API call fails. + */ + public function getMigrationWorkflow(GetMigrationWorkflowRequest $request, array $callOptions = []): MigrationWorkflow + { + return $this->startApiCall('GetMigrationWorkflow', $request, $callOptions)->wait(); + } + + /** + * Lists previously created migration subtasks. + * + * The async variant is {@see MigrationServiceClient::listMigrationSubtasksAsync()} + * . + * + * @example samples/V2/MigrationServiceClient/list_migration_subtasks.php + * + * @param ListMigrationSubtasksRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listMigrationSubtasks(ListMigrationSubtasksRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListMigrationSubtasks', $request, $callOptions); + } + + /** + * Lists previously created migration workflow. + * + * The async variant is + * {@see MigrationServiceClient::listMigrationWorkflowsAsync()} . + * + * @example samples/V2/MigrationServiceClient/list_migration_workflows.php + * + * @param ListMigrationWorkflowsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listMigrationWorkflows(ListMigrationWorkflowsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListMigrationWorkflows', $request, $callOptions); + } + + /** + * 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. + * + * The async variant is + * {@see MigrationServiceClient::startMigrationWorkflowAsync()} . + * + * @example samples/V2/MigrationServiceClient/start_migration_workflow.php + * + * @param StartMigrationWorkflowRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function startMigrationWorkflow(StartMigrationWorkflowRequest $request, array $callOptions = []): void + { + $this->startApiCall('StartMigrationWorkflow', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/BigQueryMigration/v2/src/V2/gapic_metadata.json b/owl-bot-staging/BigQueryMigration/v2/src/V2/gapic_metadata.json new file mode 100644 index 000000000000..f29fa4dd179b --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/src/V2/gapic_metadata.json @@ -0,0 +1,53 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.bigquery.migration.v2", + "libraryPackage": "Google\\Cloud\\BigQuery\\Migration\\V2", + "services": { + "MigrationService": { + "clients": { + "grpc": { + "libraryClient": "MigrationServiceGapicClient", + "rpcs": { + "CreateMigrationWorkflow": { + "methods": [ + "createMigrationWorkflow" + ] + }, + "DeleteMigrationWorkflow": { + "methods": [ + "deleteMigrationWorkflow" + ] + }, + "GetMigrationSubtask": { + "methods": [ + "getMigrationSubtask" + ] + }, + "GetMigrationWorkflow": { + "methods": [ + "getMigrationWorkflow" + ] + }, + "ListMigrationSubtasks": { + "methods": [ + "listMigrationSubtasks" + ] + }, + "ListMigrationWorkflows": { + "methods": [ + "listMigrationWorkflows" + ] + }, + "StartMigrationWorkflow": { + "methods": [ + "startMigrationWorkflow" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_client_config.json b/owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_client_config.json new file mode 100644 index 000000000000..177fac8a03f3 --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_client_config.json @@ -0,0 +1,79 @@ +{ + "interfaces": { + "google.cloud.bigquery.migration.v2.MigrationService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "no_retry_1_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "no_retry_1_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "CreateMigrationWorkflow": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteMigrationWorkflow": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetMigrationSubtask": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetMigrationWorkflow": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListMigrationSubtasks": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListMigrationWorkflows": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "StartMigrationWorkflow": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_descriptor_config.php b/owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_descriptor_config.php new file mode 100644 index 000000000000..376215ae592a --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_descriptor_config.php @@ -0,0 +1,133 @@ + [ + 'google.cloud.bigquery.migration.v2.MigrationService' => [ + 'CreateMigrationWorkflow' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteMigrationWorkflow' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetMigrationSubtask' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\BigQuery\Migration\V2\MigrationSubtask', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetMigrationWorkflow' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListMigrationSubtasks' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getMigrationSubtasks', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\BigQuery\Migration\V2\ListMigrationSubtasksResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListMigrationWorkflows' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getMigrationWorkflows', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\BigQuery\Migration\V2\ListMigrationWorkflowsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'StartMigrationWorkflow' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'location' => 'projects/{project}/locations/{location}', + 'migrationSubtask' => 'projects/{project}/locations/{location}/workflows/{workflow}/subtasks/{subtask}', + 'migrationWorkflow' => 'projects/{project}/locations/{location}/workflows/{workflow}', + ], + ], + ], +]; diff --git a/owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_rest_client_config.php b/owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_rest_client_config.php new file mode 100644 index 000000000000..4ccee001bf8b --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_rest_client_config.php @@ -0,0 +1,107 @@ + [ + 'google.cloud.bigquery.migration.v2.MigrationService' => [ + 'CreateMigrationWorkflow' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/workflows', + 'body' => 'migration_workflow', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteMigrationWorkflow' => [ + 'method' => 'delete', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/workflows/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetMigrationSubtask' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/workflows/*/subtasks/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetMigrationWorkflow' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/workflows/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListMigrationSubtasks' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*/workflows/*}/subtasks', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListMigrationWorkflows' => [ + 'method' => 'get', + 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/workflows', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'StartMigrationWorkflow' => [ + 'method' => 'post', + 'uriTemplate' => '/v2/{name=projects/*/locations/*/workflows/*}:start', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], +]; diff --git a/owl-bot-staging/BigQueryMigration/v2/tests/Unit/V2/Client/MigrationServiceClientTest.php b/owl-bot-staging/BigQueryMigration/v2/tests/Unit/V2/Client/MigrationServiceClientTest.php new file mode 100644 index 000000000000..a5d604cf434c --- /dev/null +++ b/owl-bot-staging/BigQueryMigration/v2/tests/Unit/V2/Client/MigrationServiceClientTest.php @@ -0,0 +1,581 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return MigrationServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new MigrationServiceClient($options); + } + + /** @test */ + public function createMigrationWorkflowTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $expectedResponse = new MigrationWorkflow(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $migrationWorkflow = new MigrationWorkflow(); + $request = (new CreateMigrationWorkflowRequest()) + ->setParent($formattedParent) + ->setMigrationWorkflow($migrationWorkflow); + $response = $gapicClient->createMigrationWorkflow($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.bigquery.migration.v2.MigrationService/CreateMigrationWorkflow', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getMigrationWorkflow(); + $this->assertProtobufEquals($migrationWorkflow, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createMigrationWorkflowExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $migrationWorkflow = new MigrationWorkflow(); + $request = (new CreateMigrationWorkflowRequest()) + ->setParent($formattedParent) + ->setMigrationWorkflow($migrationWorkflow); + try { + $gapicClient->createMigrationWorkflow($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteMigrationWorkflowTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->migrationWorkflowName('[PROJECT]', '[LOCATION]', '[WORKFLOW]'); + $request = (new DeleteMigrationWorkflowRequest()) + ->setName($formattedName); + $gapicClient->deleteMigrationWorkflow($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.bigquery.migration.v2.MigrationService/DeleteMigrationWorkflow', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteMigrationWorkflowExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->migrationWorkflowName('[PROJECT]', '[LOCATION]', '[WORKFLOW]'); + $request = (new DeleteMigrationWorkflowRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteMigrationWorkflow($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMigrationSubtaskTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $taskId = 'taskId-1537240555'; + $type = 'type3575610'; + $resourceErrorCount = 929997465; + $expectedResponse = new MigrationSubtask(); + $expectedResponse->setName($name2); + $expectedResponse->setTaskId($taskId); + $expectedResponse->setType($type); + $expectedResponse->setResourceErrorCount($resourceErrorCount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->migrationSubtaskName('[PROJECT]', '[LOCATION]', '[WORKFLOW]', '[SUBTASK]'); + $request = (new GetMigrationSubtaskRequest()) + ->setName($formattedName); + $response = $gapicClient->getMigrationSubtask($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.bigquery.migration.v2.MigrationService/GetMigrationSubtask', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMigrationSubtaskExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->migrationSubtaskName('[PROJECT]', '[LOCATION]', '[WORKFLOW]', '[SUBTASK]'); + $request = (new GetMigrationSubtaskRequest()) + ->setName($formattedName); + try { + $gapicClient->getMigrationSubtask($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMigrationWorkflowTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new MigrationWorkflow(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->migrationWorkflowName('[PROJECT]', '[LOCATION]', '[WORKFLOW]'); + $request = (new GetMigrationWorkflowRequest()) + ->setName($formattedName); + $response = $gapicClient->getMigrationWorkflow($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.bigquery.migration.v2.MigrationService/GetMigrationWorkflow', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMigrationWorkflowExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->migrationWorkflowName('[PROJECT]', '[LOCATION]', '[WORKFLOW]'); + $request = (new GetMigrationWorkflowRequest()) + ->setName($formattedName); + try { + $gapicClient->getMigrationWorkflow($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMigrationSubtasksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $migrationSubtasksElement = new MigrationSubtask(); + $migrationSubtasks = [ + $migrationSubtasksElement, + ]; + $expectedResponse = new ListMigrationSubtasksResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setMigrationSubtasks($migrationSubtasks); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->migrationWorkflowName('[PROJECT]', '[LOCATION]', '[WORKFLOW]'); + $request = (new ListMigrationSubtasksRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listMigrationSubtasks($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getMigrationSubtasks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.bigquery.migration.v2.MigrationService/ListMigrationSubtasks', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMigrationSubtasksExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->migrationWorkflowName('[PROJECT]', '[LOCATION]', '[WORKFLOW]'); + $request = (new ListMigrationSubtasksRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listMigrationSubtasks($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMigrationWorkflowsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $migrationWorkflowsElement = new MigrationWorkflow(); + $migrationWorkflows = [ + $migrationWorkflowsElement, + ]; + $expectedResponse = new ListMigrationWorkflowsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setMigrationWorkflows($migrationWorkflows); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListMigrationWorkflowsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listMigrationWorkflows($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getMigrationWorkflows()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.bigquery.migration.v2.MigrationService/ListMigrationWorkflows', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMigrationWorkflowsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListMigrationWorkflowsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listMigrationWorkflows($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function startMigrationWorkflowTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->migrationWorkflowName('[PROJECT]', '[LOCATION]', '[WORKFLOW]'); + $request = (new StartMigrationWorkflowRequest()) + ->setName($formattedName); + $gapicClient->startMigrationWorkflow($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.bigquery.migration.v2.MigrationService/StartMigrationWorkflow', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function startMigrationWorkflowExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->migrationWorkflowName('[PROJECT]', '[LOCATION]', '[WORKFLOW]'); + $request = (new StartMigrationWorkflowRequest()) + ->setName($formattedName); + try { + $gapicClient->startMigrationWorkflow($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createMigrationWorkflowAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $expectedResponse = new MigrationWorkflow(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $migrationWorkflow = new MigrationWorkflow(); + $request = (new CreateMigrationWorkflowRequest()) + ->setParent($formattedParent) + ->setMigrationWorkflow($migrationWorkflow); + $response = $gapicClient->createMigrationWorkflowAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.bigquery.migration.v2.MigrationService/CreateMigrationWorkflow', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getMigrationWorkflow(); + $this->assertProtobufEquals($migrationWorkflow, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} From 4e9804fcd45c5d08b14d857a3fd1fd82a7775600 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 20 May 2026 20:13:23 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../metadata}/V2/AssessmentTask.php | 0 .../metadata/V2/MigrationEntities.php | 3 +- .../metadata/V2/TranslationDetails.php | 2 +- .../src}/V2/AssessmentFeatureHandle.php | 0 .../src}/V2/AssessmentTaskDetails.php | 0 BigQueryMigration/src/V2/MigrationSubtask.php | 80 +-- BigQueryMigration/src/V2/MigrationTask.php | 229 +++--- .../src/V2/MigrationTask/State.php | 2 +- .../src/V2/MigrationWorkflow.php | 28 +- BigQueryMigration/src/V2/SourceSpec.php | 33 + .../src}/V2/SuggestionConfig.php | 0 .../src}/V2/SuggestionStep.php | 0 .../src}/V2/SuggestionStep/RewriteTarget.php | 0 .../src}/V2/SuggestionStep/SuggestionType.php | 0 .../src/V2/TranslationDetails.php | 44 ++ .../src/V2/TranslationTaskResult.php | 34 + .../Migration/V2/MigrationEntities.php | 34 - .../Migration/V2/MigrationErrorDetails.php | 26 - .../Migration/V2/MigrationMetrics.php | 28 - .../Migration/V2/MigrationService.php | 31 - .../Migration/V2/TranslationConfig.php | 25 - .../Migration/V2/TranslationDetails.php | 25 - .../Migration/V2/TranslationSuggestion.php | 26 - .../Migration/V2/TranslationUsability.php | 26 - .../Migration/V2/AzureSynapseDialect.php | 33 - .../BigQuery/Migration/V2/BigQueryDialect.php | 33 - .../V2/CreateMigrationWorkflowRequest.php | 132 ---- .../BigQuery/Migration/V2/DB2Dialect.php | 33 - .../V2/DeleteMigrationWorkflowRequest.php | 86 --- .../Cloud/BigQuery/Migration/V2/Dialect.php | 603 ---------------- .../BigQuery/Migration/V2/ErrorDetail.php | 122 ---- .../BigQuery/Migration/V2/ErrorLocation.php | 109 --- .../Migration/V2/GcsReportLogMessage.php | 415 ----------- .../V2/GetMigrationSubtaskRequest.php | 130 ---- .../V2/GetMigrationWorkflowRequest.php | 130 ---- .../Migration/V2/GreenplumDialect.php | 33 - .../BigQuery/Migration/V2/HiveQLDialect.php | 33 - .../V2/ListMigrationSubtasksRequest.php | 256 ------- .../V2/ListMigrationSubtasksResponse.php | 105 --- .../V2/ListMigrationWorkflowsRequest.php | 214 ------ .../V2/ListMigrationWorkflowsResponse.php | 105 --- .../Cloud/BigQuery/Migration/V2/Literal.php | 142 ---- .../Migration/V2/MigrationSubtask.php | 449 ------------ .../Migration/V2/MigrationSubtask/State.php | 91 --- .../BigQuery/Migration/V2/MigrationTask.php | 674 ------------------ .../Migration/V2/MigrationTask/State.php | 90 --- .../Migration/V2/MigrationTaskResult.php | 75 -- .../Migration/V2/MigrationWorkflow.php | 278 -------- .../Migration/V2/MigrationWorkflow/State.php | 79 -- .../BigQuery/Migration/V2/MySQLDialect.php | 33 - .../BigQuery/Migration/V2/NameMappingKey.php | 216 ------ .../Migration/V2/NameMappingKey/Type.php | 100 --- .../Migration/V2/NameMappingValue.php | 182 ----- .../BigQuery/Migration/V2/NetezzaDialect.php | 33 - .../Migration/V2/ObjectNameMapping.php | 122 ---- .../Migration/V2/ObjectNameMappingList.php | 68 -- .../BigQuery/Migration/V2/OracleDialect.php | 33 - .../Cloud/BigQuery/Migration/V2/Point.php | 153 ---- .../Migration/V2/PostgresqlDialect.php | 33 - .../BigQuery/Migration/V2/PrestoDialect.php | 33 - .../BigQuery/Migration/V2/RedshiftDialect.php | 33 - .../Migration/V2/ResourceErrorDetail.php | 153 ---- .../Migration/V2/SQLServerDialect.php | 33 - .../BigQuery/Migration/V2/SQLiteDialect.php | 33 - .../Migration/V2/SnowflakeDialect.php | 33 - .../Cloud/BigQuery/Migration/V2/SourceEnv.php | 163 ----- .../Migration/V2/SourceEnvironment.php | 163 ----- .../BigQuery/Migration/V2/SourceSpec.php | 175 ----- .../Migration/V2/SourceTargetMapping.php | 121 ---- .../BigQuery/Migration/V2/SparkSQLDialect.php | 33 - .../V2/StartMigrationWorkflowRequest.php | 86 --- .../BigQuery/Migration/V2/TargetSpec.php | 75 -- .../BigQuery/Migration/V2/TeradataDialect.php | 67 -- .../Migration/V2/TeradataDialect/Mode.php | 61 -- .../BigQuery/Migration/V2/TimeInterval.php | 131 ---- .../BigQuery/Migration/V2/TimeSeries.php | 213 ------ .../Migration/V2/TranslationConfigDetails.php | 372 ---------- .../Migration/V2/TranslationDetails.php | 278 -------- .../Migration/V2/TranslationReportRecord.php | 211 ------ .../V2/TranslationReportRecord/Severity.php | 69 -- .../Migration/V2/TranslationTaskResult.php | 135 ---- .../BigQuery/Migration/V2/TypedValue.php | 213 ------ .../BigQuery/Migration/V2/VerticaDialect.php | 33 - .../create_migration_workflow.php | 74 -- .../delete_migration_workflow.php | 74 -- .../get_migration_subtask.php | 77 -- .../get_migration_workflow.php | 76 -- .../list_migration_subtasks.php | 81 --- .../list_migration_workflows.php | 77 -- .../start_migration_workflow.php | 77 -- .../src/V2/Client/MigrationServiceClient.php | 470 ------------ .../v2/src/V2/gapic_metadata.json | 53 -- .../migration_service_client_config.json | 79 -- .../migration_service_descriptor_config.php | 133 ---- .../migration_service_rest_client_config.php | 107 --- .../V2/Client/MigrationServiceClientTest.php | 581 --------------- 96 files changed, 316 insertions(+), 10659 deletions(-) rename {owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration => BigQueryMigration/metadata}/V2/AssessmentTask.php (100%) rename {owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration => BigQueryMigration/src}/V2/AssessmentFeatureHandle.php (100%) rename {owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration => BigQueryMigration/src}/V2/AssessmentTaskDetails.php (100%) rename {owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration => BigQueryMigration/src}/V2/SuggestionConfig.php (100%) rename {owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration => BigQueryMigration/src}/V2/SuggestionStep.php (100%) rename {owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration => BigQueryMigration/src}/V2/SuggestionStep/RewriteTarget.php (100%) rename {owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration => BigQueryMigration/src}/V2/SuggestionStep/SuggestionType.php (100%) delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationEntities.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationErrorDetails.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationMetrics.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationService.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationConfig.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationDetails.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationSuggestion.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationUsability.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/AzureSynapseDialect.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/BigQueryDialect.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/CreateMigrationWorkflowRequest.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/DB2Dialect.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/DeleteMigrationWorkflowRequest.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Dialect.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ErrorDetail.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ErrorLocation.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GcsReportLogMessage.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GetMigrationSubtaskRequest.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GetMigrationWorkflowRequest.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GreenplumDialect.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/HiveQLDialect.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationSubtasksRequest.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationSubtasksResponse.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationWorkflowsRequest.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationWorkflowsResponse.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Literal.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationSubtask.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationSubtask/State.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTask.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTask/State.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTaskResult.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationWorkflow.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationWorkflow/State.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MySQLDialect.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingKey.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingKey/Type.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingValue.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NetezzaDialect.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ObjectNameMapping.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ObjectNameMappingList.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/OracleDialect.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Point.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/PostgresqlDialect.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/PrestoDialect.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/RedshiftDialect.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ResourceErrorDetail.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SQLServerDialect.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SQLiteDialect.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SnowflakeDialect.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceEnv.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceEnvironment.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceSpec.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceTargetMapping.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SparkSQLDialect.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/StartMigrationWorkflowRequest.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TargetSpec.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TeradataDialect.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TeradataDialect/Mode.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TimeInterval.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TimeSeries.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationConfigDetails.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationDetails.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationReportRecord.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationReportRecord/Severity.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationTaskResult.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TypedValue.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/VerticaDialect.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/create_migration_workflow.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/delete_migration_workflow.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/get_migration_subtask.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/get_migration_workflow.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/list_migration_subtasks.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/list_migration_workflows.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/start_migration_workflow.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/src/V2/Client/MigrationServiceClient.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/src/V2/gapic_metadata.json delete mode 100644 owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_client_config.json delete mode 100644 owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_descriptor_config.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_rest_client_config.php delete mode 100644 owl-bot-staging/BigQueryMigration/v2/tests/Unit/V2/Client/MigrationServiceClientTest.php diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/AssessmentTask.php b/BigQueryMigration/metadata/V2/AssessmentTask.php similarity index 100% rename from owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/AssessmentTask.php rename to BigQueryMigration/metadata/V2/AssessmentTask.php diff --git a/BigQueryMigration/metadata/V2/MigrationEntities.php b/BigQueryMigration/metadata/V2/MigrationEntities.php index d31661535e94..94a42b94cfce 100644 --- a/BigQueryMigration/metadata/V2/MigrationEntities.php +++ b/BigQueryMigration/metadata/V2/MigrationEntities.php @@ -16,6 +16,7 @@ public static function initOnce() { } \GPBMetadata\Google\Api\FieldBehavior::initOnce(); \GPBMetadata\Google\Api\Resource::initOnce(); + \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\AssessmentTask::initOnce(); \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationErrorDetails::initOnce(); \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationMetrics::initOnce(); \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); @@ -24,7 +25,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xB4\x1A\x0A;google/cloud/bigquery/migration/v2/migration_entities.proto\x12\"google.cloud.bigquery.migration.v2\x1A\x19google/api/resource.proto\x1A@google/cloud/bigquery/migration/v2/migration_error_details.proto\x1A:google/cloud/bigquery/migration/v2/migration_metrics.proto\x1A;google/cloud/bigquery/migration/v2/translation_config.proto\x1Agoogle/cloud/bigquery/migration/v2/translation_usability.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x1Egoogle/rpc/error_details.proto\"\xF6\x04\x0A\x11MigrationWorkflow\x12\x17\x0A\x04name\x18\x01 \x01(\x09B\x09\xE0A\x03\xE0A\x05\xE0A\x08\x12\x14\x0A\x0Cdisplay_name\x18\x06 \x01(\x09\x12O\x0A\x05tasks\x18\x02 \x03(\x0B2@.google.cloud.bigquery.migration.v2.MigrationWorkflow.TasksEntry\x12O\x0A\x05state\x18\x03 \x01(\x0E2;.google.cloud.bigquery.migration.v2.MigrationWorkflow.StateB\x03\xE0A\x03\x12/\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x124\x0A\x10last_update_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.Timestamp\x1A_\x0A\x0ATasksEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12@\x0A\x05value\x18\x02 \x01(\x0B21.google.cloud.bigquery.migration.v2.MigrationTask:\x028\x01\"Q\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05DRAFT\x10\x01\x12\x0B\x0A\x07RUNNING\x10\x02\x12\x0A\x0A\x06PAUSED\x10\x03\x12\x0D\x0A\x09COMPLETED\x10\x04:u\xEAAr\x0A2bigquerymigration.googleapis.com/MigrationWorkflow\x12google/cloud/bigquery/migration/v2/translation_usability.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x1Egoogle/rpc/error_details.proto\"\x80\x05\x0A\x11MigrationWorkflow\x12\x17\x0A\x04name\x18\x01 \x01(\x09B\x09\xE0A\x03\xE0A\x05\xE0A\x08\x12\x14\x0A\x0Cdisplay_name\x18\x06 \x01(\x09\x12O\x0A\x05tasks\x18\x02 \x03(\x0B2@.google.cloud.bigquery.migration.v2.MigrationWorkflow.TasksEntry\x12O\x0A\x05state\x18\x03 \x01(\x0E2;.google.cloud.bigquery.migration.v2.MigrationWorkflow.StateB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x129\x0A\x10last_update_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x1A_\x0A\x0ATasksEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12@\x0A\x05value\x18\x02 \x01(\x0B21.google.cloud.bigquery.migration.v2.MigrationTask:\x028\x01\"Q\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05DRAFT\x10\x01\x12\x0B\x0A\x07RUNNING\x10\x02\x12\x0A\x0A\x06PAUSED\x10\x03\x12\x0D\x0A\x09COMPLETED\x10\x04:u\xEAAr\x0A2bigquerymigration.googleapis.com/MigrationWorkflow\x12internalAddGeneratedFile( - "\x0A\xF6\x08\x0A\x0A\x07literal\x18\x02 \x01(\x0B2+.google.cloud.bigquery.migration.v2.LiteralH\x00\x12\x15\x0A\x08encoding\x18\x03 \x01(\x09B\x03\xE0A\x01B\x08\x0A\x06source\"#\x0A\x0ATargetSpec\x12\x15\x0A\x0Drelative_path\x18\x01 \x01(\x09\"h\x0A\x07Literal\x12\x18\x0A\x0Eliteral_string\x18\x02 \x01(\x09H\x00\x12\x17\x0A\x0Dliteral_bytes\x18\x03 \x01(\x0CH\x00\x12\x1A\x0A\x0Drelative_path\x18\x01 \x01(\x09B\x03\xE0A\x02B\x0E\x0A\x0Cliteral_data\"n\x0A\x11SourceEnvironment\x12\x18\x0A\x10default_database\x18\x01 \x01(\x09\x12\x1A\x0A\x12schema_search_path\x18\x02 \x03(\x09\x12#\x0A\x16metadata_store_dataset\x18\x03 \x01(\x09B\x03\xE0A\x01B\xD3\x01\x0A&com.google.cloud.bigquery.migration.v2B\x17TranslationDetailsProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xAA\x02\"Google.Cloud.BigQuery.Migration.V2\xCA\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3" + "\x0A\xCA\x0D\x0A\x0A\x07literal\x18\x02 \x01(\x0B2+.google.cloud.bigquery.migration.v2.LiteralH\x00\x12\x17\x0A\x0Dgcs_file_path\x18\x04 \x01(\x09H\x00\x12\x15\x0A\x08encoding\x18\x03 \x01(\x09B\x03\xE0A\x01B\x08\x0A\x06source\"#\x0A\x0ATargetSpec\x12\x15\x0A\x0Drelative_path\x18\x01 \x01(\x09\"h\x0A\x07Literal\x12\x18\x0A\x0Eliteral_string\x18\x02 \x01(\x09H\x00\x12\x17\x0A\x0Dliteral_bytes\x18\x03 \x01(\x0CH\x00\x12\x1A\x0A\x0Drelative_path\x18\x01 \x01(\x09B\x03\xE0A\x02B\x0E\x0A\x0Cliteral_data\"n\x0A\x11SourceEnvironment\x12\x18\x0A\x10default_database\x18\x01 \x01(\x09\x12\x1A\x0A\x12schema_search_path\x18\x02 \x03(\x09\x12#\x0A\x16metadata_store_dataset\x18\x03 \x01(\x09B\x03\xE0A\x01B\xD3\x01\x0A&com.google.cloud.bigquery.migration.v2B\x17TranslationDetailsProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xAA\x02\"Google.Cloud.BigQuery.Migration.V2\xCA\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3" , true); static::$is_initialized = true; diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/AssessmentFeatureHandle.php b/BigQueryMigration/src/V2/AssessmentFeatureHandle.php similarity index 100% rename from owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/AssessmentFeatureHandle.php rename to BigQueryMigration/src/V2/AssessmentFeatureHandle.php diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/AssessmentTaskDetails.php b/BigQueryMigration/src/V2/AssessmentTaskDetails.php similarity index 100% rename from owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/AssessmentTaskDetails.php rename to BigQueryMigration/src/V2/AssessmentTaskDetails.php diff --git a/BigQueryMigration/src/V2/MigrationSubtask.php b/BigQueryMigration/src/V2/MigrationSubtask.php index f7d0f5f056fe..d633f8f24317 100644 --- a/BigQueryMigration/src/V2/MigrationSubtask.php +++ b/BigQueryMigration/src/V2/MigrationSubtask.php @@ -62,30 +62,30 @@ class MigrationSubtask extends \Google\Protobuf\Internal\Message */ private $resource_error_details; /** - * The number or resources with errors. Note: This is not the total - * number of errors as each resource can have more than one error. - * This is used to indicate truncation by having a `resource_error_count` - * that is higher than the size of `resource_error_details`. + * Output only. The number or resources with errors. Note: This is not the + * total number of errors as each resource can have more than one error. This + * is used to indicate truncation by having a `resource_error_count` that is + * higher than the size of `resource_error_details`. * - * Generated from protobuf field int32 resource_error_count = 13; + * Generated from protobuf field int32 resource_error_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $resource_error_count = 0; /** - * Time when the subtask was created. + * Output only. Time when the subtask was created. * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $create_time = null; /** - * Time when the subtask was last updated. + * Output only. Time when the subtask was last updated. * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 8; + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $last_update_time = null; /** - * The metrics for the subtask. + * Output only. The metrics for the subtask. * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11; + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private $metrics; @@ -116,16 +116,16 @@ class MigrationSubtask extends \Google\Protobuf\Internal\Message * processing the subtask. Presence of error details does not mean that the * subtask failed. * @type int $resource_error_count - * The number or resources with errors. Note: This is not the total - * number of errors as each resource can have more than one error. - * This is used to indicate truncation by having a `resource_error_count` - * that is higher than the size of `resource_error_details`. + * Output only. The number or resources with errors. Note: This is not the + * total number of errors as each resource can have more than one error. This + * is used to indicate truncation by having a `resource_error_count` that is + * higher than the size of `resource_error_details`. * @type \Google\Protobuf\Timestamp $create_time - * Time when the subtask was created. + * Output only. Time when the subtask was created. * @type \Google\Protobuf\Timestamp $last_update_time - * Time when the subtask was last updated. + * Output only. Time when the subtask was last updated. * @type \Google\Cloud\BigQuery\Migration\V2\TimeSeries[] $metrics - * The metrics for the subtask. + * Output only. The metrics for the subtask. * } */ public function __construct($data = NULL) { @@ -316,12 +316,12 @@ public function setResourceErrorDetails($var) } /** - * The number or resources with errors. Note: This is not the total - * number of errors as each resource can have more than one error. - * This is used to indicate truncation by having a `resource_error_count` - * that is higher than the size of `resource_error_details`. + * Output only. The number or resources with errors. Note: This is not the + * total number of errors as each resource can have more than one error. This + * is used to indicate truncation by having a `resource_error_count` that is + * higher than the size of `resource_error_details`. * - * Generated from protobuf field int32 resource_error_count = 13; + * Generated from protobuf field int32 resource_error_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return int */ public function getResourceErrorCount() @@ -330,12 +330,12 @@ public function getResourceErrorCount() } /** - * The number or resources with errors. Note: This is not the total - * number of errors as each resource can have more than one error. - * This is used to indicate truncation by having a `resource_error_count` - * that is higher than the size of `resource_error_details`. + * Output only. The number or resources with errors. Note: This is not the + * total number of errors as each resource can have more than one error. This + * is used to indicate truncation by having a `resource_error_count` that is + * higher than the size of `resource_error_details`. * - * Generated from protobuf field int32 resource_error_count = 13; + * Generated from protobuf field int32 resource_error_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param int $var * @return $this */ @@ -348,9 +348,9 @@ public function setResourceErrorCount($var) } /** - * Time when the subtask was created. + * Output only. Time when the subtask was created. * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return \Google\Protobuf\Timestamp|null */ public function getCreateTime() @@ -369,9 +369,9 @@ public function clearCreateTime() } /** - * Time when the subtask was created. + * Output only. Time when the subtask was created. * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param \Google\Protobuf\Timestamp $var * @return $this */ @@ -384,9 +384,9 @@ public function setCreateTime($var) } /** - * Time when the subtask was last updated. + * Output only. Time when the subtask was last updated. * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 8; + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return \Google\Protobuf\Timestamp|null */ public function getLastUpdateTime() @@ -405,9 +405,9 @@ public function clearLastUpdateTime() } /** - * Time when the subtask was last updated. + * Output only. Time when the subtask was last updated. * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 8; + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param \Google\Protobuf\Timestamp $var * @return $this */ @@ -420,9 +420,9 @@ public function setLastUpdateTime($var) } /** - * The metrics for the subtask. + * Output only. The metrics for the subtask. * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11; + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\TimeSeries> */ public function getMetrics() @@ -431,9 +431,9 @@ public function getMetrics() } /** - * The metrics for the subtask. + * Output only. The metrics for the subtask. * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11; + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param \Google\Cloud\BigQuery\Migration\V2\TimeSeries[] $var * @return $this */ diff --git a/BigQueryMigration/src/V2/MigrationTask.php b/BigQueryMigration/src/V2/MigrationTask.php index 3706c78bb408..70dbf6fb2156 100644 --- a/BigQueryMigration/src/V2/MigrationTask.php +++ b/BigQueryMigration/src/V2/MigrationTask.php @@ -24,13 +24,19 @@ class MigrationTask extends \Google\Protobuf\Internal\Message */ protected $id = ''; /** - * The type of the task. This must be one of the supported task types: - * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, - * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, - * Translation_Snowflake2BQ, Translation_Netezza2BQ, - * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, - * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, - * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ. + * The type of the task. This must be one of the supported task types. + * Assessment: + * - `Assessment_Hive` - Assessment for Hive. + * - `Assessment_Redshift` - Assessment for Redshift. + * - `Assessment_Snowflake` - Assessment for Snowflake. + * - `Assessment_Teradata_v2` - Assessment for Teradata. + * - `Assessment_Oracle` - Assessment for Oracle. + * - `Assessment_Hadoop` - Assessment for Hadoop. + * - `Assessment_Informatica` - Assessment for Informatica. + * Translation: + * See [Supported Task + * Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types) + * for a list of supported task types. * * Generated from protobuf field string type = 2; */ @@ -49,15 +55,15 @@ class MigrationTask extends \Google\Protobuf\Internal\Message */ protected $processing_error = null; /** - * Time when the task was created. + * Output only. Time when the task was created. * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $create_time = null; /** - * Time when the task was last updated. + * Output only. Time when the task was last updated. * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 7; + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $last_update_time = null; /** @@ -69,18 +75,18 @@ class MigrationTask extends \Google\Protobuf\Internal\Message */ private $resource_error_details; /** - * The number or resources with errors. Note: This is not the total - * number of errors as each resource can have more than one error. - * This is used to indicate truncation by having a `resource_error_count` - * that is higher than the size of `resource_error_details`. + * Output only. The number or resources with errors. Note: This is not the + * total number of errors as each resource can have more than one error. This + * is used to indicate truncation by having a `resource_error_count` that is + * higher than the size of `resource_error_details`. * - * Generated from protobuf field int32 resource_error_count = 18; + * Generated from protobuf field int32 resource_error_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $resource_error_count = 0; /** - * The metrics for the task. + * Output only. The metrics for the task. * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private $metrics; /** @@ -90,15 +96,17 @@ class MigrationTask extends \Google\Protobuf\Internal\Message */ protected $task_result = null; /** - * Count of all the processing errors in this task and its subtasks. + * Output only. Count of all the processing errors in this task and its + * subtasks. * - * Generated from protobuf field int32 total_processing_error_count = 21; + * Generated from protobuf field int32 total_processing_error_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $total_processing_error_count = 0; /** - * Count of all the resource errors in this task and its subtasks. + * Output only. Count of all the resource errors in this task and its + * subtasks. * - * Generated from protobuf field int32 total_resource_error_count = 22; + * Generated from protobuf field int32 total_resource_error_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $total_resource_error_count = 0; protected $task_details; @@ -109,6 +117,8 @@ class MigrationTask extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * + * @type \Google\Cloud\BigQuery\Migration\V2\AssessmentTaskDetails $assessment_task_details + * Task configuration for Assessment. * @type \Google\Cloud\BigQuery\Migration\V2\TranslationConfigDetails $translation_config_details * Task configuration for CW Batch/Offline SQL Translation. * @type \Google\Cloud\BigQuery\Migration\V2\TranslationDetails $translation_details @@ -117,39 +127,47 @@ class MigrationTask extends \Google\Protobuf\Internal\Message * Output only. Immutable. The unique identifier for the migration task. The * ID is server-generated. * @type string $type - * The type of the task. This must be one of the supported task types: - * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, - * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, - * Translation_Snowflake2BQ, Translation_Netezza2BQ, - * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, - * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, - * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ. + * The type of the task. This must be one of the supported task types. + * Assessment: + * - `Assessment_Hive` - Assessment for Hive. + * - `Assessment_Redshift` - Assessment for Redshift. + * - `Assessment_Snowflake` - Assessment for Snowflake. + * - `Assessment_Teradata_v2` - Assessment for Teradata. + * - `Assessment_Oracle` - Assessment for Oracle. + * - `Assessment_Hadoop` - Assessment for Hadoop. + * - `Assessment_Informatica` - Assessment for Informatica. + * Translation: + * See [Supported Task + * Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types) + * for a list of supported task types. * @type int $state * Output only. The current state of the task. * @type \Google\Rpc\ErrorInfo $processing_error * Output only. An explanation that may be populated when the task is in * FAILED state. * @type \Google\Protobuf\Timestamp $create_time - * Time when the task was created. + * Output only. Time when the task was created. * @type \Google\Protobuf\Timestamp $last_update_time - * Time when the task was last updated. + * Output only. Time when the task was last updated. * @type \Google\Cloud\BigQuery\Migration\V2\ResourceErrorDetail[] $resource_error_details * Output only. Provides details to errors and issues encountered while * processing the task. Presence of error details does not mean that the task * failed. * @type int $resource_error_count - * The number or resources with errors. Note: This is not the total - * number of errors as each resource can have more than one error. - * This is used to indicate truncation by having a `resource_error_count` - * that is higher than the size of `resource_error_details`. + * Output only. The number or resources with errors. Note: This is not the + * total number of errors as each resource can have more than one error. This + * is used to indicate truncation by having a `resource_error_count` that is + * higher than the size of `resource_error_details`. * @type \Google\Cloud\BigQuery\Migration\V2\TimeSeries[] $metrics - * The metrics for the task. + * Output only. The metrics for the task. * @type \Google\Cloud\BigQuery\Migration\V2\MigrationTaskResult $task_result * Output only. The result of the task. * @type int $total_processing_error_count - * Count of all the processing errors in this task and its subtasks. + * Output only. Count of all the processing errors in this task and its + * subtasks. * @type int $total_resource_error_count - * Count of all the resource errors in this task and its subtasks. + * Output only. Count of all the resource errors in this task and its + * subtasks. * } */ public function __construct($data = NULL) { @@ -157,6 +175,37 @@ public function __construct($data = NULL) { parent::__construct($data); } + /** + * Task configuration for Assessment. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.AssessmentTaskDetails assessment_task_details = 12; + * @return \Google\Cloud\BigQuery\Migration\V2\AssessmentTaskDetails|null + */ + public function getAssessmentTaskDetails() + { + return $this->readOneof(12); + } + + public function hasAssessmentTaskDetails() + { + return $this->hasOneof(12); + } + + /** + * Task configuration for Assessment. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.AssessmentTaskDetails assessment_task_details = 12; + * @param \Google\Cloud\BigQuery\Migration\V2\AssessmentTaskDetails $var + * @return $this + */ + public function setAssessmentTaskDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\AssessmentTaskDetails::class); + $this->writeOneof(12, $var); + + return $this; + } + /** * Task configuration for CW Batch/Offline SQL Translation. * @@ -248,13 +297,19 @@ public function setId($var) } /** - * The type of the task. This must be one of the supported task types: - * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, - * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, - * Translation_Snowflake2BQ, Translation_Netezza2BQ, - * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, - * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, - * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ. + * The type of the task. This must be one of the supported task types. + * Assessment: + * - `Assessment_Hive` - Assessment for Hive. + * - `Assessment_Redshift` - Assessment for Redshift. + * - `Assessment_Snowflake` - Assessment for Snowflake. + * - `Assessment_Teradata_v2` - Assessment for Teradata. + * - `Assessment_Oracle` - Assessment for Oracle. + * - `Assessment_Hadoop` - Assessment for Hadoop. + * - `Assessment_Informatica` - Assessment for Informatica. + * Translation: + * See [Supported Task + * Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types) + * for a list of supported task types. * * Generated from protobuf field string type = 2; * @return string @@ -265,13 +320,19 @@ public function getType() } /** - * The type of the task. This must be one of the supported task types: - * Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, - * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, - * Translation_Snowflake2BQ, Translation_Netezza2BQ, - * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, - * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, - * Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ. + * The type of the task. This must be one of the supported task types. + * Assessment: + * - `Assessment_Hive` - Assessment for Hive. + * - `Assessment_Redshift` - Assessment for Redshift. + * - `Assessment_Snowflake` - Assessment for Snowflake. + * - `Assessment_Teradata_v2` - Assessment for Teradata. + * - `Assessment_Oracle` - Assessment for Oracle. + * - `Assessment_Hadoop` - Assessment for Hadoop. + * - `Assessment_Informatica` - Assessment for Informatica. + * Translation: + * See [Supported Task + * Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types) + * for a list of supported task types. * * Generated from protobuf field string type = 2; * @param string $var @@ -350,9 +411,9 @@ public function setProcessingError($var) } /** - * Time when the task was created. + * Output only. Time when the task was created. * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return \Google\Protobuf\Timestamp|null */ public function getCreateTime() @@ -371,9 +432,9 @@ public function clearCreateTime() } /** - * Time when the task was created. + * Output only. Time when the task was created. * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param \Google\Protobuf\Timestamp $var * @return $this */ @@ -386,9 +447,9 @@ public function setCreateTime($var) } /** - * Time when the task was last updated. + * Output only. Time when the task was last updated. * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 7; + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return \Google\Protobuf\Timestamp|null */ public function getLastUpdateTime() @@ -407,9 +468,9 @@ public function clearLastUpdateTime() } /** - * Time when the task was last updated. + * Output only. Time when the task was last updated. * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 7; + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param \Google\Protobuf\Timestamp $var * @return $this */ @@ -452,12 +513,12 @@ public function setResourceErrorDetails($var) } /** - * The number or resources with errors. Note: This is not the total - * number of errors as each resource can have more than one error. - * This is used to indicate truncation by having a `resource_error_count` - * that is higher than the size of `resource_error_details`. + * Output only. The number or resources with errors. Note: This is not the + * total number of errors as each resource can have more than one error. This + * is used to indicate truncation by having a `resource_error_count` that is + * higher than the size of `resource_error_details`. * - * Generated from protobuf field int32 resource_error_count = 18; + * Generated from protobuf field int32 resource_error_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return int */ public function getResourceErrorCount() @@ -466,12 +527,12 @@ public function getResourceErrorCount() } /** - * The number or resources with errors. Note: This is not the total - * number of errors as each resource can have more than one error. - * This is used to indicate truncation by having a `resource_error_count` - * that is higher than the size of `resource_error_details`. + * Output only. The number or resources with errors. Note: This is not the + * total number of errors as each resource can have more than one error. This + * is used to indicate truncation by having a `resource_error_count` that is + * higher than the size of `resource_error_details`. * - * Generated from protobuf field int32 resource_error_count = 18; + * Generated from protobuf field int32 resource_error_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param int $var * @return $this */ @@ -484,9 +545,9 @@ public function setResourceErrorCount($var) } /** - * The metrics for the task. + * Output only. The metrics for the task. * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\TimeSeries> */ public function getMetrics() @@ -495,9 +556,9 @@ public function getMetrics() } /** - * The metrics for the task. + * Output only. The metrics for the task. * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19; + * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param \Google\Cloud\BigQuery\Migration\V2\TimeSeries[] $var * @return $this */ @@ -546,9 +607,10 @@ public function setTaskResult($var) } /** - * Count of all the processing errors in this task and its subtasks. + * Output only. Count of all the processing errors in this task and its + * subtasks. * - * Generated from protobuf field int32 total_processing_error_count = 21; + * Generated from protobuf field int32 total_processing_error_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return int */ public function getTotalProcessingErrorCount() @@ -557,9 +619,10 @@ public function getTotalProcessingErrorCount() } /** - * Count of all the processing errors in this task and its subtasks. + * Output only. Count of all the processing errors in this task and its + * subtasks. * - * Generated from protobuf field int32 total_processing_error_count = 21; + * Generated from protobuf field int32 total_processing_error_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param int $var * @return $this */ @@ -572,9 +635,10 @@ public function setTotalProcessingErrorCount($var) } /** - * Count of all the resource errors in this task and its subtasks. + * Output only. Count of all the resource errors in this task and its + * subtasks. * - * Generated from protobuf field int32 total_resource_error_count = 22; + * Generated from protobuf field int32 total_resource_error_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return int */ public function getTotalResourceErrorCount() @@ -583,9 +647,10 @@ public function getTotalResourceErrorCount() } /** - * Count of all the resource errors in this task and its subtasks. + * Output only. Count of all the resource errors in this task and its + * subtasks. * - * Generated from protobuf field int32 total_resource_error_count = 22; + * Generated from protobuf field int32 total_resource_error_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param int $var * @return $this */ diff --git a/BigQueryMigration/src/V2/MigrationTask/State.php b/BigQueryMigration/src/V2/MigrationTask/State.php index 79a22dfebe03..6aa47c9b9b81 100644 --- a/BigQueryMigration/src/V2/MigrationTask/State.php +++ b/BigQueryMigration/src/V2/MigrationTask/State.php @@ -38,7 +38,7 @@ class State */ const RUNNING = 3; /** - * Tha task is paused. Assigned subtasks can continue, but no new subtasks + * The task is paused. Assigned subtasks can continue, but no new subtasks * will be scheduled. * * Generated from protobuf enum PAUSED = 4; diff --git a/BigQueryMigration/src/V2/MigrationWorkflow.php b/BigQueryMigration/src/V2/MigrationWorkflow.php index 31090616ed27..89111264b873 100644 --- a/BigQueryMigration/src/V2/MigrationWorkflow.php +++ b/BigQueryMigration/src/V2/MigrationWorkflow.php @@ -46,15 +46,15 @@ class MigrationWorkflow extends \Google\Protobuf\Internal\Message */ protected $state = 0; /** - * Time when the workflow was created. + * Output only. Time when the workflow was created. * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4; + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $create_time = null; /** - * Time when the workflow was last updated. + * Output only. Time when the workflow was last updated. * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 5; + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $last_update_time = null; @@ -78,9 +78,9 @@ class MigrationWorkflow extends \Google\Protobuf\Internal\Message * @type int $state * Output only. That status of the workflow. * @type \Google\Protobuf\Timestamp $create_time - * Time when the workflow was created. + * Output only. Time when the workflow was created. * @type \Google\Protobuf\Timestamp $last_update_time - * Time when the workflow was last updated. + * Output only. Time when the workflow was last updated. * } */ public function __construct($data = NULL) { @@ -203,9 +203,9 @@ public function setState($var) } /** - * Time when the workflow was created. + * Output only. Time when the workflow was created. * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4; + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return \Google\Protobuf\Timestamp|null */ public function getCreateTime() @@ -224,9 +224,9 @@ public function clearCreateTime() } /** - * Time when the workflow was created. + * Output only. Time when the workflow was created. * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4; + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param \Google\Protobuf\Timestamp $var * @return $this */ @@ -239,9 +239,9 @@ public function setCreateTime($var) } /** - * Time when the workflow was last updated. + * Output only. Time when the workflow was last updated. * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 5; + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return \Google\Protobuf\Timestamp|null */ public function getLastUpdateTime() @@ -260,9 +260,9 @@ public function clearLastUpdateTime() } /** - * Time when the workflow was last updated. + * Output only. Time when the workflow was last updated. * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 5; + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param \Google\Protobuf\Timestamp $var * @return $this */ diff --git a/BigQueryMigration/src/V2/SourceSpec.php b/BigQueryMigration/src/V2/SourceSpec.php index f4f281f2a7d7..522af4edaa58 100644 --- a/BigQueryMigration/src/V2/SourceSpec.php +++ b/BigQueryMigration/src/V2/SourceSpec.php @@ -33,6 +33,8 @@ class SourceSpec extends \Google\Protobuf\Internal\Message * The base URI for all files to be read in as sources for translation. * @type \Google\Cloud\BigQuery\Migration\V2\Literal $literal * Source literal. + * @type string $gcs_file_path + * The path to a single source file in Cloud Storage. * @type string $encoding * Optional. The optional field to specify the encoding of the sql bytes. * } @@ -104,6 +106,37 @@ public function setLiteral($var) return $this; } + /** + * The path to a single source file in Cloud Storage. + * + * Generated from protobuf field string gcs_file_path = 4; + * @return string + */ + public function getGcsFilePath() + { + return $this->readOneof(4); + } + + public function hasGcsFilePath() + { + return $this->hasOneof(4); + } + + /** + * The path to a single source file in Cloud Storage. + * + * Generated from protobuf field string gcs_file_path = 4; + * @param string $var + * @return $this + */ + public function setGcsFilePath($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(4, $var); + + return $this; + } + /** * Optional. The optional field to specify the encoding of the sql bytes. * diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionConfig.php b/BigQueryMigration/src/V2/SuggestionConfig.php similarity index 100% rename from owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionConfig.php rename to BigQueryMigration/src/V2/SuggestionConfig.php diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionStep.php b/BigQueryMigration/src/V2/SuggestionStep.php similarity index 100% rename from owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionStep.php rename to BigQueryMigration/src/V2/SuggestionStep.php diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionStep/RewriteTarget.php b/BigQueryMigration/src/V2/SuggestionStep/RewriteTarget.php similarity index 100% rename from owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionStep/RewriteTarget.php rename to BigQueryMigration/src/V2/SuggestionStep/RewriteTarget.php diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionStep/SuggestionType.php b/BigQueryMigration/src/V2/SuggestionStep/SuggestionType.php similarity index 100% rename from owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SuggestionStep/SuggestionType.php rename to BigQueryMigration/src/V2/SuggestionStep/SuggestionType.php diff --git a/BigQueryMigration/src/V2/TranslationDetails.php b/BigQueryMigration/src/V2/TranslationDetails.php index ae4332d69204..adc0f676f7da 100644 --- a/BigQueryMigration/src/V2/TranslationDetails.php +++ b/BigQueryMigration/src/V2/TranslationDetails.php @@ -51,6 +51,12 @@ class TranslationDetails extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated string target_types = 5; */ private $target_types; + /** + * The configuration for the suggestion if requested as a target type. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6; + */ + protected $suggestion_config = null; /** * Constructor. @@ -73,6 +79,8 @@ class TranslationDetails extends \Google\Protobuf\Internal\Message * lineage_from_sql_scripts, etc. If not specified, a default set of * targets will be generated. Some additional target types may be slower to * generate. See the documentation for the set of available target types. + * @type \Google\Cloud\BigQuery\Migration\V2\SuggestionConfig $suggestion_config + * The configuration for the suggestion if requested as a target type. * } */ public function __construct($data = NULL) { @@ -230,5 +238,41 @@ public function setTargetTypes($var) return $this; } + /** + * The configuration for the suggestion if requested as a target type. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6; + * @return \Google\Cloud\BigQuery\Migration\V2\SuggestionConfig|null + */ + public function getSuggestionConfig() + { + return $this->suggestion_config; + } + + public function hasSuggestionConfig() + { + return isset($this->suggestion_config); + } + + public function clearSuggestionConfig() + { + unset($this->suggestion_config); + } + + /** + * The configuration for the suggestion if requested as a target type. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6; + * @param \Google\Cloud\BigQuery\Migration\V2\SuggestionConfig $var + * @return $this + */ + public function setSuggestionConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\SuggestionConfig::class); + $this->suggestion_config = $var; + + return $this; + } + } diff --git a/BigQueryMigration/src/V2/TranslationTaskResult.php b/BigQueryMigration/src/V2/TranslationTaskResult.php index 421b2b4905bd..765b346ef975 100644 --- a/BigQueryMigration/src/V2/TranslationTaskResult.php +++ b/BigQueryMigration/src/V2/TranslationTaskResult.php @@ -27,6 +27,12 @@ class TranslationTaskResult extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; */ private $report_log_messages; + /** + * The Cloud Console URI for the migration workflow. + * + * Generated from protobuf field string console_uri = 3; + */ + protected $console_uri = ''; /** * Constructor. @@ -38,6 +44,8 @@ class TranslationTaskResult extends \Google\Protobuf\Internal\Message * The list of the translated literals. * @type \Google\Cloud\BigQuery\Migration\V2\GcsReportLogMessage[] $report_log_messages * The records from the aggregate CSV report for a migration workflow. + * @type string $console_uri + * The Cloud Console URI for the migration workflow. * } */ public function __construct($data = NULL) { @@ -97,5 +105,31 @@ public function setReportLogMessages($var) return $this; } + /** + * The Cloud Console URI for the migration workflow. + * + * Generated from protobuf field string console_uri = 3; + * @return string + */ + public function getConsoleUri() + { + return $this->console_uri; + } + + /** + * The Cloud Console URI for the migration workflow. + * + * Generated from protobuf field string console_uri = 3; + * @param string $var + * @return $this + */ + public function setConsoleUri($var) + { + GPBUtil::checkString($var, True); + $this->console_uri = $var; + + return $this; + } + } diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationEntities.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationEntities.php deleted file mode 100644 index 94a42b94cfce..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationEntities.php +++ /dev/null @@ -1,34 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x9D\x1C\x0A;google/cloud/bigquery/migration/v2/migration_entities.proto\x12\"google.cloud.bigquery.migration.v2\x1A\x19google/api/resource.proto\x1A8google/cloud/bigquery/migration/v2/assessment_task.proto\x1A@google/cloud/bigquery/migration/v2/migration_error_details.proto\x1A:google/cloud/bigquery/migration/v2/migration_metrics.proto\x1A;google/cloud/bigquery/migration/v2/translation_config.proto\x1Agoogle/cloud/bigquery/migration/v2/translation_usability.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x1Egoogle/rpc/error_details.proto\"\x80\x05\x0A\x11MigrationWorkflow\x12\x17\x0A\x04name\x18\x01 \x01(\x09B\x09\xE0A\x03\xE0A\x05\xE0A\x08\x12\x14\x0A\x0Cdisplay_name\x18\x06 \x01(\x09\x12O\x0A\x05tasks\x18\x02 \x03(\x0B2@.google.cloud.bigquery.migration.v2.MigrationWorkflow.TasksEntry\x12O\x0A\x05state\x18\x03 \x01(\x0E2;.google.cloud.bigquery.migration.v2.MigrationWorkflow.StateB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x129\x0A\x10last_update_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x1A_\x0A\x0ATasksEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12@\x0A\x05value\x18\x02 \x01(\x0B21.google.cloud.bigquery.migration.v2.MigrationTask:\x028\x01\"Q\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05DRAFT\x10\x01\x12\x0B\x0A\x07RUNNING\x10\x02\x12\x0A\x0A\x06PAUSED\x10\x03\x12\x0D\x0A\x09COMPLETED\x10\x04:u\xEAAr\x0A2bigquerymigration.googleapis.com/MigrationWorkflow\x12internalAddGeneratedFile( - "\x0A\xDF\x05\x0A@google/cloud/bigquery/migration/v2/migration_error_details.proto\x12\"google.cloud.bigquery.migration.v2\x1A\x1Egoogle/rpc/error_details.proto\"\xB2\x01\x0A\x13ResourceErrorDetail\x124\x0A\x0Dresource_info\x18\x01 \x01(\x0B2\x18.google.rpc.ResourceInfoB\x03\xE0A\x02\x12K\x0A\x0Derror_details\x18\x02 \x03(\x0B2/.google.cloud.bigquery.migration.v2.ErrorDetailB\x03\xE0A\x02\x12\x18\x0A\x0Berror_count\x18\x03 \x01(\x05B\x03\xE0A\x02\"\x87\x01\x0A\x0BErrorDetail\x12H\x0A\x08location\x18\x01 \x01(\x0B21.google.cloud.bigquery.migration.v2.ErrorLocationB\x03\xE0A\x01\x12.\x0A\x0Aerror_info\x18\x02 \x01(\x0B2\x15.google.rpc.ErrorInfoB\x03\xE0A\x02\"7\x0A\x0DErrorLocation\x12\x11\x0A\x04line\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x13\x0A\x06column\x18\x02 \x01(\x05B\x03\xE0A\x01B\xD6\x01\x0A&com.google.cloud.bigquery.migration.v2B\x1AMigrationErrorDetailsProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xAA\x02\"Google.Cloud.BigQuery.Migration.V2\xCA\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationMetrics.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationMetrics.php deleted file mode 100644 index 8fc601dfbcc9..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationMetrics.php +++ /dev/null @@ -1,28 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB1\x08\x0A:google/cloud/bigquery/migration/v2/migration_metrics.proto\x12\"google.cloud.bigquery.migration.v2\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x17google/api/metric.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xE5\x01\x0A\x0ATimeSeries\x12\x13\x0A\x06metric\x18\x01 \x01(\x09B\x03\xE0A\x02\x12?\x0A\x0Avalue_type\x18\x02 \x01(\x0E2&.google.api.MetricDescriptor.ValueTypeB\x03\xE0A\x02\x12A\x0A\x0Bmetric_kind\x18\x03 \x01(\x0E2'.google.api.MetricDescriptor.MetricKindB\x03\xE0A\x01\x12>\x0A\x06points\x18\x04 \x03(\x0B2).google.cloud.bigquery.migration.v2.PointB\x03\xE0A\x02\"\x8A\x01\x0A\x05Point\x12B\x0A\x08interval\x18\x01 \x01(\x0B20.google.cloud.bigquery.migration.v2.TimeInterval\x12=\x0A\x05value\x18\x02 \x01(\x0B2..google.cloud.bigquery.migration.v2.TypedValue\"v\x0A\x0CTimeInterval\x123\x0A\x0Astart_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x02\"\xAA\x01\x0A\x0ATypedValue\x12\x14\x0A\x0Abool_value\x18\x01 \x01(\x08H\x00\x12\x15\x0A\x0Bint64_value\x18\x02 \x01(\x03H\x00\x12\x16\x0A\x0Cdouble_value\x18\x03 \x01(\x01H\x00\x12\x16\x0A\x0Cstring_value\x18\x04 \x01(\x09H\x00\x126\x0A\x12distribution_value\x18\x05 \x01(\x0B2\x18.google.api.DistributionH\x00B\x07\x0A\x05valueB\xD1\x01\x0A&com.google.cloud.bigquery.migration.v2B\x15MigrationMetricsProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xAA\x02\"Google.Cloud.BigQuery.Migration.V2\xCA\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationService.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationService.php deleted file mode 100644 index 1f61eb27691e..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/MigrationService.php +++ /dev/null @@ -1,31 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xD4\x1B\x0A:google/cloud/bigquery/migration/v2/migration_service.proto\x12\"google.cloud.bigquery.migration.v2\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A;google/cloud/bigquery/migration/v2/migration_entities.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\"\xB3\x01\x0A\x1ECreateMigrationWorkflowRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12V\x0A\x12migration_workflow\x18\x02 \x01(\x0B25.google.cloud.bigquery.migration.v2.MigrationWorkflowB\x03\xE0A\x02\"\x96\x01\x0A\x1BGetMigrationWorkflowRequest\x12H\x0A\x04name\x18\x01 \x01(\x09B:\xE0A\x02\xFAA4\x0A2bigquerymigration.googleapis.com/MigrationWorkflow\x12-\x0A\x09read_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\"\xB0\x01\x0A\x1DListMigrationWorkflowsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12-\x0A\x09read_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x04 \x01(\x09\"\x8D\x01\x0A\x1EListMigrationWorkflowsResponse\x12R\x0A\x13migration_workflows\x18\x01 \x03(\x0B25.google.cloud.bigquery.migration.v2.MigrationWorkflow\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"j\x0A\x1EDeleteMigrationWorkflowRequest\x12H\x0A\x04name\x18\x01 \x01(\x09B:\xE0A\x02\xFAA4\x0A2bigquerymigration.googleapis.com/MigrationWorkflow\"i\x0A\x1DStartMigrationWorkflowRequest\x12H\x0A\x04name\x18\x01 \x01(\x09B:\xE0A\x02\xFAA4\x0A2bigquerymigration.googleapis.com/MigrationWorkflow\"\x99\x01\x0A\x1AGetMigrationSubtaskRequest\x12G\x0A\x04name\x18\x01 \x01(\x09B9\xE0A\x02\xFAA3\x0A1bigquerymigration.googleapis.com/MigrationSubtask\x122\x0A\x09read_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\xE4\x01\x0A\x1CListMigrationSubtasksRequest\x12J\x0A\x06parent\x18\x01 \x01(\x09B:\xE0A\x02\xFAA4\x0A2bigquerymigration.googleapis.com/MigrationWorkflow\x122\x0A\x09read_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x8A\x01\x0A\x1DListMigrationSubtasksResponse\x12P\x0A\x12migration_subtasks\x18\x01 \x03(\x0B24.google.cloud.bigquery.migration.v2.MigrationSubtask\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x092\xCB\x0C\x0A\x10MigrationService\x12\xFB\x01\x0A\x17CreateMigrationWorkflow\x12B.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest\x1A5.google.cloud.bigquery.migration.v2.MigrationWorkflow\"e\xDAA\x19parent,migration_workflow\x82\xD3\xE4\x93\x02C\"-/v2/{parent=projects/*/locations/*}/workflows:\x12migration_workflow\x12\xCC\x01\x0A\x14GetMigrationWorkflow\x12?.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest\x1A5.google.cloud.bigquery.migration.v2.MigrationWorkflow\"<\xDAA\x04name\x82\xD3\xE4\x93\x02/\x12-/v2/{name=projects/*/locations/*/workflows/*}\x12\xDF\x01\x0A\x16ListMigrationWorkflows\x12A.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest\x1AB.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse\">\xDAA\x06parent\x82\xD3\xE4\x93\x02/\x12-/v2/{parent=projects/*/locations/*}/workflows\x12\xB3\x01\x0A\x17DeleteMigrationWorkflow\x12B.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest\x1A\x16.google.protobuf.Empty\"<\xDAA\x04name\x82\xD3\xE4\x93\x02/*-/v2/{name=projects/*/locations/*/workflows/*}\x12\xBA\x01\x0A\x16StartMigrationWorkflow\x12A.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest\x1A\x16.google.protobuf.Empty\"E\xDAA\x04name\x82\xD3\xE4\x93\x028\"3/v2/{name=projects/*/locations/*/workflows/*}:start:\x01*\x12\xD4\x01\x0A\x13GetMigrationSubtask\x12>.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest\x1A4.google.cloud.bigquery.migration.v2.MigrationSubtask\"G\xDAA\x04name\x82\xD3\xE4\x93\x02:\x128/v2/{name=projects/*/locations/*/workflows/*/subtasks/*}\x12\xE7\x01\x0A\x15ListMigrationSubtasks\x12@.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest\x1AA.google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse\"I\xDAA\x06parent\x82\xD3\xE4\x93\x02:\x128/v2/{parent=projects/*/locations/*/workflows/*}/subtasks\x1AT\xCAA bigquerymigration.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\xD1\x01\x0A&com.google.cloud.bigquery.migration.v2B\x15MigrationServiceProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xAA\x02\"Google.Cloud.BigQuery.Migration.V2\xCA\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationConfig.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationConfig.php deleted file mode 100644 index 0f07392c9aeb..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationConfig.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB6\x1A\x0A;google/cloud/bigquery/migration/v2/translation_config.proto\x12\"google.cloud.bigquery.migration.v2\"\xE0\x03\x0A\x18TranslationConfigDetails\x12\x19\x0A\x0Fgcs_source_path\x18\x01 \x01(\x09H\x00\x12\x19\x0A\x0Fgcs_target_path\x18\x02 \x01(\x09H\x01\x12V\x0A\x11name_mapping_list\x18\x05 \x01(\x0B29.google.cloud.bigquery.migration.v2.ObjectNameMappingListH\x02\x12C\x0A\x0Esource_dialect\x18\x03 \x01(\x0B2+.google.cloud.bigquery.migration.v2.Dialect\x12C\x0A\x0Etarget_dialect\x18\x04 \x01(\x0B2+.google.cloud.bigquery.migration.v2.Dialect\x12A\x0A\x0Asource_env\x18\x06 \x01(\x0B2-.google.cloud.bigquery.migration.v2.SourceEnv\x12\x16\x0A\x0Erequest_source\x18\x08 \x01(\x09\x12\x14\x0A\x0Ctarget_types\x18\x09 \x03(\x09B\x11\x0A\x0Fsource_locationB\x11\x0A\x0Ftarget_locationB\x15\x0A\x13output_name_mapping\"\xEB\x0A\x0A\x07Dialect\x12O\x0A\x10bigquery_dialect\x18\x01 \x01(\x0B23.google.cloud.bigquery.migration.v2.BigQueryDialectH\x00\x12K\x0A\x0Ehiveql_dialect\x18\x02 \x01(\x0B21.google.cloud.bigquery.migration.v2.HiveQLDialectH\x00\x12O\x0A\x10redshift_dialect\x18\x03 \x01(\x0B23.google.cloud.bigquery.migration.v2.RedshiftDialectH\x00\x12O\x0A\x10teradata_dialect\x18\x04 \x01(\x0B23.google.cloud.bigquery.migration.v2.TeradataDialectH\x00\x12K\x0A\x0Eoracle_dialect\x18\x05 \x01(\x0B21.google.cloud.bigquery.migration.v2.OracleDialectH\x00\x12O\x0A\x10sparksql_dialect\x18\x06 \x01(\x0B23.google.cloud.bigquery.migration.v2.SparkSQLDialectH\x00\x12Q\x0A\x11snowflake_dialect\x18\x07 \x01(\x0B24.google.cloud.bigquery.migration.v2.SnowflakeDialectH\x00\x12M\x0A\x0Fnetezza_dialect\x18\x08 \x01(\x0B22.google.cloud.bigquery.migration.v2.NetezzaDialectH\x00\x12X\x0A\x15azure_synapse_dialect\x18\x09 \x01(\x0B27.google.cloud.bigquery.migration.v2.AzureSynapseDialectH\x00\x12M\x0A\x0Fvertica_dialect\x18\x0A \x01(\x0B22.google.cloud.bigquery.migration.v2.VerticaDialectH\x00\x12R\x0A\x12sql_server_dialect\x18\x0B \x01(\x0B24.google.cloud.bigquery.migration.v2.SQLServerDialectH\x00\x12S\x0A\x12postgresql_dialect\x18\x0C \x01(\x0B25.google.cloud.bigquery.migration.v2.PostgresqlDialectH\x00\x12K\x0A\x0Epresto_dialect\x18\x0D \x01(\x0B21.google.cloud.bigquery.migration.v2.PrestoDialectH\x00\x12I\x0A\x0Dmysql_dialect\x18\x0E \x01(\x0B20.google.cloud.bigquery.migration.v2.MySQLDialectH\x00\x12E\x0A\x0Bdb2_dialect\x18\x0F \x01(\x0B2..google.cloud.bigquery.migration.v2.DB2DialectH\x00\x12K\x0A\x0Esqlite_dialect\x18\x10 \x01(\x0B21.google.cloud.bigquery.migration.v2.SQLiteDialectH\x00\x12Q\x0A\x11greenplum_dialect\x18\x11 \x01(\x0B24.google.cloud.bigquery.migration.v2.GreenplumDialectH\x00B\x0F\x0A\x0Ddialect_value\"\x11\x0A\x0FBigQueryDialect\"\x0F\x0A\x0DHiveQLDialect\"\x11\x0A\x0FRedshiftDialect\"\x8A\x01\x0A\x0FTeradataDialect\x12F\x0A\x04mode\x18\x01 \x01(\x0E28.google.cloud.bigquery.migration.v2.TeradataDialect.Mode\"/\x0A\x04Mode\x12\x14\x0A\x10MODE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03SQL\x10\x01\x12\x08\x0A\x04BTEQ\x10\x02\"\x0F\x0A\x0DOracleDialect\"\x11\x0A\x0FSparkSQLDialect\"\x12\x0A\x10SnowflakeDialect\"\x10\x0A\x0ENetezzaDialect\"\x15\x0A\x13AzureSynapseDialect\"\x10\x0A\x0EVerticaDialect\"\x12\x0A\x10SQLServerDialect\"\x13\x0A\x11PostgresqlDialect\"\x0F\x0A\x0DPrestoDialect\"\x0E\x0A\x0CMySQLDialect\"\x0C\x0A\x0ADB2Dialect\"\x0F\x0A\x0DSQLiteDialect\"\x12\x0A\x10GreenplumDialect\"`\x0A\x15ObjectNameMappingList\x12G\x0A\x08name_map\x18\x01 \x03(\x0B25.google.cloud.bigquery.migration.v2.ObjectNameMapping\"\x9D\x01\x0A\x11ObjectNameMapping\x12B\x0A\x06source\x18\x01 \x01(\x0B22.google.cloud.bigquery.migration.v2.NameMappingKey\x12D\x0A\x06target\x18\x02 \x01(\x0B24.google.cloud.bigquery.migration.v2.NameMappingValue\"\xAB\x02\x0A\x0ENameMappingKey\x12E\x0A\x04type\x18\x01 \x01(\x0E27.google.cloud.bigquery.migration.v2.NameMappingKey.Type\x12\x10\x0A\x08database\x18\x02 \x01(\x09\x12\x0E\x0A\x06schema\x18\x03 \x01(\x09\x12\x10\x0A\x08relation\x18\x04 \x01(\x09\x12\x11\x0A\x09attribute\x18\x05 \x01(\x09\"\x8A\x01\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08DATABASE\x10\x01\x12\x0A\x0A\x06SCHEMA\x10\x02\x12\x0C\x0A\x08RELATION\x10\x03\x12\x0D\x0A\x09ATTRIBUTE\x10\x04\x12\x12\x0A\x0ERELATION_ALIAS\x10\x05\x12\x13\x0A\x0FATTRIBUTE_ALIAS\x10\x06\x12\x0C\x0A\x08FUNCTION\x10\x07\"Y\x0A\x10NameMappingValue\x12\x10\x0A\x08database\x18\x01 \x01(\x09\x12\x0E\x0A\x06schema\x18\x02 \x01(\x09\x12\x10\x0A\x08relation\x18\x03 \x01(\x09\x12\x11\x0A\x09attribute\x18\x04 \x01(\x09\"f\x0A\x09SourceEnv\x12\x18\x0A\x10default_database\x18\x01 \x01(\x09\x12\x1A\x0A\x12schema_search_path\x18\x02 \x03(\x09\x12#\x0A\x16metadata_store_dataset\x18\x03 \x01(\x09B\x03\xE0A\x01B\xD2\x01\x0A&com.google.cloud.bigquery.migration.v2B\x16TranslationConfigProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xAA\x02\"Google.Cloud.BigQuery.Migration.V2\xCA\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationDetails.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationDetails.php deleted file mode 100644 index d527ccf4d836..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationDetails.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xCA\x0D\x0A\x0A\x07literal\x18\x02 \x01(\x0B2+.google.cloud.bigquery.migration.v2.LiteralH\x00\x12\x17\x0A\x0Dgcs_file_path\x18\x04 \x01(\x09H\x00\x12\x15\x0A\x08encoding\x18\x03 \x01(\x09B\x03\xE0A\x01B\x08\x0A\x06source\"#\x0A\x0ATargetSpec\x12\x15\x0A\x0Drelative_path\x18\x01 \x01(\x09\"h\x0A\x07Literal\x12\x18\x0A\x0Eliteral_string\x18\x02 \x01(\x09H\x00\x12\x17\x0A\x0Dliteral_bytes\x18\x03 \x01(\x0CH\x00\x12\x1A\x0A\x0Drelative_path\x18\x01 \x01(\x09B\x03\xE0A\x02B\x0E\x0A\x0Cliteral_data\"n\x0A\x11SourceEnvironment\x12\x18\x0A\x10default_database\x18\x01 \x01(\x09\x12\x1A\x0A\x12schema_search_path\x18\x02 \x03(\x09\x12#\x0A\x16metadata_store_dataset\x18\x03 \x01(\x09B\x03\xE0A\x01B\xD3\x01\x0A&com.google.cloud.bigquery.migration.v2B\x17TranslationDetailsProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xAA\x02\"Google.Cloud.BigQuery.Migration.V2\xCA\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationSuggestion.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationSuggestion.php deleted file mode 100644 index 528a1b12b9c3..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationSuggestion.php +++ /dev/null @@ -1,26 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xEC\x04\x0A?google/cloud/bigquery/migration/v2/translation_suggestion.proto\x12\"google.cloud.bigquery.migration.v2\x1A\x19google/api/resource.proto\"\x88\x02\x0A\x17TranslationReportRecord\x12V\x0A\x08severity\x18\x01 \x01(\x0E2D.google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity\x12\x13\x0A\x0Bscript_line\x18\x02 \x01(\x05\x12\x15\x0A\x0Dscript_column\x18\x03 \x01(\x05\x12\x10\x0A\x08category\x18\x04 \x01(\x09\x12\x0F\x0A\x07message\x18\x05 \x01(\x09\"F\x0A\x08Severity\x12\x18\x0A\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x08\x0A\x04INFO\x10\x01\x12\x0B\x0A\x07WARNING\x10\x02\x12\x09\x0A\x05ERROR\x10\x03B\xD6\x01\x0A&com.google.cloud.bigquery.migration.v2B\x1ATranslationSuggestionProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xAA\x02\"Google.Cloud.BigQuery.Migration.V2\xCA\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationUsability.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationUsability.php deleted file mode 100644 index 02e7143098b7..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/GPBMetadata/Google/Cloud/Bigquery/Migration/V2/TranslationUsability.php +++ /dev/null @@ -1,26 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xD8\x04\x0A>google/cloud/bigquery/migration/v2/translation_usability.proto\x12\"google.cloud.bigquery.migration.v2\x1A\x19google/api/resource.proto\"\xF6\x01\x0A\x13GcsReportLogMessage\x12\x10\x0A\x08severity\x18\x01 \x01(\x09\x12\x10\x0A\x08category\x18\x02 \x01(\x09\x12\x11\x0A\x09file_path\x18\x03 \x01(\x09\x12\x10\x0A\x08filename\x18\x04 \x01(\x09\x12\x1A\x0A\x12source_script_line\x18\x05 \x01(\x05\x12\x1C\x0A\x14source_script_column\x18\x06 \x01(\x05\x12\x0F\x0A\x07message\x18\x07 \x01(\x09\x12\x16\x0A\x0Escript_context\x18\x08 \x01(\x09\x12\x0E\x0A\x06action\x18\x09 \x01(\x09\x12\x0E\x0A\x06effect\x18\x0A \x01(\x09\x12\x13\x0A\x0Bobject_name\x18\x0B \x01(\x09B\xD5\x01\x0A&com.google.cloud.bigquery.migration.v2B\x19TranslationUsabilityProtoP\x01ZDcloud.google.com/go/bigquery/migration/apiv2/migrationpb;migrationpb\xAA\x02\"Google.Cloud.BigQuery.Migration.V2\xCA\x02\"Google\\Cloud\\BigQuery\\Migration\\V2b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/AzureSynapseDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/AzureSynapseDialect.php deleted file mode 100644 index 5ab05cf09ad0..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/AzureSynapseDialect.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.bigquery.migration.v2.AzureSynapseDialect - */ -class AzureSynapseDialect extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/BigQueryDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/BigQueryDialect.php deleted file mode 100644 index 5d493375b3bc..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/BigQueryDialect.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.bigquery.migration.v2.BigQueryDialect - */ -class BigQueryDialect extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/CreateMigrationWorkflowRequest.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/CreateMigrationWorkflowRequest.php deleted file mode 100644 index a14ddc1e0532..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/CreateMigrationWorkflowRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest - */ -class CreateMigrationWorkflowRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the project to which this migration workflow belongs. - * Example: `projects/foo/locations/bar` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The migration workflow to create. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $migration_workflow = null; - - /** - * @param string $parent Required. The name of the project to which this migration workflow belongs. - * Example: `projects/foo/locations/bar` - * Please see {@see MigrationServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow $migrationWorkflow Required. The migration workflow to create. - * - * @return \Google\Cloud\BigQuery\Migration\V2\CreateMigrationWorkflowRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow $migrationWorkflow): self - { - return (new self()) - ->setParent($parent) - ->setMigrationWorkflow($migrationWorkflow); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the project to which this migration workflow belongs. - * Example: `projects/foo/locations/bar` - * @type \Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow $migration_workflow - * Required. The migration workflow to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the project to which this migration workflow belongs. - * Example: `projects/foo/locations/bar` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The name of the project to which this migration workflow belongs. - * Example: `projects/foo/locations/bar` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The migration workflow to create. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow|null - */ - public function getMigrationWorkflow() - { - return $this->migration_workflow; - } - - public function hasMigrationWorkflow() - { - return isset($this->migration_workflow); - } - - public function clearMigrationWorkflow() - { - unset($this->migration_workflow); - } - - /** - * Required. The migration workflow to create. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow $var - * @return $this - */ - public function setMigrationWorkflow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow::class); - $this->migration_workflow = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/DB2Dialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/DB2Dialect.php deleted file mode 100644 index 809082edc644..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/DB2Dialect.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.bigquery.migration.v2.DB2Dialect - */ -class DB2Dialect extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/DeleteMigrationWorkflowRequest.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/DeleteMigrationWorkflowRequest.php deleted file mode 100644 index 0c40f56ed888..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/DeleteMigrationWorkflowRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest - */ -class DeleteMigrationWorkflowRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique identifier for the migration workflow. - * Example: `projects/123/locations/us/workflows/1234` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The unique identifier for the migration workflow. - * Example: `projects/123/locations/us/workflows/1234` - * Please see {@see MigrationServiceClient::migrationWorkflowName()} for help formatting this field. - * - * @return \Google\Cloud\BigQuery\Migration\V2\DeleteMigrationWorkflowRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique identifier for the migration workflow. - * Example: `projects/123/locations/us/workflows/1234` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique identifier for the migration workflow. - * Example: `projects/123/locations/us/workflows/1234` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique identifier for the migration workflow. - * Example: `projects/123/locations/us/workflows/1234` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Dialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Dialect.php deleted file mode 100644 index 89cf8188c047..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Dialect.php +++ /dev/null @@ -1,603 +0,0 @@ -google.cloud.bigquery.migration.v2.Dialect - */ -class Dialect extends \Google\Protobuf\Internal\Message -{ - protected $dialect_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\BigQuery\Migration\V2\BigQueryDialect $bigquery_dialect - * The BigQuery dialect - * @type \Google\Cloud\BigQuery\Migration\V2\HiveQLDialect $hiveql_dialect - * The HiveQL dialect - * @type \Google\Cloud\BigQuery\Migration\V2\RedshiftDialect $redshift_dialect - * The Redshift dialect - * @type \Google\Cloud\BigQuery\Migration\V2\TeradataDialect $teradata_dialect - * The Teradata dialect - * @type \Google\Cloud\BigQuery\Migration\V2\OracleDialect $oracle_dialect - * The Oracle dialect - * @type \Google\Cloud\BigQuery\Migration\V2\SparkSQLDialect $sparksql_dialect - * The SparkSQL dialect - * @type \Google\Cloud\BigQuery\Migration\V2\SnowflakeDialect $snowflake_dialect - * The Snowflake dialect - * @type \Google\Cloud\BigQuery\Migration\V2\NetezzaDialect $netezza_dialect - * The Netezza dialect - * @type \Google\Cloud\BigQuery\Migration\V2\AzureSynapseDialect $azure_synapse_dialect - * The Azure Synapse dialect - * @type \Google\Cloud\BigQuery\Migration\V2\VerticaDialect $vertica_dialect - * The Vertica dialect - * @type \Google\Cloud\BigQuery\Migration\V2\SQLServerDialect $sql_server_dialect - * The SQL Server dialect - * @type \Google\Cloud\BigQuery\Migration\V2\PostgresqlDialect $postgresql_dialect - * The Postgresql dialect - * @type \Google\Cloud\BigQuery\Migration\V2\PrestoDialect $presto_dialect - * The Presto dialect - * @type \Google\Cloud\BigQuery\Migration\V2\MySQLDialect $mysql_dialect - * The MySQL dialect - * @type \Google\Cloud\BigQuery\Migration\V2\DB2Dialect $db2_dialect - * DB2 dialect - * @type \Google\Cloud\BigQuery\Migration\V2\SQLiteDialect $sqlite_dialect - * SQLite dialect - * @type \Google\Cloud\BigQuery\Migration\V2\GreenplumDialect $greenplum_dialect - * Greenplum dialect - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - - /** - * The BigQuery dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.BigQueryDialect bigquery_dialect = 1; - * @return \Google\Cloud\BigQuery\Migration\V2\BigQueryDialect|null - */ - public function getBigqueryDialect() - { - return $this->readOneof(1); - } - - public function hasBigqueryDialect() - { - return $this->hasOneof(1); - } - - /** - * The BigQuery dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.BigQueryDialect bigquery_dialect = 1; - * @param \Google\Cloud\BigQuery\Migration\V2\BigQueryDialect $var - * @return $this - */ - public function setBigqueryDialect($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\BigQueryDialect::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The HiveQL dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.HiveQLDialect hiveql_dialect = 2; - * @return \Google\Cloud\BigQuery\Migration\V2\HiveQLDialect|null - */ - public function getHiveqlDialect() - { - return $this->readOneof(2); - } - - public function hasHiveqlDialect() - { - return $this->hasOneof(2); - } - - /** - * The HiveQL dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.HiveQLDialect hiveql_dialect = 2; - * @param \Google\Cloud\BigQuery\Migration\V2\HiveQLDialect $var - * @return $this - */ - public function setHiveqlDialect($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\HiveQLDialect::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The Redshift dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.RedshiftDialect redshift_dialect = 3; - * @return \Google\Cloud\BigQuery\Migration\V2\RedshiftDialect|null - */ - public function getRedshiftDialect() - { - return $this->readOneof(3); - } - - public function hasRedshiftDialect() - { - return $this->hasOneof(3); - } - - /** - * The Redshift dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.RedshiftDialect redshift_dialect = 3; - * @param \Google\Cloud\BigQuery\Migration\V2\RedshiftDialect $var - * @return $this - */ - public function setRedshiftDialect($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\RedshiftDialect::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The Teradata dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TeradataDialect teradata_dialect = 4; - * @return \Google\Cloud\BigQuery\Migration\V2\TeradataDialect|null - */ - public function getTeradataDialect() - { - return $this->readOneof(4); - } - - public function hasTeradataDialect() - { - return $this->hasOneof(4); - } - - /** - * The Teradata dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TeradataDialect teradata_dialect = 4; - * @param \Google\Cloud\BigQuery\Migration\V2\TeradataDialect $var - * @return $this - */ - public function setTeradataDialect($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\TeradataDialect::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * The Oracle dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.OracleDialect oracle_dialect = 5; - * @return \Google\Cloud\BigQuery\Migration\V2\OracleDialect|null - */ - public function getOracleDialect() - { - return $this->readOneof(5); - } - - public function hasOracleDialect() - { - return $this->hasOneof(5); - } - - /** - * The Oracle dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.OracleDialect oracle_dialect = 5; - * @param \Google\Cloud\BigQuery\Migration\V2\OracleDialect $var - * @return $this - */ - public function setOracleDialect($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\OracleDialect::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * The SparkSQL dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.SparkSQLDialect sparksql_dialect = 6; - * @return \Google\Cloud\BigQuery\Migration\V2\SparkSQLDialect|null - */ - public function getSparksqlDialect() - { - return $this->readOneof(6); - } - - public function hasSparksqlDialect() - { - return $this->hasOneof(6); - } - - /** - * The SparkSQL dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.SparkSQLDialect sparksql_dialect = 6; - * @param \Google\Cloud\BigQuery\Migration\V2\SparkSQLDialect $var - * @return $this - */ - public function setSparksqlDialect($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\SparkSQLDialect::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * The Snowflake dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.SnowflakeDialect snowflake_dialect = 7; - * @return \Google\Cloud\BigQuery\Migration\V2\SnowflakeDialect|null - */ - public function getSnowflakeDialect() - { - return $this->readOneof(7); - } - - public function hasSnowflakeDialect() - { - return $this->hasOneof(7); - } - - /** - * The Snowflake dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.SnowflakeDialect snowflake_dialect = 7; - * @param \Google\Cloud\BigQuery\Migration\V2\SnowflakeDialect $var - * @return $this - */ - public function setSnowflakeDialect($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\SnowflakeDialect::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * The Netezza dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.NetezzaDialect netezza_dialect = 8; - * @return \Google\Cloud\BigQuery\Migration\V2\NetezzaDialect|null - */ - public function getNetezzaDialect() - { - return $this->readOneof(8); - } - - public function hasNetezzaDialect() - { - return $this->hasOneof(8); - } - - /** - * The Netezza dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.NetezzaDialect netezza_dialect = 8; - * @param \Google\Cloud\BigQuery\Migration\V2\NetezzaDialect $var - * @return $this - */ - public function setNetezzaDialect($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\NetezzaDialect::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * The Azure Synapse dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; - * @return \Google\Cloud\BigQuery\Migration\V2\AzureSynapseDialect|null - */ - public function getAzureSynapseDialect() - { - return $this->readOneof(9); - } - - public function hasAzureSynapseDialect() - { - return $this->hasOneof(9); - } - - /** - * The Azure Synapse dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.AzureSynapseDialect azure_synapse_dialect = 9; - * @param \Google\Cloud\BigQuery\Migration\V2\AzureSynapseDialect $var - * @return $this - */ - public function setAzureSynapseDialect($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\AzureSynapseDialect::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * The Vertica dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.VerticaDialect vertica_dialect = 10; - * @return \Google\Cloud\BigQuery\Migration\V2\VerticaDialect|null - */ - public function getVerticaDialect() - { - return $this->readOneof(10); - } - - public function hasVerticaDialect() - { - return $this->hasOneof(10); - } - - /** - * The Vertica dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.VerticaDialect vertica_dialect = 10; - * @param \Google\Cloud\BigQuery\Migration\V2\VerticaDialect $var - * @return $this - */ - public function setVerticaDialect($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\VerticaDialect::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * The SQL Server dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; - * @return \Google\Cloud\BigQuery\Migration\V2\SQLServerDialect|null - */ - public function getSqlServerDialect() - { - return $this->readOneof(11); - } - - public function hasSqlServerDialect() - { - return $this->hasOneof(11); - } - - /** - * The SQL Server dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.SQLServerDialect sql_server_dialect = 11; - * @param \Google\Cloud\BigQuery\Migration\V2\SQLServerDialect $var - * @return $this - */ - public function setSqlServerDialect($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\SQLServerDialect::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * The Postgresql dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; - * @return \Google\Cloud\BigQuery\Migration\V2\PostgresqlDialect|null - */ - public function getPostgresqlDialect() - { - return $this->readOneof(12); - } - - public function hasPostgresqlDialect() - { - return $this->hasOneof(12); - } - - /** - * The Postgresql dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.PostgresqlDialect postgresql_dialect = 12; - * @param \Google\Cloud\BigQuery\Migration\V2\PostgresqlDialect $var - * @return $this - */ - public function setPostgresqlDialect($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\PostgresqlDialect::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * The Presto dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; - * @return \Google\Cloud\BigQuery\Migration\V2\PrestoDialect|null - */ - public function getPrestoDialect() - { - return $this->readOneof(13); - } - - public function hasPrestoDialect() - { - return $this->hasOneof(13); - } - - /** - * The Presto dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.PrestoDialect presto_dialect = 13; - * @param \Google\Cloud\BigQuery\Migration\V2\PrestoDialect $var - * @return $this - */ - public function setPrestoDialect($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\PrestoDialect::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * The MySQL dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.MySQLDialect mysql_dialect = 14; - * @return \Google\Cloud\BigQuery\Migration\V2\MySQLDialect|null - */ - public function getMysqlDialect() - { - return $this->readOneof(14); - } - - public function hasMysqlDialect() - { - return $this->hasOneof(14); - } - - /** - * The MySQL dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.MySQLDialect mysql_dialect = 14; - * @param \Google\Cloud\BigQuery\Migration\V2\MySQLDialect $var - * @return $this - */ - public function setMysqlDialect($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\MySQLDialect::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * DB2 dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.DB2Dialect db2_dialect = 15; - * @return \Google\Cloud\BigQuery\Migration\V2\DB2Dialect|null - */ - public function getDb2Dialect() - { - return $this->readOneof(15); - } - - public function hasDb2Dialect() - { - return $this->hasOneof(15); - } - - /** - * DB2 dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.DB2Dialect db2_dialect = 15; - * @param \Google\Cloud\BigQuery\Migration\V2\DB2Dialect $var - * @return $this - */ - public function setDb2Dialect($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\DB2Dialect::class); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * SQLite dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.SQLiteDialect sqlite_dialect = 16; - * @return \Google\Cloud\BigQuery\Migration\V2\SQLiteDialect|null - */ - public function getSqliteDialect() - { - return $this->readOneof(16); - } - - public function hasSqliteDialect() - { - return $this->hasOneof(16); - } - - /** - * SQLite dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.SQLiteDialect sqlite_dialect = 16; - * @param \Google\Cloud\BigQuery\Migration\V2\SQLiteDialect $var - * @return $this - */ - public function setSqliteDialect($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\SQLiteDialect::class); - $this->writeOneof(16, $var); - - return $this; - } - - /** - * Greenplum dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.GreenplumDialect greenplum_dialect = 17; - * @return \Google\Cloud\BigQuery\Migration\V2\GreenplumDialect|null - */ - public function getGreenplumDialect() - { - return $this->readOneof(17); - } - - public function hasGreenplumDialect() - { - return $this->hasOneof(17); - } - - /** - * Greenplum dialect - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.GreenplumDialect greenplum_dialect = 17; - * @param \Google\Cloud\BigQuery\Migration\V2\GreenplumDialect $var - * @return $this - */ - public function setGreenplumDialect($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\GreenplumDialect::class); - $this->writeOneof(17, $var); - - return $this; - } - - /** - * @return string - */ - public function getDialectValue() - { - return $this->whichOneof("dialect_value"); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ErrorDetail.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ErrorDetail.php deleted file mode 100644 index 58180820a844..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ErrorDetail.php +++ /dev/null @@ -1,122 +0,0 @@ -google.cloud.bigquery.migration.v2.ErrorDetail - */ -class ErrorDetail extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The exact location within the resource (if applicable). - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $location = null; - /** - * Required. Describes the cause of the error with structured detail. - * - * Generated from protobuf field .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $error_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\BigQuery\Migration\V2\ErrorLocation $location - * Optional. The exact location within the resource (if applicable). - * @type \Google\Rpc\ErrorInfo $error_info - * Required. Describes the cause of the error with structured detail. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The exact location within the resource (if applicable). - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\BigQuery\Migration\V2\ErrorLocation|null - */ - public function getLocation() - { - return $this->location; - } - - public function hasLocation() - { - return isset($this->location); - } - - public function clearLocation() - { - unset($this->location); - } - - /** - * Optional. The exact location within the resource (if applicable). - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.ErrorLocation location = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\BigQuery\Migration\V2\ErrorLocation $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\ErrorLocation::class); - $this->location = $var; - - return $this; - } - - /** - * Required. Describes the cause of the error with structured detail. - * - * Generated from protobuf field .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Rpc\ErrorInfo|null - */ - public function getErrorInfo() - { - return $this->error_info; - } - - public function hasErrorInfo() - { - return isset($this->error_info); - } - - public function clearErrorInfo() - { - unset($this->error_info); - } - - /** - * Required. Describes the cause of the error with structured detail. - * - * Generated from protobuf field .google.rpc.ErrorInfo error_info = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Rpc\ErrorInfo $var - * @return $this - */ - public function setErrorInfo($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\ErrorInfo::class); - $this->error_info = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ErrorLocation.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ErrorLocation.php deleted file mode 100644 index 60944b8f1f30..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ErrorLocation.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.bigquery.migration.v2.ErrorLocation - */ -class ErrorLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. If applicable, denotes the line where the error occurred. A zero - * value means that there is no line information. - * - * Generated from protobuf field int32 line = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $line = 0; - /** - * Optional. If applicable, denotes the column where the error occurred. A - * zero value means that there is no columns information. - * - * Generated from protobuf field int32 column = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $column = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $line - * Optional. If applicable, denotes the line where the error occurred. A zero - * value means that there is no line information. - * @type int $column - * Optional. If applicable, denotes the column where the error occurred. A - * zero value means that there is no columns information. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * Optional. If applicable, denotes the line where the error occurred. A zero - * value means that there is no line information. - * - * Generated from protobuf field int32 line = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getLine() - { - return $this->line; - } - - /** - * Optional. If applicable, denotes the line where the error occurred. A zero - * value means that there is no line information. - * - * Generated from protobuf field int32 line = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setLine($var) - { - GPBUtil::checkInt32($var); - $this->line = $var; - - return $this; - } - - /** - * Optional. If applicable, denotes the column where the error occurred. A - * zero value means that there is no columns information. - * - * Generated from protobuf field int32 column = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getColumn() - { - return $this->column; - } - - /** - * Optional. If applicable, denotes the column where the error occurred. A - * zero value means that there is no columns information. - * - * Generated from protobuf field int32 column = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setColumn($var) - { - GPBUtil::checkInt32($var); - $this->column = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GcsReportLogMessage.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GcsReportLogMessage.php deleted file mode 100644 index 3fd5b547ffce..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GcsReportLogMessage.php +++ /dev/null @@ -1,415 +0,0 @@ -google.cloud.bigquery.migration.v2.GcsReportLogMessage - */ -class GcsReportLogMessage extends \Google\Protobuf\Internal\Message -{ - /** - * Severity of the translation record. - * - * Generated from protobuf field string severity = 1; - */ - protected $severity = ''; - /** - * Category of the error/warning. Example: SyntaxError - * - * Generated from protobuf field string category = 2; - */ - protected $category = ''; - /** - * The file path in which the error occurred - * - * Generated from protobuf field string file_path = 3; - */ - protected $file_path = ''; - /** - * The file name in which the error occurred - * - * Generated from protobuf field string filename = 4; - */ - protected $filename = ''; - /** - * Specifies the row from the source text where the error occurred (0 based, - * -1 for messages without line location). Example: 2 - * - * Generated from protobuf field int32 source_script_line = 5; - */ - protected $source_script_line = 0; - /** - * Specifies the column from the source texts where the error occurred. (0 - * based, -1 for messages without column location) example: 6 - * - * Generated from protobuf field int32 source_script_column = 6; - */ - protected $source_script_column = 0; - /** - * Detailed message of the record. - * - * Generated from protobuf field string message = 7; - */ - protected $message = ''; - /** - * The script context (obfuscated) in which the error occurred - * - * Generated from protobuf field string script_context = 8; - */ - protected $script_context = ''; - /** - * Category of the error/warning. Example: SyntaxError - * - * Generated from protobuf field string action = 9; - */ - protected $action = ''; - /** - * Effect of the error/warning. Example: COMPATIBILITY - * - * Generated from protobuf field string effect = 10; - */ - protected $effect = ''; - /** - * Name of the affected object in the log message. - * - * Generated from protobuf field string object_name = 11; - */ - protected $object_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $severity - * Severity of the translation record. - * @type string $category - * Category of the error/warning. Example: SyntaxError - * @type string $file_path - * The file path in which the error occurred - * @type string $filename - * The file name in which the error occurred - * @type int $source_script_line - * Specifies the row from the source text where the error occurred (0 based, - * -1 for messages without line location). Example: 2 - * @type int $source_script_column - * Specifies the column from the source texts where the error occurred. (0 - * based, -1 for messages without column location) example: 6 - * @type string $message - * Detailed message of the record. - * @type string $script_context - * The script context (obfuscated) in which the error occurred - * @type string $action - * Category of the error/warning. Example: SyntaxError - * @type string $effect - * Effect of the error/warning. Example: COMPATIBILITY - * @type string $object_name - * Name of the affected object in the log message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationUsability::initOnce(); - parent::__construct($data); - } - - /** - * Severity of the translation record. - * - * Generated from protobuf field string severity = 1; - * @return string - */ - public function getSeverity() - { - return $this->severity; - } - - /** - * Severity of the translation record. - * - * Generated from protobuf field string severity = 1; - * @param string $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkString($var, True); - $this->severity = $var; - - return $this; - } - - /** - * Category of the error/warning. Example: SyntaxError - * - * Generated from protobuf field string category = 2; - * @return string - */ - public function getCategory() - { - return $this->category; - } - - /** - * Category of the error/warning. Example: SyntaxError - * - * Generated from protobuf field string category = 2; - * @param string $var - * @return $this - */ - public function setCategory($var) - { - GPBUtil::checkString($var, True); - $this->category = $var; - - return $this; - } - - /** - * The file path in which the error occurred - * - * Generated from protobuf field string file_path = 3; - * @return string - */ - public function getFilePath() - { - return $this->file_path; - } - - /** - * The file path in which the error occurred - * - * Generated from protobuf field string file_path = 3; - * @param string $var - * @return $this - */ - public function setFilePath($var) - { - GPBUtil::checkString($var, True); - $this->file_path = $var; - - return $this; - } - - /** - * The file name in which the error occurred - * - * Generated from protobuf field string filename = 4; - * @return string - */ - public function getFilename() - { - return $this->filename; - } - - /** - * The file name in which the error occurred - * - * Generated from protobuf field string filename = 4; - * @param string $var - * @return $this - */ - public function setFilename($var) - { - GPBUtil::checkString($var, True); - $this->filename = $var; - - return $this; - } - - /** - * Specifies the row from the source text where the error occurred (0 based, - * -1 for messages without line location). Example: 2 - * - * Generated from protobuf field int32 source_script_line = 5; - * @return int - */ - public function getSourceScriptLine() - { - return $this->source_script_line; - } - - /** - * Specifies the row from the source text where the error occurred (0 based, - * -1 for messages without line location). Example: 2 - * - * Generated from protobuf field int32 source_script_line = 5; - * @param int $var - * @return $this - */ - public function setSourceScriptLine($var) - { - GPBUtil::checkInt32($var); - $this->source_script_line = $var; - - return $this; - } - - /** - * Specifies the column from the source texts where the error occurred. (0 - * based, -1 for messages without column location) example: 6 - * - * Generated from protobuf field int32 source_script_column = 6; - * @return int - */ - public function getSourceScriptColumn() - { - return $this->source_script_column; - } - - /** - * Specifies the column from the source texts where the error occurred. (0 - * based, -1 for messages without column location) example: 6 - * - * Generated from protobuf field int32 source_script_column = 6; - * @param int $var - * @return $this - */ - public function setSourceScriptColumn($var) - { - GPBUtil::checkInt32($var); - $this->source_script_column = $var; - - return $this; - } - - /** - * Detailed message of the record. - * - * Generated from protobuf field string message = 7; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Detailed message of the record. - * - * Generated from protobuf field string message = 7; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * The script context (obfuscated) in which the error occurred - * - * Generated from protobuf field string script_context = 8; - * @return string - */ - public function getScriptContext() - { - return $this->script_context; - } - - /** - * The script context (obfuscated) in which the error occurred - * - * Generated from protobuf field string script_context = 8; - * @param string $var - * @return $this - */ - public function setScriptContext($var) - { - GPBUtil::checkString($var, True); - $this->script_context = $var; - - return $this; - } - - /** - * Category of the error/warning. Example: SyntaxError - * - * Generated from protobuf field string action = 9; - * @return string - */ - public function getAction() - { - return $this->action; - } - - /** - * Category of the error/warning. Example: SyntaxError - * - * Generated from protobuf field string action = 9; - * @param string $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkString($var, True); - $this->action = $var; - - return $this; - } - - /** - * Effect of the error/warning. Example: COMPATIBILITY - * - * Generated from protobuf field string effect = 10; - * @return string - */ - public function getEffect() - { - return $this->effect; - } - - /** - * Effect of the error/warning. Example: COMPATIBILITY - * - * Generated from protobuf field string effect = 10; - * @param string $var - * @return $this - */ - public function setEffect($var) - { - GPBUtil::checkString($var, True); - $this->effect = $var; - - return $this; - } - - /** - * Name of the affected object in the log message. - * - * Generated from protobuf field string object_name = 11; - * @return string - */ - public function getObjectName() - { - return $this->object_name; - } - - /** - * Name of the affected object in the log message. - * - * Generated from protobuf field string object_name = 11; - * @param string $var - * @return $this - */ - public function setObjectName($var) - { - GPBUtil::checkString($var, True); - $this->object_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GetMigrationSubtaskRequest.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GetMigrationSubtaskRequest.php deleted file mode 100644 index bb7784bbcd1d..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GetMigrationSubtaskRequest.php +++ /dev/null @@ -1,130 +0,0 @@ -google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest - */ -class GetMigrationSubtaskRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique identifier for the migration subtask. - * Example: `projects/123/locations/us/workflows/1234/subtasks/543` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The list of fields to be retrieved. - * - * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $read_mask = null; - - /** - * @param string $name Required. The unique identifier for the migration subtask. - * Example: `projects/123/locations/us/workflows/1234/subtasks/543` - * Please see {@see MigrationServiceClient::migrationSubtaskName()} for help formatting this field. - * - * @return \Google\Cloud\BigQuery\Migration\V2\GetMigrationSubtaskRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique identifier for the migration subtask. - * Example: `projects/123/locations/us/workflows/1234/subtasks/543` - * @type \Google\Protobuf\FieldMask $read_mask - * Optional. The list of fields to be retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique identifier for the migration subtask. - * Example: `projects/123/locations/us/workflows/1234/subtasks/543` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique identifier for the migration subtask. - * Example: `projects/123/locations/us/workflows/1234/subtasks/543` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The list of fields to be retrieved. - * - * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getReadMask() - { - return $this->read_mask; - } - - public function hasReadMask() - { - return isset($this->read_mask); - } - - public function clearReadMask() - { - unset($this->read_mask); - } - - /** - * Optional. The list of fields to be retrieved. - * - * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setReadMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->read_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GetMigrationWorkflowRequest.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GetMigrationWorkflowRequest.php deleted file mode 100644 index 75a79d59fa8b..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GetMigrationWorkflowRequest.php +++ /dev/null @@ -1,130 +0,0 @@ -google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest - */ -class GetMigrationWorkflowRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique identifier for the migration workflow. - * Example: `projects/123/locations/us/workflows/1234` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The list of fields to be retrieved. - * - * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; - */ - protected $read_mask = null; - - /** - * @param string $name Required. The unique identifier for the migration workflow. - * Example: `projects/123/locations/us/workflows/1234` - * Please see {@see MigrationServiceClient::migrationWorkflowName()} for help formatting this field. - * - * @return \Google\Cloud\BigQuery\Migration\V2\GetMigrationWorkflowRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique identifier for the migration workflow. - * Example: `projects/123/locations/us/workflows/1234` - * @type \Google\Protobuf\FieldMask $read_mask - * The list of fields to be retrieved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique identifier for the migration workflow. - * Example: `projects/123/locations/us/workflows/1234` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique identifier for the migration workflow. - * Example: `projects/123/locations/us/workflows/1234` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The list of fields to be retrieved. - * - * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; - * @return \Google\Protobuf\FieldMask|null - */ - public function getReadMask() - { - return $this->read_mask; - } - - public function hasReadMask() - { - return isset($this->read_mask); - } - - public function clearReadMask() - { - unset($this->read_mask); - } - - /** - * The list of fields to be retrieved. - * - * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setReadMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->read_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GreenplumDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GreenplumDialect.php deleted file mode 100644 index 0076a39aa14e..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/GreenplumDialect.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.bigquery.migration.v2.GreenplumDialect - */ -class GreenplumDialect extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/HiveQLDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/HiveQLDialect.php deleted file mode 100644 index 1b3cebad16ff..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/HiveQLDialect.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.bigquery.migration.v2.HiveQLDialect - */ -class HiveQLDialect extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationSubtasksRequest.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationSubtasksRequest.php deleted file mode 100644 index 6050fdf9ee6a..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationSubtasksRequest.php +++ /dev/null @@ -1,256 +0,0 @@ -google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest - */ -class ListMigrationSubtasksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The migration task of the subtasks to list. - * Example: `projects/123/locations/us/workflows/1234` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The list of fields to be retrieved. - * - * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $read_mask = null; - /** - * Optional. The maximum number of migration tasks to return. The service may - * return fewer than this number. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from previous `ListMigrationSubtasks` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListMigrationSubtasks` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * 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 task ID (not the name in the named map). - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The migration task of the subtasks to list. - * Example: `projects/123/locations/us/workflows/1234` - * Please see {@see MigrationServiceClient::migrationWorkflowName()} for help formatting this field. - * - * @return \Google\Cloud\BigQuery\Migration\V2\ListMigrationSubtasksRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The migration task of the subtasks to list. - * Example: `projects/123/locations/us/workflows/1234` - * @type \Google\Protobuf\FieldMask $read_mask - * Optional. The list of fields to be retrieved. - * @type int $page_size - * Optional. The maximum number of migration tasks to return. The service may - * return fewer than this number. - * @type string $page_token - * Optional. A page token, received from previous `ListMigrationSubtasks` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListMigrationSubtasks` - * must match the call that provided the page token. - * @type string $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 task ID (not the name in the named map). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The migration task of the subtasks to list. - * Example: `projects/123/locations/us/workflows/1234` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The migration task of the subtasks to list. - * Example: `projects/123/locations/us/workflows/1234` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The list of fields to be retrieved. - * - * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getReadMask() - { - return $this->read_mask; - } - - public function hasReadMask() - { - return isset($this->read_mask); - } - - public function clearReadMask() - { - unset($this->read_mask); - } - - /** - * Optional. The list of fields to be retrieved. - * - * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setReadMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->read_mask = $var; - - return $this; - } - - /** - * Optional. The maximum number of migration tasks to return. The service may - * return fewer than this number. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of migration tasks to return. The service may - * return fewer than this number. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from previous `ListMigrationSubtasks` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListMigrationSubtasks` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from previous `ListMigrationSubtasks` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListMigrationSubtasks` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - 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 task ID (not the name in the named map). - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->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 task ID (not the name in the named map). - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationSubtasksResponse.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationSubtasksResponse.php deleted file mode 100644 index d61b70c51355..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationSubtasksResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse - */ -class ListMigrationSubtasksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The migration subtasks for the specified task. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; - */ - private $migration_subtasks; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\BigQuery\Migration\V2\MigrationSubtask[] $migration_subtasks - * The migration subtasks for the specified task. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationService::initOnce(); - parent::__construct($data); - } - - /** - * The migration subtasks for the specified task. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; - * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\MigrationSubtask> - */ - public function getMigrationSubtasks() - { - return $this->migration_subtasks; - } - - /** - * The migration subtasks for the specified task. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.MigrationSubtask migration_subtasks = 1; - * @param \Google\Cloud\BigQuery\Migration\V2\MigrationSubtask[] $var - * @return $this - */ - public function setMigrationSubtasks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\MigrationSubtask::class); - $this->migration_subtasks = $arr; - - 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. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationWorkflowsRequest.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationWorkflowsRequest.php deleted file mode 100644 index f2342670e15f..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationWorkflowsRequest.php +++ /dev/null @@ -1,214 +0,0 @@ -google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest - */ -class ListMigrationWorkflowsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The project and location of the migration workflows to list. - * Example: `projects/123/locations/us` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The list of fields to be retrieved. - * - * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; - */ - protected $read_mask = null; - /** - * The maximum number of migration workflows to return. The service may return - * fewer than this number. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * A page token, received from previous `ListMigrationWorkflows` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListMigrationWorkflows` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The project and location of the migration workflows to list. - * Example: `projects/123/locations/us` - * Please see {@see MigrationServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\BigQuery\Migration\V2\ListMigrationWorkflowsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The project and location of the migration workflows to list. - * Example: `projects/123/locations/us` - * @type \Google\Protobuf\FieldMask $read_mask - * The list of fields to be retrieved. - * @type int $page_size - * The maximum number of migration workflows to return. The service may return - * fewer than this number. - * @type string $page_token - * A page token, received from previous `ListMigrationWorkflows` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListMigrationWorkflows` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The project and location of the migration workflows to list. - * Example: `projects/123/locations/us` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The project and location of the migration workflows to list. - * Example: `projects/123/locations/us` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The list of fields to be retrieved. - * - * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; - * @return \Google\Protobuf\FieldMask|null - */ - public function getReadMask() - { - return $this->read_mask; - } - - public function hasReadMask() - { - return isset($this->read_mask); - } - - public function clearReadMask() - { - unset($this->read_mask); - } - - /** - * The list of fields to be retrieved. - * - * Generated from protobuf field .google.protobuf.FieldMask read_mask = 2; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setReadMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->read_mask = $var; - - return $this; - } - - /** - * The maximum number of migration workflows to return. The service may return - * fewer than this number. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of migration workflows to return. The service may return - * fewer than this number. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from previous `ListMigrationWorkflows` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListMigrationWorkflows` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from previous `ListMigrationWorkflows` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListMigrationWorkflows` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationWorkflowsResponse.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationWorkflowsResponse.php deleted file mode 100644 index caaa28ccb4c9..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ListMigrationWorkflowsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse - */ -class ListMigrationWorkflowsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The migration workflows for the specified project / location. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; - */ - private $migration_workflows; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow[] $migration_workflows - * The migration workflows for the specified project / location. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationService::initOnce(); - parent::__construct($data); - } - - /** - * The migration workflows for the specified project / location. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; - * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow> - */ - public function getMigrationWorkflows() - { - return $this->migration_workflows; - } - - /** - * The migration workflows for the specified project / location. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.MigrationWorkflow migration_workflows = 1; - * @param \Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow[] $var - * @return $this - */ - public function setMigrationWorkflows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow::class); - $this->migration_workflows = $arr; - - 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. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Literal.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Literal.php deleted file mode 100644 index 077974576ec4..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Literal.php +++ /dev/null @@ -1,142 +0,0 @@ -google.cloud.bigquery.migration.v2.Literal - */ -class Literal extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The identifier of the literal entry. - * - * Generated from protobuf field string relative_path = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $relative_path = ''; - protected $literal_data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $literal_string - * Literal string data. - * @type string $literal_bytes - * Literal byte data. - * @type string $relative_path - * Required. The identifier of the literal entry. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationDetails::initOnce(); - parent::__construct($data); - } - - /** - * Literal string data. - * - * Generated from protobuf field string literal_string = 2; - * @return string - */ - public function getLiteralString() - { - return $this->readOneof(2); - } - - public function hasLiteralString() - { - return $this->hasOneof(2); - } - - /** - * Literal string data. - * - * Generated from protobuf field string literal_string = 2; - * @param string $var - * @return $this - */ - public function setLiteralString($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Literal byte data. - * - * Generated from protobuf field bytes literal_bytes = 3; - * @return string - */ - public function getLiteralBytes() - { - return $this->readOneof(3); - } - - public function hasLiteralBytes() - { - return $this->hasOneof(3); - } - - /** - * Literal byte data. - * - * Generated from protobuf field bytes literal_bytes = 3; - * @param string $var - * @return $this - */ - public function setLiteralBytes($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Required. The identifier of the literal entry. - * - * Generated from protobuf field string relative_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRelativePath() - { - return $this->relative_path; - } - - /** - * Required. The identifier of the literal entry. - * - * Generated from protobuf field string relative_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRelativePath($var) - { - GPBUtil::checkString($var, True); - $this->relative_path = $var; - - return $this; - } - - /** - * @return string - */ - public function getLiteralData() - { - return $this->whichOneof("literal_data"); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationSubtask.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationSubtask.php deleted file mode 100644 index d633f8f24317..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationSubtask.php +++ /dev/null @@ -1,449 +0,0 @@ -google.cloud.bigquery.migration.v2.MigrationSubtask - */ -class MigrationSubtask extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Immutable. The resource name for the migration subtask. The ID - * is server-generated. - * Example: `projects/123/locations/us/workflows/345/subtasks/678` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * The unique ID of the task to which this subtask belongs. - * - * Generated from protobuf field string task_id = 2; - */ - protected $task_id = ''; - /** - * 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) - * to ensure it only creates subtasks for which there are compatible workers - * polling for Subtasks. - * - * Generated from protobuf field string type = 3; - */ - protected $type = ''; - /** - * Output only. The current state of the subtask. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. An explanation that may be populated when the task is in - * FAILED state. - * - * Generated from protobuf field .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $processing_error = null; - /** - * Output only. Provides details to errors and issues encountered while - * processing the subtask. Presence of error details does not mean that the - * subtask failed. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $resource_error_details; - /** - * Output only. The number or resources with errors. Note: This is not the - * total number of errors as each resource can have more than one error. This - * is used to indicate truncation by having a `resource_error_count` that is - * higher than the size of `resource_error_details`. - * - * Generated from protobuf field int32 resource_error_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $resource_error_count = 0; - /** - * Output only. Time when the subtask was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time when the subtask was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_update_time = null; - /** - * Output only. The metrics for the subtask. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $metrics; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $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` - * @type string $task_id - * The unique ID of the task to which this subtask belongs. - * @type string $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) - * to ensure it only creates subtasks for which there are compatible workers - * polling for Subtasks. - * @type int $state - * Output only. The current state of the subtask. - * @type \Google\Rpc\ErrorInfo $processing_error - * Output only. An explanation that may be populated when the task is in - * FAILED state. - * @type \Google\Cloud\BigQuery\Migration\V2\ResourceErrorDetail[] $resource_error_details - * Output only. Provides details to errors and issues encountered while - * processing the subtask. Presence of error details does not mean that the - * subtask failed. - * @type int $resource_error_count - * Output only. The number or resources with errors. Note: This is not the - * total number of errors as each resource can have more than one error. This - * is used to indicate truncation by having a `resource_error_count` that is - * higher than the size of `resource_error_details`. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when the subtask was created. - * @type \Google\Protobuf\Timestamp $last_update_time - * Output only. Time when the subtask was last updated. - * @type \Google\Cloud\BigQuery\Migration\V2\TimeSeries[] $metrics - * Output only. The metrics for the subtask. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationEntities::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Immutable. The resource name for the migration subtask. The ID - * is server-generated. - * Example: `projects/123/locations/us/workflows/345/subtasks/678` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->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` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The unique ID of the task to which this subtask belongs. - * - * Generated from protobuf field string task_id = 2; - * @return string - */ - public function getTaskId() - { - return $this->task_id; - } - - /** - * The unique ID of the task to which this subtask belongs. - * - * Generated from protobuf field string task_id = 2; - * @param string $var - * @return $this - */ - public function setTaskId($var) - { - GPBUtil::checkString($var, True); - $this->task_id = $var; - - 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) - * to ensure it only creates subtasks for which there are compatible workers - * polling for Subtasks. - * - * Generated from protobuf field string type = 3; - * @return string - */ - public function getType() - { - return $this->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) - * to ensure it only creates subtasks for which there are compatible workers - * polling for Subtasks. - * - * Generated from protobuf field string type = 3; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Output only. The current state of the subtask. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the subtask. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationSubtask.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\Migration\V2\MigrationSubtask\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. An explanation that may be populated when the task is in - * FAILED state. - * - * Generated from protobuf field .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Rpc\ErrorInfo|null - */ - public function getProcessingError() - { - return $this->processing_error; - } - - public function hasProcessingError() - { - return isset($this->processing_error); - } - - public function clearProcessingError() - { - unset($this->processing_error); - } - - /** - * Output only. An explanation that may be populated when the task is in - * FAILED state. - * - * Generated from protobuf field .google.rpc.ErrorInfo processing_error = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Rpc\ErrorInfo $var - * @return $this - */ - public function setProcessingError($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\ErrorInfo::class); - $this->processing_error = $var; - - 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. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\ResourceErrorDetail> - */ - public function getResourceErrorDetails() - { - return $this->resource_error_details; - } - - /** - * Output only. Provides details to errors and issues encountered while - * processing the subtask. Presence of error details does not mean that the - * subtask failed. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\BigQuery\Migration\V2\ResourceErrorDetail[] $var - * @return $this - */ - public function setResourceErrorDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\ResourceErrorDetail::class); - $this->resource_error_details = $arr; - - return $this; - } - - /** - * Output only. The number or resources with errors. Note: This is not the - * total number of errors as each resource can have more than one error. This - * is used to indicate truncation by having a `resource_error_count` that is - * higher than the size of `resource_error_details`. - * - * Generated from protobuf field int32 resource_error_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getResourceErrorCount() - { - return $this->resource_error_count; - } - - /** - * Output only. The number or resources with errors. Note: This is not the - * total number of errors as each resource can have more than one error. This - * is used to indicate truncation by having a `resource_error_count` that is - * higher than the size of `resource_error_details`. - * - * Generated from protobuf field int32 resource_error_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setResourceErrorCount($var) - { - GPBUtil::checkInt32($var); - $this->resource_error_count = $var; - - return $this; - } - - /** - * Output only. Time when the subtask was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when the subtask was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time when the subtask was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastUpdateTime() - { - return $this->last_update_time; - } - - public function hasLastUpdateTime() - { - return isset($this->last_update_time); - } - - public function clearLastUpdateTime() - { - unset($this->last_update_time); - } - - /** - * Output only. Time when the subtask was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_update_time = $var; - - return $this; - } - - /** - * Output only. The metrics for the subtask. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\TimeSeries> - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * Output only. The metrics for the subtask. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\BigQuery\Migration\V2\TimeSeries[] $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\TimeSeries::class); - $this->metrics = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationSubtask/State.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationSubtask/State.php deleted file mode 100644 index c61e225ce18c..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationSubtask/State.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.bigquery.migration.v2.MigrationSubtask.State - */ -class State -{ - /** - * The state is unspecified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The subtask is ready, i.e. it is ready for execution. - * - * Generated from protobuf enum ACTIVE = 1; - */ - const ACTIVE = 1; - /** - * The subtask is running, i.e. it is assigned to a worker for execution. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The subtask finished successfully. - * - * Generated from protobuf enum SUCCEEDED = 3; - */ - const SUCCEEDED = 3; - /** - * The subtask finished unsuccessfully. - * - * Generated from protobuf enum FAILED = 4; - */ - const 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. - * - * Generated from protobuf enum PAUSED = 5; - */ - const PAUSED = 5; - /** - * The subtask is pending a dependency. It will be scheduled once its - * dependencies are done. - * - * Generated from protobuf enum PENDING_DEPENDENCY = 6; - */ - const PENDING_DEPENDENCY = 6; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::ACTIVE => 'ACTIVE', - self::RUNNING => 'RUNNING', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::PAUSED => 'PAUSED', - self::PENDING_DEPENDENCY => 'PENDING_DEPENDENCY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTask.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTask.php deleted file mode 100644 index 70dbf6fb2156..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTask.php +++ /dev/null @@ -1,674 +0,0 @@ -google.cloud.bigquery.migration.v2.MigrationTask - */ -class MigrationTask extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Immutable. The unique identifier for the migration task. The - * ID is server-generated. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $id = ''; - /** - * The type of the task. This must be one of the supported task types. - * Assessment: - * - `Assessment_Hive` - Assessment for Hive. - * - `Assessment_Redshift` - Assessment for Redshift. - * - `Assessment_Snowflake` - Assessment for Snowflake. - * - `Assessment_Teradata_v2` - Assessment for Teradata. - * - `Assessment_Oracle` - Assessment for Oracle. - * - `Assessment_Hadoop` - Assessment for Hadoop. - * - `Assessment_Informatica` - Assessment for Informatica. - * Translation: - * See [Supported Task - * Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types) - * for a list of supported task types. - * - * Generated from protobuf field string type = 2; - */ - protected $type = ''; - /** - * Output only. The current state of the task. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. An explanation that may be populated when the task is in - * FAILED state. - * - * Generated from protobuf field .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $processing_error = null; - /** - * Output only. Time when the task was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time when the task was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_update_time = null; - /** - * Output only. Provides details to errors and issues encountered while - * processing the task. Presence of error details does not mean that the task - * failed. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $resource_error_details; - /** - * Output only. The number or resources with errors. Note: This is not the - * total number of errors as each resource can have more than one error. This - * is used to indicate truncation by having a `resource_error_count` that is - * higher than the size of `resource_error_details`. - * - * Generated from protobuf field int32 resource_error_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $resource_error_count = 0; - /** - * Output only. The metrics for the task. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $metrics; - /** - * Output only. The result of the task. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $task_result = null; - /** - * Output only. Count of all the processing errors in this task and its - * subtasks. - * - * Generated from protobuf field int32 total_processing_error_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $total_processing_error_count = 0; - /** - * Output only. Count of all the resource errors in this task and its - * subtasks. - * - * Generated from protobuf field int32 total_resource_error_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $total_resource_error_count = 0; - protected $task_details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\BigQuery\Migration\V2\AssessmentTaskDetails $assessment_task_details - * Task configuration for Assessment. - * @type \Google\Cloud\BigQuery\Migration\V2\TranslationConfigDetails $translation_config_details - * Task configuration for CW Batch/Offline SQL Translation. - * @type \Google\Cloud\BigQuery\Migration\V2\TranslationDetails $translation_details - * Task details for unified SQL Translation. - * @type string $id - * Output only. Immutable. The unique identifier for the migration task. The - * ID is server-generated. - * @type string $type - * The type of the task. This must be one of the supported task types. - * Assessment: - * - `Assessment_Hive` - Assessment for Hive. - * - `Assessment_Redshift` - Assessment for Redshift. - * - `Assessment_Snowflake` - Assessment for Snowflake. - * - `Assessment_Teradata_v2` - Assessment for Teradata. - * - `Assessment_Oracle` - Assessment for Oracle. - * - `Assessment_Hadoop` - Assessment for Hadoop. - * - `Assessment_Informatica` - Assessment for Informatica. - * Translation: - * See [Supported Task - * Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types) - * for a list of supported task types. - * @type int $state - * Output only. The current state of the task. - * @type \Google\Rpc\ErrorInfo $processing_error - * Output only. An explanation that may be populated when the task is in - * FAILED state. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when the task was created. - * @type \Google\Protobuf\Timestamp $last_update_time - * Output only. Time when the task was last updated. - * @type \Google\Cloud\BigQuery\Migration\V2\ResourceErrorDetail[] $resource_error_details - * Output only. Provides details to errors and issues encountered while - * processing the task. Presence of error details does not mean that the task - * failed. - * @type int $resource_error_count - * Output only. The number or resources with errors. Note: This is not the - * total number of errors as each resource can have more than one error. This - * is used to indicate truncation by having a `resource_error_count` that is - * higher than the size of `resource_error_details`. - * @type \Google\Cloud\BigQuery\Migration\V2\TimeSeries[] $metrics - * Output only. The metrics for the task. - * @type \Google\Cloud\BigQuery\Migration\V2\MigrationTaskResult $task_result - * Output only. The result of the task. - * @type int $total_processing_error_count - * Output only. Count of all the processing errors in this task and its - * subtasks. - * @type int $total_resource_error_count - * Output only. Count of all the resource errors in this task and its - * subtasks. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationEntities::initOnce(); - parent::__construct($data); - } - - /** - * Task configuration for Assessment. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.AssessmentTaskDetails assessment_task_details = 12; - * @return \Google\Cloud\BigQuery\Migration\V2\AssessmentTaskDetails|null - */ - public function getAssessmentTaskDetails() - { - return $this->readOneof(12); - } - - public function hasAssessmentTaskDetails() - { - return $this->hasOneof(12); - } - - /** - * Task configuration for Assessment. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.AssessmentTaskDetails assessment_task_details = 12; - * @param \Google\Cloud\BigQuery\Migration\V2\AssessmentTaskDetails $var - * @return $this - */ - public function setAssessmentTaskDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\AssessmentTaskDetails::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Task configuration for CW Batch/Offline SQL Translation. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; - * @return \Google\Cloud\BigQuery\Migration\V2\TranslationConfigDetails|null - */ - public function getTranslationConfigDetails() - { - return $this->readOneof(14); - } - - public function hasTranslationConfigDetails() - { - return $this->hasOneof(14); - } - - /** - * Task configuration for CW Batch/Offline SQL Translation. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TranslationConfigDetails translation_config_details = 14; - * @param \Google\Cloud\BigQuery\Migration\V2\TranslationConfigDetails $var - * @return $this - */ - public function setTranslationConfigDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\TranslationConfigDetails::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * Task details for unified SQL Translation. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16; - * @return \Google\Cloud\BigQuery\Migration\V2\TranslationDetails|null - */ - public function getTranslationDetails() - { - return $this->readOneof(16); - } - - public function hasTranslationDetails() - { - return $this->hasOneof(16); - } - - /** - * Task details for unified SQL Translation. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TranslationDetails translation_details = 16; - * @param \Google\Cloud\BigQuery\Migration\V2\TranslationDetails $var - * @return $this - */ - public function setTranslationDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\TranslationDetails::class); - $this->writeOneof(16, $var); - - return $this; - } - - /** - * Output only. Immutable. The unique identifier for the migration task. The - * ID is server-generated. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Output only. Immutable. The unique identifier for the migration task. The - * ID is server-generated. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * The type of the task. This must be one of the supported task types. - * Assessment: - * - `Assessment_Hive` - Assessment for Hive. - * - `Assessment_Redshift` - Assessment for Redshift. - * - `Assessment_Snowflake` - Assessment for Snowflake. - * - `Assessment_Teradata_v2` - Assessment for Teradata. - * - `Assessment_Oracle` - Assessment for Oracle. - * - `Assessment_Hadoop` - Assessment for Hadoop. - * - `Assessment_Informatica` - Assessment for Informatica. - * Translation: - * See [Supported Task - * Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types) - * for a list of supported task types. - * - * Generated from protobuf field string type = 2; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * The type of the task. This must be one of the supported task types. - * Assessment: - * - `Assessment_Hive` - Assessment for Hive. - * - `Assessment_Redshift` - Assessment for Redshift. - * - `Assessment_Snowflake` - Assessment for Snowflake. - * - `Assessment_Teradata_v2` - Assessment for Teradata. - * - `Assessment_Oracle` - Assessment for Oracle. - * - `Assessment_Hadoop` - Assessment for Hadoop. - * - `Assessment_Informatica` - Assessment for Informatica. - * Translation: - * See [Supported Task - * Types](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types) - * for a list of supported task types. - * - * Generated from protobuf field string type = 2; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Output only. The current state of the task. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the task. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationTask.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\Migration\V2\MigrationTask\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. An explanation that may be populated when the task is in - * FAILED state. - * - * Generated from protobuf field .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Rpc\ErrorInfo|null - */ - public function getProcessingError() - { - return $this->processing_error; - } - - public function hasProcessingError() - { - return isset($this->processing_error); - } - - public function clearProcessingError() - { - unset($this->processing_error); - } - - /** - * Output only. An explanation that may be populated when the task is in - * FAILED state. - * - * Generated from protobuf field .google.rpc.ErrorInfo processing_error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Rpc\ErrorInfo $var - * @return $this - */ - public function setProcessingError($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\ErrorInfo::class); - $this->processing_error = $var; - - return $this; - } - - /** - * Output only. Time when the task was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when the task was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time when the task was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastUpdateTime() - { - return $this->last_update_time; - } - - public function hasLastUpdateTime() - { - return isset($this->last_update_time); - } - - public function clearLastUpdateTime() - { - unset($this->last_update_time); - } - - /** - * Output only. Time when the task was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_update_time = $var; - - return $this; - } - - /** - * Output only. Provides details to errors and issues encountered while - * processing the task. Presence of error details does not mean that the task - * failed. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\ResourceErrorDetail> - */ - public function getResourceErrorDetails() - { - return $this->resource_error_details; - } - - /** - * Output only. Provides details to errors and issues encountered while - * processing the task. Presence of error details does not mean that the task - * failed. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ResourceErrorDetail resource_error_details = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\BigQuery\Migration\V2\ResourceErrorDetail[] $var - * @return $this - */ - public function setResourceErrorDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\ResourceErrorDetail::class); - $this->resource_error_details = $arr; - - return $this; - } - - /** - * Output only. The number or resources with errors. Note: This is not the - * total number of errors as each resource can have more than one error. This - * is used to indicate truncation by having a `resource_error_count` that is - * higher than the size of `resource_error_details`. - * - * Generated from protobuf field int32 resource_error_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getResourceErrorCount() - { - return $this->resource_error_count; - } - - /** - * Output only. The number or resources with errors. Note: This is not the - * total number of errors as each resource can have more than one error. This - * is used to indicate truncation by having a `resource_error_count` that is - * higher than the size of `resource_error_details`. - * - * Generated from protobuf field int32 resource_error_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setResourceErrorCount($var) - { - GPBUtil::checkInt32($var); - $this->resource_error_count = $var; - - return $this; - } - - /** - * Output only. The metrics for the task. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\TimeSeries> - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * Output only. The metrics for the task. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.TimeSeries metrics = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\BigQuery\Migration\V2\TimeSeries[] $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\TimeSeries::class); - $this->metrics = $arr; - - return $this; - } - - /** - * Output only. The result of the task. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\BigQuery\Migration\V2\MigrationTaskResult|null - */ - public function getTaskResult() - { - return $this->task_result; - } - - public function hasTaskResult() - { - return isset($this->task_result); - } - - public function clearTaskResult() - { - unset($this->task_result); - } - - /** - * Output only. The result of the task. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationTaskResult task_result = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\BigQuery\Migration\V2\MigrationTaskResult $var - * @return $this - */ - public function setTaskResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\MigrationTaskResult::class); - $this->task_result = $var; - - return $this; - } - - /** - * Output only. Count of all the processing errors in this task and its - * subtasks. - * - * Generated from protobuf field int32 total_processing_error_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getTotalProcessingErrorCount() - { - return $this->total_processing_error_count; - } - - /** - * Output only. Count of all the processing errors in this task and its - * subtasks. - * - * Generated from protobuf field int32 total_processing_error_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setTotalProcessingErrorCount($var) - { - GPBUtil::checkInt32($var); - $this->total_processing_error_count = $var; - - return $this; - } - - /** - * Output only. Count of all the resource errors in this task and its - * subtasks. - * - * Generated from protobuf field int32 total_resource_error_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getTotalResourceErrorCount() - { - return $this->total_resource_error_count; - } - - /** - * Output only. Count of all the resource errors in this task and its - * subtasks. - * - * Generated from protobuf field int32 total_resource_error_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setTotalResourceErrorCount($var) - { - GPBUtil::checkInt32($var); - $this->total_resource_error_count = $var; - - return $this; - } - - /** - * @return string - */ - public function getTaskDetails() - { - return $this->whichOneof("task_details"); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTask/State.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTask/State.php deleted file mode 100644 index 6aa47c9b9b81..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTask/State.php +++ /dev/null @@ -1,90 +0,0 @@ -google.cloud.bigquery.migration.v2.MigrationTask.State - */ -class State -{ - /** - * The state is unspecified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The task is waiting for orchestration. - * - * Generated from protobuf enum PENDING = 1; - */ - const PENDING = 1; - /** - * The task is assigned to an orchestrator. - * - * Generated from protobuf enum ORCHESTRATING = 2; - */ - const ORCHESTRATING = 2; - /** - * The task is running, i.e. its subtasks are ready for execution. - * - * Generated from protobuf enum RUNNING = 3; - */ - const RUNNING = 3; - /** - * The task is paused. Assigned subtasks can continue, but no new subtasks - * will be scheduled. - * - * Generated from protobuf enum PAUSED = 4; - */ - const PAUSED = 4; - /** - * The task finished successfully. - * - * Generated from protobuf enum SUCCEEDED = 5; - */ - const SUCCEEDED = 5; - /** - * The task finished unsuccessfully. - * - * Generated from protobuf enum FAILED = 6; - */ - const FAILED = 6; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::PENDING => 'PENDING', - self::ORCHESTRATING => 'ORCHESTRATING', - self::RUNNING => 'RUNNING', - self::PAUSED => 'PAUSED', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTaskResult.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTaskResult.php deleted file mode 100644 index 66992b7c01fb..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationTaskResult.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.bigquery.migration.v2.MigrationTaskResult - */ -class MigrationTaskResult extends \Google\Protobuf\Internal\Message -{ - protected $details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\BigQuery\Migration\V2\TranslationTaskResult $translation_task_result - * Details specific to translation task types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationEntities::initOnce(); - parent::__construct($data); - } - - /** - * Details specific to translation task types. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TranslationTaskResult translation_task_result = 2; - * @return \Google\Cloud\BigQuery\Migration\V2\TranslationTaskResult|null - */ - public function getTranslationTaskResult() - { - return $this->readOneof(2); - } - - public function hasTranslationTaskResult() - { - return $this->hasOneof(2); - } - - /** - * Details specific to translation task types. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TranslationTaskResult translation_task_result = 2; - * @param \Google\Cloud\BigQuery\Migration\V2\TranslationTaskResult $var - * @return $this - */ - public function setTranslationTaskResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\TranslationTaskResult::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getDetails() - { - return $this->whichOneof("details"); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationWorkflow.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationWorkflow.php deleted file mode 100644 index 89111264b873..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationWorkflow.php +++ /dev/null @@ -1,278 +0,0 @@ -google.cloud.bigquery.migration.v2.MigrationWorkflow - */ -class MigrationWorkflow extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Immutable. Identifier. The unique identifier for the migration - * workflow. The ID is server-generated. - * Example: `projects/123/locations/us/workflows/345` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * 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. - * - * Generated from protobuf field string display_name = 6; - */ - protected $display_name = ''; - /** - * 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. - * - * Generated from protobuf field map tasks = 2; - */ - private $tasks; - /** - * Output only. That status of the workflow. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Time when the workflow was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time when the workflow was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Immutable. Identifier. The unique identifier for the migration - * workflow. The ID is server-generated. - * Example: `projects/123/locations/us/workflows/345` - * @type string $display_name - * 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. - * @type array|\Google\Protobuf\Internal\MapField $tasks - * 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. - * @type int $state - * Output only. That status of the workflow. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time when the workflow was created. - * @type \Google\Protobuf\Timestamp $last_update_time - * Output only. Time when the workflow was last updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationEntities::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Immutable. Identifier. The unique identifier for the migration - * workflow. The ID is server-generated. - * Example: `projects/123/locations/us/workflows/345` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Immutable. Identifier. The unique identifier for the migration - * workflow. The ID is server-generated. - * Example: `projects/123/locations/us/workflows/345` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - 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. - * - * Generated from protobuf field string display_name = 6; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * 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. - * - * Generated from protobuf field string display_name = 6; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - 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. - * - * Generated from protobuf field map tasks = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTasks() - { - return $this->tasks; - } - - /** - * 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. - * - * Generated from protobuf field map tasks = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTasks($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\MigrationTask::class); - $this->tasks = $arr; - - return $this; - } - - /** - * Output only. That status of the workflow. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. That status of the workflow. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.MigrationWorkflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Time when the workflow was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time when the workflow was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time when the workflow was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastUpdateTime() - { - return $this->last_update_time; - } - - public function hasLastUpdateTime() - { - return isset($this->last_update_time); - } - - public function clearLastUpdateTime() - { - unset($this->last_update_time); - } - - /** - * Output only. Time when the workflow was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_update_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationWorkflow/State.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationWorkflow/State.php deleted file mode 100644 index 79b7c32d73e2..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MigrationWorkflow/State.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.bigquery.migration.v2.MigrationWorkflow.State - */ -class State -{ - /** - * Workflow state is unspecified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Workflow is in draft status, i.e. tasks are not yet eligible for - * execution. - * - * Generated from protobuf enum DRAFT = 1; - */ - const DRAFT = 1; - /** - * Workflow is running (i.e. tasks are eligible for execution). - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * Workflow is paused. Tasks currently in progress may continue, but no - * further tasks will be scheduled. - * - * Generated from protobuf enum PAUSED = 3; - */ - const 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 - * scheduled. - * - * Generated from protobuf enum COMPLETED = 4; - */ - const COMPLETED = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::DRAFT => 'DRAFT', - self::RUNNING => 'RUNNING', - self::PAUSED => 'PAUSED', - self::COMPLETED => 'COMPLETED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MySQLDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MySQLDialect.php deleted file mode 100644 index f2aebe9bd6d3..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/MySQLDialect.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.bigquery.migration.v2.MySQLDialect - */ -class MySQLDialect extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingKey.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingKey.php deleted file mode 100644 index 380544e36620..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingKey.php +++ /dev/null @@ -1,216 +0,0 @@ -google.cloud.bigquery.migration.v2.NameMappingKey - */ -class NameMappingKey extends \Google\Protobuf\Internal\Message -{ - /** - * The type of object that is being mapped. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.NameMappingKey.Type type = 1; - */ - protected $type = 0; - /** - * The database name (BigQuery project ID equivalent in the source data - * warehouse). - * - * Generated from protobuf field string database = 2; - */ - protected $database = ''; - /** - * The schema name (BigQuery dataset equivalent in the source data warehouse). - * - * Generated from protobuf field string schema = 3; - */ - protected $schema = ''; - /** - * The relation name (BigQuery table or view equivalent in the source data - * warehouse). - * - * Generated from protobuf field string relation = 4; - */ - protected $relation = ''; - /** - * The attribute name (BigQuery column equivalent in the source data - * warehouse). - * - * Generated from protobuf field string attribute = 5; - */ - protected $attribute = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * The type of object that is being mapped. - * @type string $database - * The database name (BigQuery project ID equivalent in the source data - * warehouse). - * @type string $schema - * The schema name (BigQuery dataset equivalent in the source data warehouse). - * @type string $relation - * The relation name (BigQuery table or view equivalent in the source data - * warehouse). - * @type string $attribute - * The attribute name (BigQuery column equivalent in the source data - * warehouse). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - - /** - * The type of object that is being mapped. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.NameMappingKey.Type type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of object that is being mapped. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.NameMappingKey.Type type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\Migration\V2\NameMappingKey\Type::class); - $this->type = $var; - - return $this; - } - - /** - * The database name (BigQuery project ID equivalent in the source data - * warehouse). - * - * Generated from protobuf field string database = 2; - * @return string - */ - public function getDatabase() - { - return $this->database; - } - - /** - * The database name (BigQuery project ID equivalent in the source data - * warehouse). - * - * Generated from protobuf field string database = 2; - * @param string $var - * @return $this - */ - public function setDatabase($var) - { - GPBUtil::checkString($var, True); - $this->database = $var; - - return $this; - } - - /** - * The schema name (BigQuery dataset equivalent in the source data warehouse). - * - * Generated from protobuf field string schema = 3; - * @return string - */ - public function getSchema() - { - return $this->schema; - } - - /** - * The schema name (BigQuery dataset equivalent in the source data warehouse). - * - * Generated from protobuf field string schema = 3; - * @param string $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkString($var, True); - $this->schema = $var; - - return $this; - } - - /** - * The relation name (BigQuery table or view equivalent in the source data - * warehouse). - * - * Generated from protobuf field string relation = 4; - * @return string - */ - public function getRelation() - { - return $this->relation; - } - - /** - * The relation name (BigQuery table or view equivalent in the source data - * warehouse). - * - * Generated from protobuf field string relation = 4; - * @param string $var - * @return $this - */ - public function setRelation($var) - { - GPBUtil::checkString($var, True); - $this->relation = $var; - - return $this; - } - - /** - * The attribute name (BigQuery column equivalent in the source data - * warehouse). - * - * Generated from protobuf field string attribute = 5; - * @return string - */ - public function getAttribute() - { - return $this->attribute; - } - - /** - * The attribute name (BigQuery column equivalent in the source data - * warehouse). - * - * Generated from protobuf field string attribute = 5; - * @param string $var - * @return $this - */ - public function setAttribute($var) - { - GPBUtil::checkString($var, True); - $this->attribute = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingKey/Type.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingKey/Type.php deleted file mode 100644 index e490ccca5e54..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingKey/Type.php +++ /dev/null @@ -1,100 +0,0 @@ -google.cloud.bigquery.migration.v2.NameMappingKey.Type - */ -class Type -{ - /** - * Unspecified name mapping type. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * The object being mapped is a database. - * - * Generated from protobuf enum DATABASE = 1; - */ - const DATABASE = 1; - /** - * The object being mapped is a schema. - * - * Generated from protobuf enum SCHEMA = 2; - */ - const SCHEMA = 2; - /** - * The object being mapped is a relation. - * - * Generated from protobuf enum RELATION = 3; - */ - const RELATION = 3; - /** - * The object being mapped is an attribute. - * - * Generated from protobuf enum ATTRIBUTE = 4; - */ - const ATTRIBUTE = 4; - /** - * The object being mapped is a relation alias. - * - * Generated from protobuf enum RELATION_ALIAS = 5; - */ - const RELATION_ALIAS = 5; - /** - * The object being mapped is a an attribute alias. - * - * Generated from protobuf enum ATTRIBUTE_ALIAS = 6; - */ - const ATTRIBUTE_ALIAS = 6; - /** - * The object being mapped is a function. - * - * Generated from protobuf enum FUNCTION = 7; - */ - const PBFUNCTION = 7; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::DATABASE => 'DATABASE', - self::SCHEMA => 'SCHEMA', - self::RELATION => 'RELATION', - self::ATTRIBUTE => 'ATTRIBUTE', - self::RELATION_ALIAS => 'RELATION_ALIAS', - self::ATTRIBUTE_ALIAS => 'ATTRIBUTE_ALIAS', - self::PBFUNCTION => 'FUNCTION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingValue.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingValue.php deleted file mode 100644 index a0979790ee2a..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NameMappingValue.php +++ /dev/null @@ -1,182 +0,0 @@ -google.cloud.bigquery.migration.v2.NameMappingValue - */ -class NameMappingValue extends \Google\Protobuf\Internal\Message -{ - /** - * The database name (BigQuery project ID equivalent in the target data - * warehouse). - * - * Generated from protobuf field string database = 1; - */ - protected $database = ''; - /** - * The schema name (BigQuery dataset equivalent in the target data warehouse). - * - * Generated from protobuf field string schema = 2; - */ - protected $schema = ''; - /** - * The relation name (BigQuery table or view equivalent in the target data - * warehouse). - * - * Generated from protobuf field string relation = 3; - */ - protected $relation = ''; - /** - * The attribute name (BigQuery column equivalent in the target data - * warehouse). - * - * Generated from protobuf field string attribute = 4; - */ - protected $attribute = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $database - * The database name (BigQuery project ID equivalent in the target data - * warehouse). - * @type string $schema - * The schema name (BigQuery dataset equivalent in the target data warehouse). - * @type string $relation - * The relation name (BigQuery table or view equivalent in the target data - * warehouse). - * @type string $attribute - * The attribute name (BigQuery column equivalent in the target data - * warehouse). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - - /** - * The database name (BigQuery project ID equivalent in the target data - * warehouse). - * - * Generated from protobuf field string database = 1; - * @return string - */ - public function getDatabase() - { - return $this->database; - } - - /** - * The database name (BigQuery project ID equivalent in the target data - * warehouse). - * - * Generated from protobuf field string database = 1; - * @param string $var - * @return $this - */ - public function setDatabase($var) - { - GPBUtil::checkString($var, True); - $this->database = $var; - - return $this; - } - - /** - * The schema name (BigQuery dataset equivalent in the target data warehouse). - * - * Generated from protobuf field string schema = 2; - * @return string - */ - public function getSchema() - { - return $this->schema; - } - - /** - * The schema name (BigQuery dataset equivalent in the target data warehouse). - * - * Generated from protobuf field string schema = 2; - * @param string $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkString($var, True); - $this->schema = $var; - - return $this; - } - - /** - * The relation name (BigQuery table or view equivalent in the target data - * warehouse). - * - * Generated from protobuf field string relation = 3; - * @return string - */ - public function getRelation() - { - return $this->relation; - } - - /** - * The relation name (BigQuery table or view equivalent in the target data - * warehouse). - * - * Generated from protobuf field string relation = 3; - * @param string $var - * @return $this - */ - public function setRelation($var) - { - GPBUtil::checkString($var, True); - $this->relation = $var; - - return $this; - } - - /** - * The attribute name (BigQuery column equivalent in the target data - * warehouse). - * - * Generated from protobuf field string attribute = 4; - * @return string - */ - public function getAttribute() - { - return $this->attribute; - } - - /** - * The attribute name (BigQuery column equivalent in the target data - * warehouse). - * - * Generated from protobuf field string attribute = 4; - * @param string $var - * @return $this - */ - public function setAttribute($var) - { - GPBUtil::checkString($var, True); - $this->attribute = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NetezzaDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NetezzaDialect.php deleted file mode 100644 index e6956f13c728..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/NetezzaDialect.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.bigquery.migration.v2.NetezzaDialect - */ -class NetezzaDialect extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ObjectNameMapping.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ObjectNameMapping.php deleted file mode 100644 index 0d8b65590c32..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ObjectNameMapping.php +++ /dev/null @@ -1,122 +0,0 @@ -google.cloud.bigquery.migration.v2.ObjectNameMapping - */ -class ObjectNameMapping extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the object in source that is being mapped. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; - */ - protected $source = null; - /** - * The desired target name of the object that is being mapped. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; - */ - protected $target = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\BigQuery\Migration\V2\NameMappingKey $source - * The name of the object in source that is being mapped. - * @type \Google\Cloud\BigQuery\Migration\V2\NameMappingValue $target - * The desired target name of the object that is being mapped. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - - /** - * The name of the object in source that is being mapped. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; - * @return \Google\Cloud\BigQuery\Migration\V2\NameMappingKey|null - */ - public function getSource() - { - return $this->source; - } - - public function hasSource() - { - return isset($this->source); - } - - public function clearSource() - { - unset($this->source); - } - - /** - * The name of the object in source that is being mapped. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.NameMappingKey source = 1; - * @param \Google\Cloud\BigQuery\Migration\V2\NameMappingKey $var - * @return $this - */ - public function setSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\NameMappingKey::class); - $this->source = $var; - - return $this; - } - - /** - * The desired target name of the object that is being mapped. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; - * @return \Google\Cloud\BigQuery\Migration\V2\NameMappingValue|null - */ - public function getTarget() - { - return $this->target; - } - - public function hasTarget() - { - return isset($this->target); - } - - public function clearTarget() - { - unset($this->target); - } - - /** - * The desired target name of the object that is being mapped. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.NameMappingValue target = 2; - * @param \Google\Cloud\BigQuery\Migration\V2\NameMappingValue $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\NameMappingValue::class); - $this->target = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ObjectNameMappingList.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ObjectNameMappingList.php deleted file mode 100644 index 4199f97fdcd7..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ObjectNameMappingList.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.bigquery.migration.v2.ObjectNameMappingList - */ -class ObjectNameMappingList extends \Google\Protobuf\Internal\Message -{ - /** - * The elements of the object name map. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ObjectNameMapping name_map = 1; - */ - private $name_map; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\BigQuery\Migration\V2\ObjectNameMapping[] $name_map - * The elements of the object name map. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - - /** - * The elements of the object name map. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ObjectNameMapping name_map = 1; - * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\ObjectNameMapping> - */ - public function getNameMap() - { - return $this->name_map; - } - - /** - * The elements of the object name map. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ObjectNameMapping name_map = 1; - * @param \Google\Cloud\BigQuery\Migration\V2\ObjectNameMapping[] $var - * @return $this - */ - public function setNameMap($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\ObjectNameMapping::class); - $this->name_map = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/OracleDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/OracleDialect.php deleted file mode 100644 index 931c22c64305..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/OracleDialect.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.bigquery.migration.v2.OracleDialect - */ -class OracleDialect extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Point.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Point.php deleted file mode 100644 index f7b5122fe09d..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/Point.php +++ /dev/null @@ -1,153 +0,0 @@ -google.cloud.bigquery.migration.v2.Point - */ -class Point extends \Google\Protobuf\Internal\Message -{ - /** - * 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 - * equal the end time. For `DELTA` metrics, the start and end time should - * specify a non-zero interval, with subsequent points specifying contiguous - * and non-overlapping intervals. For `CUMULATIVE` metrics, the start and end - * time should specify a non-zero interval, with subsequent points specifying - * the same start time and increasing end times, until an event resets the - * cumulative value to zero and sets a new start time for the following - * points. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TimeInterval interval = 1; - */ - protected $interval = null; - /** - * The value of the data point. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TypedValue value = 2; - */ - protected $value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \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 - * equal the end time. For `DELTA` metrics, the start and end time should - * specify a non-zero interval, with subsequent points specifying contiguous - * and non-overlapping intervals. For `CUMULATIVE` metrics, the start and end - * time should specify a non-zero interval, with subsequent points specifying - * the same start time and increasing end times, until an event resets the - * cumulative value to zero and sets a new start time for the following - * points. - * @type \Google\Cloud\BigQuery\Migration\V2\TypedValue $value - * The value of the data point. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationMetrics::initOnce(); - parent::__construct($data); - } - - /** - * 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 - * equal the end time. For `DELTA` metrics, the start and end time should - * specify a non-zero interval, with subsequent points specifying contiguous - * and non-overlapping intervals. For `CUMULATIVE` metrics, the start and end - * time should specify a non-zero interval, with subsequent points specifying - * the same start time and increasing end times, until an event resets the - * cumulative value to zero and sets a new start time for the following - * points. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TimeInterval interval = 1; - * @return \Google\Cloud\BigQuery\Migration\V2\TimeInterval|null - */ - public function getInterval() - { - return $this->interval; - } - - public function hasInterval() - { - return isset($this->interval); - } - - public function clearInterval() - { - unset($this->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 - * equal the end time. For `DELTA` metrics, the start and end time should - * specify a non-zero interval, with subsequent points specifying contiguous - * and non-overlapping intervals. For `CUMULATIVE` metrics, the start and end - * time should specify a non-zero interval, with subsequent points specifying - * the same start time and increasing end times, until an event resets the - * cumulative value to zero and sets a new start time for the following - * points. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TimeInterval interval = 1; - * @param \Google\Cloud\BigQuery\Migration\V2\TimeInterval $var - * @return $this - */ - public function setInterval($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\TimeInterval::class); - $this->interval = $var; - - return $this; - } - - /** - * The value of the data point. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TypedValue value = 2; - * @return \Google\Cloud\BigQuery\Migration\V2\TypedValue|null - */ - public function getValue() - { - return $this->value; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * The value of the data point. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TypedValue value = 2; - * @param \Google\Cloud\BigQuery\Migration\V2\TypedValue $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\TypedValue::class); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/PostgresqlDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/PostgresqlDialect.php deleted file mode 100644 index a72cb584b856..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/PostgresqlDialect.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.bigquery.migration.v2.PostgresqlDialect - */ -class PostgresqlDialect extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/PrestoDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/PrestoDialect.php deleted file mode 100644 index 8dfb8f93d0b6..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/PrestoDialect.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.bigquery.migration.v2.PrestoDialect - */ -class PrestoDialect extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/RedshiftDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/RedshiftDialect.php deleted file mode 100644 index e363874a44d1..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/RedshiftDialect.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.bigquery.migration.v2.RedshiftDialect - */ -class RedshiftDialect extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ResourceErrorDetail.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ResourceErrorDetail.php deleted file mode 100644 index cb50c214b416..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/ResourceErrorDetail.php +++ /dev/null @@ -1,153 +0,0 @@ -google.cloud.bigquery.migration.v2.ResourceErrorDetail - */ -class ResourceErrorDetail extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Information about the resource where the error is located. - * - * Generated from protobuf field .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $resource_info = null; - /** - * Required. The error details for the resource. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $error_details; - /** - * 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 - * `error_details`. - * - * Generated from protobuf field int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $error_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Rpc\ResourceInfo $resource_info - * Required. Information about the resource where the error is located. - * @type \Google\Cloud\BigQuery\Migration\V2\ErrorDetail[] $error_details - * Required. The error details for the resource. - * @type int $error_count - * 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 - * `error_details`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationErrorDetails::initOnce(); - parent::__construct($data); - } - - /** - * Required. Information about the resource where the error is located. - * - * Generated from protobuf field .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Rpc\ResourceInfo|null - */ - public function getResourceInfo() - { - return $this->resource_info; - } - - public function hasResourceInfo() - { - return isset($this->resource_info); - } - - public function clearResourceInfo() - { - unset($this->resource_info); - } - - /** - * Required. Information about the resource where the error is located. - * - * Generated from protobuf field .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Rpc\ResourceInfo $var - * @return $this - */ - public function setResourceInfo($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\ResourceInfo::class); - $this->resource_info = $var; - - return $this; - } - - /** - * Required. The error details for the resource. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\ErrorDetail> - */ - public function getErrorDetails() - { - return $this->error_details; - } - - /** - * Required. The error details for the resource. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\BigQuery\Migration\V2\ErrorDetail[] $var - * @return $this - */ - public function setErrorDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\ErrorDetail::class); - $this->error_details = $arr; - - 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 - * `error_details`. - * - * Generated from protobuf field int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getErrorCount() - { - return $this->error_count; - } - - /** - * 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 - * `error_details`. - * - * Generated from protobuf field int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setErrorCount($var) - { - GPBUtil::checkInt32($var); - $this->error_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SQLServerDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SQLServerDialect.php deleted file mode 100644 index bc73278be03b..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SQLServerDialect.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.bigquery.migration.v2.SQLServerDialect - */ -class SQLServerDialect extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SQLiteDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SQLiteDialect.php deleted file mode 100644 index 01c66370831a..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SQLiteDialect.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.bigquery.migration.v2.SQLiteDialect - */ -class SQLiteDialect extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SnowflakeDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SnowflakeDialect.php deleted file mode 100644 index 0e512b042861..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SnowflakeDialect.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.bigquery.migration.v2.SnowflakeDialect - */ -class SnowflakeDialect extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceEnv.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceEnv.php deleted file mode 100644 index c26e9b1946a8..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceEnv.php +++ /dev/null @@ -1,163 +0,0 @@ -google.cloud.bigquery.migration.v2.SourceEnv - */ -class SourceEnv extends \Google\Protobuf\Internal\Message -{ - /** - * The default database name to fully qualify SQL objects when their database - * name is missing. - * - * Generated from protobuf field string default_database = 1; - */ - protected $default_database = ''; - /** - * The schema search path. When SQL objects are missing schema name, - * translation engine will search through this list to find the value. - * - * Generated from protobuf field repeated string schema_search_path = 2; - */ - private $schema_search_path; - /** - * Optional. Expects a valid BigQuery dataset ID that exists, e.g., - * project-123.metadata_store_123. If specified, translation will search and - * read the required schema information from a metadata store in this dataset. - * If metadata store doesn't exist, translation will parse the metadata file - * and upload the schema info to a temp table in the dataset to speed up - * future translation jobs. - * - * Generated from protobuf field string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $metadata_store_dataset = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $default_database - * The default database name to fully qualify SQL objects when their database - * name is missing. - * @type string[] $schema_search_path - * The schema search path. When SQL objects are missing schema name, - * translation engine will search through this list to find the value. - * @type string $metadata_store_dataset - * Optional. Expects a valid BigQuery dataset ID that exists, e.g., - * project-123.metadata_store_123. If specified, translation will search and - * read the required schema information from a metadata store in this dataset. - * If metadata store doesn't exist, translation will parse the metadata file - * and upload the schema info to a temp table in the dataset to speed up - * future translation jobs. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - - /** - * The default database name to fully qualify SQL objects when their database - * name is missing. - * - * Generated from protobuf field string default_database = 1; - * @return string - */ - public function getDefaultDatabase() - { - return $this->default_database; - } - - /** - * The default database name to fully qualify SQL objects when their database - * name is missing. - * - * Generated from protobuf field string default_database = 1; - * @param string $var - * @return $this - */ - public function setDefaultDatabase($var) - { - GPBUtil::checkString($var, True); - $this->default_database = $var; - - return $this; - } - - /** - * The schema search path. When SQL objects are missing schema name, - * translation engine will search through this list to find the value. - * - * Generated from protobuf field repeated string schema_search_path = 2; - * @return RepeatedField - */ - public function getSchemaSearchPath() - { - return $this->schema_search_path; - } - - /** - * The schema search path. When SQL objects are missing schema name, - * translation engine will search through this list to find the value. - * - * Generated from protobuf field repeated string schema_search_path = 2; - * @param string[] $var - * @return $this - */ - public function setSchemaSearchPath($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->schema_search_path = $arr; - - return $this; - } - - /** - * Optional. Expects a valid BigQuery dataset ID that exists, e.g., - * project-123.metadata_store_123. If specified, translation will search and - * read the required schema information from a metadata store in this dataset. - * If metadata store doesn't exist, translation will parse the metadata file - * and upload the schema info to a temp table in the dataset to speed up - * future translation jobs. - * - * Generated from protobuf field string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMetadataStoreDataset() - { - return $this->metadata_store_dataset; - } - - /** - * Optional. Expects a valid BigQuery dataset ID that exists, e.g., - * project-123.metadata_store_123. If specified, translation will search and - * read the required schema information from a metadata store in this dataset. - * If metadata store doesn't exist, translation will parse the metadata file - * and upload the schema info to a temp table in the dataset to speed up - * future translation jobs. - * - * Generated from protobuf field string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMetadataStoreDataset($var) - { - GPBUtil::checkString($var, True); - $this->metadata_store_dataset = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceEnvironment.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceEnvironment.php deleted file mode 100644 index 21b9cc62eab5..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceEnvironment.php +++ /dev/null @@ -1,163 +0,0 @@ -google.cloud.bigquery.migration.v2.SourceEnvironment - */ -class SourceEnvironment extends \Google\Protobuf\Internal\Message -{ - /** - * The default database name to fully qualify SQL objects when their database - * name is missing. - * - * Generated from protobuf field string default_database = 1; - */ - protected $default_database = ''; - /** - * The schema search path. When SQL objects are missing schema name, - * translation engine will search through this list to find the value. - * - * Generated from protobuf field repeated string schema_search_path = 2; - */ - private $schema_search_path; - /** - * Optional. Expects a validQ BigQuery dataset ID that exists, e.g., - * project-123.metadata_store_123. If specified, translation will search and - * read the required schema information from a metadata store in this dataset. - * If metadata store doesn't exist, translation will parse the metadata file - * and upload the schema info to a temp table in the dataset to speed up - * future translation jobs. - * - * Generated from protobuf field string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $metadata_store_dataset = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $default_database - * The default database name to fully qualify SQL objects when their database - * name is missing. - * @type string[] $schema_search_path - * The schema search path. When SQL objects are missing schema name, - * translation engine will search through this list to find the value. - * @type string $metadata_store_dataset - * Optional. Expects a validQ BigQuery dataset ID that exists, e.g., - * project-123.metadata_store_123. If specified, translation will search and - * read the required schema information from a metadata store in this dataset. - * If metadata store doesn't exist, translation will parse the metadata file - * and upload the schema info to a temp table in the dataset to speed up - * future translation jobs. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationDetails::initOnce(); - parent::__construct($data); - } - - /** - * The default database name to fully qualify SQL objects when their database - * name is missing. - * - * Generated from protobuf field string default_database = 1; - * @return string - */ - public function getDefaultDatabase() - { - return $this->default_database; - } - - /** - * The default database name to fully qualify SQL objects when their database - * name is missing. - * - * Generated from protobuf field string default_database = 1; - * @param string $var - * @return $this - */ - public function setDefaultDatabase($var) - { - GPBUtil::checkString($var, True); - $this->default_database = $var; - - return $this; - } - - /** - * The schema search path. When SQL objects are missing schema name, - * translation engine will search through this list to find the value. - * - * Generated from protobuf field repeated string schema_search_path = 2; - * @return RepeatedField - */ - public function getSchemaSearchPath() - { - return $this->schema_search_path; - } - - /** - * The schema search path. When SQL objects are missing schema name, - * translation engine will search through this list to find the value. - * - * Generated from protobuf field repeated string schema_search_path = 2; - * @param string[] $var - * @return $this - */ - public function setSchemaSearchPath($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->schema_search_path = $arr; - - return $this; - } - - /** - * Optional. Expects a validQ BigQuery dataset ID that exists, e.g., - * project-123.metadata_store_123. If specified, translation will search and - * read the required schema information from a metadata store in this dataset. - * If metadata store doesn't exist, translation will parse the metadata file - * and upload the schema info to a temp table in the dataset to speed up - * future translation jobs. - * - * Generated from protobuf field string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMetadataStoreDataset() - { - return $this->metadata_store_dataset; - } - - /** - * Optional. Expects a validQ BigQuery dataset ID that exists, e.g., - * project-123.metadata_store_123. If specified, translation will search and - * read the required schema information from a metadata store in this dataset. - * If metadata store doesn't exist, translation will parse the metadata file - * and upload the schema info to a temp table in the dataset to speed up - * future translation jobs. - * - * Generated from protobuf field string metadata_store_dataset = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMetadataStoreDataset($var) - { - GPBUtil::checkString($var, True); - $this->metadata_store_dataset = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceSpec.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceSpec.php deleted file mode 100644 index 522af4edaa58..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceSpec.php +++ /dev/null @@ -1,175 +0,0 @@ -google.cloud.bigquery.migration.v2.SourceSpec - */ -class SourceSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The optional field to specify the encoding of the sql bytes. - * - * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $encoding = ''; - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $base_uri - * The base URI for all files to be read in as sources for translation. - * @type \Google\Cloud\BigQuery\Migration\V2\Literal $literal - * Source literal. - * @type string $gcs_file_path - * The path to a single source file in Cloud Storage. - * @type string $encoding - * Optional. The optional field to specify the encoding of the sql bytes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationDetails::initOnce(); - parent::__construct($data); - } - - /** - * The base URI for all files to be read in as sources for translation. - * - * Generated from protobuf field string base_uri = 1; - * @return string - */ - public function getBaseUri() - { - return $this->readOneof(1); - } - - public function hasBaseUri() - { - return $this->hasOneof(1); - } - - /** - * The base URI for all files to be read in as sources for translation. - * - * Generated from protobuf field string base_uri = 1; - * @param string $var - * @return $this - */ - public function setBaseUri($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Source literal. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.Literal literal = 2; - * @return \Google\Cloud\BigQuery\Migration\V2\Literal|null - */ - public function getLiteral() - { - return $this->readOneof(2); - } - - public function hasLiteral() - { - return $this->hasOneof(2); - } - - /** - * Source literal. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.Literal literal = 2; - * @param \Google\Cloud\BigQuery\Migration\V2\Literal $var - * @return $this - */ - public function setLiteral($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\Literal::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The path to a single source file in Cloud Storage. - * - * Generated from protobuf field string gcs_file_path = 4; - * @return string - */ - public function getGcsFilePath() - { - return $this->readOneof(4); - } - - public function hasGcsFilePath() - { - return $this->hasOneof(4); - } - - /** - * The path to a single source file in Cloud Storage. - * - * Generated from protobuf field string gcs_file_path = 4; - * @param string $var - * @return $this - */ - public function setGcsFilePath($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Optional. The optional field to specify the encoding of the sql bytes. - * - * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEncoding() - { - return $this->encoding; - } - - /** - * Optional. The optional field to specify the encoding of the sql bytes. - * - * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkString($var, True); - $this->encoding = $var; - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceTargetMapping.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceTargetMapping.php deleted file mode 100644 index bb2f21e06a7d..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SourceTargetMapping.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.bigquery.migration.v2.SourceTargetMapping - */ -class SourceTargetMapping extends \Google\Protobuf\Internal\Message -{ - /** - * The source SQL or the path to it. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1; - */ - protected $source_spec = null; - /** - * The target SQL or the path for it. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2; - */ - protected $target_spec = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\BigQuery\Migration\V2\SourceSpec $source_spec - * The source SQL or the path to it. - * @type \Google\Cloud\BigQuery\Migration\V2\TargetSpec $target_spec - * The target SQL or the path for it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationDetails::initOnce(); - parent::__construct($data); - } - - /** - * The source SQL or the path to it. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1; - * @return \Google\Cloud\BigQuery\Migration\V2\SourceSpec|null - */ - public function getSourceSpec() - { - return $this->source_spec; - } - - public function hasSourceSpec() - { - return isset($this->source_spec); - } - - public function clearSourceSpec() - { - unset($this->source_spec); - } - - /** - * The source SQL or the path to it. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.SourceSpec source_spec = 1; - * @param \Google\Cloud\BigQuery\Migration\V2\SourceSpec $var - * @return $this - */ - public function setSourceSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\SourceSpec::class); - $this->source_spec = $var; - - return $this; - } - - /** - * The target SQL or the path for it. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2; - * @return \Google\Cloud\BigQuery\Migration\V2\TargetSpec|null - */ - public function getTargetSpec() - { - return $this->target_spec; - } - - public function hasTargetSpec() - { - return isset($this->target_spec); - } - - public function clearTargetSpec() - { - unset($this->target_spec); - } - - /** - * The target SQL or the path for it. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TargetSpec target_spec = 2; - * @param \Google\Cloud\BigQuery\Migration\V2\TargetSpec $var - * @return $this - */ - public function setTargetSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\TargetSpec::class); - $this->target_spec = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SparkSQLDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SparkSQLDialect.php deleted file mode 100644 index ffeb21ce40c5..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/SparkSQLDialect.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.bigquery.migration.v2.SparkSQLDialect - */ -class SparkSQLDialect extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/StartMigrationWorkflowRequest.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/StartMigrationWorkflowRequest.php deleted file mode 100644 index d4391e65355f..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/StartMigrationWorkflowRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest - */ -class StartMigrationWorkflowRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The unique identifier for the migration workflow. - * Example: `projects/123/locations/us/workflows/1234` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The unique identifier for the migration workflow. - * Example: `projects/123/locations/us/workflows/1234` - * Please see {@see MigrationServiceClient::migrationWorkflowName()} for help formatting this field. - * - * @return \Google\Cloud\BigQuery\Migration\V2\StartMigrationWorkflowRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The unique identifier for the migration workflow. - * Example: `projects/123/locations/us/workflows/1234` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The unique identifier for the migration workflow. - * Example: `projects/123/locations/us/workflows/1234` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The unique identifier for the migration workflow. - * Example: `projects/123/locations/us/workflows/1234` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TargetSpec.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TargetSpec.php deleted file mode 100644 index b80eb7ebf3c3..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TargetSpec.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.bigquery.migration.v2.TargetSpec - */ -class TargetSpec extends \Google\Protobuf\Internal\Message -{ - /** - * The relative path for the target data. Given source file - * `base_uri/input/sql`, the output would be - * `target_base_uri/sql/relative_path/input.sql`. - * - * Generated from protobuf field string relative_path = 1; - */ - protected $relative_path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $relative_path - * The relative path for the target data. Given source file - * `base_uri/input/sql`, the output would be - * `target_base_uri/sql/relative_path/input.sql`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationDetails::initOnce(); - parent::__construct($data); - } - - /** - * The relative path for the target data. Given source file - * `base_uri/input/sql`, the output would be - * `target_base_uri/sql/relative_path/input.sql`. - * - * Generated from protobuf field string relative_path = 1; - * @return string - */ - public function getRelativePath() - { - return $this->relative_path; - } - - /** - * The relative path for the target data. Given source file - * `base_uri/input/sql`, the output would be - * `target_base_uri/sql/relative_path/input.sql`. - * - * Generated from protobuf field string relative_path = 1; - * @param string $var - * @return $this - */ - public function setRelativePath($var) - { - GPBUtil::checkString($var, True); - $this->relative_path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TeradataDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TeradataDialect.php deleted file mode 100644 index 8dea579cd73d..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TeradataDialect.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.bigquery.migration.v2.TeradataDialect - */ -class TeradataDialect extends \Google\Protobuf\Internal\Message -{ - /** - * Which Teradata sub-dialect mode the user specifies. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TeradataDialect.Mode mode = 1; - */ - protected $mode = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $mode - * Which Teradata sub-dialect mode the user specifies. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - - /** - * Which Teradata sub-dialect mode the user specifies. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TeradataDialect.Mode mode = 1; - * @return int - */ - public function getMode() - { - return $this->mode; - } - - /** - * Which Teradata sub-dialect mode the user specifies. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TeradataDialect.Mode mode = 1; - * @param int $var - * @return $this - */ - public function setMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\Migration\V2\TeradataDialect\Mode::class); - $this->mode = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TeradataDialect/Mode.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TeradataDialect/Mode.php deleted file mode 100644 index 4f5282531839..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TeradataDialect/Mode.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.bigquery.migration.v2.TeradataDialect.Mode - */ -class Mode -{ - /** - * Unspecified mode. - * - * Generated from protobuf enum MODE_UNSPECIFIED = 0; - */ - const MODE_UNSPECIFIED = 0; - /** - * Teradata SQL mode. - * - * Generated from protobuf enum SQL = 1; - */ - const SQL = 1; - /** - * BTEQ mode (which includes SQL). - * - * Generated from protobuf enum BTEQ = 2; - */ - const BTEQ = 2; - - private static $valueToName = [ - self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', - self::SQL => 'SQL', - self::BTEQ => 'BTEQ', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TimeInterval.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TimeInterval.php deleted file mode 100644 index 315ffd70f789..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TimeInterval.php +++ /dev/null @@ -1,131 +0,0 @@ -google.cloud.bigquery.migration.v2.TimeInterval - */ -class TimeInterval extends \Google\Protobuf\Internal\Message -{ - /** - * 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. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $start_time = null; - /** - * Required. The end of the time interval. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $start_time - * 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. - * @type \Google\Protobuf\Timestamp $end_time - * Required. The end of the time interval. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationMetrics::initOnce(); - parent::__construct($data); - } - - /** - * 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. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * 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. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Required. The end of the time interval. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Required. The end of the time interval. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TimeSeries.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TimeSeries.php deleted file mode 100644 index 723fac82b185..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TimeSeries.php +++ /dev/null @@ -1,213 +0,0 @@ -google.cloud.bigquery.migration.v2.TimeSeries - */ -class TimeSeries extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the metric. - * If the metric is not known by the service yet, it will be auto-created. - * - * Generated from protobuf field string metric = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $metric = ''; - /** - * Required. The value type of the time series. - * - * Generated from protobuf field .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value_type = 0; - /** - * Optional. The metric kind of the time series. - * If present, it must be the same as the metric kind of the associated - * metric. If the associated metric's descriptor must be auto-created, then - * this field specifies the metric kind of the new descriptor and must be - * either `GAUGE` (the default) or `CUMULATIVE`. - * - * Generated from protobuf field .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $metric_kind = 0; - /** - * Required. The data points of this time series. When listing time series, - * points are returned in reverse time order. - * When creating a time series, this field must contain exactly one point and - * the point's type must be the same as the value type of the associated - * metric. If the associated metric's descriptor must be auto-created, then - * the value type of the descriptor is determined by the point's type, which - * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private $points; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metric - * Required. The name of the metric. - * If the metric is not known by the service yet, it will be auto-created. - * @type int $value_type - * Required. The value type of the time series. - * @type int $metric_kind - * Optional. The metric kind of the time series. - * If present, it must be the same as the metric kind of the associated - * metric. If the associated metric's descriptor must be auto-created, then - * this field specifies the metric kind of the new descriptor and must be - * either `GAUGE` (the default) or `CUMULATIVE`. - * @type \Google\Cloud\BigQuery\Migration\V2\Point[] $points - * Required. The data points of this time series. When listing time series, - * points are returned in reverse time order. - * When creating a time series, this field must contain exactly one point and - * the point's type must be the same as the value type of the associated - * metric. If the associated metric's descriptor must be auto-created, then - * the value type of the descriptor is determined by the point's type, which - * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationMetrics::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the metric. - * If the metric is not known by the service yet, it will be auto-created. - * - * Generated from protobuf field string metric = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMetric() - { - return $this->metric; - } - - /** - * Required. The name of the metric. - * If the metric is not known by the service yet, it will be auto-created. - * - * Generated from protobuf field string metric = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMetric($var) - { - GPBUtil::checkString($var, True); - $this->metric = $var; - - return $this; - } - - /** - * Required. The value type of the time series. - * - * Generated from protobuf field .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getValueType() - { - return $this->value_type; - } - - /** - * Required. The value type of the time series. - * - * Generated from protobuf field .google.api.MetricDescriptor.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setValueType($var) - { - GPBUtil::checkEnum($var, \Google\Api\MetricDescriptor\ValueType::class); - $this->value_type = $var; - - return $this; - } - - /** - * Optional. The metric kind of the time series. - * If present, it must be the same as the metric kind of the associated - * metric. If the associated metric's descriptor must be auto-created, then - * this field specifies the metric kind of the new descriptor and must be - * either `GAUGE` (the default) or `CUMULATIVE`. - * - * Generated from protobuf field .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getMetricKind() - { - return $this->metric_kind; - } - - /** - * Optional. The metric kind of the time series. - * If present, it must be the same as the metric kind of the associated - * metric. If the associated metric's descriptor must be auto-created, then - * this field specifies the metric kind of the new descriptor and must be - * either `GAUGE` (the default) or `CUMULATIVE`. - * - * Generated from protobuf field .google.api.MetricDescriptor.MetricKind metric_kind = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setMetricKind($var) - { - GPBUtil::checkEnum($var, \Google\Api\MetricDescriptor\MetricKind::class); - $this->metric_kind = $var; - - return $this; - } - - /** - * Required. The data points of this time series. When listing time series, - * points are returned in reverse time order. - * When creating a time series, this field must contain exactly one point and - * the point's type must be the same as the value type of the associated - * metric. If the associated metric's descriptor must be auto-created, then - * the value type of the descriptor is determined by the point's type, which - * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\Point> - */ - public function getPoints() - { - return $this->points; - } - - /** - * Required. The data points of this time series. When listing time series, - * points are returned in reverse time order. - * When creating a time series, this field must contain exactly one point and - * the point's type must be the same as the value type of the associated - * metric. If the associated metric's descriptor must be auto-created, then - * the value type of the descriptor is determined by the point's type, which - * must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.Point points = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\BigQuery\Migration\V2\Point[] $var - * @return $this - */ - public function setPoints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\Point::class); - $this->points = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationConfigDetails.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationConfigDetails.php deleted file mode 100644 index 64de4daf7d84..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationConfigDetails.php +++ /dev/null @@ -1,372 +0,0 @@ -google.cloud.bigquery.migration.v2.TranslationConfigDetails - */ -class TranslationConfigDetails extends \Google\Protobuf\Internal\Message -{ - /** - * The dialect of the input files. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3; - */ - protected $source_dialect = null; - /** - * The target dialect for the engine to translate the input to. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4; - */ - protected $target_dialect = null; - /** - * The default source environment values for the translation. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6; - */ - protected $source_env = null; - /** - * The indicator to show translation request initiator. - * - * Generated from protobuf field string request_source = 8; - */ - protected $request_source = ''; - /** - * The types of output to generate, e.g. sql, metadata etc. If not specified, - * a default set of targets will be generated. Some additional target types - * may be slower to generate. See the documentation for the set of available - * target types. - * - * Generated from protobuf field repeated string target_types = 9; - */ - private $target_types; - protected $source_location; - protected $target_location; - protected $output_name_mapping; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gcs_source_path - * The Cloud Storage path for a directory of files to translate in a task. - * @type string $gcs_target_path - * The Cloud Storage path to write back the corresponding input files to. - * @type \Google\Cloud\BigQuery\Migration\V2\ObjectNameMappingList $name_mapping_list - * The mapping of objects to their desired output names in list form. - * @type \Google\Cloud\BigQuery\Migration\V2\Dialect $source_dialect - * The dialect of the input files. - * @type \Google\Cloud\BigQuery\Migration\V2\Dialect $target_dialect - * The target dialect for the engine to translate the input to. - * @type \Google\Cloud\BigQuery\Migration\V2\SourceEnv $source_env - * The default source environment values for the translation. - * @type string $request_source - * The indicator to show translation request initiator. - * @type string[] $target_types - * The types of output to generate, e.g. sql, metadata etc. If not specified, - * a default set of targets will be generated. Some additional target types - * may be slower to generate. See the documentation for the set of available - * target types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - - /** - * The Cloud Storage path for a directory of files to translate in a task. - * - * Generated from protobuf field string gcs_source_path = 1; - * @return string - */ - public function getGcsSourcePath() - { - return $this->readOneof(1); - } - - public function hasGcsSourcePath() - { - return $this->hasOneof(1); - } - - /** - * The Cloud Storage path for a directory of files to translate in a task. - * - * Generated from protobuf field string gcs_source_path = 1; - * @param string $var - * @return $this - */ - public function setGcsSourcePath($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The Cloud Storage path to write back the corresponding input files to. - * - * Generated from protobuf field string gcs_target_path = 2; - * @return string - */ - public function getGcsTargetPath() - { - return $this->readOneof(2); - } - - public function hasGcsTargetPath() - { - return $this->hasOneof(2); - } - - /** - * The Cloud Storage path to write back the corresponding input files to. - * - * Generated from protobuf field string gcs_target_path = 2; - * @param string $var - * @return $this - */ - public function setGcsTargetPath($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The mapping of objects to their desired output names in list form. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; - * @return \Google\Cloud\BigQuery\Migration\V2\ObjectNameMappingList|null - */ - public function getNameMappingList() - { - return $this->readOneof(5); - } - - public function hasNameMappingList() - { - return $this->hasOneof(5); - } - - /** - * The mapping of objects to their desired output names in list form. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; - * @param \Google\Cloud\BigQuery\Migration\V2\ObjectNameMappingList $var - * @return $this - */ - public function setNameMappingList($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\ObjectNameMappingList::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * The dialect of the input files. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3; - * @return \Google\Cloud\BigQuery\Migration\V2\Dialect|null - */ - public function getSourceDialect() - { - return $this->source_dialect; - } - - public function hasSourceDialect() - { - return isset($this->source_dialect); - } - - public function clearSourceDialect() - { - unset($this->source_dialect); - } - - /** - * The dialect of the input files. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.Dialect source_dialect = 3; - * @param \Google\Cloud\BigQuery\Migration\V2\Dialect $var - * @return $this - */ - public function setSourceDialect($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\Dialect::class); - $this->source_dialect = $var; - - return $this; - } - - /** - * The target dialect for the engine to translate the input to. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4; - * @return \Google\Cloud\BigQuery\Migration\V2\Dialect|null - */ - public function getTargetDialect() - { - return $this->target_dialect; - } - - public function hasTargetDialect() - { - return isset($this->target_dialect); - } - - public function clearTargetDialect() - { - unset($this->target_dialect); - } - - /** - * The target dialect for the engine to translate the input to. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.Dialect target_dialect = 4; - * @param \Google\Cloud\BigQuery\Migration\V2\Dialect $var - * @return $this - */ - public function setTargetDialect($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\Dialect::class); - $this->target_dialect = $var; - - return $this; - } - - /** - * The default source environment values for the translation. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6; - * @return \Google\Cloud\BigQuery\Migration\V2\SourceEnv|null - */ - public function getSourceEnv() - { - return $this->source_env; - } - - public function hasSourceEnv() - { - return isset($this->source_env); - } - - public function clearSourceEnv() - { - unset($this->source_env); - } - - /** - * The default source environment values for the translation. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6; - * @param \Google\Cloud\BigQuery\Migration\V2\SourceEnv $var - * @return $this - */ - public function setSourceEnv($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\SourceEnv::class); - $this->source_env = $var; - - return $this; - } - - /** - * The indicator to show translation request initiator. - * - * Generated from protobuf field string request_source = 8; - * @return string - */ - public function getRequestSource() - { - return $this->request_source; - } - - /** - * The indicator to show translation request initiator. - * - * Generated from protobuf field string request_source = 8; - * @param string $var - * @return $this - */ - public function setRequestSource($var) - { - GPBUtil::checkString($var, True); - $this->request_source = $var; - - return $this; - } - - /** - * The types of output to generate, e.g. sql, metadata etc. If not specified, - * a default set of targets will be generated. Some additional target types - * may be slower to generate. See the documentation for the set of available - * target types. - * - * Generated from protobuf field repeated string target_types = 9; - * @return RepeatedField - */ - public function getTargetTypes() - { - return $this->target_types; - } - - /** - * The types of output to generate, e.g. sql, metadata etc. If not specified, - * a default set of targets will be generated. Some additional target types - * may be slower to generate. See the documentation for the set of available - * target types. - * - * Generated from protobuf field repeated string target_types = 9; - * @param string[] $var - * @return $this - */ - public function setTargetTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->target_types = $arr; - - return $this; - } - - /** - * @return string - */ - public function getSourceLocation() - { - return $this->whichOneof("source_location"); - } - - /** - * @return string - */ - public function getTargetLocation() - { - return $this->whichOneof("target_location"); - } - - /** - * @return string - */ - public function getOutputNameMapping() - { - return $this->whichOneof("output_name_mapping"); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationDetails.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationDetails.php deleted file mode 100644 index adc0f676f7da..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationDetails.php +++ /dev/null @@ -1,278 +0,0 @@ -google.cloud.bigquery.migration.v2.TranslationDetails - */ -class TranslationDetails extends \Google\Protobuf\Internal\Message -{ - /** - * The mapping from source to target SQL. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; - */ - private $source_target_mapping; - /** - * The base URI for all writes to persistent storage. - * - * Generated from protobuf field string target_base_uri = 2; - */ - protected $target_base_uri = ''; - /** - * The default source environment values for the translation. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; - */ - protected $source_environment = null; - /** - * The list of literal targets that will be directly returned to the response. - * Each entry consists of the constructed path, EXCLUDING the base path. Not - * providing a target_base_uri will prevent writing to persistent storage. - * - * Generated from protobuf field repeated string target_return_literals = 4; - */ - private $target_return_literals; - /** - * The types of output to generate, e.g. sql, metadata, - * lineage_from_sql_scripts, etc. If not specified, a default set of - * targets will be generated. Some additional target types may be slower to - * generate. See the documentation for the set of available target types. - * - * Generated from protobuf field repeated string target_types = 5; - */ - private $target_types; - /** - * The configuration for the suggestion if requested as a target type. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6; - */ - protected $suggestion_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\BigQuery\Migration\V2\SourceTargetMapping[] $source_target_mapping - * The mapping from source to target SQL. - * @type string $target_base_uri - * The base URI for all writes to persistent storage. - * @type \Google\Cloud\BigQuery\Migration\V2\SourceEnvironment $source_environment - * The default source environment values for the translation. - * @type string[] $target_return_literals - * The list of literal targets that will be directly returned to the response. - * Each entry consists of the constructed path, EXCLUDING the base path. Not - * providing a target_base_uri will prevent writing to persistent storage. - * @type string[] $target_types - * The types of output to generate, e.g. sql, metadata, - * lineage_from_sql_scripts, etc. If not specified, a default set of - * targets will be generated. Some additional target types may be slower to - * generate. See the documentation for the set of available target types. - * @type \Google\Cloud\BigQuery\Migration\V2\SuggestionConfig $suggestion_config - * The configuration for the suggestion if requested as a target type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationDetails::initOnce(); - parent::__construct($data); - } - - /** - * The mapping from source to target SQL. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; - * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\SourceTargetMapping> - */ - public function getSourceTargetMapping() - { - return $this->source_target_mapping; - } - - /** - * The mapping from source to target SQL. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.SourceTargetMapping source_target_mapping = 1; - * @param \Google\Cloud\BigQuery\Migration\V2\SourceTargetMapping[] $var - * @return $this - */ - public function setSourceTargetMapping($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\SourceTargetMapping::class); - $this->source_target_mapping = $arr; - - return $this; - } - - /** - * The base URI for all writes to persistent storage. - * - * Generated from protobuf field string target_base_uri = 2; - * @return string - */ - public function getTargetBaseUri() - { - return $this->target_base_uri; - } - - /** - * The base URI for all writes to persistent storage. - * - * Generated from protobuf field string target_base_uri = 2; - * @param string $var - * @return $this - */ - public function setTargetBaseUri($var) - { - GPBUtil::checkString($var, True); - $this->target_base_uri = $var; - - return $this; - } - - /** - * The default source environment values for the translation. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; - * @return \Google\Cloud\BigQuery\Migration\V2\SourceEnvironment|null - */ - public function getSourceEnvironment() - { - return $this->source_environment; - } - - public function hasSourceEnvironment() - { - return isset($this->source_environment); - } - - public function clearSourceEnvironment() - { - unset($this->source_environment); - } - - /** - * The default source environment values for the translation. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.SourceEnvironment source_environment = 3; - * @param \Google\Cloud\BigQuery\Migration\V2\SourceEnvironment $var - * @return $this - */ - public function setSourceEnvironment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\SourceEnvironment::class); - $this->source_environment = $var; - - return $this; - } - - /** - * The list of literal targets that will be directly returned to the response. - * Each entry consists of the constructed path, EXCLUDING the base path. Not - * providing a target_base_uri will prevent writing to persistent storage. - * - * Generated from protobuf field repeated string target_return_literals = 4; - * @return RepeatedField - */ - public function getTargetReturnLiterals() - { - return $this->target_return_literals; - } - - /** - * The list of literal targets that will be directly returned to the response. - * Each entry consists of the constructed path, EXCLUDING the base path. Not - * providing a target_base_uri will prevent writing to persistent storage. - * - * Generated from protobuf field repeated string target_return_literals = 4; - * @param string[] $var - * @return $this - */ - public function setTargetReturnLiterals($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->target_return_literals = $arr; - - return $this; - } - - /** - * The types of output to generate, e.g. sql, metadata, - * lineage_from_sql_scripts, etc. If not specified, a default set of - * targets will be generated. Some additional target types may be slower to - * generate. See the documentation for the set of available target types. - * - * Generated from protobuf field repeated string target_types = 5; - * @return RepeatedField - */ - public function getTargetTypes() - { - return $this->target_types; - } - - /** - * The types of output to generate, e.g. sql, metadata, - * lineage_from_sql_scripts, etc. If not specified, a default set of - * targets will be generated. Some additional target types may be slower to - * generate. See the documentation for the set of available target types. - * - * Generated from protobuf field repeated string target_types = 5; - * @param string[] $var - * @return $this - */ - public function setTargetTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->target_types = $arr; - - return $this; - } - - /** - * The configuration for the suggestion if requested as a target type. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6; - * @return \Google\Cloud\BigQuery\Migration\V2\SuggestionConfig|null - */ - public function getSuggestionConfig() - { - return $this->suggestion_config; - } - - public function hasSuggestionConfig() - { - return isset($this->suggestion_config); - } - - public function clearSuggestionConfig() - { - unset($this->suggestion_config); - } - - /** - * The configuration for the suggestion if requested as a target type. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.SuggestionConfig suggestion_config = 6; - * @param \Google\Cloud\BigQuery\Migration\V2\SuggestionConfig $var - * @return $this - */ - public function setSuggestionConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\SuggestionConfig::class); - $this->suggestion_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationReportRecord.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationReportRecord.php deleted file mode 100644 index dd1ec6b9f722..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationReportRecord.php +++ /dev/null @@ -1,211 +0,0 @@ -google.cloud.bigquery.migration.v2.TranslationReportRecord - */ -class TranslationReportRecord extends \Google\Protobuf\Internal\Message -{ - /** - * Severity of the translation record. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity severity = 1; - */ - protected $severity = 0; - /** - * Specifies the row from the source text where the error occurred (0 based). - * Example: 2 - * - * Generated from protobuf field int32 script_line = 2; - */ - protected $script_line = 0; - /** - * Specifies the column from the source texts where the error occurred. (0 - * based) example: 6 - * - * Generated from protobuf field int32 script_column = 3; - */ - protected $script_column = 0; - /** - * Category of the error/warning. Example: SyntaxError - * - * Generated from protobuf field string category = 4; - */ - protected $category = ''; - /** - * Detailed message of the record. - * - * Generated from protobuf field string message = 5; - */ - protected $message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $severity - * Severity of the translation record. - * @type int $script_line - * Specifies the row from the source text where the error occurred (0 based). - * Example: 2 - * @type int $script_column - * Specifies the column from the source texts where the error occurred. (0 - * based) example: 6 - * @type string $category - * Category of the error/warning. Example: SyntaxError - * @type string $message - * Detailed message of the record. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationSuggestion::initOnce(); - parent::__construct($data); - } - - /** - * Severity of the translation record. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity severity = 1; - * @return int - */ - public function getSeverity() - { - return $this->severity; - } - - /** - * Severity of the translation record. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity severity = 1; - * @param int $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\Migration\V2\TranslationReportRecord\Severity::class); - $this->severity = $var; - - return $this; - } - - /** - * Specifies the row from the source text where the error occurred (0 based). - * Example: 2 - * - * Generated from protobuf field int32 script_line = 2; - * @return int - */ - public function getScriptLine() - { - return $this->script_line; - } - - /** - * Specifies the row from the source text where the error occurred (0 based). - * Example: 2 - * - * Generated from protobuf field int32 script_line = 2; - * @param int $var - * @return $this - */ - public function setScriptLine($var) - { - GPBUtil::checkInt32($var); - $this->script_line = $var; - - return $this; - } - - /** - * Specifies the column from the source texts where the error occurred. (0 - * based) example: 6 - * - * Generated from protobuf field int32 script_column = 3; - * @return int - */ - public function getScriptColumn() - { - return $this->script_column; - } - - /** - * Specifies the column from the source texts where the error occurred. (0 - * based) example: 6 - * - * Generated from protobuf field int32 script_column = 3; - * @param int $var - * @return $this - */ - public function setScriptColumn($var) - { - GPBUtil::checkInt32($var); - $this->script_column = $var; - - return $this; - } - - /** - * Category of the error/warning. Example: SyntaxError - * - * Generated from protobuf field string category = 4; - * @return string - */ - public function getCategory() - { - return $this->category; - } - - /** - * Category of the error/warning. Example: SyntaxError - * - * Generated from protobuf field string category = 4; - * @param string $var - * @return $this - */ - public function setCategory($var) - { - GPBUtil::checkString($var, True); - $this->category = $var; - - return $this; - } - - /** - * Detailed message of the record. - * - * Generated from protobuf field string message = 5; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Detailed message of the record. - * - * Generated from protobuf field string message = 5; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationReportRecord/Severity.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationReportRecord/Severity.php deleted file mode 100644 index c2df77bb00db..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationReportRecord/Severity.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.bigquery.migration.v2.TranslationReportRecord.Severity - */ -class Severity -{ - /** - * SeverityType not specified. - * - * Generated from protobuf enum SEVERITY_UNSPECIFIED = 0; - */ - const SEVERITY_UNSPECIFIED = 0; - /** - * INFO type. - * - * Generated from protobuf enum INFO = 1; - */ - const INFO = 1; - /** - * WARNING type. The translated query may still provide useful information - * if all the report records are WARNING. - * - * Generated from protobuf enum WARNING = 2; - */ - const WARNING = 2; - /** - * ERROR type. Translation failed. - * - * Generated from protobuf enum ERROR = 3; - */ - const ERROR = 3; - - private static $valueToName = [ - self::SEVERITY_UNSPECIFIED => 'SEVERITY_UNSPECIFIED', - self::INFO => 'INFO', - self::WARNING => 'WARNING', - self::ERROR => 'ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationTaskResult.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationTaskResult.php deleted file mode 100644 index 765b346ef975..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TranslationTaskResult.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.bigquery.migration.v2.TranslationTaskResult - */ -class TranslationTaskResult extends \Google\Protobuf\Internal\Message -{ - /** - * The list of the translated literals. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; - */ - private $translated_literals; - /** - * The records from the aggregate CSV report for a migration workflow. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; - */ - private $report_log_messages; - /** - * The Cloud Console URI for the migration workflow. - * - * Generated from protobuf field string console_uri = 3; - */ - protected $console_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\BigQuery\Migration\V2\Literal[] $translated_literals - * The list of the translated literals. - * @type \Google\Cloud\BigQuery\Migration\V2\GcsReportLogMessage[] $report_log_messages - * The records from the aggregate CSV report for a migration workflow. - * @type string $console_uri - * The Cloud Console URI for the migration workflow. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationEntities::initOnce(); - parent::__construct($data); - } - - /** - * The list of the translated literals. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; - * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\Literal> - */ - public function getTranslatedLiterals() - { - return $this->translated_literals; - } - - /** - * The list of the translated literals. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.Literal translated_literals = 1; - * @param \Google\Cloud\BigQuery\Migration\V2\Literal[] $var - * @return $this - */ - public function setTranslatedLiterals($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\Literal::class); - $this->translated_literals = $arr; - - return $this; - } - - /** - * The records from the aggregate CSV report for a migration workflow. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; - * @return RepeatedField<\Google\Cloud\BigQuery\Migration\V2\GcsReportLogMessage> - */ - public function getReportLogMessages() - { - return $this->report_log_messages; - } - - /** - * The records from the aggregate CSV report for a migration workflow. - * - * Generated from protobuf field repeated .google.cloud.bigquery.migration.v2.GcsReportLogMessage report_log_messages = 2; - * @param \Google\Cloud\BigQuery\Migration\V2\GcsReportLogMessage[] $var - * @return $this - */ - public function setReportLogMessages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Migration\V2\GcsReportLogMessage::class); - $this->report_log_messages = $arr; - - return $this; - } - - /** - * The Cloud Console URI for the migration workflow. - * - * Generated from protobuf field string console_uri = 3; - * @return string - */ - public function getConsoleUri() - { - return $this->console_uri; - } - - /** - * The Cloud Console URI for the migration workflow. - * - * Generated from protobuf field string console_uri = 3; - * @param string $var - * @return $this - */ - public function setConsoleUri($var) - { - GPBUtil::checkString($var, True); - $this->console_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TypedValue.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TypedValue.php deleted file mode 100644 index 9f81118e2790..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/TypedValue.php +++ /dev/null @@ -1,213 +0,0 @@ -google.cloud.bigquery.migration.v2.TypedValue - */ -class TypedValue extends \Google\Protobuf\Internal\Message -{ - protected $value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $bool_value - * A Boolean value: `true` or `false`. - * @type int|string $int64_value - * A 64-bit integer. Its range is approximately `+/-9.2x10^18`. - * @type float $double_value - * A 64-bit double-precision floating-point number. Its magnitude - * is approximately `+/-10^(+/-300)` and it has 16 significant digits of - * precision. - * @type string $string_value - * A variable-length string value. - * @type \Google\Api\Distribution $distribution_value - * A distribution value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationMetrics::initOnce(); - parent::__construct($data); - } - - /** - * A Boolean value: `true` or `false`. - * - * Generated from protobuf field bool bool_value = 1; - * @return bool - */ - public function getBoolValue() - { - return $this->readOneof(1); - } - - public function hasBoolValue() - { - return $this->hasOneof(1); - } - - /** - * A Boolean value: `true` or `false`. - * - * Generated from protobuf field bool bool_value = 1; - * @param bool $var - * @return $this - */ - public function setBoolValue($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A 64-bit integer. Its range is approximately `+/-9.2x10^18`. - * - * Generated from protobuf field int64 int64_value = 2; - * @return int|string - */ - public function getInt64Value() - { - return $this->readOneof(2); - } - - public function hasInt64Value() - { - return $this->hasOneof(2); - } - - /** - * A 64-bit integer. Its range is approximately `+/-9.2x10^18`. - * - * Generated from protobuf field int64 int64_value = 2; - * @param int|string $var - * @return $this - */ - public function setInt64Value($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A 64-bit double-precision floating-point number. Its magnitude - * is approximately `+/-10^(+/-300)` and it has 16 significant digits of - * precision. - * - * Generated from protobuf field double double_value = 3; - * @return float - */ - public function getDoubleValue() - { - return $this->readOneof(3); - } - - public function hasDoubleValue() - { - return $this->hasOneof(3); - } - - /** - * A 64-bit double-precision floating-point number. Its magnitude - * is approximately `+/-10^(+/-300)` and it has 16 significant digits of - * precision. - * - * Generated from protobuf field double double_value = 3; - * @param float $var - * @return $this - */ - public function setDoubleValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A variable-length string value. - * - * Generated from protobuf field string string_value = 4; - * @return string - */ - public function getStringValue() - { - return $this->readOneof(4); - } - - public function hasStringValue() - { - return $this->hasOneof(4); - } - - /** - * A variable-length string value. - * - * Generated from protobuf field string string_value = 4; - * @param string $var - * @return $this - */ - public function setStringValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A distribution value. - * - * Generated from protobuf field .google.api.Distribution distribution_value = 5; - * @return \Google\Api\Distribution|null - */ - public function getDistributionValue() - { - return $this->readOneof(5); - } - - public function hasDistributionValue() - { - return $this->hasOneof(5); - } - - /** - * A distribution value. - * - * Generated from protobuf field .google.api.Distribution distribution_value = 5; - * @param \Google\Api\Distribution $var - * @return $this - */ - public function setDistributionValue($var) - { - GPBUtil::checkMessage($var, \Google\Api\Distribution::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getValue() - { - return $this->whichOneof("value"); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/VerticaDialect.php b/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/VerticaDialect.php deleted file mode 100644 index f361fd8eb135..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/proto/src/Google/Cloud/BigQuery/Migration/V2/VerticaDialect.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.bigquery.migration.v2.VerticaDialect - */ -class VerticaDialect extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/create_migration_workflow.php b/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/create_migration_workflow.php deleted file mode 100644 index 8339312bf7ae..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/create_migration_workflow.php +++ /dev/null @@ -1,74 +0,0 @@ -setParent($formattedParent) - ->setMigrationWorkflow($migrationWorkflow); - - // Call the API and handle any network failures. - try { - /** @var MigrationWorkflow $response */ - $response = $migrationServiceClient->createMigrationWorkflow($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = MigrationServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - create_migration_workflow_sample($formattedParent); -} -// [END bigquerymigration_v2_generated_MigrationService_CreateMigrationWorkflow_sync] diff --git a/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/delete_migration_workflow.php b/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/delete_migration_workflow.php deleted file mode 100644 index 3534d00d80b6..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/delete_migration_workflow.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $migrationServiceClient->deleteMigrationWorkflow($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = MigrationServiceClient::migrationWorkflowName( - '[PROJECT]', - '[LOCATION]', - '[WORKFLOW]' - ); - - delete_migration_workflow_sample($formattedName); -} -// [END bigquerymigration_v2_generated_MigrationService_DeleteMigrationWorkflow_sync] diff --git a/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/get_migration_subtask.php b/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/get_migration_subtask.php deleted file mode 100644 index c6ec77fd2461..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/get_migration_subtask.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var MigrationSubtask $response */ - $response = $migrationServiceClient->getMigrationSubtask($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = MigrationServiceClient::migrationSubtaskName( - '[PROJECT]', - '[LOCATION]', - '[WORKFLOW]', - '[SUBTASK]' - ); - - get_migration_subtask_sample($formattedName); -} -// [END bigquerymigration_v2_generated_MigrationService_GetMigrationSubtask_sync] diff --git a/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/get_migration_workflow.php b/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/get_migration_workflow.php deleted file mode 100644 index 04c214e7a79b..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/get_migration_workflow.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var MigrationWorkflow $response */ - $response = $migrationServiceClient->getMigrationWorkflow($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = MigrationServiceClient::migrationWorkflowName( - '[PROJECT]', - '[LOCATION]', - '[WORKFLOW]' - ); - - get_migration_workflow_sample($formattedName); -} -// [END bigquerymigration_v2_generated_MigrationService_GetMigrationWorkflow_sync] diff --git a/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/list_migration_subtasks.php b/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/list_migration_subtasks.php deleted file mode 100644 index 681e15612d8b..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/list_migration_subtasks.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $migrationServiceClient->listMigrationSubtasks($request); - - /** @var MigrationSubtask $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = MigrationServiceClient::migrationWorkflowName( - '[PROJECT]', - '[LOCATION]', - '[WORKFLOW]' - ); - - list_migration_subtasks_sample($formattedParent); -} -// [END bigquerymigration_v2_generated_MigrationService_ListMigrationSubtasks_sync] diff --git a/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/list_migration_workflows.php b/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/list_migration_workflows.php deleted file mode 100644 index df4f0413babf..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/list_migration_workflows.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $migrationServiceClient->listMigrationWorkflows($request); - - /** @var MigrationWorkflow $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = MigrationServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_migration_workflows_sample($formattedParent); -} -// [END bigquerymigration_v2_generated_MigrationService_ListMigrationWorkflows_sync] diff --git a/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/start_migration_workflow.php b/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/start_migration_workflow.php deleted file mode 100644 index f66840d2c40f..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/samples/V2/MigrationServiceClient/start_migration_workflow.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $migrationServiceClient->startMigrationWorkflow($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = MigrationServiceClient::migrationWorkflowName( - '[PROJECT]', - '[LOCATION]', - '[WORKFLOW]' - ); - - start_migration_workflow_sample($formattedName); -} -// [END bigquerymigration_v2_generated_MigrationService_StartMigrationWorkflow_sync] diff --git a/owl-bot-staging/BigQueryMigration/v2/src/V2/Client/MigrationServiceClient.php b/owl-bot-staging/BigQueryMigration/v2/src/V2/Client/MigrationServiceClient.php deleted file mode 100644 index 3718807f050d..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/src/V2/Client/MigrationServiceClient.php +++ /dev/null @@ -1,470 +0,0 @@ - createMigrationWorkflowAsync(CreateMigrationWorkflowRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteMigrationWorkflowAsync(DeleteMigrationWorkflowRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMigrationSubtaskAsync(GetMigrationSubtaskRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMigrationWorkflowAsync(GetMigrationWorkflowRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMigrationSubtasksAsync(ListMigrationSubtasksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMigrationWorkflowsAsync(ListMigrationWorkflowsRequest $request, array $optionalArgs = []) - * @method PromiseInterface startMigrationWorkflowAsync(StartMigrationWorkflowRequest $request, array $optionalArgs = []) - */ -final class MigrationServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.bigquery.migration.v2.MigrationService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'bigquerymigration.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'bigquerymigration.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/migration_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/migration_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/migration_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/migration_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * migration_subtask resource. - * - * @param string $project - * @param string $location - * @param string $workflow - * @param string $subtask - * - * @return string The formatted migration_subtask resource. - */ - public static function migrationSubtaskName(string $project, string $location, string $workflow, string $subtask): string - { - return self::getPathTemplate('migrationSubtask')->render([ - 'project' => $project, - 'location' => $location, - 'workflow' => $workflow, - 'subtask' => $subtask, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * migration_workflow resource. - * - * @param string $project - * @param string $location - * @param string $workflow - * - * @return string The formatted migration_workflow resource. - */ - public static function migrationWorkflowName(string $project, string $location, string $workflow): string - { - return self::getPathTemplate('migrationWorkflow')->render([ - 'project' => $project, - 'location' => $location, - 'workflow' => $workflow, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - location: projects/{project}/locations/{location} - * - migrationSubtask: projects/{project}/locations/{location}/workflows/{workflow}/subtasks/{subtask} - * - migrationWorkflow: projects/{project}/locations/{location}/workflows/{workflow} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'bigquerymigration.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\BigQuery\Migration\V2\MigrationServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new MigrationServiceClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates a migration workflow. - * - * The async variant is - * {@see MigrationServiceClient::createMigrationWorkflowAsync()} . - * - * @example samples/V2/MigrationServiceClient/create_migration_workflow.php - * - * @param CreateMigrationWorkflowRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MigrationWorkflow - * - * @throws ApiException Thrown if the API call fails. - */ - public function createMigrationWorkflow(CreateMigrationWorkflowRequest $request, array $callOptions = []): MigrationWorkflow - { - return $this->startApiCall('CreateMigrationWorkflow', $request, $callOptions)->wait(); - } - - /** - * Deletes a migration workflow by name. - * - * The async variant is - * {@see MigrationServiceClient::deleteMigrationWorkflowAsync()} . - * - * @example samples/V2/MigrationServiceClient/delete_migration_workflow.php - * - * @param DeleteMigrationWorkflowRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteMigrationWorkflow(DeleteMigrationWorkflowRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteMigrationWorkflow', $request, $callOptions)->wait(); - } - - /** - * Gets a previously created migration subtask. - * - * The async variant is {@see MigrationServiceClient::getMigrationSubtaskAsync()} . - * - * @example samples/V2/MigrationServiceClient/get_migration_subtask.php - * - * @param GetMigrationSubtaskRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MigrationSubtask - * - * @throws ApiException Thrown if the API call fails. - */ - public function getMigrationSubtask(GetMigrationSubtaskRequest $request, array $callOptions = []): MigrationSubtask - { - return $this->startApiCall('GetMigrationSubtask', $request, $callOptions)->wait(); - } - - /** - * Gets a previously created migration workflow. - * - * The async variant is {@see MigrationServiceClient::getMigrationWorkflowAsync()} - * . - * - * @example samples/V2/MigrationServiceClient/get_migration_workflow.php - * - * @param GetMigrationWorkflowRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MigrationWorkflow - * - * @throws ApiException Thrown if the API call fails. - */ - public function getMigrationWorkflow(GetMigrationWorkflowRequest $request, array $callOptions = []): MigrationWorkflow - { - return $this->startApiCall('GetMigrationWorkflow', $request, $callOptions)->wait(); - } - - /** - * Lists previously created migration subtasks. - * - * The async variant is {@see MigrationServiceClient::listMigrationSubtasksAsync()} - * . - * - * @example samples/V2/MigrationServiceClient/list_migration_subtasks.php - * - * @param ListMigrationSubtasksRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listMigrationSubtasks(ListMigrationSubtasksRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMigrationSubtasks', $request, $callOptions); - } - - /** - * Lists previously created migration workflow. - * - * The async variant is - * {@see MigrationServiceClient::listMigrationWorkflowsAsync()} . - * - * @example samples/V2/MigrationServiceClient/list_migration_workflows.php - * - * @param ListMigrationWorkflowsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listMigrationWorkflows(ListMigrationWorkflowsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMigrationWorkflows', $request, $callOptions); - } - - /** - * 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. - * - * The async variant is - * {@see MigrationServiceClient::startMigrationWorkflowAsync()} . - * - * @example samples/V2/MigrationServiceClient/start_migration_workflow.php - * - * @param StartMigrationWorkflowRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function startMigrationWorkflow(StartMigrationWorkflowRequest $request, array $callOptions = []): void - { - $this->startApiCall('StartMigrationWorkflow', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/BigQueryMigration/v2/src/V2/gapic_metadata.json b/owl-bot-staging/BigQueryMigration/v2/src/V2/gapic_metadata.json deleted file mode 100644 index f29fa4dd179b..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/src/V2/gapic_metadata.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.bigquery.migration.v2", - "libraryPackage": "Google\\Cloud\\BigQuery\\Migration\\V2", - "services": { - "MigrationService": { - "clients": { - "grpc": { - "libraryClient": "MigrationServiceGapicClient", - "rpcs": { - "CreateMigrationWorkflow": { - "methods": [ - "createMigrationWorkflow" - ] - }, - "DeleteMigrationWorkflow": { - "methods": [ - "deleteMigrationWorkflow" - ] - }, - "GetMigrationSubtask": { - "methods": [ - "getMigrationSubtask" - ] - }, - "GetMigrationWorkflow": { - "methods": [ - "getMigrationWorkflow" - ] - }, - "ListMigrationSubtasks": { - "methods": [ - "listMigrationSubtasks" - ] - }, - "ListMigrationWorkflows": { - "methods": [ - "listMigrationWorkflows" - ] - }, - "StartMigrationWorkflow": { - "methods": [ - "startMigrationWorkflow" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_client_config.json b/owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_client_config.json deleted file mode 100644 index 177fac8a03f3..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_client_config.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "interfaces": { - "google.cloud.bigquery.migration.v2.MigrationService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "no_retry_1_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "no_retry_1_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "CreateMigrationWorkflow": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteMigrationWorkflow": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetMigrationSubtask": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetMigrationWorkflow": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListMigrationSubtasks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListMigrationWorkflows": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "StartMigrationWorkflow": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_descriptor_config.php b/owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_descriptor_config.php deleted file mode 100644 index 376215ae592a..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_descriptor_config.php +++ /dev/null @@ -1,133 +0,0 @@ - [ - 'google.cloud.bigquery.migration.v2.MigrationService' => [ - 'CreateMigrationWorkflow' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteMigrationWorkflow' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetMigrationSubtask' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\BigQuery\Migration\V2\MigrationSubtask', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetMigrationWorkflow' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\BigQuery\Migration\V2\MigrationWorkflow', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListMigrationSubtasks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getMigrationSubtasks', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\BigQuery\Migration\V2\ListMigrationSubtasksResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListMigrationWorkflows' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getMigrationWorkflows', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\BigQuery\Migration\V2\ListMigrationWorkflowsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'StartMigrationWorkflow' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'location' => 'projects/{project}/locations/{location}', - 'migrationSubtask' => 'projects/{project}/locations/{location}/workflows/{workflow}/subtasks/{subtask}', - 'migrationWorkflow' => 'projects/{project}/locations/{location}/workflows/{workflow}', - ], - ], - ], -]; diff --git a/owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_rest_client_config.php b/owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_rest_client_config.php deleted file mode 100644 index 4ccee001bf8b..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/src/V2/resources/migration_service_rest_client_config.php +++ /dev/null @@ -1,107 +0,0 @@ - [ - 'google.cloud.bigquery.migration.v2.MigrationService' => [ - 'CreateMigrationWorkflow' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/workflows', - 'body' => 'migration_workflow', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteMigrationWorkflow' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/workflows/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetMigrationSubtask' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/workflows/*/subtasks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetMigrationWorkflow' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/workflows/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListMigrationSubtasks' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*/workflows/*}/subtasks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListMigrationWorkflows' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/workflows', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'StartMigrationWorkflow' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/workflows/*}:start', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/BigQueryMigration/v2/tests/Unit/V2/Client/MigrationServiceClientTest.php b/owl-bot-staging/BigQueryMigration/v2/tests/Unit/V2/Client/MigrationServiceClientTest.php deleted file mode 100644 index a5d604cf434c..000000000000 --- a/owl-bot-staging/BigQueryMigration/v2/tests/Unit/V2/Client/MigrationServiceClientTest.php +++ /dev/null @@ -1,581 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return MigrationServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new MigrationServiceClient($options); - } - - /** @test */ - public function createMigrationWorkflowTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new MigrationWorkflow(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $migrationWorkflow = new MigrationWorkflow(); - $request = (new CreateMigrationWorkflowRequest()) - ->setParent($formattedParent) - ->setMigrationWorkflow($migrationWorkflow); - $response = $gapicClient->createMigrationWorkflow($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.bigquery.migration.v2.MigrationService/CreateMigrationWorkflow', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getMigrationWorkflow(); - $this->assertProtobufEquals($migrationWorkflow, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMigrationWorkflowExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $migrationWorkflow = new MigrationWorkflow(); - $request = (new CreateMigrationWorkflowRequest()) - ->setParent($formattedParent) - ->setMigrationWorkflow($migrationWorkflow); - try { - $gapicClient->createMigrationWorkflow($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMigrationWorkflowTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->migrationWorkflowName('[PROJECT]', '[LOCATION]', '[WORKFLOW]'); - $request = (new DeleteMigrationWorkflowRequest()) - ->setName($formattedName); - $gapicClient->deleteMigrationWorkflow($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.bigquery.migration.v2.MigrationService/DeleteMigrationWorkflow', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMigrationWorkflowExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->migrationWorkflowName('[PROJECT]', '[LOCATION]', '[WORKFLOW]'); - $request = (new DeleteMigrationWorkflowRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteMigrationWorkflow($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMigrationSubtaskTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $taskId = 'taskId-1537240555'; - $type = 'type3575610'; - $resourceErrorCount = 929997465; - $expectedResponse = new MigrationSubtask(); - $expectedResponse->setName($name2); - $expectedResponse->setTaskId($taskId); - $expectedResponse->setType($type); - $expectedResponse->setResourceErrorCount($resourceErrorCount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->migrationSubtaskName('[PROJECT]', '[LOCATION]', '[WORKFLOW]', '[SUBTASK]'); - $request = (new GetMigrationSubtaskRequest()) - ->setName($formattedName); - $response = $gapicClient->getMigrationSubtask($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.bigquery.migration.v2.MigrationService/GetMigrationSubtask', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMigrationSubtaskExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->migrationSubtaskName('[PROJECT]', '[LOCATION]', '[WORKFLOW]', '[SUBTASK]'); - $request = (new GetMigrationSubtaskRequest()) - ->setName($formattedName); - try { - $gapicClient->getMigrationSubtask($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMigrationWorkflowTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new MigrationWorkflow(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->migrationWorkflowName('[PROJECT]', '[LOCATION]', '[WORKFLOW]'); - $request = (new GetMigrationWorkflowRequest()) - ->setName($formattedName); - $response = $gapicClient->getMigrationWorkflow($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.bigquery.migration.v2.MigrationService/GetMigrationWorkflow', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMigrationWorkflowExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->migrationWorkflowName('[PROJECT]', '[LOCATION]', '[WORKFLOW]'); - $request = (new GetMigrationWorkflowRequest()) - ->setName($formattedName); - try { - $gapicClient->getMigrationWorkflow($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMigrationSubtasksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $migrationSubtasksElement = new MigrationSubtask(); - $migrationSubtasks = [ - $migrationSubtasksElement, - ]; - $expectedResponse = new ListMigrationSubtasksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMigrationSubtasks($migrationSubtasks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->migrationWorkflowName('[PROJECT]', '[LOCATION]', '[WORKFLOW]'); - $request = (new ListMigrationSubtasksRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMigrationSubtasks($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMigrationSubtasks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.bigquery.migration.v2.MigrationService/ListMigrationSubtasks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMigrationSubtasksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->migrationWorkflowName('[PROJECT]', '[LOCATION]', '[WORKFLOW]'); - $request = (new ListMigrationSubtasksRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMigrationSubtasks($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMigrationWorkflowsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $migrationWorkflowsElement = new MigrationWorkflow(); - $migrationWorkflows = [ - $migrationWorkflowsElement, - ]; - $expectedResponse = new ListMigrationWorkflowsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMigrationWorkflows($migrationWorkflows); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListMigrationWorkflowsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMigrationWorkflows($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMigrationWorkflows()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.bigquery.migration.v2.MigrationService/ListMigrationWorkflows', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMigrationWorkflowsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListMigrationWorkflowsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMigrationWorkflows($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function startMigrationWorkflowTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->migrationWorkflowName('[PROJECT]', '[LOCATION]', '[WORKFLOW]'); - $request = (new StartMigrationWorkflowRequest()) - ->setName($formattedName); - $gapicClient->startMigrationWorkflow($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.bigquery.migration.v2.MigrationService/StartMigrationWorkflow', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function startMigrationWorkflowExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->migrationWorkflowName('[PROJECT]', '[LOCATION]', '[WORKFLOW]'); - $request = (new StartMigrationWorkflowRequest()) - ->setName($formattedName); - try { - $gapicClient->startMigrationWorkflow($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createMigrationWorkflowAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new MigrationWorkflow(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $migrationWorkflow = new MigrationWorkflow(); - $request = (new CreateMigrationWorkflowRequest()) - ->setParent($formattedParent) - ->setMigrationWorkflow($migrationWorkflow); - $response = $gapicClient->createMigrationWorkflowAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.bigquery.migration.v2.MigrationService/CreateMigrationWorkflow', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getMigrationWorkflow(); - $this->assertProtobufEquals($migrationWorkflow, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -}