Service Client: Google::Cloud::Bigquery::Migration::V2alpha::TranslationService::SqlTranslationServiceClient
Client stub representing the remote SqlTranslationService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to bigquery.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Bigquery::Migration::V2alpha::TranslationService - Compiled Protocol Buffers messages for google/cloud/bigquery/migration/v2alpha/translation_service.proto
SYNOPSIS
use Google::Cloud::Bigquery::Migration::V2alpha::TranslationService;
my $msg = Google::Cloud::Bigquery::Migration::V2alpha::TranslationService::TranslateQueryRequest->new({
parent => $parent,
source_dialect => $source_dialect,
query => $query,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Bigquery::Migration::V2alpha::TranslationService::TranslateQueryRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/bigquery/migration/v2alpha/translation_service.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::V2alpha::TranslationService::TranslateQueryRequest
The request of translating a SQL query to Standard SQL.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the project to which this translation request belongs. Example: `projects/foo/locations/bar`
$msg->source_dialect()/$msg->source_dialect($value)Type:
Enum(Google::Cloud::Bigquery::Migration::V2alpha::TranslateQueryRequest::SqlTranslationSourceDialect)Required. The source SQL dialect of `queries`.
$msg->query()/$msg->query($value)Type:
StringRequired. The query to be translated.
Enum: TranslateQueryRequest::SqlTranslationSourceDialect
SQL_TRANSLATION_SOURCE_DIALECT_UNSPECIFIED=>0TERADATA=>1
Google::Cloud::Bigquery::Migration::V2alpha::TranslationService::TranslateQueryResponse
The response of translating a SQL query to Standard SQL.
Inherits from Protobuf::Message.
Accessors
$msg->translation_job()/$msg->translation_job($value)Type:
StringOutput only. Immutable. The unique identifier for the SQL translation job. Example: `projects/123/locations/us/translation/1234`
$msg->translated_query()/$msg->translated_query($value)Type:
StringThe translated result. This will be empty if the translation fails.
$msg->errors()/$msg->errors($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2alpha::TranslationService::SqlTranslationError)The list of errors encountered during the translation, if present.
$msg->warnings()/$msg->warnings($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2alpha::TranslationService::SqlTranslationWarning)The list of warnings encountered during the translation, if present, indicates non-semantically correct translation.
Google::Cloud::Bigquery::Migration::V2alpha::TranslationService::SqlTranslationErrorDetail
Structured error object capturing the error message and the location in the source text where the error occurs.
Inherits from Protobuf::Message.
Accessors
$msg->row()/$msg->row($value)Type:
Int64Specifies the row from the source text where the error occurred.
$msg->column()/$msg->column($value)Type:
Int64Specifie the column from the source texts where the error occurred.
$msg->message()/$msg->message($value)Type:
StringA human-readable description of the error.
Google::Cloud::Bigquery::Migration::V2alpha::TranslationService::SqlTranslationError
The detailed error object if the SQL translation job fails.
Inherits from Protobuf::Message.
Accessors
$msg->error_type()/$msg->error_type($value)Type:
Enum(Google::Cloud::Bigquery::Migration::V2alpha::SqlTranslationError::SqlTranslationErrorType)The type of SQL translation error.
$msg->error_detail()/$msg->error_detail($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2alpha::TranslationService::SqlTranslationErrorDetail)Specifies the details of the error, including the error message and location from the source text.
Enum: SqlTranslationError::SqlTranslationErrorType
SQL_TRANSLATION_ERROR_TYPE_UNSPECIFIED=>0SQL_PARSE_ERROR=>1UNSUPPORTED_SQL_FUNCTION=>2
Google::Cloud::Bigquery::Migration::V2alpha::TranslationService::SqlTranslationWarning
The detailed warning object if the SQL translation job is completed but not semantically correct.
Inherits from Protobuf::Message.
Accessors
$msg->warning_detail()/$msg->warning_detail($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2alpha::TranslationService::SqlTranslationErrorDetail)Specifies the details of the warning, including the warning message and location from the source text.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Bigquery::Migration::V2alpha::TranslationService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.