NAME

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

SYNOPSIS

use Google::Cloud::Translation::V3::AdaptiveMt;

my $msg = Google::Cloud::Translation::V3::AdaptiveMt::AdaptiveMtDataset->new({
    name => $name,
    display_name => $display_name,
    source_language_code => $source_language_code,
    target_language_code => $target_language_code,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/translate/v3/adaptive_mt.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::AdaptiveMt::AdaptiveMtDataset

An Adaptive MT Dataset.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{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

    The number of examples in the dataset.

  • $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::AdaptiveMt::CreateAdaptiveMtDatasetRequest

 Request message for creating an AdaptiveMtDataset.

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->adaptive_mt_dataset() / $msg->adaptive_mt_dataset($value)

    Type: Message (Google::Cloud::Translation::V3::AdaptiveMt::AdaptiveMtDataset)

    Required. The AdaptiveMtDataset to be created.

Google::Cloud::Translation::V3::AdaptiveMt::DeleteAdaptiveMtDatasetRequest

Request message for deleting an AdaptiveMtDataset.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

Google::Cloud::Translation::V3::AdaptiveMt::GetAdaptiveMtDatasetRequest

Request message for getting an Adaptive MT dataset.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

Google::Cloud::Translation::V3::AdaptiveMt::ListAdaptiveMtDatasetsRequest

Request message for listing all Adaptive MT datasets that the requestor has access to.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the project from which to list the Adaptive MT datasets. `projects/{project-number-or-id}/locations/{location-id}`

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

    Type: Int32

    Optional. Requested page size. The server may return fewer results than requested. If unspecified, the server picks an appropriate default.

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

    Type: String

    Optional. A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtDatasetsResponse.next_page_token returned from the previous call to `ListAdaptiveMtDatasets` method. The first page is returned if `page_token`is empty or missing.

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

    Type: String

    Optional. An expression for filtering the results of the request. Filter is not supported yet.

Google::Cloud::Translation::V3::AdaptiveMt::ListAdaptiveMtDatasetsResponse

A list of AdaptiveMtDatasets.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Translation::V3::AdaptiveMt::AdaptiveMtDataset)

    Output only. A list of Adaptive MT datasets.

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

    Type: String

    Optional. A token to retrieve a page of results. Pass this value in the [ListAdaptiveMtDatasetsRequest.page_token] field in the subsequent call to `ListAdaptiveMtDatasets` method to retrieve the next page of results.

Google::Cloud::Translation::V3::AdaptiveMt::AdaptiveMtTranslateRequest

The request for sending an AdaptiveMt translation query.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Location to make a regional call.

    Format: `projects/{project-number-or-id}/locations/{location-id}`.

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

    Type: String

    Required. The resource name for the dataset to use for adaptive MT. `projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}`

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

    Type: String

    Required. The content of the input in string format.

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

    Type: String

    The format of the source text.

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

    Type: Message (Google::Cloud::Translation::V3::AdaptiveMt::AdaptiveMtTranslateRequest::ReferenceSentenceConfig)

    Configuration for caller provided reference sentences.

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

    Type: Message (Google::Cloud::Translation::V3::AdaptiveMt::AdaptiveMtTranslateRequest::GlossaryConfig)

    Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned.

Google::Cloud::Translation::V3::AdaptiveMt::AdaptiveMtTranslation

An AdaptiveMt translation.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The translated text.

Google::Cloud::Translation::V3::AdaptiveMt::AdaptiveMtTranslateResponse

An AdaptiveMtTranslate response.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Translation::V3::AdaptiveMt::AdaptiveMtFile

An AdaptiveMtFile.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}`

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

    Type: String

    The file's display name.

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

    Type: Int32

    The number of entries that the file contains.

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

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

    Output only. Timestamp when this file was created.

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

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

    Output only. Timestamp when this file was last updated.

Google::Cloud::Translation::V3::AdaptiveMt::GetAdaptiveMtFileRequest

The request for getting an AdaptiveMtFile.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}`

Google::Cloud::Translation::V3::AdaptiveMt::DeleteAdaptiveMtFileRequest

The request for deleting an AdaptiveMt file.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the file to delete, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}`

Google::Cloud::Translation::V3::AdaptiveMt::ImportAdaptiveMtFileRequest

The request for importing an AdaptiveMt file along with its sentences.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Translation::V3::AdaptiveMt::ImportAdaptiveMtFileResponse

The response for importing an AdaptiveMtFile

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Translation::V3::AdaptiveMt::ListAdaptiveMtFilesRequest

The request to list all AdaptiveMt files under a given dataset.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the project from which to list the Adaptive MT files. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}`

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

    Type: Int32

    Optional.

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

    Type: String

    Optional. A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtFilesResponse.next_page_token returned from the previous call to `ListAdaptiveMtFiles` method. The first page is returned if `page_token`is empty or missing.

Google::Cloud::Translation::V3::AdaptiveMt::ListAdaptiveMtFilesResponse

The response for listing all AdaptiveMt files under a given dataset.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Translation::V3::AdaptiveMt::AdaptiveMtFile)

    Output only. The Adaptive MT files.

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

    Type: String

    Optional. A token to retrieve a page of results. Pass this value in the ListAdaptiveMtFilesRequest.page_token field in the subsequent call to `ListAdaptiveMtFiles` method to retrieve the next page of results.

Google::Cloud::Translation::V3::AdaptiveMt::AdaptiveMtSentence

An AdaptiveMt sentence entry.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}`

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

    Type: String

    Required. The source sentence.

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

    Type: String

    Required. The target sentence.

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

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

    Output only. Timestamp when this sentence was created.

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

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

    Output only. Timestamp when this sentence was last updated.

Google::Cloud::Translation::V3::AdaptiveMt::ListAdaptiveMtSentencesRequest

The request for listing Adaptive MT sentences from a Dataset/File.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}` The following format lists all sentences within a dataset. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}`

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

    Type: Int32

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

    Type: String

    A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtSentencesRequest.next_page_token returned from the previous call to `ListTranslationMemories` method. The first page is returned if `page_token` is empty or missing.

Google::Cloud::Translation::V3::AdaptiveMt::ListAdaptiveMtSentencesResponse

List AdaptiveMt sentences response.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.