# Google Cloud Vision Ai V1 Client - Class AnnotationValue (0.3.0)

0.3.0 (latest) 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class AnnotationValue.

Value of annotation, including all types available in data schema.

Generated from protobuf message `google.cloud.visionai.v1.AnnotationValue`

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ int_value` | `int|string` Value of int type annotation. |
| `↳ float_value` | `float` Value of float type annotation. |
| `↳ str_value` | `string` Value of string type annotation. |
| `↳ datetime_value` | `string` Value of date time type annotation. |
| `↳ geo_coordinate` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.GeoCoordinate` Value of geo coordinate type annotation. |
| `↳ proto_any_value` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Any` Value of any proto value. |
| `↳ bool_value` | `bool` Value of boolean type annotation. |
| `↳ customized_struct_data_value` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` Value of customized struct annotation. This field does not have effects. Use customized_struct_value instead for customized struct annotation. |
| `↳ list_value` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AnnotationList` Value of list type annotation. |
| `↳ customized_struct_value` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AnnotationCustomizedStruct` Value of custom struct type annotation. |

### getIntValue

Value of int type annotation.

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

### hasIntValue

### setIntValue

Value of int type annotation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

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

### getFloatValue

Value of float type annotation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### hasFloatValue

### setFloatValue

Value of float type annotation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

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

### getStrValue

Value of string type annotation.

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

### hasStrValue

### setStrValue

Value of string type annotation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getDatetimeValue

Value of date time type annotation.

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

### hasDatetimeValue

### setDatetimeValue

Value of date time type annotation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getGeoCoordinate

Value of geo coordinate type annotation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.GeoCoordinate|null` |   |

### hasGeoCoordinate

### setGeoCoordinate

Value of geo coordinate type annotation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.GeoCoordinate` |

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

### getProtoAnyValue

Value of any proto value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Any|null` |   |

### hasProtoAnyValue

### setProtoAnyValue

Value of any proto value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Any` |

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

### getBoolValue

Value of boolean type annotation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasBoolValue

### setBoolValue

Value of boolean type annotation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

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

### getCustomizedStructDataValue

Value of customized struct annotation. This field does not have effects.

Use customized_struct_value instead for customized struct annotation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct|null` |   |

### hasCustomizedStructDataValue

### setCustomizedStructDataValue

Value of customized struct annotation. This field does not have effects.

Use customized_struct_value instead for customized struct annotation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` |

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

### getListValue

Value of list type annotation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AnnotationList|null` |   |

### hasListValue

### setListValue

Value of list type annotation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AnnotationList` |

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

### getCustomizedStructValue

Value of custom struct type annotation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AnnotationCustomizedStruct|null` |   |

### hasCustomizedStructValue

### setCustomizedStructValue

Value of custom struct type annotation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AnnotationCustomizedStruct` |

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

### getValue

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