# AI Platform Data Labeling Service V1beta1 API - Class Google::Cloud::DataLabeling::V1beta1::Annotation (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::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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #annotation_metadata

    def annotation_metadata() -> ::Google::Cloud::DataLabeling::V1beta1::AnnotationMetadata

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::AnnotationMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-AnnotationMetadata)) --- Output only. Annotation metadata, including information like votes for labels.

### #annotation_metadata=

    def annotation_metadata=(value) -> ::Google::Cloud::DataLabeling::V1beta1::AnnotationMetadata

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::AnnotationMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-AnnotationMetadata)) --- Output only. Annotation metadata, including information like votes for labels.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::AnnotationMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-AnnotationMetadata)) --- Output only. Annotation metadata, including information like votes for labels.

### #annotation_sentiment

    def annotation_sentiment() -> ::Google::Cloud::DataLabeling::V1beta1::AnnotationSentiment

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::AnnotationSentiment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-AnnotationSentiment)) --- Output only. Sentiment for this annotation.

### #annotation_sentiment=

    def annotation_sentiment=(value) -> ::Google::Cloud::DataLabeling::V1beta1::AnnotationSentiment

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::AnnotationSentiment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-AnnotationSentiment)) --- Output only. Sentiment for this annotation.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::AnnotationSentiment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-AnnotationSentiment)) --- Output only. Sentiment for this annotation.

### #annotation_source

    def annotation_source() -> ::Google::Cloud::DataLabeling::V1beta1::AnnotationSource

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::AnnotationSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-AnnotationSource)) --- Output only. The source of the annotation.

### #annotation_source=

    def annotation_source=(value) -> ::Google::Cloud::DataLabeling::V1beta1::AnnotationSource

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::AnnotationSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-AnnotationSource)) --- Output only. The source of the annotation.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::AnnotationSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-AnnotationSource)) --- Output only. The source of the annotation.

### #annotation_value

    def annotation_value() -> ::Google::Cloud::DataLabeling::V1beta1::AnnotationValue

**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::AnnotationValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-AnnotationValue)) --- Output only. This is the actual annotation value, e.g classification, bounding box values are stored here.

### #annotation_value=

    def annotation_value=(value) -> ::Google::Cloud::DataLabeling::V1beta1::AnnotationValue

**Parameter**

- **value** ([::Google::Cloud::DataLabeling::V1beta1::AnnotationValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-AnnotationValue)) --- Output only. This is the actual annotation value, e.g classification, bounding box values are stored here.
**Returns**

- ([::Google::Cloud::DataLabeling::V1beta1::AnnotationValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-AnnotationValue)) --- Output only. This is the actual annotation value, e.g classification, bounding box values are stored here.

### #name

    def name() -> ::String

**Returns**

- (::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}

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::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}
**Returns**

- (::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}