diff options
Diffstat (limited to 'third_party/googleapis/google/cloud/bigquery/migration/v2alpha')
11 files changed, 0 insertions, 1533 deletions
diff --git a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/BUILD.bazel b/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/BUILD.bazel deleted file mode 100644 index 60a6477..0000000 --- a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/BUILD.bazel +++ /dev/null @@ -1,368 +0,0 @@ -# This file was automatically generated by BuildFileGenerator -# https://github.com/googleapis/rules_gapic/tree/master/bazel - -# Most of the manual changes to this file will be overwritten. -# It's **only** allowed to change the following rule attribute values: -# - names of *_gapic_assembly_* rules -# - certain parameters of *_gapic_library rules, including but not limited to: -#    * extra_protoc_parameters -#    * extra_protoc_file_parameters -# The complete list of preserved parameters can be found in the source code. - -# This is an API workspace, having public visibility by default makes perfect sense. -package(default_visibility = ["//visibility:public"]) - -############################################################################## -# Common -############################################################################## -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") - -proto_library( -    name = "migration_proto", -    srcs = [ -        "assessment_task.proto", -        "migration_entities.proto", -        "migration_error_details.proto", -        "migration_metrics.proto", -        "migration_service.proto", -        "translation_task.proto", -    ], -    deps = [ -        "//google/api:annotations_proto", -        "//google/api:client_proto", -        "//google/api:distribution_proto", -        "//google/api:field_behavior_proto", -        "//google/api:metric_proto", -        "//google/api:resource_proto", -        "//google/rpc:error_details_proto", -        "@com_google_protobuf//:any_proto", -        "@com_google_protobuf//:empty_proto", -        "@com_google_protobuf//:field_mask_proto", -        "@com_google_protobuf//:timestamp_proto", -    ], -) - -proto_library_with_info( -    name = "migration_proto_with_info", -    deps = [ -        ":migration_proto", -        "//google/cloud:common_resources_proto", -    ], -) - -############################################################################## -# Java -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "java_gapic_assembly_gradle_pkg", -    "java_gapic_library", -    "java_gapic_test", -    "java_grpc_library", -    "java_proto_library", -) - -java_proto_library( -    name = "migration_java_proto", -    deps = [":migration_proto"], -) - -java_grpc_library( -    name = "migration_java_grpc", -    srcs = [":migration_proto"], -    deps = [":migration_java_proto"], -) - -java_gapic_library( -    name = "migration_java_gapic", -    srcs = [":migration_proto_with_info"], -    grpc_service_config = "bigquerymigration_grpc_service_config.json", -    test_deps = [ -        ":migration_java_grpc", -    ], -    transport = "grpc+rest", -    deps = [ -        ":migration_java_proto", -    ], -) - -java_gapic_test( -    name = "migration_java_gapic_test_suite", -    test_classes = [ -        "com.google.cloud.bigquery.migration.v2alpha.MigrationServiceClientHttpJsonTest", -        "com.google.cloud.bigquery.migration.v2alpha.MigrationServiceClientTest", -    ], -    runtime_deps = [":migration_java_gapic_test"], -) - -# Open Source Packages -java_gapic_assembly_gradle_pkg( -    name = "google-cloud-bigquery-migration-v2alpha-java", -    include_samples = True, -    transport = "grpc+rest", -    deps = [ -        ":migration_java_gapic", -        ":migration_java_grpc", -        ":migration_java_proto", -        ":migration_proto", -    ], -) - -############################################################################## -# Go -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "go_gapic_assembly_pkg", -    "go_gapic_library", -    "go_proto_library", -    "go_test", -) - -go_proto_library( -    name = "migration_go_proto", -    compilers = ["@io_bazel_rules_go//proto:go_grpc"], -    importpath = "google.golang.org/genproto/googleapis/cloud/bigquery/migration/v2alpha", -    protos = [":migration_proto"], -    deps = [ -        "//google/api:annotations_go_proto", -        "//google/api:distribution_go_proto", -        "//google/api:metric_go_proto", -        "//google/rpc:errdetails_go_proto", -    ], -) - -go_gapic_library( -    name = "migration_go_gapic", -    srcs = [":migration_proto_with_info"], -    grpc_service_config = "bigquerymigration_grpc_service_config.json", -    importpath = "cloud.google.com/go/bigquery/migration/apiv2alpha;migration", -    metadata = True, -    service_yaml = "bigquerymigration_v2alpha.yaml", -    transport = "grpc+rest", -    deps = [ -        ":migration_go_proto", -    ], -) - -go_test( -    name = "migration_go_gapic_test", -    srcs = [":migration_go_gapic_srcjar_test"], -    embed = [":migration_go_gapic"], -    importpath = "cloud.google.com/go/bigquery/migration/apiv2alpha", -) - -# Open Source Packages -go_gapic_assembly_pkg( -    name = "gapi-cloud-bigquery-migration-v2alpha-go", -    deps = [ -        ":migration_go_gapic", -        ":migration_go_gapic_srcjar-metadata.srcjar", -        ":migration_go_gapic_srcjar-test.srcjar", -        ":migration_go_proto", -    ], -) - -############################################################################## -# Python -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "py_gapic_assembly_pkg", -    "py_gapic_library", -    "py_test", -) - -py_gapic_library( -    name = "migration_py_gapic", -    srcs = [":migration_proto"], -    grpc_service_config = "bigquerymigration_grpc_service_config.json", -    opt_args = [ -        "python-gapic-name=bigquery_migration", -        "python-gapic-namespace=google.cloud", -    ], -    transport = "grpc", -) - -py_test( -    name = "migration_py_gapic_test", -    srcs = [ -        "migration_py_gapic_pytest.py", -        "migration_py_gapic_test.py", -    ], -    legacy_create_init = False, -    deps = [":migration_py_gapic"], -) - -# Open Source Packages -py_gapic_assembly_pkg( -    name = "bigquery-migration-v2alpha-py", -    deps = [ -        ":migration_py_gapic", -    ], -) - -############################################################################## -# PHP -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "php_gapic_assembly_pkg", -    "php_gapic_library", -    "php_grpc_library", -    "php_proto_library", -) - -php_proto_library( -    name = "migration_php_proto", -    deps = [":migration_proto"], -) - -php_grpc_library( -    name = "migration_php_grpc", -    srcs = [":migration_proto"], -    deps = [":migration_php_proto"], -) - -php_gapic_library( -    name = "migration_php_gapic", -    srcs = [":migration_proto_with_info"], -    grpc_service_config = "bigquerymigration_grpc_service_config.json", -    service_yaml = "bigquerymigration_v2alpha.yaml", -    deps = [ -        ":migration_php_grpc", -        ":migration_php_proto", -    ], -) - -# Open Source Packages -php_gapic_assembly_pkg( -    name = "google-cloud-bigquery-migration-v2alpha-php", -    deps = [ -        ":migration_php_gapic", -        ":migration_php_grpc", -        ":migration_php_proto", -    ], -) - -############################################################################## -# Node.js -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "nodejs_gapic_assembly_pkg", -    "nodejs_gapic_library", -) - -nodejs_gapic_library( -    name = "migration_nodejs_gapic", -    package_name = "@google-cloud/bigquery-migration", -    src = ":migration_proto_with_info", -    extra_protoc_parameters = ["metadata"], -    grpc_service_config = "bigquerymigration_grpc_service_config.json", -    package = "google.cloud.bigquery.migration.v2alpha", -    service_yaml = "bigquerymigration_v2alpha.yaml", -    deps = [], -) - -nodejs_gapic_assembly_pkg( -    name = "bigquery-migration-v2alpha-nodejs", -    deps = [ -        ":migration_nodejs_gapic", -        ":migration_proto", -    ], -) - -############################################################################## -# Ruby -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "ruby_cloud_gapic_library", -    "ruby_gapic_assembly_pkg", -    "ruby_grpc_library", -    "ruby_proto_library", -) - -ruby_proto_library( -    name = "migration_ruby_proto", -    deps = [":migration_proto"], -) - -ruby_grpc_library( -    name = "migration_ruby_grpc", -    srcs = [":migration_proto"], -    deps = [":migration_ruby_proto"], -) - -ruby_cloud_gapic_library( -    name = "migration_ruby_gapic", -    srcs = [":migration_proto_with_info"], -    extra_protoc_parameters = [ -        "ruby-cloud-gem-name=google-cloud-bigquery-migration-v2alpha", -    ], -    grpc_service_config = "bigquerymigration_grpc_service_config.json", -    deps = [ -        ":migration_ruby_grpc", -        ":migration_ruby_proto", -    ], -) - -# Open Source Packages -ruby_gapic_assembly_pkg( -    name = "google-cloud-bigquery-migration-v2alpha-ruby", -    deps = [ -        ":migration_ruby_gapic", -        ":migration_ruby_grpc", -        ":migration_ruby_proto", -    ], -) - -############################################################################## -# C# -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "csharp_gapic_assembly_pkg", -    "csharp_gapic_library", -    "csharp_grpc_library", -    "csharp_proto_library", -) - -csharp_proto_library( -    name = "migration_csharp_proto", -    deps = [":migration_proto"], -) - -csharp_grpc_library( -    name = "migration_csharp_grpc", -    srcs = [":migration_proto"], -    deps = [":migration_csharp_proto"], -) - -csharp_gapic_library( -    name = "migration_csharp_gapic", -    srcs = [":migration_proto_with_info"], -    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", -    grpc_service_config = "bigquerymigration_grpc_service_config.json", -    deps = [ -        ":migration_csharp_grpc", -        ":migration_csharp_proto", -    ], -) - -# Open Source Packages -csharp_gapic_assembly_pkg( -    name = "google-cloud-bigquery-migration-v2alpha-csharp", -    deps = [ -        ":migration_csharp_gapic", -        ":migration_csharp_grpc", -        ":migration_csharp_proto", -    ], -) - -############################################################################## -# C++ -############################################################################## -# Put your C++ rules here diff --git a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/assessment_task.proto b/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/assessment_task.proto deleted file mode 100644 index 0c6ea13..0000000 --- a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/assessment_task.proto +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.bigquery.migration.v2alpha; - -import "google/api/field_behavior.proto"; - -option csharp_namespace = "Google.Cloud.BigQuery.Migration.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/migration/v2alpha;migration"; -option java_multiple_files = true; -option java_outer_classname = "AssessmentTaskProto"; -option java_package = "com.google.cloud.bigquery.migration.v2alpha"; -option php_namespace = "Google\\Cloud\\BigQuery\\Migration\\V2alpha"; - -// Assessment task config. -message AssessmentTaskDetails { -  // Required. The Cloud Storage path for assessment input files. -  string input_path = 1 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The BigQuery dataset for output. -  string output_dataset = 2 [(google.api.field_behavior) = REQUIRED]; - -  // Optional. An optional Cloud Storage path to write the query logs (which is -  // then used as an input path on the translation task) -  string querylogs_path = 3 [(google.api.field_behavior) = OPTIONAL]; - -  // Required. The data source or data warehouse type (eg: TERADATA/REDSHIFT) -  // from which the input data is extracted. -  string data_source = 4 [(google.api.field_behavior) = REQUIRED]; -} - -// Details for an assessment task orchestration result. -message AssessmentOrchestrationResultDetails { -  // Optional. The version used for the output table schemas. -  string output_tables_schema_version = 1 [(google.api.field_behavior) = OPTIONAL]; -} diff --git a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/bigquerymigration_grpc_service_config.json b/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/bigquerymigration_grpc_service_config.json deleted file mode 100644 index 84644c6..0000000 --- a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/bigquerymigration_grpc_service_config.json +++ /dev/null @@ -1,63 +0,0 @@ -{ -  "methodConfig": [{ -    "name": [ -      { -        "service": "google.cloud.bigquery.migration.v2alpha.MigrationService", -        "method": "GetMigrationWorkflow" -      }, -      { -        "service": "google.cloud.bigquery.migration.v2alpha.MigrationService", -        "method": "ListMigrationWorkflows" -      }, -      { -        "service": "google.cloud.bigquery.migration.v2alpha.MigrationService", -        "method": "StartMigrationWorkflow" -      }, -      { -        "service": "google.cloud.bigquery.migration.v2alpha.MigrationService", -        "method": "GetMigrationSubtask" -      }, -      { -        "service": "google.cloud.bigquery.migration.v2alpha.MigrationService", -        "method": "ListMigrationSubtasks" -      } -    ], -    "timeout": "120s", -    "retryPolicy": { -      "maxAttempts": 5, -      "initialBackoff": "1s", -      "maxBackoff": "10s", -      "backoffMultiplier": 1.3, -      "retryableStatusCodes": ["UNAVAILABLE"] -    } -  }, -  { -    "name": [ -      { -        "service": "google.cloud.bigquery.migration.v2alpha.MigrationService", -        "method": "CreateMigrationWorkflow" -      }, -      { -        "service": "google.cloud.bigquery.migration.v2alpha.MigrationService", -        "method": "DeleteMigrationWorkflow" -      } -    ], -    "timeout": "60s" -  }, -  { -    "name": [ -      { -        "service": "google.cloud.bigquery.migration.v2alpha.SqlTranslationService", -        "method": "Translate" -      } -    ], -    "timeout": "30s", -    "retryPolicy": { -      "maxAttempts": 3, -      "initialBackoff": "0.100s", -      "maxBackoff": "1s", -      "backoffMultiplier": 1.3, -      "retryableStatusCodes": ["UNAVAILABLE"] -    } -  }] -} diff --git a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/bigquerymigration_v2alpha.yaml b/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/bigquerymigration_v2alpha.yaml deleted file mode 100644 index 58dfb0d..0000000 --- a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/bigquerymigration_v2alpha.yaml +++ /dev/null @@ -1,31 +0,0 @@ -type: google.api.Service -config_version: 3 -name: bigquerymigration.googleapis.com -title: BigQuery Migration API - -apis: -- name: google.cloud.bigquery.migration.v2alpha.MigrationService -- name: google.cloud.bigquery.migration.v2alpha.SqlTranslationService - -documentation: -  summary: |- -    The migration service, exposing apis for migration jobs operations, and -    agent management. - -backend: -  rules: -  - selector: 'google.cloud.bigquery.migration.v2alpha.MigrationService.*' -    deadline: 60.0 -  - selector: google.cloud.bigquery.migration.v2alpha.SqlTranslationService.TranslateQuery -    deadline: 60.0 - -authentication: -  rules: -  - selector: 'google.cloud.bigquery.migration.v2alpha.MigrationService.*' -    oauth: -      canonical_scopes: |- -        https://www.googleapis.com/auth/cloud-platform -  - selector: google.cloud.bigquery.migration.v2alpha.SqlTranslationService.TranslateQuery -    oauth: -      canonical_scopes: |- -        https://www.googleapis.com/auth/cloud-platform diff --git a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/gapic.yaml b/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/gapic.yaml deleted file mode 100644 index 1726d0a..0000000 --- a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/gapic.yaml +++ /dev/null @@ -1,16 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 2.0.0 -language_settings: -  java: -    package_name: com.google.cloud.bigquery.migration.v2alpha -  python: -    package_name: google.cloud.bigquery.migration_v2alpha.gapic -  csharp: -    package_name: Google.Cloud.BigQuery.Migration.V2Alpha -  ruby: -    package_name: Google::Cloud::BigQuery::Migration::V2alpha -  php: -    package_name: Google\Cloud\BigQuery\Migration\V2alpha -  nodejs: -    package_name: bigquerymigration.v2alpha -    domain_layer_location: google-cloud diff --git a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/migration_entities.proto b/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/migration_entities.proto deleted file mode 100644 index 50d4c75..0000000 --- a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/migration_entities.proto +++ /dev/null @@ -1,244 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.bigquery.migration.v2alpha; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/bigquery/migration/v2alpha/assessment_task.proto"; -import "google/cloud/bigquery/migration/v2alpha/migration_error_details.proto"; -import "google/cloud/bigquery/migration/v2alpha/migration_metrics.proto"; -import "google/cloud/bigquery/migration/v2alpha/translation_task.proto"; -import "google/protobuf/any.proto"; -import "google/protobuf/timestamp.proto"; -import "google/rpc/error_details.proto"; - -option csharp_namespace = "Google.Cloud.BigQuery.Migration.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/migration/v2alpha;migration"; -option java_multiple_files = true; -option java_outer_classname = "MigrationEntitiesProto"; -option java_package = "com.google.cloud.bigquery.migration.v2alpha"; -option php_namespace = "Google\\Cloud\\BigQuery\\Migration\\V2alpha"; - -// A migration workflow which specifies what needs to be done for an EDW -// migration. -message MigrationWorkflow { -  option (google.api.resource) = { -    type: "bigquerymigration.googleapis.com/MigrationWorkflow" -    pattern: "projects/{project}/locations/{location}/workflows/{workflow}" -  }; - -  // Possible migration workflow states. -  enum State { -    // Workflow state is unspecified. -    STATE_UNSPECIFIED = 0; - -    // Workflow is in draft status, i.e. tasks are not yet eligible for -    // execution. -    DRAFT = 1; - -    // Workflow is running (i.e. tasks are eligible for execution). -    RUNNING = 2; - -    // Workflow is paused. Tasks currently in progress may continue, but no -    // further tasks will be scheduled. -    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. -    COMPLETED = 4; -  } - -  // Output only. Immutable. The unique identifier for the migration workflow. The ID is -  // server-generated. -  // -  // Example: `projects/123/locations/us/workflows/345` -  string name = 1 [ -    (google.api.field_behavior) = OUTPUT_ONLY, -    (google.api.field_behavior) = IMMUTABLE -  ]; - -  // The display name of the workflow. This can be set to give a workflow -  // a descriptive name. There is no guarantee or enforcement of uniqueness. -  string display_name = 6; - -  // The tasks in a workflow in a named map. The name (i.e. key) has no -  // meaning and is merely a convenient way to address a specific task -  // in a workflow. -  map<string, MigrationTask> tasks = 2; - -  // Output only. That status of the workflow. -  State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Time when the workflow was created. -  google.protobuf.Timestamp create_time = 4; - -  // Time when the workflow was last updated. -  google.protobuf.Timestamp last_update_time = 5; -} - -// A single task for a migration which has details about the configuration of -// the task. -message MigrationTask { -  // Possible states of a migration task. -  enum State { -    // The state is unspecified. -    STATE_UNSPECIFIED = 0; - -    // The task is waiting for orchestration. -    PENDING = 1; - -    // The task is assigned to an orchestrator. -    ORCHESTRATING = 2; - -    // The task is running, i.e. its subtasks are ready for execution. -    RUNNING = 3; - -    // Tha task is paused. Assigned subtasks can continue, but no new subtasks -    // will be scheduled. -    PAUSED = 4; - -    // The task finished successfully. -    SUCCEEDED = 5; - -    // The task finished unsuccessfully. -    FAILED = 6; -  } - -  // The details of the task. -  oneof task_details { -    // Task configuration for Assessment. -    AssessmentTaskDetails assessment_task_details = 12; - -    // Task configuration for Batch/Offline SQL Translation. -    TranslationTaskDetails translation_task_details = 13; -  } - -  // Output only. Immutable. The unique identifier for the migration task. The ID is server-generated. -  string id = 1 [ -    (google.api.field_behavior) = OUTPUT_ONLY, -    (google.api.field_behavior) = IMMUTABLE -  ]; - -  // The type of the task. This must be a supported task type. -  string type = 2; - -  // DEPRECATED! Use one of the task_details below. -  // The details of the task. The type URL must be one of the supported task -  // details messages and correspond to the Task's type. -  google.protobuf.Any details = 3; - -  // Output only. The current state of the task. -  State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. An explanation that may be populated when the task is in FAILED state. -  google.rpc.ErrorInfo processing_error = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Time when the task was created. -  google.protobuf.Timestamp create_time = 6; - -  // Time when the task was last updated. -  google.protobuf.Timestamp last_update_time = 7; - -  // Output only. Additional information about the orchestration. -  MigrationTaskOrchestrationResult orchestration_result = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// A subtask for a migration which carries details about the configuration of -// the subtask. The content of the details should not matter to the end user, -// but is a contract between the subtask creator and subtask worker. -message MigrationSubtask { -  option (google.api.resource) = { -    type: "bigquerymigration.googleapis.com/MigrationSubtask" -    pattern: "projects/{project}/locations/{location}/workflows/{workflow}/subtasks/{subtask}" -  }; - -  // Possible states of a migration subtask. -  enum State { -    // The state is unspecified. -    STATE_UNSPECIFIED = 0; - -    // The subtask is ready, i.e. it is ready for execution. -    ACTIVE = 1; - -    // The subtask is running, i.e. it is assigned to a worker for execution. -    RUNNING = 2; - -    // The subtask finished successfully. -    SUCCEEDED = 3; - -    // The subtask finished unsuccessfully. -    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. -    PAUSED = 5; -  } - -  // Output only. Immutable. The resource name for the migration subtask. The ID is -  // server-generated. -  // -  // Example: `projects/123/locations/us/workflows/345/subtasks/678` -  string name = 1 [ -    (google.api.field_behavior) = OUTPUT_ONLY, -    (google.api.field_behavior) = IMMUTABLE -  ]; - -  // The unique ID of the task to which this subtask belongs. -  string task_id = 2; - -  // 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. -  string type = 3; - -  // Output only. The current state of the subtask. -  State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. An explanation that may be populated when the task is in FAILED state. -  google.rpc.ErrorInfo processing_error = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. Provides details to errors and issues encountered while processing the -  // subtask. Presence of error details does not mean that the subtask failed. -  repeated ResourceErrorDetail resource_error_details = 12 [(google.api.field_behavior) = 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`. -  int32 resource_error_count = 13; - -  // Time when the subtask was created. -  google.protobuf.Timestamp create_time = 7; - -  // Time when the subtask was last updated. -  google.protobuf.Timestamp last_update_time = 8; - -  // The metrics for the subtask. -  repeated TimeSeries metrics = 11; -} - -// Additional information from the orchestrator when it is done with the -// task orchestration. -message MigrationTaskOrchestrationResult { -  // Details specific to the task type. -  oneof details { -    // Details specific to assessment task types. -    AssessmentOrchestrationResultDetails assessment_details = 1; -  } -} diff --git a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/migration_error_details.proto b/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/migration_error_details.proto deleted file mode 100644 index 89dac5e..0000000 --- a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/migration_error_details.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.bigquery.migration.v2alpha; - -import "google/api/field_behavior.proto"; -import "google/rpc/error_details.proto"; - -option csharp_namespace = "Google.Cloud.BigQuery.Migration.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/migration/v2alpha;migration"; -option java_multiple_files = true; -option java_outer_classname = "MigrationErrorDetailsProto"; -option java_package = "com.google.cloud.bigquery.migration.v2alpha"; -option php_namespace = "Google\\Cloud\\BigQuery\\Migration\\V2alpha"; - -// Provides details for errors and the corresponding resources. -message ResourceErrorDetail { -  // Required. Information about the resource where the error is located. -  google.rpc.ResourceInfo resource_info = 1 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The error details for the resource. -  repeated ErrorDetail error_details = 2 [(google.api.field_behavior) = REQUIRED]; - -  // 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`. -  int32 error_count = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// Provides details for errors, e.g. issues that where encountered when -// processing a subtask. -message ErrorDetail { -  // Optional. The exact location within the resource (if applicable). -  ErrorLocation location = 1 [(google.api.field_behavior) = OPTIONAL]; - -  // Required. Describes the cause of the error with structured detail. -  google.rpc.ErrorInfo error_info = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Holds information about where the error is located. -message ErrorLocation { -  // Optional. If applicable, denotes the line where the error occurred. A zero value -  // means that there is no line information. -  int32 line = 1 [(google.api.field_behavior) = OPTIONAL]; - -  // Optional. If applicable, denotes the column where the error occurred. A zero value -  // means that there is no columns information. -  int32 column = 2 [(google.api.field_behavior) = OPTIONAL]; -} diff --git a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/migration_metrics.proto b/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/migration_metrics.proto deleted file mode 100644 index ce60dd2..0000000 --- a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/migration_metrics.proto +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.bigquery.migration.v2alpha; - -import "google/api/distribution.proto"; -import "google/api/field_behavior.proto"; -import "google/api/metric.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.BigQuery.Migration.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/migration/v2alpha;migration"; -option java_multiple_files = true; -option java_outer_classname = "MigrationMetricsProto"; -option java_package = "com.google.cloud.bigquery.migration.v2alpha"; -option php_namespace = "Google\\Cloud\\BigQuery\\Migration\\V2alpha"; - -// The metrics object for a SubTask. -message TimeSeries { -  // Required. The name of the metric. -  // -  // If the metric is not known by the service yet, it will be auto-created. -  string metric = 1 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The value type of the time series. -  google.api.MetricDescriptor.ValueType value_type = 2 [(google.api.field_behavior) = REQUIRED]; - -  // 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`. -  google.api.MetricDescriptor.MetricKind metric_kind = 3 [(google.api.field_behavior) = OPTIONAL]; - -  // 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`. -  repeated Point points = 4 [(google.api.field_behavior) = REQUIRED]; -} - -// A single data point in a time series. -message Point { -  // 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. -  TimeInterval interval = 1; - -  // The value of the data point. -  TypedValue value = 2; -} - -// A time interval extending just after a start time through an end time. -// If the start time is the same as the end time, then the interval -// represents a single point in time. -message TimeInterval { -  // Optional. The beginning of the time interval.  The default value -  // for the start time is the end time. The start time must not be -  // later than the end time. -  google.protobuf.Timestamp start_time = 1 [(google.api.field_behavior) = OPTIONAL]; - -  // Required. The end of the time interval. -  google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A single strongly-typed value. -message TypedValue { -  // The typed value field. -  oneof value { -    // A Boolean value: `true` or `false`. -    bool bool_value = 1; - -    // A 64-bit integer. Its range is approximately +/-9.2x10^18. -    int64 int64_value = 2; - -    // A 64-bit double-precision floating-point number. Its magnitude -    // is approximately +/-10^(+/-300) and it has 16 significant digits of -    // precision. -    double double_value = 3; - -    // A variable-length string value. -    string string_value = 4; - -    // A distribution value. -    google.api.Distribution distribution_value = 5; -  } -} diff --git a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/migration_service.proto b/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/migration_service.proto deleted file mode 100644 index 9a184a1..0000000 --- a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/migration_service.proto +++ /dev/null @@ -1,247 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.bigquery.migration.v2alpha; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/bigquery/migration/v2alpha/migration_entities.proto"; -import "google/cloud/bigquery/migration/v2alpha/migration_error_details.proto"; -import "google/cloud/bigquery/migration/v2alpha/migration_metrics.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; - -option csharp_namespace = "Google.Cloud.BigQuery.Migration.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/migration/v2alpha;migration"; -option java_multiple_files = true; -option java_outer_classname = "MigrationServiceProto"; -option java_package = "com.google.cloud.bigquery.migration.v2alpha"; -option php_namespace = "Google\\Cloud\\BigQuery\\Migration\\V2alpha"; - -// Service to handle EDW migrations. -service MigrationService { -  option (google.api.default_host) = "bigquerymigration.googleapis.com"; -  option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - -  // Creates a migration workflow. -  rpc CreateMigrationWorkflow(CreateMigrationWorkflowRequest) returns (MigrationWorkflow) { -    option (google.api.http) = { -      post: "/v2alpha/{parent=projects/*/locations/*}/workflows" -      body: "migration_workflow" -    }; -    option (google.api.method_signature) = "parent,migration_workflow"; -  } - -  // Gets a previously created migration workflow. -  rpc GetMigrationWorkflow(GetMigrationWorkflowRequest) returns (MigrationWorkflow) { -    option (google.api.http) = { -      get: "/v2alpha/{name=projects/*/locations/*/workflows/*}" -    }; -    option (google.api.method_signature) = "name"; -  } - -  // Lists previously created migration workflow. -  rpc ListMigrationWorkflows(ListMigrationWorkflowsRequest) returns (ListMigrationWorkflowsResponse) { -    option (google.api.http) = { -      get: "/v2alpha/{parent=projects/*/locations/*}/workflows" -    }; -    option (google.api.method_signature) = "parent"; -  } - -  // Deletes a migration workflow by name. -  rpc DeleteMigrationWorkflow(DeleteMigrationWorkflowRequest) returns (google.protobuf.Empty) { -    option (google.api.http) = { -      delete: "/v2alpha/{name=projects/*/locations/*/workflows/*}" -    }; -    option (google.api.method_signature) = "name"; -  } - -  // 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. -  rpc StartMigrationWorkflow(StartMigrationWorkflowRequest) returns (google.protobuf.Empty) { -    option (google.api.http) = { -      post: "/v2alpha/{name=projects/*/locations/*/workflows/*}:start" -      body: "*" -    }; -    option (google.api.method_signature) = "name"; -  } - -  // Gets a previously created migration subtask. -  rpc GetMigrationSubtask(GetMigrationSubtaskRequest) returns (MigrationSubtask) { -    option (google.api.http) = { -      get: "/v2alpha/{name=projects/*/locations/*/workflows/*/subtasks/*}" -    }; -    option (google.api.method_signature) = "name"; -  } - -  // Lists previously created migration subtasks. -  rpc ListMigrationSubtasks(ListMigrationSubtasksRequest) returns (ListMigrationSubtasksResponse) { -    option (google.api.http) = { -      get: "/v2alpha/{parent=projects/*/locations/*/workflows/*}/subtasks" -    }; -    option (google.api.method_signature) = "parent"; -  } -} - -// Request to create a migration workflow resource. -message CreateMigrationWorkflowRequest { -  // Required. The name of the project to which this migration workflow belongs. -  // Example: `projects/foo/locations/bar` -  string parent = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "locations.googleapis.com/Location" -    } -  ]; - -  // Required. The migration workflow to create. -  MigrationWorkflow migration_workflow = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A request to get a previously created migration workflow. -message GetMigrationWorkflowRequest { -  // Required. The unique identifier for the migration workflow. -  // Example: `projects/123/locations/us/workflows/1234` -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "bigquerymigration.googleapis.com/MigrationWorkflow" -    } -  ]; - -  // The list of fields to be retrieved. -  google.protobuf.FieldMask read_mask = 2; -} - -// A request to list previously created migration workflows. -message ListMigrationWorkflowsRequest { -  // Required. The project and location of the migration workflows to list. -  // Example: `projects/123/locations/us` -  string parent = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "locations.googleapis.com/Location" -    } -  ]; - -  // The list of fields to be retrieved. -  google.protobuf.FieldMask read_mask = 2; - -  // The maximum number of migration workflows to return. The service may return -  // fewer than this number. -  int32 page_size = 3; - -  // 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. -  string page_token = 4; -} - -// Response object for a `ListMigrationWorkflows` call. -message ListMigrationWorkflowsResponse { -  // The migration workflows for the specified project / location. -  repeated MigrationWorkflow migration_workflows = 1; - -  // A token, which can be sent as `page_token` to retrieve the next page. -  // If this field is omitted, there are no subsequent pages. -  string next_page_token = 2; -} - -// A request to delete a previously created migration workflow. -message DeleteMigrationWorkflowRequest { -  // Required. The unique identifier for the migration workflow. -  // Example: `projects/123/locations/us/workflows/1234` -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "bigquerymigration.googleapis.com/MigrationWorkflow" -    } -  ]; -} - -// A request to start a previously created migration workflow. -message StartMigrationWorkflowRequest { -  // Required. The unique identifier for the migration workflow. -  // Example: `projects/123/locations/us/workflows/1234` -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "bigquerymigration.googleapis.com/MigrationWorkflow" -    } -  ]; -} - -// A request to get a previously created migration subtasks. -message GetMigrationSubtaskRequest { -  // Required. The unique identifier for the migration subtask. -  // Example: `projects/123/locations/us/workflows/1234/subtasks/543` -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "bigquerymigration.googleapis.com/MigrationSubtask" -    } -  ]; - -  // Optional. The list of fields to be retrieved. -  google.protobuf.FieldMask read_mask = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// A request to list previously created migration subtasks. -message ListMigrationSubtasksRequest { -  // Required. The migration task of the subtasks to list. -  // Example: `projects/123/locations/us/workflows/1234` -  string parent = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "bigquerymigration.googleapis.com/MigrationWorkflow" -    } -  ]; - -  // Optional. The list of fields to be retrieved. -  google.protobuf.FieldMask read_mask = 2 [(google.api.field_behavior) = OPTIONAL]; - -  // Optional. The maximum number of migration tasks to return. The service may return -  // fewer than this number. -  int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; - -  // 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. -  string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; - -  // 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). -  string filter = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// Response object for a `ListMigrationSubtasks` call. -message ListMigrationSubtasksResponse { -  // The migration subtasks for the specified task. -  repeated MigrationSubtask migration_subtasks = 1; - -  // A token, which can be sent as `page_token` to retrieve the next page. -  // If this field is omitted, there are no subsequent pages. -  string next_page_token = 2; -} diff --git a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/translation_service.proto b/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/translation_service.proto deleted file mode 100644 index e812966..0000000 --- a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/translation_service.proto +++ /dev/null @@ -1,135 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.bigquery.migration.v2alpha; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Cloud.BigQuery.Migration.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/migration/v2alpha;migration"; -option java_multiple_files = true; -option java_outer_classname = "TranslationServiceProto"; -option java_package = "com.google.cloud.bigquery.migration.v2alpha"; -option php_namespace = "Google\\Cloud\\BigQuery\\Migration\\V2alpha"; - -// Provides other SQL dialects to GoogleSQL translation operations. -service SqlTranslationService { -  option (google.api.default_host) = "bigquerymigration.googleapis.com"; -  option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - -  // Translates input queries from source dialects to GoogleSQL. -  rpc TranslateQuery(TranslateQueryRequest) returns (TranslateQueryResponse) { -    option (google.api.http) = { -      post: "/v2alpha/{parent=projects/*/locations/*}:translateQuery" -      body: "*" -    }; -    option (google.api.method_signature) = "parent,source_dialect,query"; -  } -} - -// The request of translating a SQL query to Standard SQL. -message TranslateQueryRequest { -  // Supported SQL translation source dialects. -  enum SqlTranslationSourceDialect { -    // SqlTranslationSourceDialect not specified. -    SQL_TRANSLATION_SOURCE_DIALECT_UNSPECIFIED = 0; - -    // Teradata SQL. -    TERADATA = 1; -  } - -  // Required. The name of the project to which this translation request belongs. -  // Example: `projects/foo/locations/bar` -  string parent = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "locations.googleapis.com/Location" -    } -  ]; - -  // Required. The source SQL dialect of `queries`. -  SqlTranslationSourceDialect source_dialect = 2 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The query to be translated. -  string query = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// The response of translating a SQL query to Standard SQL. -message TranslateQueryResponse { -  // Output only. Immutable. The unique identifier for the SQL translation job. -  // Example: `projects/123/locations/us/translation/1234` -  string translation_job = 4 [ -    (google.api.field_behavior) = OUTPUT_ONLY, -    (google.api.field_behavior) = IMMUTABLE -  ]; - -  // The translated result. This will be empty if the translation fails. -  string translated_query = 1; - -  // The list of errors encountered during the translation, if present. -  repeated SqlTranslationError errors = 2; - -  // The list of warnings encountered during the translation, if present, -  // indicates non-semantically correct translation. -  repeated SqlTranslationWarning warnings = 3; -} - -// Structured error object capturing the error message and the location in the -// source text where the error occurs. -message SqlTranslationErrorDetail { -  // Specifies the row from the source text where the error occurred. -  int64 row = 1; - -  // Specifie the column from the source texts where the error occurred. -  int64 column = 2; - -  // A human-readable description of the error. -  string message = 3; -} - -// The detailed error object if the SQL translation job fails. -message SqlTranslationError { -  // The error type of the SQL translation job. -  enum SqlTranslationErrorType { -    // SqlTranslationErrorType not specified. -    SQL_TRANSLATION_ERROR_TYPE_UNSPECIFIED = 0; - -    // Failed to parse the input text as a SQL query. -    SQL_PARSE_ERROR = 1; - -    // Found unsupported functions in the input SQL query that are not able to -    // translate. -    UNSUPPORTED_SQL_FUNCTION = 2; -  } - -  // The type of SQL translation error. -  SqlTranslationErrorType error_type = 1; - -  // Specifies the details of the error, including the error message and -  // location from the source text. -  SqlTranslationErrorDetail error_detail = 2; -} - -// The detailed warning object if the SQL translation job is completed but not -// semantically correct. -message SqlTranslationWarning { -  // Specifies the details of the warning, including the warning message and -  // location from the source text. -  SqlTranslationErrorDetail warning_detail = 1; -} diff --git a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/translation_task.proto b/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/translation_task.proto deleted file mode 100644 index bf4b27e..0000000 --- a/third_party/googleapis/google/cloud/bigquery/migration/v2alpha/translation_task.proto +++ /dev/null @@ -1,207 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.bigquery.migration.v2alpha; - -option csharp_namespace = "Google.Cloud.BigQuery.Migration.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/migration/v2alpha;migration"; -option java_multiple_files = true; -option java_outer_classname = "TranslationTaskProto"; -option java_package = "com.google.cloud.bigquery.migration.v2alpha"; -option php_namespace = "Google\\Cloud\\BigQuery\\Migration\\V2alpha"; - -// Mapping between an input and output file to be translated in a subtask. -message TranslationFileMapping { -  // The Cloud Storage path for a file to translation in a subtask. -  string input_path = 1; - -  // The Cloud Storage path to write back the corresponding input file to. -  string output_path = 2; -} - -// The translation task config to capture necessary settings for a translation -// task and subtask. -message TranslationTaskDetails { -  // The file encoding types. -  enum FileEncoding { -    // File encoding setting is not specified. -    FILE_ENCODING_UNSPECIFIED = 0; - -    // File encoding is UTF_8. -    UTF_8 = 1; - -    // File encoding is ISO_8859_1. -    ISO_8859_1 = 2; - -    // File encoding is US_ASCII. -    US_ASCII = 3; - -    // File encoding is UTF_16. -    UTF_16 = 4; - -    // File encoding is UTF_16LE. -    UTF_16LE = 5; - -    // File encoding is UTF_16BE. -    UTF_16BE = 6; -  } - -  // The special token data type. -  enum TokenType { -    // Token type is not specified. -    TOKEN_TYPE_UNSPECIFIED = 0; - -    // Token type as string. -    STRING = 1; - -    // Token type as integer. -    INT64 = 2; - -    // Token type as numeric. -    NUMERIC = 3; - -    // Token type as boolean. -    BOOL = 4; - -    // Token type as float. -    FLOAT64 = 5; - -    // Token type as date. -    DATE = 6; - -    // Token type as timestamp. -    TIMESTAMP = 7; -  } - -  // The language specific settings for the translation task. -  oneof language_options { -    // The Teradata SQL specific settings for the translation task. -    TeradataOptions teradata_options = 10; - -    // The BTEQ specific settings for the translation task. -    BteqOptions bteq_options = 11; -  } - -  // The Cloud Storage path for translation input files. -  string input_path = 1; - -  // The Cloud Storage path for translation output files. -  string output_path = 2; - -  // Cloud Storage files to be processed for translation. -  repeated TranslationFileMapping file_paths = 12; - -  // The Cloud Storage path to DDL files as table schema to assist semantic -  // translation. -  string schema_path = 3; - -  // The file encoding type. -  FileEncoding file_encoding = 4; - -  // The settings for SQL identifiers. -  IdentifierSettings identifier_settings = 5; - -  // The map capturing special tokens to be replaced during translation. The key -  // is special token in string. The value is the token data type. This is used -  // to translate SQL query template which contains special token as place -  // holder. The special token makes a query invalid to parse. This map will be -  // applied to annotate those special token with types to let parser understand -  // how to parse them into proper structure with type information. -  map<string, TokenType> special_token_map = 6; - -  // The filter applied to translation details. -  Filter filter = 7; - -  // Specifies the exact name of the bigquery table ("dataset.table") to be used -  // for surfacing raw translation errors. If the table does not exist, we will -  // create it. If it already exists and the schema is the same, we will re-use. -  // If the table exists and the schema is different, we will throw an error. -  string translation_exception_table = 13; -} - -// The filter applied to fields of translation details. -message Filter { -  // The list of prefixes used to exclude processing for input files. -  repeated string input_file_exclusion_prefixes = 1; -} - -// Settings related to SQL identifiers. -message IdentifierSettings { -  // The identifier case type. -  enum IdentifierCase { -    // The identifier case is not specified. -    IDENTIFIER_CASE_UNSPECIFIED = 0; - -    // Identifiers' cases will be kept as the original cases. -    ORIGINAL = 1; - -    // Identifiers will be in upper cases. -    UPPER = 2; - -    // Identifiers will be in lower cases. -    LOWER = 3; -  } - -  // The SQL identifier rewrite mode. -  enum IdentifierRewriteMode { -    // SQL Identifier rewrite mode is unspecified. -    IDENTIFIER_REWRITE_MODE_UNSPECIFIED = 0; - -    // SQL identifiers won't be rewrite. -    NONE = 1; - -    // All SQL identifiers will be rewrite. -    REWRITE_ALL = 2; -  } - -  // The setting to control output queries' identifier case. -  IdentifierCase output_identifier_case = 1; - -  // Specifies the rewrite mode for SQL identifiers. -  IdentifierRewriteMode identifier_rewrite_mode = 2; -} - -// Teradata SQL specific translation task related settings. -message TeradataOptions { - -} - -// BTEQ translation task related settings. -message BteqOptions { -  // Specifies the project and dataset in BigQuery that will be used for -  // external table creation during the translation. -  DatasetReference project_dataset = 1; - -  // The Cloud Storage location to be used as the default path for files that -  // are not otherwise specified in the file replacement map. -  string default_path_uri = 2; - -  // Maps the local paths that are used in BTEQ scripts (the keys) to the paths -  // in Cloud Storage that should be used in their stead in the translation (the -  // value). -  map<string, string> file_replacement_map = 3; -} - -// Reference to a BigQuery dataset. -message DatasetReference { -  // A unique ID for this dataset, without the project name. The ID -  // must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). -  // The maximum length is 1,024 characters. -  string dataset_id = 1; - -  // The ID of the project containing this dataset. -  string project_id = 2; -}  | 
