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

The prediction result proto for occupancy counting.

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

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ current_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Current timestamp. |
| `↳ identified_boxes` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.OccupancyCountingPredictionResult.IdentifiedBox>` A list of identified boxes. |
| `↳ stats` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.OccupancyCountingPredictionResult.Stats` Detection statistics. |
| `↳ track_info` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.OccupancyCountingPredictionResult.TrackInfo>` Track related information. All the tracks that are live at this timestamp. It only exists if tracking is enabled. |
| `↳ dwell_time_info` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.OccupancyCountingPredictionResult.DwellTimeInfo>` Dwell time related information. All the tracks that are live in a given zone with a start and end dwell time timestamp |
| `↳ pts` | `int|string` The presentation timestamp of the frame. |

### getCurrentTime

Current timestamp.

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

### hasCurrentTime

### clearCurrentTime

### setCurrentTime

Current timestamp.

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

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

### getIdentifiedBoxes

A list of identified boxes.

| **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.IdentifiedBox>` |   |

### setIdentifiedBoxes

A list of identified boxes.

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

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

### getStats

Detection statistics.

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

### hasStats

### clearStats

### setStats

Detection statistics.

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

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

### getTrackInfo

Track related information. All the tracks that are live at this timestamp.

It only exists if tracking is enabled.

| **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.TrackInfo>` |   |

### setTrackInfo

Track related information. All the tracks that are live at this timestamp.

It only exists if tracking is enabled.

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

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

### getDwellTimeInfo

Dwell time related information. All the tracks that are live in a given
zone with a start and end dwell time timestamp

| **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.DwellTimeInfo>` |   |

### setDwellTimeInfo

Dwell time related information. All the tracks that are live in a given
zone with a start and end dwell time timestamp

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

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

### getPts

The presentation timestamp of the frame.

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

### hasPts

### clearPts

### setPts

The presentation timestamp of the frame.

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

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