# Interface StreamAnnotationOrBuilder (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 interface StreamAnnotationOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getActiveZone()

    public abstract NormalizedPolygon getActiveZone()

Annotation for type ACTIVE_ZONE

`.google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;`

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

### getActiveZoneOrBuilder()

    public abstract NormalizedPolygonOrBuilder getActiveZoneOrBuilder()

Annotation for type ACTIVE_ZONE

`.google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;`

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

### getAnnotationPayloadCase()

    public abstract StreamAnnotation.AnnotationPayloadCase getAnnotationPayloadCase()

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

### getCrossingLine()

    public abstract NormalizedPolyline getCrossingLine()

Annotation for type CROSSING_LINE

`.google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;`

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

### getCrossingLineOrBuilder()

    public abstract NormalizedPolylineOrBuilder getCrossingLineOrBuilder()

Annotation for type CROSSING_LINE

`.google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;`

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

### getDisplayName()

    public abstract String getDisplayName()

User-friendly name for the annotation.

`string display_name = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The displayName. |

### getDisplayNameBytes()

    public abstract ByteString getDisplayNameBytes()

User-friendly name for the annotation.

`string display_name = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for displayName. |

### getId()

    public abstract String getId()

ID of the annotation. It must be unique when used in the certain context.
For example, all the annotations to one input streams of a Vision AI
application.

`string id = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The id. |

### getIdBytes()

    public abstract ByteString getIdBytes()

ID of the annotation. It must be unique when used in the certain context.
For example, all the annotations to one input streams of a Vision AI
application.

`string id = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for id. |

### getSourceStream()

    public abstract String getSourceStream()

The Vision AI stream resource name.

`string source_stream = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The sourceStream. |

### getSourceStreamBytes()

    public abstract ByteString getSourceStreamBytes()

The Vision AI stream resource name.

`string source_stream = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for sourceStream. |

### getType()

    public abstract StreamAnnotationType getType()

The actual type of Annotation.

`.google.cloud.visionai.v1.StreamAnnotationType type = 4;`

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

### getTypeValue()

    public abstract int getTypeValue()

The actual type of Annotation.

`.google.cloud.visionai.v1.StreamAnnotationType type = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for type. |

### hasActiveZone()

    public abstract boolean hasActiveZone()

Annotation for type ACTIVE_ZONE

`.google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;`

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

### hasCrossingLine()

    public abstract boolean hasCrossingLine()

Annotation for type CROSSING_LINE

`.google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;`

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