NAME
Google::Cloud::Automl::V1::Translation - Compiled Protocol Buffers messages for google/cloud/automl/v1/translation.proto
SYNOPSIS
use Google::Cloud::Automl::V1::Translation;
my $msg = Google::Cloud::Automl::V1::Translation::TranslationDatasetMetadata->new({
source_language_code => $source_language_code,
target_language_code => $target_language_code,
});
# Read or update a field
my $val = $msg->source_language_code();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Automl::V1::Translation::TranslationDatasetMetadata->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/automl/v1/translation.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::Automl::V1::Translation::TranslationDatasetMetadata
Dataset metadata that is specific to translation.
Inherits from Protobuf::Message.
Accessors
$msg->source_language_code()/$msg->source_language_code($value)Type:
StringRequired. The BCP-47 language code of the source language.
$msg->target_language_code()/$msg->target_language_code($value)Type:
StringRequired. The BCP-47 language code of the target language.
Google::Cloud::Automl::V1::Translation::TranslationEvaluationMetrics
Evaluation metrics for the dataset.
Inherits from Protobuf::Message.
Accessors
$msg->bleu_score()/$msg->bleu_score($value)Type:
DoubleOutput only. BLEU score.
$msg->base_bleu_score()/$msg->base_bleu_score($value)Type:
DoubleOutput only. BLEU score for base model.
Google::Cloud::Automl::V1::Translation::TranslationModelMetadata
Model metadata that is specific to translation.
Inherits from Protobuf::Message.
Accessors
$msg->base_model()/$msg->base_model($value)Type:
StringThe resource name of the model to use as a baseline to train the custom model. If unset, we use the default base model provided by Google Translate. Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
$msg->source_language_code()/$msg->source_language_code($value)Type:
StringOutput only. Inferred from the dataset. The source language (The BCP-47 language code) that is used for training.
$msg->target_language_code()/$msg->target_language_code($value)Type:
StringOutput only. The target language (The BCP-47 language code) that is used for training.
Google::Cloud::Automl::V1::Translation::TranslationAnnotation
Annotation details specific to translation.
Inherits from Protobuf::Message.
Accessors
$msg->translated_content()/$msg->translated_content($value)Type:
Message(Google::Cloud::Automl::V1::DataItems::TextSnippet)Output only . The translated content.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Automl::V1::Translation::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.