class Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationValue

Annotation value for an example.

Attributes

image_bounding_poly_annotation[RW]

Image bounding poly annotation. It represents a polygon including bounding box in the image. Corresponds to the JSON property `imageBoundingPolyAnnotation` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation]

image_classification_annotation[RW]

Image classification annotation definition. Corresponds to the JSON property `imageClassificationAnnotation` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImageClassificationAnnotation]

image_polyline_annotation[RW]

A polyline for the image annotation. Corresponds to the JSON property `imagePolylineAnnotation` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation]

image_segmentation_annotation[RW]

Image segmentation annotation. Corresponds to the JSON property `imageSegmentationAnnotation` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation]

text_classification_annotation[RW]

Text classification annotation. Corresponds to the JSON property `textClassificationAnnotation` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextClassificationAnnotation]

text_entity_extraction_annotation[RW]

Text entity extraction annotation. Corresponds to the JSON property `textEntityExtractionAnnotation` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation]

video_classification_annotation[RW]

Video classification annotation. Corresponds to the JSON property `videoClassificationAnnotation` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation]

video_event_annotation[RW]

Video event annotation. Corresponds to the JSON property `videoEventAnnotation` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1VideoEventAnnotation]

video_object_tracking_annotation[RW]

Video object tracking annotation. Corresponds to the JSON property `videoObjectTrackingAnnotation` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datalabeling_v1beta1/classes.rb, line 1133
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/datalabeling_v1beta1/classes.rb, line 1138
def update!(**args)
  @image_bounding_poly_annotation = args[:image_bounding_poly_annotation] if args.key?(:image_bounding_poly_annotation)
  @image_classification_annotation = args[:image_classification_annotation] if args.key?(:image_classification_annotation)
  @image_polyline_annotation = args[:image_polyline_annotation] if args.key?(:image_polyline_annotation)
  @image_segmentation_annotation = args[:image_segmentation_annotation] if args.key?(:image_segmentation_annotation)
  @text_classification_annotation = args[:text_classification_annotation] if args.key?(:text_classification_annotation)
  @text_entity_extraction_annotation = args[:text_entity_extraction_annotation] if args.key?(:text_entity_extraction_annotation)
  @video_classification_annotation = args[:video_classification_annotation] if args.key?(:video_classification_annotation)
  @video_event_annotation = args[:video_event_annotation] if args.key?(:video_event_annotation)
  @video_object_tracking_annotation = args[:video_object_tracking_annotation] if args.key?(:video_object_tracking_annotation)
end