Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationValue

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/datalabeling_v1beta1/classes.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb

Overview

Annotation value for an example.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1AnnotationValue

Returns a new instance of GoogleCloudDatalabelingV1beta1AnnotationValue.



1133
1134
1135
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1133

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#image_bounding_poly_annotationGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation

Image bounding poly annotation. It represents a polygon including bounding box in the image. Corresponds to the JSON property imageBoundingPolyAnnotation



1091
1092
1093
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1091

def image_bounding_poly_annotation
  @image_bounding_poly_annotation
end

#image_classification_annotationGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImageClassificationAnnotation

Image classification annotation definition. Corresponds to the JSON property imageClassificationAnnotation



1096
1097
1098
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1096

def image_classification_annotation
  @image_classification_annotation
end

#image_polyline_annotationGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation

A polyline for the image annotation. Corresponds to the JSON property imagePolylineAnnotation



1101
1102
1103
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1101

def image_polyline_annotation
  @image_polyline_annotation
end

#image_segmentation_annotationGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation

Image segmentation annotation. Corresponds to the JSON property imageSegmentationAnnotation



1106
1107
1108
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1106

def image_segmentation_annotation
  @image_segmentation_annotation
end

#text_classification_annotationGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextClassificationAnnotation

Text classification annotation. Corresponds to the JSON property textClassificationAnnotation



1111
1112
1113
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1111

def text_classification_annotation
  @text_classification_annotation
end

#text_entity_extraction_annotationGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation

Text entity extraction annotation. Corresponds to the JSON property textEntityExtractionAnnotation



1116
1117
1118
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1116

def text_entity_extraction_annotation
  @text_entity_extraction_annotation
end

#video_classification_annotationGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation

Video classification annotation. Corresponds to the JSON property videoClassificationAnnotation



1121
1122
1123
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1121

def video_classification_annotation
  @video_classification_annotation
end

#video_event_annotationGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1VideoEventAnnotation

Video event annotation. Corresponds to the JSON property videoEventAnnotation



1126
1127
1128
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1126

def video_event_annotation
  @video_event_annotation
end

#video_object_tracking_annotationGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation

Video object tracking annotation. Corresponds to the JSON property videoObjectTrackingAnnotation



1131
1132
1133
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 1131

def video_object_tracking_annotation
  @video_object_tracking_annotation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
# File 'generated/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