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

Message describing general annotation for resources.

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

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ application_annotations` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.StreamAnnotation>` Annotations that will be applied to the whole application. |
| `↳ node_annotations` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.ApplicationNodeAnnotation>` Annotations that will be applied to the specific node of the application. If the same type of the annotations is applied to both application and node, the node annotation will be added in addition to the global application one. For example, if there is one active zone annotation for the whole application and one active zone annotation for the Occupancy Analytic processor, then the Occupancy Analytic processor will have two active zones defined. |

### getApplicationAnnotations

Annotations that will be applied to the whole application.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.StreamAnnotation>` |   |

### setApplicationAnnotations

Annotations that will be applied to the whole application.

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

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

### getNodeAnnotations

Annotations that will be applied to the specific node of the application.

If the same type of the annotations is applied to both application and
node, the node annotation will be added in addition to the global
application one.
For example, if there is one active zone annotation for the whole
application and one active zone annotation for the Occupancy Analytic
processor, then the Occupancy Analytic processor will have two active zones
defined.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.ApplicationNodeAnnotation>` |   |

### setNodeAnnotations

Annotations that will be applied to the specific node of the application.

If the same type of the annotations is applied to both application and
node, the node annotation will be added in addition to the global
application one.
For example, if there is one active zone annotation for the whole
application and one active zone annotation for the Occupancy Analytic
processor, then the Occupancy Analytic processor will have two active zones
defined.

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

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