123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257 |
- syntax = "proto3";
- package google.cloud.bigquery.migration.v2;
- option csharp_namespace = "Google.Cloud.BigQuery.Migration.V2";
- option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/migration/v2;migration";
- option java_multiple_files = true;
- option java_outer_classname = "TranslationConfigProto";
- option java_package = "com.google.cloud.bigquery.migration.v2";
- option php_namespace = "Google\\Cloud\\BigQuery\\Migration\\V2";
- message TranslationConfigDetails {
-
- oneof source_location {
-
- string gcs_source_path = 1;
- }
-
- oneof target_location {
-
- string gcs_target_path = 2;
- }
-
- Dialect source_dialect = 3;
-
- Dialect target_dialect = 4;
-
-
- oneof output_name_mapping {
-
- ObjectNameMappingList name_mapping_list = 5;
- }
-
- SourceEnv source_env = 6;
- }
- message Dialect {
-
- oneof dialect_value {
-
- BigQueryDialect bigquery_dialect = 1;
-
- HiveQLDialect hiveql_dialect = 2;
-
- RedshiftDialect redshift_dialect = 3;
-
- TeradataDialect teradata_dialect = 4;
-
- OracleDialect oracle_dialect = 5;
-
- SparkSQLDialect sparksql_dialect = 6;
-
- SnowflakeDialect snowflake_dialect = 7;
-
- NetezzaDialect netezza_dialect = 8;
-
- AzureSynapseDialect azure_synapse_dialect = 9;
-
- VerticaDialect vertica_dialect = 10;
-
- SQLServerDialect sql_server_dialect = 11;
-
- PostgresqlDialect postgresql_dialect = 12;
-
- PrestoDialect presto_dialect = 13;
-
- MySQLDialect mysql_dialect = 14;
- }
- }
- message BigQueryDialect {}
- message HiveQLDialect {}
- message RedshiftDialect {}
- message TeradataDialect {
-
- enum Mode {
-
- MODE_UNSPECIFIED = 0;
-
- SQL = 1;
-
- BTEQ = 2;
- }
-
- Mode mode = 1;
- }
- message OracleDialect {}
- message SparkSQLDialect {}
- message SnowflakeDialect {}
- message NetezzaDialect {}
- message AzureSynapseDialect {}
- message VerticaDialect {}
- message SQLServerDialect {}
- message PostgresqlDialect {}
- message PrestoDialect {}
- message MySQLDialect {}
- message ObjectNameMappingList {
-
- repeated ObjectNameMapping name_map = 1;
- }
- message ObjectNameMapping {
-
- NameMappingKey source = 1;
-
- NameMappingValue target = 2;
- }
- message NameMappingKey {
-
- enum Type {
-
- TYPE_UNSPECIFIED = 0;
-
- DATABASE = 1;
-
- SCHEMA = 2;
-
- RELATION = 3;
-
- ATTRIBUTE = 4;
-
- RELATION_ALIAS = 5;
-
- ATTRIBUTE_ALIAS = 6;
-
- FUNCTION = 7;
- }
-
- Type type = 1;
-
-
- string database = 2;
-
- string schema = 3;
-
-
- string relation = 4;
-
-
- string attribute = 5;
- }
- message NameMappingValue {
-
-
- string database = 1;
-
- string schema = 2;
-
-
- string relation = 3;
-
-
- string attribute = 4;
- }
- message SourceEnv {
-
-
- string default_database = 1;
-
-
- repeated string schema_search_path = 2;
- }
|