# Interface OccupancyCountingPredictionResult.Stats.CrossingLineCountOrBuilder (0.50.0)

0.50.0 (latest) 0.48.0 0.45.0 0.44.0 0.42.0 0.40.0 0.39.0 0.37.0 0.35.0 0.33.0 0.32.0 0.31.0 0.30.0 0.29.0 0.27.0 0.25.0 0.24.0 0.21.0 0.20.0 0.19.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public static interface OccupancyCountingPredictionResult.Stats.CrossingLineCountOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getAccumulatedNegativeDirectionCounts(int index)

    public abstract OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount getAccumulatedNegativeDirectionCounts(int index)

The accumulated negative count.

`
repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount` |   |

### getAccumulatedNegativeDirectionCountsCount()

    public abstract int getAccumulatedNegativeDirectionCountsCount()

The accumulated negative count.

`
repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getAccumulatedNegativeDirectionCountsList()

    public abstract List<OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount> getAccumulatedNegativeDirectionCountsList()

The accumulated negative count.

`
repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount>` |   |

### getAccumulatedNegativeDirectionCountsOrBuilder(int index)

    public abstract OccupancyCountingPredictionResult.Stats.AccumulatedObjectCountOrBuilder getAccumulatedNegativeDirectionCountsOrBuilder(int index)

The accumulated negative count.

`
repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCountOrBuilder` |   |

### getAccumulatedNegativeDirectionCountsOrBuilderList()

    public abstract List<? extends OccupancyCountingPredictionResult.Stats.AccumulatedObjectCountOrBuilder> getAccumulatedNegativeDirectionCountsOrBuilderList()

The accumulated negative count.

`
repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_negative_direction_counts = 5;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCountOrBuilder>` |   |

### getAccumulatedPositiveDirectionCounts(int index)

    public abstract OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount getAccumulatedPositiveDirectionCounts(int index)

The accumulated positive count.

`
repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount` |   |

### getAccumulatedPositiveDirectionCountsCount()

    public abstract int getAccumulatedPositiveDirectionCountsCount()

The accumulated positive count.

`
repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getAccumulatedPositiveDirectionCountsList()

    public abstract List<OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount> getAccumulatedPositiveDirectionCountsList()

The accumulated positive count.

`
repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount>` |   |

### getAccumulatedPositiveDirectionCountsOrBuilder(int index)

    public abstract OccupancyCountingPredictionResult.Stats.AccumulatedObjectCountOrBuilder getAccumulatedPositiveDirectionCountsOrBuilder(int index)

The accumulated positive count.

`
repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCountOrBuilder` |   |

### getAccumulatedPositiveDirectionCountsOrBuilderList()

    public abstract List<? extends OccupancyCountingPredictionResult.Stats.AccumulatedObjectCountOrBuilder> getAccumulatedPositiveDirectionCountsOrBuilderList()

The accumulated positive count.

`
repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCount accumulated_positive_direction_counts = 4;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.AccumulatedObjectCountOrBuilder>` |   |

### getAnnotation()

    public abstract StreamAnnotation getAnnotation()

Line annotation from the user.

`.google.cloud.visionai.v1.StreamAnnotation annotation = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.StreamAnnotation` | The annotation. |

### getAnnotationOrBuilder()

    public abstract StreamAnnotationOrBuilder getAnnotationOrBuilder()

Line annotation from the user.

`.google.cloud.visionai.v1.StreamAnnotation annotation = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.StreamAnnotationOrBuilder` |   |

### getNegativeDirectionCounts(int index)

    public abstract OccupancyCountingPredictionResult.Stats.ObjectCount getNegativeDirectionCounts(int index)

The direction that is opposite to the right hand rule.

`
repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount` |   |

### getNegativeDirectionCountsCount()

    public abstract int getNegativeDirectionCountsCount()

The direction that is opposite to the right hand rule.

`
repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getNegativeDirectionCountsList()

    public abstract List<OccupancyCountingPredictionResult.Stats.ObjectCount> getNegativeDirectionCountsList()

The direction that is opposite to the right hand rule.

`
repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>` |   |

### getNegativeDirectionCountsOrBuilder(int index)

    public abstract OccupancyCountingPredictionResult.Stats.ObjectCountOrBuilder getNegativeDirectionCountsOrBuilder(int index)

The direction that is opposite to the right hand rule.

`
repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCountOrBuilder` |   |

### getNegativeDirectionCountsOrBuilderList()

    public abstract List<? extends OccupancyCountingPredictionResult.Stats.ObjectCountOrBuilder> getNegativeDirectionCountsOrBuilderList()

The direction that is opposite to the right hand rule.

`
repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount negative_direction_counts = 3;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCountOrBuilder>` |   |

### getPositiveDirectionCounts(int index)

    public abstract OccupancyCountingPredictionResult.Stats.ObjectCount getPositiveDirectionCounts(int index)

The direction that follows the right hand rule.

`
repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount` |   |

### getPositiveDirectionCountsCount()

    public abstract int getPositiveDirectionCountsCount()

The direction that follows the right hand rule.

`
repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getPositiveDirectionCountsList()

    public abstract List<OccupancyCountingPredictionResult.Stats.ObjectCount> getPositiveDirectionCountsList()

The direction that follows the right hand rule.

`
repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount>` |   |

### getPositiveDirectionCountsOrBuilder(int index)

    public abstract OccupancyCountingPredictionResult.Stats.ObjectCountOrBuilder getPositiveDirectionCountsOrBuilder(int index)

The direction that follows the right hand rule.

`
repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCountOrBuilder` |   |

### getPositiveDirectionCountsOrBuilderList()

    public abstract List<? extends OccupancyCountingPredictionResult.Stats.ObjectCountOrBuilder> getPositiveDirectionCountsOrBuilderList()

The direction that follows the right hand rule.

`
repeated .google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount positive_direction_counts = 2;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCountOrBuilder>` |   |

### hasAnnotation()

    public abstract boolean hasAnnotation()

Line annotation from the user.

`.google.cloud.visionai.v1.StreamAnnotation annotation = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the annotation field is set. |