# AI Platform Data Labeling Service V1beta1 API - Class Google::Cloud::DataLabeling::V1beta1::AnnotationValue (v0.15.0)

0.15.0 (latest) 0.14.0 0.13.1 0.12.0 0.11.1 0.10.1 0.9.0 0.8.1 0.7.2 0.6.0 0.5.0 0.4.0 0.3.5 Reference documentation and code samples for the AI Platform Data Labeling Service V1beta1 API class Google::Cloud::DataLabeling::V1beta1::AnnotationValue.

Annotation value for an example.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #image_bounding_poly_annotation

    def image_bounding_poly_annotation() -> ::Google::Cloud::DataLabeling::V1beta1::ImageBoundingPolyAnnotation

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::ImageBoundingPolyAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-ImageBoundingPolyAnnotation)) --- Annotation value for image bounding box, oriented bounding box and polygon cases.


  Note: The following fields are mutually exclusive: `image_bounding_poly_annotation`, `image_classification_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #image_bounding_poly_annotation=

    def image_bounding_poly_annotation=(value) -> ::Google::Cloud::DataLabeling::V1beta1::ImageBoundingPolyAnnotation

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::ImageBoundingPolyAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-ImageBoundingPolyAnnotation)) --- Annotation value for image bounding box, oriented bounding box and polygon cases.


  Note: The following fields are mutually exclusive: `image_bounding_poly_annotation`, `image_classification_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::ImageBoundingPolyAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-ImageBoundingPolyAnnotation)) --- Annotation value for image bounding box, oriented bounding box and polygon cases.


  Note: The following fields are mutually exclusive: `image_bounding_poly_annotation`, `image_classification_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #image_classification_annotation

    def image_classification_annotation() -> ::Google::Cloud::DataLabeling::V1beta1::ImageClassificationAnnotation

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::ImageClassificationAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-ImageClassificationAnnotation)) --- Annotation value for image classification case.


  Note: The following fields are mutually exclusive: `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #image_classification_annotation=

    def image_classification_annotation=(value) -> ::Google::Cloud::DataLabeling::V1beta1::ImageClassificationAnnotation

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::ImageClassificationAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-ImageClassificationAnnotation)) --- Annotation value for image classification case.


  Note: The following fields are mutually exclusive: `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::ImageClassificationAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-ImageClassificationAnnotation)) --- Annotation value for image classification case.


  Note: The following fields are mutually exclusive: `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #image_polyline_annotation

    def image_polyline_annotation() -> ::Google::Cloud::DataLabeling::V1beta1::ImagePolylineAnnotation

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::ImagePolylineAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-ImagePolylineAnnotation)) --- Annotation value for image polyline cases. Polyline here is different from BoundingPoly. It is formed by line segments connected to each other but not closed form(Bounding Poly). The line segments can cross each other.


  Note: The following fields are mutually exclusive: `image_polyline_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #image_polyline_annotation=

    def image_polyline_annotation=(value) -> ::Google::Cloud::DataLabeling::V1beta1::ImagePolylineAnnotation

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::ImagePolylineAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-ImagePolylineAnnotation)) --- Annotation value for image polyline cases. Polyline here is different from BoundingPoly. It is formed by line segments connected to each other but not closed form(Bounding Poly). The line segments can cross each other.


  Note: The following fields are mutually exclusive: `image_polyline_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::ImagePolylineAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-ImagePolylineAnnotation)) --- Annotation value for image polyline cases. Polyline here is different from BoundingPoly. It is formed by line segments connected to each other but not closed form(Bounding Poly). The line segments can cross each other.


  Note: The following fields are mutually exclusive: `image_polyline_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #image_segmentation_annotation

    def image_segmentation_annotation() -> ::Google::Cloud::DataLabeling::V1beta1::ImageSegmentationAnnotation

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::ImageSegmentationAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-ImageSegmentationAnnotation)) --- Annotation value for image segmentation.


  Note: The following fields are mutually exclusive: `image_segmentation_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #image_segmentation_annotation=

    def image_segmentation_annotation=(value) -> ::Google::Cloud::DataLabeling::V1beta1::ImageSegmentationAnnotation

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::ImageSegmentationAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-ImageSegmentationAnnotation)) --- Annotation value for image segmentation.


  Note: The following fields are mutually exclusive: `image_segmentation_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::ImageSegmentationAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-ImageSegmentationAnnotation)) --- Annotation value for image segmentation.


  Note: The following fields are mutually exclusive: `image_segmentation_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #text_classification_annotation

    def text_classification_annotation() -> ::Google::Cloud::DataLabeling::V1beta1::TextClassificationAnnotation

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::TextClassificationAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-TextClassificationAnnotation)) --- Annotation value for text classification case.


  Note: The following fields are mutually exclusive: `text_classification_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #text_classification_annotation=

    def text_classification_annotation=(value) -> ::Google::Cloud::DataLabeling::V1beta1::TextClassificationAnnotation

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::TextClassificationAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-TextClassificationAnnotation)) --- Annotation value for text classification case.


  Note: The following fields are mutually exclusive: `text_classification_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::TextClassificationAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-TextClassificationAnnotation)) --- Annotation value for text classification case.


  Note: The following fields are mutually exclusive: `text_classification_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #text_entity_extraction_annotation

    def text_entity_extraction_annotation() -> ::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionAnnotation

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-TextEntityExtractionAnnotation)) --- Annotation value for text entity extraction case.


  Note: The following fields are mutually exclusive: `text_entity_extraction_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #text_entity_extraction_annotation=

    def text_entity_extraction_annotation=(value) -> ::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionAnnotation

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-TextEntityExtractionAnnotation)) --- Annotation value for text entity extraction case.


  Note: The following fields are mutually exclusive: `text_entity_extraction_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::TextEntityExtractionAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-TextEntityExtractionAnnotation)) --- Annotation value for text entity extraction case.


  Note: The following fields are mutually exclusive: `text_entity_extraction_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #video_classification_annotation

    def video_classification_annotation() -> ::Google::Cloud::DataLabeling::V1beta1::VideoClassificationAnnotation

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::VideoClassificationAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-VideoClassificationAnnotation)) --- Annotation value for video classification case.


  Note: The following fields are mutually exclusive: `video_classification_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #video_classification_annotation=

    def video_classification_annotation=(value) -> ::Google::Cloud::DataLabeling::V1beta1::VideoClassificationAnnotation

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::VideoClassificationAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-VideoClassificationAnnotation)) --- Annotation value for video classification case.


  Note: The following fields are mutually exclusive: `video_classification_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::VideoClassificationAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-VideoClassificationAnnotation)) --- Annotation value for video classification case.


  Note: The following fields are mutually exclusive: `video_classification_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_object_tracking_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #video_event_annotation

    def video_event_annotation() -> ::Google::Cloud::DataLabeling::V1beta1::VideoEventAnnotation

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::VideoEventAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-VideoEventAnnotation)) --- Annotation value for video event case.


  Note: The following fields are mutually exclusive: `video_event_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #video_event_annotation=

    def video_event_annotation=(value) -> ::Google::Cloud::DataLabeling::V1beta1::VideoEventAnnotation

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::VideoEventAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-VideoEventAnnotation)) --- Annotation value for video event case.


  Note: The following fields are mutually exclusive: `video_event_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::VideoEventAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-VideoEventAnnotation)) --- Annotation value for video event case.


  Note: The following fields are mutually exclusive: `video_event_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_object_tracking_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #video_object_tracking_annotation

    def video_object_tracking_annotation() -> ::Google::Cloud::DataLabeling::V1beta1::VideoObjectTrackingAnnotation

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::VideoObjectTrackingAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-VideoObjectTrackingAnnotation)) --- Annotation value for video object detection and tracking case.


  Note: The following fields are mutually exclusive: `video_object_tracking_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #video_object_tracking_annotation=

    def video_object_tracking_annotation=(value) -> ::Google::Cloud::DataLabeling::V1beta1::VideoObjectTrackingAnnotation

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::VideoObjectTrackingAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-VideoObjectTrackingAnnotation)) --- Annotation value for video object detection and tracking case.


  Note: The following fields are mutually exclusive: `video_object_tracking_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::VideoObjectTrackingAnnotation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-VideoObjectTrackingAnnotation)) --- Annotation value for video object detection and tracking case.


  Note: The following fields are mutually exclusive: `video_object_tracking_annotation`, `image_classification_annotation`, `image_bounding_poly_annotation`, `image_polyline_annotation`, `image_segmentation_annotation`, `text_classification_annotation`, `text_entity_extraction_annotation`, `video_classification_annotation`, `video_event_annotation`. If a field in that set is populated, all other fields in the set will automatically be cleared.