Reference documentation and code samples for the Cloud Translation V3 Client class Model.
A trained translation model.
Generated from protobuf message google.cloud.translation.v3.Model
Namespace
Google \ Cloud \ Translate \ V3Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
The resource name of the model, in form of projects/{project-number-or-id}/locations/{location_id}/models/{model_id}
↳ display_name
string
The name of the model 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.
↳ dataset
string
The dataset from which the model is trained, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}
↳ source_language_code
string
Output only. The BCP-47 language code of the source language.
↳ target_language_code
string
Output only. The BCP-47 language code of the target language.
↳ train_example_count
int
Output only. Number of examples (sentence pairs) used to train the model.
↳ validate_example_count
int
Output only. Number of examples (sentence pairs) used to validate the model.
↳ test_example_count
int
Output only. Number of examples (sentence pairs) used to test the model.
↳ create_time
Google\Protobuf\Timestamp
Output only. Timestamp when the model resource was created, which is also when the training started.
↳ update_time
getName
The resource name of the model, in form of projects/{project-number-or-id}/locations/{location_id}/models/{model_id}
string
setName
The resource name of the model, in form of projects/{project-number-or-id}/locations/{location_id}/models/{model_id}
var
string
$this
getDisplayName
The name of the model 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.
string
setDisplayName
The name of the model 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.
var
string
$this
getDataset
The dataset from which the model is trained, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}
string
setDataset
The dataset from which the model is trained, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}
var
string
$this
getSourceLanguageCode
Output only. The BCP-47 language code of the source language.
string
setSourceLanguageCode
Output only. The BCP-47 language code of the source language.
var
string
$this
getTargetLanguageCode
Output only. The BCP-47 language code of the target language.
string
setTargetLanguageCode
Output only. The BCP-47 language code of the target language.
var
string
$this
getTrainExampleCount
Output only. Number of examples (sentence pairs) used to train the model.
int
setTrainExampleCount
Output only. Number of examples (sentence pairs) used to train the model.
var
int
$this
getValidateExampleCount
Output only. Number of examples (sentence pairs) used to validate the model.
int
setValidateExampleCount
Output only. Number of examples (sentence pairs) used to validate the model.
var
int
$this
getTestExampleCount
Output only. Number of examples (sentence pairs) used to test the model.
int
setTestExampleCount
Output only. Number of examples (sentence pairs) used to test the model.
var
int
$this
getCreateTime
Output only. Timestamp when the model resource was created, which is also when the training started.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Timestamp when the model resource was created, which is also when the training started.
$this
getUpdateTime
Output only. Timestamp when this model was last updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Timestamp when this model was last updated.
$this