Reference documentation and code samples for the Cloud Translation V3 Client class AdaptiveMtSentence.
An AdaptiveMt sentence entry.
Generated from protobuf messagegoogle.cloud.translation.v3.AdaptiveMtSentence
Namespace
Google \ Cloud \ Translate \ V3
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The resource name of the file, in form ofprojects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}
Output only. Timestamp when this sentence was last updated.
getName
Required. The resource name of the file, in form ofprojects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}
Returns
Type
Description
string
setName
Required. The resource name of the file, in form ofprojects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getSourceSentence
Required. The source sentence.
Returns
Type
Description
string
setSourceSentence
Required. The source sentence.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getTargetSentence
Required. The target sentence.
Returns
Type
Description
string
setTargetSentence
Required. The target sentence.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCreateTime
Output only. Timestamp when this sentence was created.
[[["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-04 UTC."],[],[],null,["# Cloud Translation V3 Client - Class AdaptiveMtSentence (2.0.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.3 (latest)](/php/docs/reference/cloud-translate/latest/V3.AdaptiveMtSentence)\n- [2.0.2](/php/docs/reference/cloud-translate/2.0.2/V3.AdaptiveMtSentence)\n- [1.21.0](/php/docs/reference/cloud-translate/1.21.0/V3.AdaptiveMtSentence)\n- [1.20.2](/php/docs/reference/cloud-translate/1.20.2/V3.AdaptiveMtSentence)\n- [1.19.0](/php/docs/reference/cloud-translate/1.19.0/V3.AdaptiveMtSentence)\n- [1.18.1](/php/docs/reference/cloud-translate/1.18.1/V3.AdaptiveMtSentence)\n- [1.17.7](/php/docs/reference/cloud-translate/1.17.7/V3.AdaptiveMtSentence)\n- [1.16.0](/php/docs/reference/cloud-translate/1.16.0/V3.AdaptiveMtSentence)\n- [1.15.4](/php/docs/reference/cloud-translate/1.15.4/V3.AdaptiveMtSentence)\n- [1.14.3](/php/docs/reference/cloud-translate/1.14.3/V3.AdaptiveMtSentence)\n- [1.13.3](/php/docs/reference/cloud-translate/1.13.3/V3.AdaptiveMtSentence)\n- [1.12.12](/php/docs/reference/cloud-translate/1.12.12/V3.AdaptiveMtSentence) \nReference documentation and code samples for the Cloud Translation V3 Client class AdaptiveMtSentence.\n\nAn AdaptiveMt sentence entry.\n\nGenerated from protobuf message `google.cloud.translation.v3.AdaptiveMtSentence`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Translate \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The resource name of the file, in form of\n`projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}`\n\n### setName\n\nRequired. The resource name of the file, in form of\n`projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}`\n\n### getSourceSentence\n\nRequired. The source sentence.\n\n### setSourceSentence\n\nRequired. The source sentence.\n\n### getTargetSentence\n\nRequired. The target sentence.\n\n### setTargetSentence\n\nRequired. The target sentence.\n\n### getCreateTime\n\nOutput only. Timestamp when this sentence was created.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. Timestamp when this sentence was created.\n\n### getUpdateTime\n\nOutput only. Timestamp when this sentence was last updated.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. Timestamp when this sentence was last updated."]]