Reference documentation and code samples for the Cloud Translation V3 Client class ListAdaptiveMtSentencesRequest.
The request for listing Adaptive MT sentences from a Dataset/File.
Generated from protobuf message google.cloud.translation.v3.ListAdaptiveMtSentencesRequest
Namespace
Google \ Cloud \ Translate \ V3
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
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}
↳ page_size
int
↳ page_token
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.
getParent
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}
Returns
Type
Description
string
setParent
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}
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPageSize
Generated from protobuf field int32 page_size = 2;
Returns
Type
Description
int
setPageSize
Generated from protobuf field int32 page_size = 2;
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getPageToken
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.
Returns
Type
Description
string
setPageToken
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.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
parent
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}
Please see TranslationServiceClient::adaptiveMtFileName() for help formatting this field.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Translation V3 Client - Class ListAdaptiveMtSentencesRequest (2.0.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.3 (latest)](/php/docs/reference/cloud-translate/latest/V3.ListAdaptiveMtSentencesRequest)\n- [2.0.2](/php/docs/reference/cloud-translate/2.0.2/V3.ListAdaptiveMtSentencesRequest)\n- [1.21.0](/php/docs/reference/cloud-translate/1.21.0/V3.ListAdaptiveMtSentencesRequest)\n- [1.20.2](/php/docs/reference/cloud-translate/1.20.2/V3.ListAdaptiveMtSentencesRequest)\n- [1.19.0](/php/docs/reference/cloud-translate/1.19.0/V3.ListAdaptiveMtSentencesRequest)\n- [1.18.1](/php/docs/reference/cloud-translate/1.18.1/V3.ListAdaptiveMtSentencesRequest)\n- [1.17.7](/php/docs/reference/cloud-translate/1.17.7/V3.ListAdaptiveMtSentencesRequest)\n- [1.16.0](/php/docs/reference/cloud-translate/1.16.0/V3.ListAdaptiveMtSentencesRequest)\n- [1.15.4](/php/docs/reference/cloud-translate/1.15.4/V3.ListAdaptiveMtSentencesRequest)\n- [1.14.3](/php/docs/reference/cloud-translate/1.14.3/V3.ListAdaptiveMtSentencesRequest)\n- [1.13.3](/php/docs/reference/cloud-translate/1.13.3/V3.ListAdaptiveMtSentencesRequest)\n- [1.12.12](/php/docs/reference/cloud-translate/1.12.12/V3.ListAdaptiveMtSentencesRequest) \nReference documentation and code samples for the Cloud Translation V3 Client class ListAdaptiveMtSentencesRequest.\n\nThe request for listing Adaptive MT sentences from a Dataset/File.\n\nGenerated from protobuf message `google.cloud.translation.v3.ListAdaptiveMtSentencesRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Translate \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The resource name of the project from which to list the Adaptive\nMT files. The following format lists all sentences under a file.\n\n`projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}`\nThe following format lists all sentences within a dataset.\n`projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}`\n\n### setParent\n\nRequired. The resource name of the project from which to list the Adaptive\nMT files. The following format lists all sentences under a file.\n\n`projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}`\nThe following format lists all sentences within a dataset.\n`projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}`\n\n### getPageSize\n\nGenerated from protobuf field `int32 page_size = 2;`\n\n### setPageSize\n\nGenerated from protobuf field `int32 page_size = 2;`\n\n### getPageToken\n\nA token identifying a page of results the server should return.\n\nTypically, this is the value of\nListAdaptiveMtSentencesRequest.next_page_token returned from the\nprevious call to `ListTranslationMemories` method. The first page is\nreturned if `page_token` is empty or missing.\n\n### setPageToken\n\nA token identifying a page of results the server should return.\n\nTypically, this is the value of\nListAdaptiveMtSentencesRequest.next_page_token returned from the\nprevious call to `ListTranslationMemories` method. The first page is\nreturned if `page_token` is empty or missing.\n\n### static::build"]]