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

Message for the active zone count.

Generated from protobuf message `google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ActiveZoneCount`

## Namespace

Google \\ Cloud \\ VisionAI \\ V1 \\ OccupancyCountingPredictionResult \\ Stats

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ annotation` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.StreamAnnotation` Active zone annotation from the user. |
| `↳ counts` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.OccupancyCountingPredictionResult.Stats.ObjectCount>` Counts in the zone. |

### getAnnotation

Active zone annotation from the user.

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

### hasAnnotation

### clearAnnotation

### setAnnotation

Active zone annotation from the user.

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

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

### getCounts

Counts in the zone.

| **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.OccupancyCountingPredictionResult.Stats.ObjectCount>` |   |

### setCounts

Counts in the zone.

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

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