NAME

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

SYNOPSIS

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

my $msg = Google::Cloud::Bigquery::Migration::V2::TranslationDetails::TranslationDetails->new({
    source_target_mapping => $source_target_mapping,
    target_base_uri => $target_base_uri,
    source_environment => $source_environment,
    target_return_literals => $target_return_literals,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/bigquery/migration/v2/translation_details.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::TranslationDetails::TranslationDetails

The translation details to capture the necessary settings for a translation job.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SourceTargetMapping)

    The mapping from source to target SQL.

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

    Type: String

    The base URI for all writes to persistent storage.

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

    Type: Message (Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SourceEnvironment)

    The default source environment values for the translation.

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

    Type: String

    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.

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

    Type: String

    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.

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

    Type: Message (Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SuggestionConfig)

    The configuration for the suggestion if requested as a target type.

Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SuggestionConfig

The configuration for the suggestion if requested as a target type.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SuggestionStep

Suggestion step to skip.

Inherits from Protobuf::Message.

Accessors

Enum: SuggestionStep::SuggestionType

  • SUGGESTION_TYPE_UNSPECIFIED => 0

  • QUERY_CUSTOMIZATION => 1

  • TRANSLATION_EXPLANATION => 2

Enum: SuggestionStep::RewriteTarget

  • REWRITE_TARGET_UNSPECIFIED => 0

  • SOURCE_SQL => 1

  • TARGET_SQL => 2

Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SourceTargetMapping

Represents one mapping from a source SQL to a target SQL.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SourceSpec

Represents one path to the location that holds source data.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The base URI for all files to be read in as sources for translation.

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

    Type: Message (Google::Cloud::Bigquery::Migration::V2::TranslationDetails::Literal)

    Source literal.

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

    Type: String

    The path to a single source file in Cloud Storage.

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

    Type: String

    Optional. The optional field to specify the encoding of the sql bytes.

Google::Cloud::Bigquery::Migration::V2::TranslationDetails::TargetSpec

Represents one path to the location that holds target data.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    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`.

Google::Cloud::Bigquery::Migration::V2::TranslationDetails::Literal

Literal data.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Literal string data.

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

    Type: Bytes

    Literal byte data.

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

    Type: String

    Required. The identifier of the literal entry.

Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SourceEnvironment

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 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.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.