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:
StringRequired. 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:
StringThe 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:
StringThe BCP-47 language code of the source language.
$msg->target_language_code()/$msg->target_language_code($value)Type:
StringThe BCP-47 language code of the target language.
$msg->example_count()/$msg->example_count($value)Type:
Int32The 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:
StringRequired. 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:
StringRequired. 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:
StringRequired. 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:
StringRequired. 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:
Int32Optional. 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:
StringOptional. 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:
StringOptional. 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:
StringOptional. 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:
StringRequired. Location to make a regional call.
Format: `projects/{project-number-or-id}/locations/{location-id}`.
$msg->dataset()/$msg->dataset($value)Type:
StringRequired. The resource name for the dataset to use for adaptive MT. `projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}`
$msg->content()/$msg->content($value)Type:
StringRequired. The content of the input in string format.
$msg->mime_type()/$msg->mime_type($value)Type:
StringThe 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:
StringOutput only. The translated text.
Google::Cloud::Translation::V3::AdaptiveMt::AdaptiveMtTranslateResponse
An AdaptiveMtTranslate response.
Inherits from Protobuf::Message.
Accessors
$msg->translations()/$msg->translations($value)Type:
Message(Google::Cloud::Translation::V3::AdaptiveMt::AdaptiveMtTranslation)Output only. The translation.
$msg->language_code()/$msg->language_code($value)Type:
StringOutput only. The translation's language code.
$msg->glossary_translations()/$msg->glossary_translations($value)Type:
Message(Google::Cloud::Translation::V3::AdaptiveMt::AdaptiveMtTranslation)Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
Google::Cloud::Translation::V3::AdaptiveMt::AdaptiveMtFile
An AdaptiveMtFile.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. 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:
StringThe file's display name.
$msg->entry_count()/$msg->entry_count($value)Type:
Int32The 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:
StringRequired. 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:
StringRequired. 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
$msg->parent()/$msg->parent($value)Type:
StringRequired. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}`
$msg->file_input_source()/$msg->file_input_source($value)Type:
Message(Google::Cloud::Translation::V3::Common::FileInputSource)Inline file source.
$msg->gcs_input_source()/$msg->gcs_input_source($value)Type:
Message(Google::Cloud::Translation::V3::Common::GcsInputSource)Google Cloud Storage file source.
Google::Cloud::Translation::V3::AdaptiveMt::ImportAdaptiveMtFileResponse
The response for importing an AdaptiveMtFile
Inherits from Protobuf::Message.
Accessors
$msg->adaptive_mt_file()/$msg->adaptive_mt_file($value)Type:
Message(Google::Cloud::Translation::V3::AdaptiveMt::AdaptiveMtFile)Output only. The Adaptive MT file that was imported.
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:
StringRequired. 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:
Int32Optional.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. 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:
StringOptional. 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:
StringRequired. 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:
StringRequired. The source sentence.
$msg->target_sentence()/$msg->target_sentence($value)Type:
StringRequired. 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:
StringRequired. 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:
StringA 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
$msg->adaptive_mt_sentences()/$msg->adaptive_mt_sentences($value)Type:
Message(Google::Cloud::Translation::V3::AdaptiveMt::AdaptiveMtSentence)Output only. The list of AdaptiveMtSentences.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringOptional.
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.