# Interface StreamWithAnnotation.NodeAnnotationOrBuilder (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.StreamWithAnnotation.NodeAnnotationOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotationOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotationOrBuilder)

    public static interface StreamWithAnnotation.NodeAnnotationOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAnnotations(int index)

    public abstract StreamAnnotation getAnnotations(int index)

The node specific stream annotations.

`repeated .google.events.cloud.visionai.v1.StreamAnnotation annotations = 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-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamAnnotation` |   |

### getAnnotationsCount()

    public abstract int getAnnotationsCount()

The node specific stream annotations.

`repeated .google.events.cloud.visionai.v1.StreamAnnotation annotations = 2;`

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

### getAnnotationsList()

    public abstract List<StreamAnnotation> getAnnotationsList()

The node specific stream annotations.

`repeated .google.events.cloud.visionai.v1.StreamAnnotation annotations = 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-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamAnnotation>` |   |

### getAnnotationsOrBuilder(int index)

    public abstract StreamAnnotationOrBuilder getAnnotationsOrBuilder(int index)

The node specific stream annotations.

`repeated .google.events.cloud.visionai.v1.StreamAnnotation annotations = 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-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamAnnotationOrBuilder` |   |

### getAnnotationsOrBuilderList()

    public abstract List<? extends StreamAnnotationOrBuilder> getAnnotationsOrBuilderList()

The node specific stream annotations.

`repeated .google.events.cloud.visionai.v1.StreamAnnotation annotations = 2;`

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

### getNode()

    public abstract String getNode()

The node name of the application graph.

`string node = 1;`

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

### getNodeBytes()

    public abstract ByteString getNodeBytes()

The node name of the application graph.

`string node = 1;`

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