Reference documentation and code samples for the Cloud AutoML V1 Client class AnnotationPayload.
Contains annotation information that is relevant to AutoML.
Generated from protobuf message google.cloud.automl.v1.AnnotationPayload
Namespace
Google \ Cloud \ AutoMl \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ translation
↳ classification
↳ image_object_detection
↳ text_extraction
↳ text_sentiment
↳ annotation_spec_id
string
Output only . The resource ID of the annotation spec that this annotation pertains to. The annotation spec comes from either an ancestor dataset, or the dataset that was used to train the model in use.
↳ display_name
string
Output only. The value of display_name
when the model was trained. Because this field returns a value at model training time, for different models trained using the same dataset, the returned value could be different as model owner could update the display_name
between any two model training.
getTranslation
Annotation details for translation.
hasTranslation
setTranslation
Annotation details for translation.
$this
getClassification
Annotation details for content or image classification.
hasClassification
setClassification
Annotation details for content or image classification.
$this
getImageObjectDetection
Annotation details for image object detection.
hasImageObjectDetection
setImageObjectDetection
Annotation details for image object detection.
$this
getTextExtraction
Annotation details for text extraction.
hasTextExtraction
setTextExtraction
Annotation details for text extraction.
$this
getTextSentiment
Annotation details for text sentiment.
hasTextSentiment
setTextSentiment
Annotation details for text sentiment.
$this
getAnnotationSpecId
Output only . The resource ID of the annotation spec that this annotation pertains to. The annotation spec comes from either an ancestor dataset, or the dataset that was used to train the model in use.
string
setAnnotationSpecId
Output only . The resource ID of the annotation spec that this annotation pertains to. The annotation spec comes from either an ancestor dataset, or the dataset that was used to train the model in use.
var
string
$this
getDisplayName
Output only. The value of display_name
when the model was trained. Because this field returns a value at model
training time, for different models trained using the same dataset, the
returned value could be different as model owner could update the display_name
between any two model training.
string
setDisplayName
Output only. The value of display_name
when the model was trained. Because this field returns a value at model
training time, for different models trained using the same dataset, the
returned value could be different as model owner could update the display_name
between any two model training.
var
string
$this
getDetail
string