# Interface StreamAnnotationOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamAnnotationOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.visionai.v1.StreamAnnotationOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.visionai.v1.StreamAnnotationOrBuilder)

    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.events.cloud.visionai.v1.NormalizedPolygon active_zone = 5;`

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

### getActiveZoneOrBuilder()

    public abstract NormalizedPolygonOrBuilder getActiveZoneOrBuilder()

Annotation for type ACTIVE_ZONE

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

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

### getAnnotationPayloadCase()

    public abstract StreamAnnotation.AnnotationPayloadCase getAnnotationPayloadCase()

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

### getCrossingLine()

    public abstract NormalizedPolyline getCrossingLine()

Annotation for type CROSSING_LINE

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

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

### getCrossingLineOrBuilder()

    public abstract NormalizedPolylineOrBuilder getCrossingLineOrBuilder()

Annotation for type CROSSING_LINE

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.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.events.cloud.visionai.v1.StreamAnnotationType type = 4;`

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

### getTypeValue()

    public abstract int getTypeValue()

The actual type of Annotation.

`.google.events.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.events.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.events.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. |