Reference documentation and code samples for the Google Cloud Datalabeling V1beta1 Client class Annotation.
Annotation for Example. Each example may have one or more annotations. For example in image classification problem, each image might have one or more labels. We call labels binded with this image an Annotation.
Generated from protobuf message google.cloud.datalabeling.v1beta1.Annotation
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. Unique name of this annotation, format is: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_id}
↳ annotation_source
int
Output only. The source of the annotation.
↳ annotation_value
Google\Cloud\DataLabeling\V1beta1\AnnotationValue
Output only. This is the actual annotation value, e.g classification, bounding box values are stored here.
↳ annotation_metadata
Google\Cloud\DataLabeling\V1beta1\AnnotationMetadata
Output only. Annotation metadata, including information like votes for labels.
↳ annotation_sentiment
int
Output only. Sentiment for this annotation.
getName
Output only. Unique name of this annotation, format is: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_id}
string
setName
Output only. Unique name of this annotation, format is: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_id}
var
string
$this
getAnnotationSource
Output only. The source of the annotation.
int
setAnnotationSource
Output only. The source of the annotation.
var
int
$this
getAnnotationValue
Output only. This is the actual annotation value, e.g classification, bounding box values are stored here.
hasAnnotationValue
clearAnnotationValue
setAnnotationValue
Output only. This is the actual annotation value, e.g classification, bounding box values are stored here.
$this
getAnnotationMetadata
Output only. Annotation metadata, including information like votes for labels.
hasAnnotationMetadata
clearAnnotationMetadata
setAnnotationMetadata
Output only. Annotation metadata, including information like votes for labels.
$this
getAnnotationSentiment
Output only. Sentiment for this annotation.
int
setAnnotationSentiment
Output only. Sentiment for this annotation.
var
int
$this