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

Enum: TranslateQueryRequest::SqlTranslationSourceDialect

  • SQL_TRANSLATION_SOURCE_DIALECT_UNSPECIFIED => 0

  • TERADATA => 1

Google::Cloud::Bigquery::Migration::V2alpha::TranslationService::TranslateQueryResponse

The response of translating a SQL query to Standard SQL.

Inherits from Protobuf::Message.

Accessors

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: Int64

    Specifies the row from the source text where the error occurred.

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

    Type: Int64

    Specifie the column from the source texts where the error occurred.

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

    Type: String

    A 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

Enum: SqlTranslationError::SqlTranslationErrorType

  • SQL_TRANSLATION_ERROR_TYPE_UNSPECIFIED => 0

  • SQL_PARSE_ERROR => 1

  • UNSUPPORTED_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

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.