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

Message for Crossing line count.

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

## 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` Line annotation from the user. |
| `↳ positive_direction_counts` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.OccupancyCountingPredictionResult.Stats.ObjectCount>` The direction that follows the right hand rule. |
| `↳ negative_direction_counts` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.OccupancyCountingPredictionResult.Stats.ObjectCount>` The direction that is opposite to the right hand rule. |
| `↳ accumulated_positive_direction_counts` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount>` The accumulated positive count. |
| `↳ accumulated_negative_direction_counts` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount>` The accumulated negative count. |

### getAnnotation

Line annotation from the user.

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

### hasAnnotation

### clearAnnotation

### setAnnotation

Line 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` |   |

### getPositiveDirectionCounts

The direction that follows the right hand rule.

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

### setPositiveDirectionCounts

The direction that follows the right hand rule.

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

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

### getNegativeDirectionCounts

The direction that is opposite to the right hand rule.

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

### setNegativeDirectionCounts

The direction that is opposite to the right hand rule.

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

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

### getAccumulatedPositiveDirectionCounts

The accumulated positive count.

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

### setAccumulatedPositiveDirectionCounts

The accumulated positive count.

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

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

### getAccumulatedNegativeDirectionCounts

The accumulated negative count.

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

### setAccumulatedNegativeDirectionCounts

The accumulated negative count.

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

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