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

The object info and instant count for annotations from occupancy counting
operator.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ entity` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.OccupancyCountingPredictionResult.Entity` Entity of this object. |
| `↳ count` | `int` Count of the object. |

### getEntity

Entity of this object.

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

### hasEntity

### clearEntity

### setEntity

Entity of this object.

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

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

### getCount

Count of the object.

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

### setCount

Count of the object.

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

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