Reference documentation and code samples for the Cloud Translation V3 Client class AdaptiveMtDataset.
An Adaptive MT Dataset.
Generated from protobuf messagegoogle.cloud.translation.v3.AdaptiveMtDataset
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 dataset, in form ofprojects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}
↳ display_name
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.
Output only. Timestamp when this dataset was last updated.
getName
Required. The resource name of the dataset, in form ofprojects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}
Returns
Type
Description
string
setName
Required. The resource name of the dataset, in form ofprojects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDisplayName
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.
Returns
Type
Description
string
setDisplayName
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.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getSourceLanguageCode
The BCP-47 language code of the source language.
Returns
Type
Description
string
setSourceLanguageCode
The BCP-47 language code of the source language.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getTargetLanguageCode
The BCP-47 language code of the target language.
Returns
Type
Description
string
setTargetLanguageCode
The BCP-47 language code of the target language.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getExampleCount
The number of examples in the dataset.
Returns
Type
Description
int
setExampleCount
The number of examples in the dataset.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getCreateTime
Output only. Timestamp when this dataset 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 AdaptiveMtDataset (2.0.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.3 (latest)](/php/docs/reference/cloud-translate/latest/V3.AdaptiveMtDataset)\n- [2.0.2](/php/docs/reference/cloud-translate/2.0.2/V3.AdaptiveMtDataset)\n- [1.21.0](/php/docs/reference/cloud-translate/1.21.0/V3.AdaptiveMtDataset)\n- [1.20.2](/php/docs/reference/cloud-translate/1.20.2/V3.AdaptiveMtDataset)\n- [1.19.0](/php/docs/reference/cloud-translate/1.19.0/V3.AdaptiveMtDataset)\n- [1.18.1](/php/docs/reference/cloud-translate/1.18.1/V3.AdaptiveMtDataset)\n- [1.17.7](/php/docs/reference/cloud-translate/1.17.7/V3.AdaptiveMtDataset)\n- [1.16.0](/php/docs/reference/cloud-translate/1.16.0/V3.AdaptiveMtDataset)\n- [1.15.4](/php/docs/reference/cloud-translate/1.15.4/V3.AdaptiveMtDataset)\n- [1.14.3](/php/docs/reference/cloud-translate/1.14.3/V3.AdaptiveMtDataset)\n- [1.13.3](/php/docs/reference/cloud-translate/1.13.3/V3.AdaptiveMtDataset)\n- [1.12.12](/php/docs/reference/cloud-translate/1.12.12/V3.AdaptiveMtDataset) \nReference documentation and code samples for the Cloud Translation V3 Client class AdaptiveMtDataset.\n\nAn Adaptive MT Dataset.\n\nGenerated from protobuf message `google.cloud.translation.v3.AdaptiveMtDataset`\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 dataset, in form of\n`projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}`\n\n### setName\n\nRequired. The resource name of the dataset, in form of\n`projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}`\n\n### getDisplayName\n\nThe name of the dataset to show in the interface. The name can be\nup to 32 characters long and can consist only of ASCII Latin letters A-Z\nand a-z, underscores (_), and ASCII digits 0-9.\n\n### setDisplayName\n\nThe name of the dataset to show in the interface. The name can be\nup to 32 characters long and can consist only of ASCII Latin letters A-Z\nand a-z, underscores (_), and ASCII digits 0-9.\n\n### getSourceLanguageCode\n\nThe BCP-47 language code of the source language.\n\n### setSourceLanguageCode\n\nThe BCP-47 language code of the source language.\n\n### getTargetLanguageCode\n\nThe BCP-47 language code of the target language.\n\n### setTargetLanguageCode\n\nThe BCP-47 language code of the target language.\n\n### getExampleCount\n\nThe number of examples in the dataset.\n\n### setExampleCount\n\nThe number of examples in the dataset.\n\n### getCreateTime\n\nOutput only. Timestamp when this dataset was created.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. Timestamp when this dataset was created.\n\n### getUpdateTime\n\nOutput only. Timestamp when this dataset was last updated.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. Timestamp when this dataset was last updated."]]