0.9.0 (latest) 0.8.3 0.7.2 0.6.3 0.5.7 0.4.2 0.3.1 0.2.0 0.1.14

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Datalabeling V1beta1 Client class AnnotationValue.

Annotation value for an example.

Generated from protobuf message `google.cloud.datalabeling.v1beta1.AnnotationValue`

## Namespace

Google \\ Cloud \\ DataLabeling \\ V1beta1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ image_classification_annotation` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.ImageClassificationAnnotation` Annotation value for image classification case. |
| `↳ image_bounding_poly_annotation` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.ImageBoundingPolyAnnotation` Annotation value for image bounding box, oriented bounding box and polygon cases. |
| `↳ image_polyline_annotation` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/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. |
| `↳ image_segmentation_annotation` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.ImageSegmentationAnnotation` Annotation value for image segmentation. |
| `↳ text_classification_annotation` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.TextClassificationAnnotation` Annotation value for text classification case. |
| `↳ text_entity_extraction_annotation` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.TextEntityExtractionAnnotation` Annotation value for text entity extraction case. |
| `↳ video_classification_annotation` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.VideoClassificationAnnotation` Annotation value for video classification case. |
| `↳ video_object_tracking_annotation` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.VideoObjectTrackingAnnotation` Annotation value for video object detection and tracking case. |
| `↳ video_event_annotation` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.VideoEventAnnotation` Annotation value for video event case. |

### getImageClassificationAnnotation

Annotation value for image classification case.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.ImageClassificationAnnotation|null` |   |

### hasImageClassificationAnnotation

### setImageClassificationAnnotation

Annotation value for image classification case.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.ImageClassificationAnnotation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getImageBoundingPolyAnnotation

Annotation value for image bounding box, oriented bounding box
and polygon cases.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.ImageBoundingPolyAnnotation|null` |   |

### hasImageBoundingPolyAnnotation

### setImageBoundingPolyAnnotation

Annotation value for image bounding box, oriented bounding box
and polygon cases.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.ImageBoundingPolyAnnotation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getImagePolylineAnnotation

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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.ImagePolylineAnnotation|null` |   |

### hasImagePolylineAnnotation

### setImagePolylineAnnotation

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.ImagePolylineAnnotation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getImageSegmentationAnnotation

Annotation value for image segmentation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.ImageSegmentationAnnotation|null` |   |

### hasImageSegmentationAnnotation

### setImageSegmentationAnnotation

Annotation value for image segmentation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.ImageSegmentationAnnotation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTextClassificationAnnotation

Annotation value for text classification case.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.TextClassificationAnnotation|null` |   |

### hasTextClassificationAnnotation

### setTextClassificationAnnotation

Annotation value for text classification case.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.TextClassificationAnnotation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTextEntityExtractionAnnotation

Annotation value for text entity extraction case.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.TextEntityExtractionAnnotation|null` |   |

### hasTextEntityExtractionAnnotation

### setTextEntityExtractionAnnotation

Annotation value for text entity extraction case.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.TextEntityExtractionAnnotation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getVideoClassificationAnnotation

Annotation value for video classification case.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.VideoClassificationAnnotation|null` |   |

### hasVideoClassificationAnnotation

### setVideoClassificationAnnotation

Annotation value for video classification case.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.VideoClassificationAnnotation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getVideoObjectTrackingAnnotation

Annotation value for video object detection and tracking case.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.VideoObjectTrackingAnnotation|null` |   |

### hasVideoObjectTrackingAnnotation

### setVideoObjectTrackingAnnotation

Annotation value for video object detection and tracking case.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.VideoObjectTrackingAnnotation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getVideoEventAnnotation

Annotation value for video event case.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.VideoEventAnnotation|null` |   |

### hasVideoEventAnnotation

### setVideoEventAnnotation

Annotation value for video event case.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.VideoEventAnnotation` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getValueType

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |