NAME

Google::Cloud::Bigquery::Migration::V2::TranslationConfig - Compiled Protocol Buffers messages for google/cloud/bigquery/migration/v2/translation_config.proto

SYNOPSIS

use Google::Cloud::Bigquery::Migration::V2::TranslationConfig;

my $msg = Google::Cloud::Bigquery::Migration::V2::TranslationConfig::TranslationConfigDetails->new({
    gcs_source_path => $gcs_source_path,
    gcs_target_path => $gcs_target_path,
    name_mapping_list => $name_mapping_list,
    source_dialect => $source_dialect,
});

# Read or update a field
my $val = $msg->gcs_source_path();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Bigquery::Migration::V2::TranslationConfig::TranslationConfigDetails->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/bigquery/migration/v2/translation_config.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::TranslationConfigDetails

The translation config to capture necessary settings for a translation task and subtask.

Inherits from Protobuf::Message.

Accessors

  • $msg->gcs_source_path() / $msg->gcs_source_path($value)

    Type: String

    The Cloud Storage path for a directory of files to translate in a task.

  • $msg->gcs_target_path() / $msg->gcs_target_path($value)

    Type: String

    The Cloud Storage path to write back the corresponding input files to.

  • $msg->name_mapping_list() / $msg->name_mapping_list($value)

    Type: Message (Google::Cloud::Bigquery::Migration::V2::TranslationConfig::ObjectNameMappingList)

    The mapping of objects to their desired output names in list form.

  • $msg->source_dialect() / $msg->source_dialect($value)

    Type: Message (Google::Cloud::Bigquery::Migration::V2::TranslationConfig::Dialect)

    The dialect of the input files.

  • $msg->target_dialect() / $msg->target_dialect($value)

    Type: Message (Google::Cloud::Bigquery::Migration::V2::TranslationConfig::Dialect)

    The target dialect for the engine to translate the input to.

  • $msg->source_env() / $msg->source_env($value)

    Type: Message (Google::Cloud::Bigquery::Migration::V2::TranslationConfig::SourceEnv)

    The default source environment values for the translation.

  • $msg->request_source() / $msg->request_source($value)

    Type: String

    The indicator to show translation request initiator.

  • $msg->target_types() / $msg->target_types($value)

    Type: String

    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.

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::Dialect

The possible dialect options for translation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::BigQueryDialect

The dialect definition for BigQuery.

Inherits from Protobuf::Message.

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::HiveQLDialect

The dialect definition for HiveQL.

Inherits from Protobuf::Message.

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::RedshiftDialect

The dialect definition for Redshift.

Inherits from Protobuf::Message.

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::TeradataDialect

The dialect definition for Teradata.

Inherits from Protobuf::Message.

Accessors

Enum: TeradataDialect::Mode

  • MODE_UNSPECIFIED => 0

  • SQL => 1

  • BTEQ => 2

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::OracleDialect

The dialect definition for Oracle.

Inherits from Protobuf::Message.

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::SparkSQLDialect

The dialect definition for SparkSQL.

Inherits from Protobuf::Message.

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::SnowflakeDialect

The dialect definition for Snowflake.

Inherits from Protobuf::Message.

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::NetezzaDialect

The dialect definition for Netezza.

Inherits from Protobuf::Message.

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::AzureSynapseDialect

The dialect definition for Azure Synapse.

Inherits from Protobuf::Message.

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::VerticaDialect

The dialect definition for Vertica.

Inherits from Protobuf::Message.

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::SQLServerDialect

The dialect definition for SQL Server.

Inherits from Protobuf::Message.

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::PostgresqlDialect

The dialect definition for Postgresql.

Inherits from Protobuf::Message.

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::PrestoDialect

The dialect definition for Presto.

Inherits from Protobuf::Message.

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::MySQLDialect

The dialect definition for MySQL.

Inherits from Protobuf::Message.

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::DB2Dialect

The dialect definition for DB2.

Inherits from Protobuf::Message.

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::SQLiteDialect

The dialect definition for SQLite.

Inherits from Protobuf::Message.

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::GreenplumDialect

The dialect definition for Greenplum.

Inherits from Protobuf::Message.

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::ObjectNameMappingList

Represents a map of name mappings using a list of key:value proto messages of existing name to desired output name.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::ObjectNameMapping

Represents a key-value pair of NameMappingKey to NameMappingValue to represent the mapping of SQL names from the input value to desired output.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::NameMappingKey

The potential components of a full name mapping that will be mapped during translation in the source data warehouse.

Inherits from Protobuf::Message.

Accessors

  • $msg->type() / $msg->type($value)

    Type: Enum (Google::Cloud::Bigquery::Migration::V2::NameMappingKey::Type)

    The type of object that is being mapped.

  • $msg->database() / $msg->database($value)

    Type: String

    The database name (BigQuery project ID equivalent in the source data warehouse).

  • $msg->schema() / $msg->schema($value)

    Type: String

    The schema name (BigQuery dataset equivalent in the source data warehouse).

  • $msg->relation() / $msg->relation($value)

    Type: String

    The relation name (BigQuery table or view equivalent in the source data warehouse).

  • $msg->attribute() / $msg->attribute($value)

    Type: String

    The attribute name (BigQuery column equivalent in the source data warehouse).

Enum: NameMappingKey::Type

  • TYPE_UNSPECIFIED => 0

  • DATABASE => 1

  • SCHEMA => 2

  • RELATION => 3

  • ATTRIBUTE => 4

  • RELATION_ALIAS => 5

  • ATTRIBUTE_ALIAS => 6

  • FUNCTION => 7

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::NameMappingValue

The potential components of a full name mapping that will be mapped during translation in the target data warehouse.

Inherits from Protobuf::Message.

Accessors

  • $msg->database() / $msg->database($value)

    Type: String

    The database name (BigQuery project ID equivalent in the target data warehouse).

  • $msg->schema() / $msg->schema($value)

    Type: String

    The schema name (BigQuery dataset equivalent in the target data warehouse).

  • $msg->relation() / $msg->relation($value)

    Type: String

    The relation name (BigQuery table or view equivalent in the target data warehouse).

  • $msg->attribute() / $msg->attribute($value)

    Type: String

    The attribute name (BigQuery column equivalent in the target data warehouse).

Google::Cloud::Bigquery::Migration::V2::TranslationConfig::SourceEnv

Represents the default source environment values for the translation.

Inherits from Protobuf::Message.

Accessors

  • $msg->default_database() / $msg->default_database($value)

    Type: String

    The default database name to fully qualify SQL objects when their database name is missing.

  • $msg->schema_search_path() / $msg->schema_search_path($value)

    Type: String

    The schema search path. When SQL objects are missing schema name, translation engine will search through this list to find the value.

  • $msg->metadata_store_dataset() / $msg->metadata_store_dataset($value)

    Type: String

    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.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Bigquery::Migration::V2::TranslationConfig::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.