Cloud AutoML V1beta1 Client - Class AnnotationPayload (1.5.4)

Reference documentation and code samples for the Cloud AutoML V1beta1 Client class AnnotationPayload.

Contains annotation information that is relevant to AutoML.

Generated from protobuf message google.cloud.automl.v1beta1.AnnotationPayload

Namespace

Google \ Cloud \ AutoMl \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ translation Google\Cloud\AutoMl\V1beta1\TranslationAnnotation

Annotation details for translation.

↳ classification Google\Cloud\AutoMl\V1beta1\ClassificationAnnotation

Annotation details for content or image classification.

↳ image_object_detection Google\Cloud\AutoMl\V1beta1\ImageObjectDetectionAnnotation

Annotation details for image object detection.

↳ video_classification Google\Cloud\AutoMl\V1beta1\VideoClassificationAnnotation

Annotation details for video classification. Returned for Video Classification predictions.

↳ video_object_tracking Google\Cloud\AutoMl\V1beta1\VideoObjectTrackingAnnotation

Annotation details for video object tracking.

↳ text_extraction Google\Cloud\AutoMl\V1beta1\TextExtractionAnnotation

Annotation details for text extraction.

↳ text_sentiment Google\Cloud\AutoMl\V1beta1\TextSentimentAnnotation

Annotation details for text sentiment.

↳ tables Google\Cloud\AutoMl\V1beta1\TablesAnnotation

Annotation details for Tables.

↳ 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.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\TranslationAnnotation|null

hasTranslation

setTranslation

Annotation details for translation.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\TranslationAnnotation
Returns
TypeDescription
$this

getClassification

Annotation details for content or image classification.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\ClassificationAnnotation|null

hasClassification

setClassification

Annotation details for content or image classification.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\ClassificationAnnotation
Returns
TypeDescription
$this

getImageObjectDetection

Annotation details for image object detection.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\ImageObjectDetectionAnnotation|null

hasImageObjectDetection

setImageObjectDetection

Annotation details for image object detection.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\ImageObjectDetectionAnnotation
Returns
TypeDescription
$this

getVideoClassification

Annotation details for video classification.

Returned for Video Classification predictions.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\VideoClassificationAnnotation|null

hasVideoClassification

setVideoClassification

Annotation details for video classification.

Returned for Video Classification predictions.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\VideoClassificationAnnotation
Returns
TypeDescription
$this

getVideoObjectTracking

Annotation details for video object tracking.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\VideoObjectTrackingAnnotation|null

hasVideoObjectTracking

setVideoObjectTracking

Annotation details for video object tracking.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\VideoObjectTrackingAnnotation
Returns
TypeDescription
$this

getTextExtraction

Annotation details for text extraction.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\TextExtractionAnnotation|null

hasTextExtraction

setTextExtraction

Annotation details for text extraction.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\TextExtractionAnnotation
Returns
TypeDescription
$this

getTextSentiment

Annotation details for text sentiment.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\TextSentimentAnnotation|null

hasTextSentiment

setTextSentiment

Annotation details for text sentiment.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\TextSentimentAnnotation
Returns
TypeDescription
$this

getTables

Annotation details for Tables.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\TablesAnnotation|null

hasTables

setTables

Annotation details for Tables.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\TablesAnnotation
Returns
TypeDescription
$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.

Returns
TypeDescription
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.

Parameter
NameDescription
var string
Returns
TypeDescription
$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.

Returns
TypeDescription
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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDetail

Returns
TypeDescription
string