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:
StringThe 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:
StringThe 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:
StringThe 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
$msg->skip_suggestion_steps()/$msg->skip_suggestion_steps($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SuggestionStep)The list of suggestion steps to skip.
Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SuggestionStep
Suggestion step to skip.
Inherits from Protobuf::Message.
Accessors
$msg->suggestion_type()/$msg->suggestion_type($value)Type:
Enum(Google::Cloud::Bigquery::Migration::V2::SuggestionStep::SuggestionType)The type of suggestion.
$msg->rewrite_target()/$msg->rewrite_target($value)Type:
Enum(Google::Cloud::Bigquery::Migration::V2::SuggestionStep::RewriteTarget)The rewrite target.
Enum: SuggestionStep::SuggestionType
SUGGESTION_TYPE_UNSPECIFIED=>0QUERY_CUSTOMIZATION=>1TRANSLATION_EXPLANATION=>2
Enum: SuggestionStep::RewriteTarget
REWRITE_TARGET_UNSPECIFIED=>0SOURCE_SQL=>1TARGET_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
$msg->source_spec()/$msg->source_spec($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2::TranslationDetails::SourceSpec)The source SQL or the path to it.
$msg->target_spec()/$msg->target_spec($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2::TranslationDetails::TargetSpec)The target SQL or the path for it.
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:
StringThe 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:
StringThe path to a single source file in Cloud Storage.
$msg->encoding()/$msg->encoding($value)Type:
StringOptional. 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:
StringThe 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:
StringLiteral string data.
$msg->literal_bytes()/$msg->literal_bytes($value)Type:
BytesLiteral byte data.
$msg->relative_path()/$msg->relative_path($value)Type:
StringRequired. 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:
StringThe default database name to fully qualify SQL objects when their database name is missing.
$msg->schema_search_path()/$msg->schema_search_path($value)Type:
StringThe 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:
StringOptional. 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.