Reference documentation and code samples for the Cloud AutoML V1 Client class TranslationModelMetadata.
Model metadata that is specific to translation.
Generated from protobuf messagegoogle.cloud.automl.v1.TranslationModelMetadata
Namespace
Google \ Cloud \ AutoMl \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ base_model
string
The resource name of the model to use as a baseline to train the custom model. If unset, we use the default base model provided by Google Translate. Format:projects/{project_id}/locations/{location_id}/models/{model_id}
↳ source_language_code
string
Output only. Inferred from the dataset. The source language (The BCP-47 language code) that is used for training.
↳ target_language_code
string
Output only. The target language (The BCP-47 language code) that is used for training.
getBaseModel
The resource name of the model to use as a baseline to train the custom
model. If unset, we use the default base model provided by Google
Translate. Format:projects/{project_id}/locations/{location_id}/models/{model_id}
Returns
Type
Description
string
setBaseModel
The resource name of the model to use as a baseline to train the custom
model. If unset, we use the default base model provided by Google
Translate. Format:projects/{project_id}/locations/{location_id}/models/{model_id}
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getSourceLanguageCode
Output only. Inferred from the dataset.
The source language (The BCP-47 language code) that is used for training.
Returns
Type
Description
string
setSourceLanguageCode
Output only. Inferred from the dataset.
The source language (The BCP-47 language code) that is used for training.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getTargetLanguageCode
Output only. The target language (The BCP-47 language code) that is used
for training.
Returns
Type
Description
string
setTargetLanguageCode
Output only. The target language (The BCP-47 language code) that is used
for training.
[[["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 AutoML V1 Client - Class TranslationModelMetadata (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-automl/latest/V1.TranslationModelMetadata)\n- [2.0.4](/php/docs/reference/cloud-automl/2.0.4/V1.TranslationModelMetadata)\n- [1.6.5](/php/docs/reference/cloud-automl/1.6.5/V1.TranslationModelMetadata)\n- [1.5.4](/php/docs/reference/cloud-automl/1.5.4/V1.TranslationModelMetadata)\n- [1.4.17](/php/docs/reference/cloud-automl/1.4.17/V1.TranslationModelMetadata) \nReference documentation and code samples for the Cloud AutoML V1 Client class TranslationModelMetadata.\n\nModel metadata that is specific to translation.\n\nGenerated from protobuf message `google.cloud.automl.v1.TranslationModelMetadata`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AutoMl \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getBaseModel\n\nThe resource name of the model to use as a baseline to train the custom\nmodel. If unset, we use the default base model provided by Google\nTranslate. Format:\n`projects/{project_id}/locations/{location_id}/models/{model_id}`\n\n### setBaseModel\n\nThe resource name of the model to use as a baseline to train the custom\nmodel. If unset, we use the default base model provided by Google\nTranslate. Format:\n`projects/{project_id}/locations/{location_id}/models/{model_id}`\n\n### getSourceLanguageCode\n\nOutput only. Inferred from the dataset.\n\nThe source language (The BCP-47 language code) that is used for training.\n\n### setSourceLanguageCode\n\nOutput only. Inferred from the dataset.\n\nThe source language (The BCP-47 language code) that is used for training.\n\n### getTargetLanguageCode\n\nOutput only. The target language (The BCP-47 language code) that is used\nfor training.\n\n### setTargetLanguageCode\n\nOutput only. The target language (The BCP-47 language code) that is used\nfor training."]]