NAME

Google::Cloud::Translation::V3::AutomlTranslation - Compiled Protocol Buffers messages for google/cloud/translate/v3/automl_translation.proto

SYNOPSIS

use Google::Cloud::Translation::V3::AutomlTranslation;

my $msg = Google::Cloud::Translation::V3::AutomlTranslation::ImportDataRequest->new({
    dataset => $dataset,
    input_config => $input_config,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Translation::V3::AutomlTranslation::ImportDataRequest->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/translate/v3/automl_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::Translation::V3::AutomlTranslation::ImportDataRequest

Request message for ImportData.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the dataset. In form of `projects/{project-number-or-id}/locations/{location-id}/datasets/{dataset-id}`

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

    Type: Message (Google::Cloud::Translation::V3::AutomlTranslation::DatasetInputConfig)

    Required. The config for the input content.

Google::Cloud::Translation::V3::AutomlTranslation::DatasetInputConfig

Input configuration for datasets.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Translation::V3::AutomlTranslation::ImportDataMetadata

Metadata of import data operation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Translation::V3::AutomlTranslation::ExportDataRequest

Request message for ExportData.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the dataset. In form of `projects/{project-number-or-id}/locations/{location-id}/datasets/{dataset-id}`

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

    Type: Message (Google::Cloud::Translation::V3::AutomlTranslation::DatasetOutputConfig)

    Required. The config for the output content.

Google::Cloud::Translation::V3::AutomlTranslation::DatasetOutputConfig

Output configuration for datasets.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Translation::V3::AutomlTranslation::ExportDataMetadata

Metadata of export data operation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Translation::V3::AutomlTranslation::DeleteDatasetRequest

Request message for DeleteDataset.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the dataset to delete.

Google::Cloud::Translation::V3::AutomlTranslation::DeleteDatasetMetadata

Metadata of delete dataset operation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Translation::V3::AutomlTranslation::GetDatasetRequest

Request message for GetDataset.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the dataset to retrieve.

Google::Cloud::Translation::V3::AutomlTranslation::ListDatasetsRequest

Request message for ListDatasets.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the parent project. In form of `projects/{project-number-or-id}/locations/{location-id}`

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

    Type: Int32

    Optional. Requested page size. The server can return fewer results than requested.

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

    Type: String

    Optional. A token identifying a page of results for the server to return. Typically obtained from next_page_token field in the response of a ListDatasets call.

Google::Cloud::Translation::V3::AutomlTranslation::ListDatasetsResponse

Response message for ListDatasets.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Translation::V3::AutomlTranslation::Dataset)

    The datasets read.

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

    Type: String

    A token to retrieve next page of results. Pass this token to the page_token field in the ListDatasetsRequest to obtain the corresponding page.

Google::Cloud::Translation::V3::AutomlTranslation::CreateDatasetRequest

Request message for CreateDataset.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Translation::V3::AutomlTranslation::CreateDatasetMetadata

Metadata of create dataset operation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Translation::V3::AutomlTranslation::ListExamplesRequest

Request message for ListExamples.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the parent dataset. In form of `projects/{project-number-or-id}/locations/{location-id}/datasets/{dataset-id}`

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

    Type: String

    Optional. An expression for filtering the examples that will be returned. Example filter: * `usage=TRAIN`

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

    Type: Int32

    Optional. Requested page size. The server can return fewer results than requested.

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

    Type: String

    Optional. A token identifying a page of results for the server to return. Typically obtained from next_page_token field in the response of a ListExamples call.

Google::Cloud::Translation::V3::AutomlTranslation::ListExamplesResponse

Response message for ListExamples.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Translation::V3::AutomlTranslation::Example)

    The sentence pairs.

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

    Type: String

    A token to retrieve next page of results. Pass this token to the page_token field in the ListExamplesRequest to obtain the corresponding page.

Google::Cloud::Translation::V3::AutomlTranslation::Example

A sentence pair.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The resource name of the example, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}/examples/{example_id}`

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

    Type: String

    Sentence in source language.

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

    Type: String

    Sentence in target language.

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

    Type: String

    Output only. Usage of the sentence pair. Options are TRAIN|VALIDATION|TEST.

Google::Cloud::Translation::V3::AutomlTranslation::BatchTransferResourcesResponse

Response message for BatchTransferResources.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Translation::V3::AutomlTranslation::Dataset

A dataset that hosts the examples (sentence pairs) used for translation models.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`

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

    Type: String

    The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.

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

    Type: String

    The BCP-47 language code of the source language.

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

    Type: String

    The BCP-47 language code of the target language.

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

    Type: Int32

    Output only. The number of examples in the dataset.

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

    Type: Int32

    Output only. Number of training examples (sentence pairs).

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

    Type: Int32

    Output only. Number of validation examples (sentence pairs).

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

    Type: Int32

    Output only. Number of test examples (sentence pairs).

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Timestamp when this dataset was created.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Timestamp when this dataset was last updated.

Google::Cloud::Translation::V3::AutomlTranslation::CreateModelRequest

Request message for CreateModel.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Translation::V3::AutomlTranslation::CreateModelMetadata

Metadata of create model operation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Translation::V3::AutomlTranslation::ListModelsRequest

Request message for ListModels.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the parent project. In form of `projects/{project-number-or-id}/locations/{location-id}`

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

    Type: String

    Optional. An expression for filtering the models that will be returned. Supported filter: `dataset_id=${dataset_id}`

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

    Type: Int32

    Optional. Requested page size. The server can return fewer results than requested.

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

    Type: String

    Optional. A token identifying a page of results for the server to return. Typically obtained from next_page_token field in the response of a ListModels call.

Google::Cloud::Translation::V3::AutomlTranslation::ListModelsResponse

Response message for ListModels.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Translation::V3::AutomlTranslation::Model)

    The models read.

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

    Type: String

    A token to retrieve next page of results. Pass this token to the page_token field in the ListModelsRequest to obtain the corresponding page.

Google::Cloud::Translation::V3::AutomlTranslation::GetModelRequest

Request message for GetModel.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the model to retrieve.

Google::Cloud::Translation::V3::AutomlTranslation::DeleteModelRequest

Request message for DeleteModel.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the model to delete.

Google::Cloud::Translation::V3::AutomlTranslation::DeleteModelMetadata

Metadata of delete model operation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Translation::V3::AutomlTranslation::Model

A trained translation model.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The resource name of the model, in form of `projects/{project-number-or-id}/locations/{location_id}/models/{model_id}`

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

    Type: String

    The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.

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

    Type: String

    The dataset from which the model is trained, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`

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

    Type: String

    Output only. The BCP-47 language code of the source language.

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

    Type: String

    Output only. The BCP-47 language code of the target language.

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

    Type: Int32

    Output only. Number of examples (sentence pairs) used to train the model.

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

    Type: Int32

    Output only. Number of examples (sentence pairs) used to validate the model.

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

    Type: Int32

    Output only. Number of examples (sentence pairs) used to test the model.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Timestamp when the model resource was created, which is also when the training started.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Timestamp when this model was last updated.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Translation::V3::AutomlTranslation::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.