# Google Cloud Vision Ai V1 Client - Class UserSpecifiedAnnotation (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 UserSpecifiedAnnotation.

Annotation provided by users.

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

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ key` | `string` Required. Key of the annotation. The key must be set with type by CreateDataSchema. |
| `↳ value` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AnnotationValue` Value of the annotation. The value must be able to convert to the type according to the data schema. |
| `↳ partition` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.Partition` Partition information in time and space for the sub-asset level annotation. |

### getKey

Required. Key of the annotation. The key must be set with type by
CreateDataSchema.

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

### setKey

Required. Key of the annotation. The key must be set with type by
CreateDataSchema.

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

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

### getValue

Value of the annotation. The value must be able to convert
to the type according to the data schema.

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

### hasValue

### clearValue

### setValue

Value of the annotation. The value must be able to convert
to the type according to the data schema.

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

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

### getPartition

Partition information in time and space for the sub-asset level annotation.

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

### hasPartition

### clearPartition

### setPartition

Partition information in time and space for the sub-asset level annotation.

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

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