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

    public static final class StreamWithAnnotation.Builder extends GeneratedMessageV3.Builder<StreamWithAnnotation.Builder> implements StreamWithAnnotationOrBuilder

Message describing Vision AI stream with application specific annotations.
All the StreamAnnotation object inside this message MUST have unique id.

Protobuf type `google.events.cloud.visionai.v1.StreamWithAnnotation`

## Inheritance

[Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> [AbstractMessageLite.Builder\<MessageType,BuilderType\>](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html) \> [AbstractMessage.Builder\<BuilderType\>](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html) \> [GeneratedMessageV3.Builder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html) \> StreamWithAnnotation.Builder

## Implements

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

## Inherited Members

[AbstractMessage.Builder.findInitializationErrors()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_findInitializationErrors__) [AbstractMessage.Builder.getInitializationErrorString()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_getInitializationErrorString__) [AbstractMessage.Builder.internalMergeFrom(AbstractMessageLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_internalMergeFrom_com_google_protobuf_AbstractMessageLite_) [AbstractMessage.Builder.mergeFrom(byte\[\])](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_byte___) [AbstractMessage.Builder.mergeFrom(byte\[\],ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_byte___com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.mergeFrom(byte\[\],int,int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_byte___int_int_) [AbstractMessage.Builder.mergeFrom(byte\[\],int,int,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_byte___int_int_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.mergeFrom(ByteString)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_ByteString_) [AbstractMessage.Builder.mergeFrom(ByteString,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_ByteString_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.mergeFrom(CodedInputStream)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_CodedInputStream_) [AbstractMessage.Builder.mergeFrom(CodedInputStream,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_CodedInputStream_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.mergeFrom(Message)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_Message_) [AbstractMessage.Builder.mergeFrom(InputStream)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_java_io_InputStream_) [AbstractMessage.Builder.mergeFrom(InputStream,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_java_io_InputStream_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.newUninitializedMessageException(Message)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_newUninitializedMessageException_com_google_protobuf_Message_) [AbstractMessage.Builder.toString()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_toString__) [AbstractMessageLite.Builder.\<T\>addAll(Iterable\<T\>,Collection\<? super T\>)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder__T_addAll_java_lang_Iterable_T__java_util_Collection___super_T__) [AbstractMessageLite.Builder.\<T\>addAll(Iterable\<T\>,List\<? super T\>)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder__T_addAll_java_lang_Iterable_T__java_util_List___super_T__) [AbstractMessageLite.Builder.internalMergeFrom(MessageType)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_internalMergeFrom_MessageType_) [AbstractMessageLite.Builder.mergeDelimitedFrom(InputStream)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_mergeDelimitedFrom_java_io_InputStream_) [AbstractMessageLite.Builder.mergeDelimitedFrom(InputStream,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_mergeDelimitedFrom_java_io_InputStream_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessageLite.Builder.mergeFrom(MessageLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_mergeFrom_com_google_protobuf_MessageLite_) [AbstractMessageLite.Builder.newUninitializedMessageException(MessageLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_newUninitializedMessageException_com_google_protobuf_MessageLite_) [GeneratedMessageV3.Builder.addRepeatedField(Descriptors.FieldDescriptor,Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_addRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_java_lang_Object_) [GeneratedMessageV3.Builder.clear()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_clear__) [GeneratedMessageV3.Builder.clearField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_clearField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessageV3.Builder.clearOneof(Descriptors.OneofDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_clearOneof_com_google_protobuf_Descriptors_OneofDescriptor_) [GeneratedMessageV3.Builder.clone()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_clone__) [GeneratedMessageV3.Builder.getAllFields()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getAllFields__) [GeneratedMessageV3.Builder.getDescriptorForType()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getDescriptorForType__) [GeneratedMessageV3.Builder.getField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessageV3.Builder.getFieldBuilder(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getFieldBuilder_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessageV3.Builder.getOneofFieldDescriptor(Descriptors.OneofDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getOneofFieldDescriptor_com_google_protobuf_Descriptors_OneofDescriptor_) [GeneratedMessageV3.Builder.getParentForChildren()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getParentForChildren__) [GeneratedMessageV3.Builder.getRepeatedField(Descriptors.FieldDescriptor,int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_int_) [GeneratedMessageV3.Builder.getRepeatedFieldBuilder(Descriptors.FieldDescriptor,int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getRepeatedFieldBuilder_com_google_protobuf_Descriptors_FieldDescriptor_int_) [GeneratedMessageV3.Builder.getRepeatedFieldCount(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getRepeatedFieldCount_com_google_protobuf_Descriptors_FieldDescriptor_) com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() [GeneratedMessageV3.Builder.getUnknownFields()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getUnknownFields__) [GeneratedMessageV3.Builder.hasField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_hasField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessageV3.Builder.hasOneof(Descriptors.OneofDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_hasOneof_com_google_protobuf_Descriptors_OneofDescriptor_) [GeneratedMessageV3.Builder.internalGetFieldAccessorTable()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_internalGetFieldAccessorTable__) [GeneratedMessageV3.Builder.internalGetMapField(int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_internalGetMapField_int_) com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) [GeneratedMessageV3.Builder.internalGetMutableMapField(int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_internalGetMutableMapField_int_) com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) [GeneratedMessageV3.Builder.isClean()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_isClean__) [GeneratedMessageV3.Builder.isInitialized()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_isInitialized__) [GeneratedMessageV3.Builder.markClean()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_markClean__) [GeneratedMessageV3.Builder.mergeUnknownFields(UnknownFieldSet)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_mergeUnknownFields_com_google_protobuf_UnknownFieldSet_) com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) [GeneratedMessageV3.Builder.newBuilderForField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_newBuilderForField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessageV3.Builder.onBuilt()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_onBuilt__) [GeneratedMessageV3.Builder.onChanged()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_onChanged__) com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) [GeneratedMessageV3.Builder.setField(Descriptors.FieldDescriptor,Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_setField_com_google_protobuf_Descriptors_FieldDescriptor_java_lang_Object_) [GeneratedMessageV3.Builder.setRepeatedField(Descriptors.FieldDescriptor,int,Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_setRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_int_java_lang_Object_) com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) [GeneratedMessageV3.Builder.setUnknownFields(UnknownFieldSet)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_setUnknownFields_com_google_protobuf_UnknownFieldSet_) [GeneratedMessageV3.Builder.setUnknownFieldsProto3(UnknownFieldSet)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_setUnknownFieldsProto3_com_google_protobuf_UnknownFieldSet_) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Static Methods

### getDescriptor()

    public static final Descriptors.Descriptor getDescriptor()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.Descriptor.html` |   |

## Methods

### addAllApplicationAnnotations(Iterable\<? extends StreamAnnotation\> values)

    public StreamWithAnnotation.Builder addAllApplicationAnnotations(Iterable<? extends StreamAnnotation> values)

Annotations that will be applied to the whole application.

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `values` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html<? extends com.google.events.cloud.visionai.v1.StreamAnnotation>` |

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

### addAllNodeAnnotations(Iterable\<? extends StreamWithAnnotation.NodeAnnotation\> values)

    public StreamWithAnnotation.Builder addAllNodeAnnotations(Iterable<? extends StreamWithAnnotation.NodeAnnotation> values)

Annotations that will be applied to the specific node of the application.
If the same type of the annotations is applied to both application and
node, the node annotation will be added in addition to the global
application one.
For example, if there is one active zone annotation for the whole
application and one active zone annotation for the Occupancy Analytic
processor, then the Occupancy Analytic processor will have two active zones
defined.

`
repeated .google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `values` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html<? extends com.google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation>` |

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

### addApplicationAnnotations(StreamAnnotation value)

    public StreamWithAnnotation.Builder addApplicationAnnotations(StreamAnnotation value)

Annotations that will be applied to the whole application.

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamAnnotation` |

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

### addApplicationAnnotations(StreamAnnotation.Builder builderForValue)

    public StreamWithAnnotation.Builder addApplicationAnnotations(StreamAnnotation.Builder builderForValue)

Annotations that will be applied to the whole application.

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamAnnotation.Builder` |

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

### addApplicationAnnotations(int index, StreamAnnotation value)

    public StreamWithAnnotation.Builder addApplicationAnnotations(int index, StreamAnnotation value)

Annotations that will be applied to the whole application.

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamAnnotation` |

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

### addApplicationAnnotations(int index, StreamAnnotation.Builder builderForValue)

    public StreamWithAnnotation.Builder addApplicationAnnotations(int index, StreamAnnotation.Builder builderForValue)

Annotations that will be applied to the whole application.

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamAnnotation.Builder` |

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

### addApplicationAnnotationsBuilder()

    public StreamAnnotation.Builder addApplicationAnnotationsBuilder()

Annotations that will be applied to the whole application.

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

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

### addApplicationAnnotationsBuilder(int index)

    public StreamAnnotation.Builder addApplicationAnnotationsBuilder(int index)

Annotations that will be applied to the whole application.

`repeated .google.events.cloud.visionai.v1.StreamAnnotation application_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.Builder` |   |

### addNodeAnnotations(StreamWithAnnotation.NodeAnnotation value)

    public StreamWithAnnotation.Builder addNodeAnnotations(StreamWithAnnotation.NodeAnnotation value)

Annotations that will be applied to the specific node of the application.
If the same type of the annotations is applied to both application and
node, the node annotation will be added in addition to the global
application one.
For example, if there is one active zone annotation for the whole
application and one active zone annotation for the Occupancy Analytic
processor, then the Occupancy Analytic processor will have two active zones
defined.

`
repeated .google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation` |

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

### addNodeAnnotations(StreamWithAnnotation.NodeAnnotation.Builder builderForValue)

    public StreamWithAnnotation.Builder addNodeAnnotations(StreamWithAnnotation.NodeAnnotation.Builder builderForValue)

Annotations that will be applied to the specific node of the application.
If the same type of the annotations is applied to both application and
node, the node annotation will be added in addition to the global
application one.
For example, if there is one active zone annotation for the whole
application and one active zone annotation for the Occupancy Analytic
processor, then the Occupancy Analytic processor will have two active zones
defined.

`
repeated .google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation.Builder` |

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

### addNodeAnnotations(int index, StreamWithAnnotation.NodeAnnotation value)

    public StreamWithAnnotation.Builder addNodeAnnotations(int index, StreamWithAnnotation.NodeAnnotation value)

Annotations that will be applied to the specific node of the application.
If the same type of the annotations is applied to both application and
node, the node annotation will be added in addition to the global
application one.
For example, if there is one active zone annotation for the whole
application and one active zone annotation for the Occupancy Analytic
processor, then the Occupancy Analytic processor will have two active zones
defined.

`
repeated .google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation` |

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

### addNodeAnnotations(int index, StreamWithAnnotation.NodeAnnotation.Builder builderForValue)

    public StreamWithAnnotation.Builder addNodeAnnotations(int index, StreamWithAnnotation.NodeAnnotation.Builder builderForValue)

Annotations that will be applied to the specific node of the application.
If the same type of the annotations is applied to both application and
node, the node annotation will be added in addition to the global
application one.
For example, if there is one active zone annotation for the whole
application and one active zone annotation for the Occupancy Analytic
processor, then the Occupancy Analytic processor will have two active zones
defined.

`
repeated .google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation.Builder` |

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

### addNodeAnnotationsBuilder()

    public StreamWithAnnotation.NodeAnnotation.Builder addNodeAnnotationsBuilder()

Annotations that will be applied to the specific node of the application.
If the same type of the annotations is applied to both application and
node, the node annotation will be added in addition to the global
application one.
For example, if there is one active zone annotation for the whole
application and one active zone annotation for the Occupancy Analytic
processor, then the Occupancy Analytic processor will have two active zones
defined.

`
repeated .google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
`

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

### addNodeAnnotationsBuilder(int index)

    public StreamWithAnnotation.NodeAnnotation.Builder addNodeAnnotationsBuilder(int index)

Annotations that will be applied to the specific node of the application.
If the same type of the annotations is applied to both application and
node, the node annotation will be added in addition to the global
application one.
For example, if there is one active zone annotation for the whole
application and one active zone annotation for the Occupancy Analytic
processor, then the Occupancy Analytic processor will have two active zones
defined.

`
repeated .google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 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-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation.Builder` |   |

### addRepeatedField(Descriptors.FieldDescriptor field, Object value)

    public StreamWithAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `field` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.FieldDescriptor.html` |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html` |

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

**Overrides** [GeneratedMessageV3.Builder\<BuilderType\>.addRepeatedField(Descriptors.FieldDescriptor field, Object value)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_addRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_java_lang_Object_)

### build()

    public StreamWithAnnotation build()

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

### buildPartial()

    public StreamWithAnnotation buildPartial()

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

### clear()

    public StreamWithAnnotation.Builder clear()

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

**Overrides** [GeneratedMessageV3.Builder\<BuilderType\>.clear()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_clear__)

### clearApplicationAnnotations()

    public StreamWithAnnotation.Builder clearApplicationAnnotations()

Annotations that will be applied to the whole application.

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

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

### clearField(Descriptors.FieldDescriptor field)

    public StreamWithAnnotation.Builder clearField(Descriptors.FieldDescriptor field)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `field` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.FieldDescriptor.html` |

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

**Overrides** [GeneratedMessageV3.Builder\<BuilderType\>.clearField(Descriptors.FieldDescriptor field)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_clearField_com_google_protobuf_Descriptors_FieldDescriptor_)

### clearNodeAnnotations()

    public StreamWithAnnotation.Builder clearNodeAnnotations()

Annotations that will be applied to the specific node of the application.
If the same type of the annotations is applied to both application and
node, the node annotation will be added in addition to the global
application one.
For example, if there is one active zone annotation for the whole
application and one active zone annotation for the Occupancy Analytic
processor, then the Occupancy Analytic processor will have two active zones
defined.

`
repeated .google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
`

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

### clearOneof(Descriptors.OneofDescriptor oneof)

    public StreamWithAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `oneof` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.OneofDescriptor.html` |

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

**Overrides** [GeneratedMessageV3.Builder\<BuilderType\>.clearOneof(Descriptors.OneofDescriptor oneof)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_clearOneof_com_google_protobuf_Descriptors_OneofDescriptor_)

### clearStream()

    public StreamWithAnnotation.Builder clearStream()

Vision AI Stream resource name.

`string stream = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamWithAnnotation.Builder` | This builder for chaining. |

### clone()

    public StreamWithAnnotation.Builder clone()

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

**Overrides** [GeneratedMessageV3.Builder\<BuilderType\>.clone()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_clone__)

### getApplicationAnnotations(int index)

    public StreamAnnotation getApplicationAnnotations(int index)

Annotations that will be applied to the whole application.

`repeated .google.events.cloud.visionai.v1.StreamAnnotation application_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` |   |

### getApplicationAnnotationsBuilder(int index)

    public StreamAnnotation.Builder getApplicationAnnotationsBuilder(int index)

Annotations that will be applied to the whole application.

`repeated .google.events.cloud.visionai.v1.StreamAnnotation application_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.Builder` |   |

### getApplicationAnnotationsBuilderList()

    public List<StreamAnnotation.Builder> getApplicationAnnotationsBuilderList()

Annotations that will be applied to the whole application.

`repeated .google.events.cloud.visionai.v1.StreamAnnotation application_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.Builder>` |   |

### getApplicationAnnotationsCount()

    public int getApplicationAnnotationsCount()

Annotations that will be applied to the whole application.

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

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

### getApplicationAnnotationsList()

    public List<StreamAnnotation> getApplicationAnnotationsList()

Annotations that will be applied to the whole application.

`repeated .google.events.cloud.visionai.v1.StreamAnnotation application_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>` |   |

### getApplicationAnnotationsOrBuilder(int index)

    public StreamAnnotationOrBuilder getApplicationAnnotationsOrBuilder(int index)

Annotations that will be applied to the whole application.

`repeated .google.events.cloud.visionai.v1.StreamAnnotation application_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` |   |

### getApplicationAnnotationsOrBuilderList()

    public List<? extends StreamAnnotationOrBuilder> getApplicationAnnotationsOrBuilderList()

Annotations that will be applied to the whole application.

`repeated .google.events.cloud.visionai.v1.StreamAnnotation application_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>` |   |

### getDefaultInstanceForType()

    public StreamWithAnnotation getDefaultInstanceForType()

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

### getDescriptorForType()

    public Descriptors.Descriptor getDescriptorForType()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.Descriptor.html` |   |

**Overrides** [GeneratedMessageV3.Builder\<BuilderType\>.getDescriptorForType()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_getDescriptorForType__)

### getNodeAnnotations(int index)

    public StreamWithAnnotation.NodeAnnotation getNodeAnnotations(int index)

Annotations that will be applied to the specific node of the application.
If the same type of the annotations is applied to both application and
node, the node annotation will be added in addition to the global
application one.
For example, if there is one active zone annotation for the whole
application and one active zone annotation for the Occupancy Analytic
processor, then the Occupancy Analytic processor will have two active zones
defined.

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

### getNodeAnnotationsBuilder(int index)

    public StreamWithAnnotation.NodeAnnotation.Builder getNodeAnnotationsBuilder(int index)

Annotations that will be applied to the specific node of the application.
If the same type of the annotations is applied to both application and
node, the node annotation will be added in addition to the global
application one.
For example, if there is one active zone annotation for the whole
application and one active zone annotation for the Occupancy Analytic
processor, then the Occupancy Analytic processor will have two active zones
defined.

`
repeated .google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 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-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation.Builder` |   |

### getNodeAnnotationsBuilderList()

    public List<StreamWithAnnotation.NodeAnnotation.Builder> getNodeAnnotationsBuilderList()

Annotations that will be applied to the specific node of the application.
If the same type of the annotations is applied to both application and
node, the node annotation will be added in addition to the global
application one.
For example, if there is one active zone annotation for the whole
application and one active zone annotation for the Occupancy Analytic
processor, then the Occupancy Analytic processor will have two active zones
defined.

`
repeated .google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 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-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation.Builder>` |   |

### getNodeAnnotationsCount()

    public int getNodeAnnotationsCount()

Annotations that will be applied to the specific node of the application.
If the same type of the annotations is applied to both application and
node, the node annotation will be added in addition to the global
application one.
For example, if there is one active zone annotation for the whole
application and one active zone annotation for the Occupancy Analytic
processor, then the Occupancy Analytic processor will have two active zones
defined.

`
repeated .google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
`

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

### getNodeAnnotationsList()

    public List<StreamWithAnnotation.NodeAnnotation> getNodeAnnotationsList()

Annotations that will be applied to the specific node of the application.
If the same type of the annotations is applied to both application and
node, the node annotation will be added in addition to the global
application one.
For example, if there is one active zone annotation for the whole
application and one active zone annotation for the Occupancy Analytic
processor, then the Occupancy Analytic processor will have two active zones
defined.

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

### getNodeAnnotationsOrBuilder(int index)

    public StreamWithAnnotation.NodeAnnotationOrBuilder getNodeAnnotationsOrBuilder(int index)

Annotations that will be applied to the specific node of the application.
If the same type of the annotations is applied to both application and
node, the node annotation will be added in addition to the global
application one.
For example, if there is one active zone annotation for the whole
application and one active zone annotation for the Occupancy Analytic
processor, then the Occupancy Analytic processor will have two active zones
defined.

`
repeated .google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 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-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotationOrBuilder` |   |

### getNodeAnnotationsOrBuilderList()

    public List<? extends StreamWithAnnotation.NodeAnnotationOrBuilder> getNodeAnnotationsOrBuilderList()

Annotations that will be applied to the specific node of the application.
If the same type of the annotations is applied to both application and
node, the node annotation will be added in addition to the global
application one.
For example, if there is one active zone annotation for the whole
application and one active zone annotation for the Occupancy Analytic
processor, then the Occupancy Analytic processor will have two active zones
defined.

`
repeated .google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
`

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

### getStream()

    public String getStream()

Vision AI Stream resource name.

`string stream = 1;`

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

### getStreamBytes()

    public ByteString getStreamBytes()

Vision AI Stream resource name.

`string stream = 1;`

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

### internalGetFieldAccessorTable()

    protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.FieldAccessorTable.html` |   |

**Overrides** [GeneratedMessageV3.Builder\<BuilderType\>.internalGetFieldAccessorTable()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_internalGetFieldAccessorTable__)

### isInitialized()

    public final boolean isInitialized()

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

**Overrides** [GeneratedMessageV3.Builder\<BuilderType\>.isInitialized()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_isInitialized__)

### mergeFrom(StreamWithAnnotation other)

    public StreamWithAnnotation.Builder mergeFrom(StreamWithAnnotation other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamWithAnnotation` |

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

### mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

    public StreamWithAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `input` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.CodedInputStream.html` |
| `extensionRegistry` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ExtensionRegistryLite.html` |

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

**Overrides** [AbstractMessage.Builder\<BuilderType\>.mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_CodedInputStream_com_google_protobuf_ExtensionRegistryLite_)

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### mergeFrom(Message other)

    public StreamWithAnnotation.Builder mergeFrom(Message other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Message.html` |

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

**Overrides** [AbstractMessage.Builder\<BuilderType\>.mergeFrom(Message other)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_Message_)

### mergeUnknownFields(UnknownFieldSet unknownFields)

    public final StreamWithAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `unknownFields` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.UnknownFieldSet.html` |

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

**Overrides** [GeneratedMessageV3.Builder\<BuilderType\>.mergeUnknownFields(UnknownFieldSet unknownFields)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_mergeUnknownFields_com_google_protobuf_UnknownFieldSet_)

### removeApplicationAnnotations(int index)

    public StreamWithAnnotation.Builder removeApplicationAnnotations(int index)

Annotations that will be applied to the whole application.

`repeated .google.events.cloud.visionai.v1.StreamAnnotation application_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.StreamWithAnnotation.Builder` |   |

### removeNodeAnnotations(int index)

    public StreamWithAnnotation.Builder removeNodeAnnotations(int index)

Annotations that will be applied to the specific node of the application.
If the same type of the annotations is applied to both application and
node, the node annotation will be added in addition to the global
application one.
For example, if there is one active zone annotation for the whole
application and one active zone annotation for the Occupancy Analytic
processor, then the Occupancy Analytic processor will have two active zones
defined.

`
repeated .google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 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-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamWithAnnotation.Builder` |   |

### setApplicationAnnotations(int index, StreamAnnotation value)

    public StreamWithAnnotation.Builder setApplicationAnnotations(int index, StreamAnnotation value)

Annotations that will be applied to the whole application.

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamAnnotation` |

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

### setApplicationAnnotations(int index, StreamAnnotation.Builder builderForValue)

    public StreamWithAnnotation.Builder setApplicationAnnotations(int index, StreamAnnotation.Builder builderForValue)

Annotations that will be applied to the whole application.

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamAnnotation.Builder` |

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

### setField(Descriptors.FieldDescriptor field, Object value)

    public StreamWithAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `field` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.FieldDescriptor.html` |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html` |

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

**Overrides** [GeneratedMessageV3.Builder\<BuilderType\>.setField(Descriptors.FieldDescriptor field, Object value)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_setField_com_google_protobuf_Descriptors_FieldDescriptor_java_lang_Object_)

### setNodeAnnotations(int index, StreamWithAnnotation.NodeAnnotation value)

    public StreamWithAnnotation.Builder setNodeAnnotations(int index, StreamWithAnnotation.NodeAnnotation value)

Annotations that will be applied to the specific node of the application.
If the same type of the annotations is applied to both application and
node, the node annotation will be added in addition to the global
application one.
For example, if there is one active zone annotation for the whole
application and one active zone annotation for the Occupancy Analytic
processor, then the Occupancy Analytic processor will have two active zones
defined.

`
repeated .google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation` |

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

### setNodeAnnotations(int index, StreamWithAnnotation.NodeAnnotation.Builder builderForValue)

    public StreamWithAnnotation.Builder setNodeAnnotations(int index, StreamWithAnnotation.NodeAnnotation.Builder builderForValue)

Annotations that will be applied to the specific node of the application.
If the same type of the annotations is applied to both application and
node, the node annotation will be added in addition to the global
application one.
For example, if there is one active zone annotation for the whole
application and one active zone annotation for the Occupancy Analytic
processor, then the Occupancy Analytic processor will have two active zones
defined.

`
repeated .google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation.Builder` |

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

### setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

    public StreamWithAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `field` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.FieldDescriptor.html` |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html` |

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

**Overrides** [GeneratedMessageV3.Builder\<BuilderType\>.setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_setRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_int_java_lang_Object_)

### setStream(String value)

    public StreamWithAnnotation.Builder setStream(String value)

Vision AI Stream resource name.

`string stream = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The stream to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamWithAnnotation.Builder` | This builder for chaining. |

### setStreamBytes(ByteString value)

    public StreamWithAnnotation.Builder setStreamBytes(ByteString value)

Vision AI Stream resource name.

`string stream = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for stream to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.visionai.v1.StreamWithAnnotation.Builder` | This builder for chaining. |

### setUnknownFields(UnknownFieldSet unknownFields)

    public final StreamWithAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `unknownFields` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.UnknownFieldSet.html` |

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

**Overrides** [GeneratedMessageV3.Builder\<BuilderType\>.setUnknownFields(UnknownFieldSet unknownFields)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessageV3.Builder.html#com_google_protobuf_GeneratedMessageV3_Builder_setUnknownFields_com_google_protobuf_UnknownFieldSet_)