Reference documentation and code samples for the Cloud AutoML V1 Client class Model.
API proto representing a trained machine learning model.
Generated from protobuf message google.cloud.automl.v1.Model
Namespace
Google \ Cloud \ AutoMl \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ translation_model_metadata
↳ image_classification_model_metadata
↳ text_classification_model_metadata
↳ image_object_detection_model_metadata
Google\Cloud\AutoMl\V1\ImageObjectDetectionModelMetadata
Metadata for image object detection models.
↳ text_extraction_model_metadata
↳ text_sentiment_model_metadata
↳ name
string
Output only. Resource name of the model. Format: projects/{project_id}/locations/{location_id}/models/{model_id}
↳ display_name
string
Required. 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. It must start with a letter.
↳ dataset_id
string
Required. The resource ID of the dataset used to create the model. The dataset must come from the same ancestor project and location.
↳ create_time
Google\Protobuf\Timestamp
Output only. Timestamp when the model training finished and can be used for prediction.
↳ update_time
↳ deployment_state
int
Output only. Deployment state of the model. A model can only serve prediction requests after it gets deployed.
↳ etag
string
Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
↳ labels
array| Google\Protobuf\Internal\MapField
Optional. The labels with user-defined metadata to organize your model. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://goo.gl/xmQnxf for more information on and examples of labels.
getTranslationModelMetadata
Metadata for translation models.
hasTranslationModelMetadata
setTranslationModelMetadata
Metadata for translation models.
$this
getImageClassificationModelMetadata
Metadata for image classification models.
hasImageClassificationModelMetadata
setImageClassificationModelMetadata
Metadata for image classification models.
$this
getTextClassificationModelMetadata
Metadata for text classification models.
hasTextClassificationModelMetadata
setTextClassificationModelMetadata
Metadata for text classification models.
$this
getImageObjectDetectionModelMetadata
Metadata for image object detection models.
hasImageObjectDetectionModelMetadata
setImageObjectDetectionModelMetadata
Metadata for image object detection models.
$this
getTextExtractionModelMetadata
Metadata for text extraction models.
hasTextExtractionModelMetadata
setTextExtractionModelMetadata
Metadata for text extraction models.
$this
getTextSentimentModelMetadata
Metadata for text sentiment models.
hasTextSentimentModelMetadata
setTextSentimentModelMetadata
Metadata for text sentiment models.
$this
getName
Output only. Resource name of the model.
Format: projects/{project_id}/locations/{location_id}/models/{model_id}
string
setName
Output only. Resource name of the model.
Format: projects/{project_id}/locations/{location_id}/models/{model_id}
var
string
$this
getDisplayName
Required. 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. It must start with a letter.
string
setDisplayName
Required. 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. It must start with a letter.
var
string
$this
getDatasetId
Required. The resource ID of the dataset used to create the model. The dataset must come from the same ancestor project and location.
string
setDatasetId
Required. The resource ID of the dataset used to create the model. The dataset must come from the same ancestor project and location.
var
string
$this
getCreateTime
Output only. Timestamp when the model training finished and can be used for prediction.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Timestamp when the model training finished and can be used for prediction.
$this
getUpdateTime
Output only. Timestamp when this model was last updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Timestamp when this model was last updated.
$this
getDeploymentState
Output only. Deployment state of the model. A model can only serve prediction requests after it gets deployed.
int
setDeploymentState
Output only. Deployment state of the model. A model can only serve prediction requests after it gets deployed.
var
int
$this
getEtag
Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
string
setEtag
Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
var
string
$this
getLabels
Optional. The labels with user-defined metadata to organize your model.
Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://goo.gl/xmQnxf for more information on and examples of labels.
setLabels
Optional. The labels with user-defined metadata to organize your model.
Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://goo.gl/xmQnxf for more information on and examples of labels.
$this
getModelMetadata
string