Class StreamWithAnnotation.Builder (0.14.1)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

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
NameDescription
valuesIterable<? extends com.google.events.cloud.visionai.v1.StreamAnnotation>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation>
Returns
TypeDescription
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
NameDescription
valueStreamAnnotation
Returns
TypeDescription
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
NameDescription
builderForValueStreamAnnotation.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueStreamAnnotation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueStreamAnnotation.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueStreamWithAnnotation.NodeAnnotation
Returns
TypeDescription
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
NameDescription
builderForValueStreamWithAnnotation.NodeAnnotation.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueStreamWithAnnotation.NodeAnnotation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueStreamWithAnnotation.NodeAnnotation.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
StreamWithAnnotation.NodeAnnotation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StreamWithAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StreamWithAnnotation.Builder
Overrides

build()

public StreamWithAnnotation build()
Returns
TypeDescription
StreamWithAnnotation

buildPartial()

public StreamWithAnnotation buildPartial()
Returns
TypeDescription
StreamWithAnnotation

clear()

public StreamWithAnnotation.Builder clear()
Returns
TypeDescription
StreamWithAnnotation.Builder
Overrides

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
TypeDescription
StreamWithAnnotation.Builder

clearField(Descriptors.FieldDescriptor field)

public StreamWithAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StreamWithAnnotation.Builder
Overrides

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
TypeDescription
StreamWithAnnotation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public StreamWithAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
StreamWithAnnotation.Builder
Overrides

clearStream()

public StreamWithAnnotation.Builder clearStream()

Vision AI Stream resource name.

string stream = 1;

Returns
TypeDescription
StreamWithAnnotation.Builder

This builder for chaining.

clone()

public StreamWithAnnotation.Builder clone()
Returns
TypeDescription
StreamWithAnnotation.Builder
Overrides

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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<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
TypeDescription
int

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
TypeDescription
List<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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.events.cloud.visionai.v1.StreamAnnotationOrBuilder>

getDefaultInstanceForType()

public StreamWithAnnotation getDefaultInstanceForType()
Returns
TypeDescription
StreamWithAnnotation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<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
TypeDescription
int

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
TypeDescription
List<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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.events.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotationOrBuilder>

getStream()

public String getStream()

Vision AI Stream resource name.

string stream = 1;

Returns
TypeDescription
String

The stream.

getStreamBytes()

public ByteString getStreamBytes()

Vision AI Stream resource name.

string stream = 1;

Returns
TypeDescription
ByteString

The bytes for stream.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StreamWithAnnotation other)

public StreamWithAnnotation.Builder mergeFrom(StreamWithAnnotation other)
Parameter
NameDescription
otherStreamWithAnnotation
Returns
TypeDescription
StreamWithAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StreamWithAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamWithAnnotation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public StreamWithAnnotation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
StreamWithAnnotation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StreamWithAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StreamWithAnnotation.Builder
Overrides

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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueStreamAnnotation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueStreamAnnotation.Builder
Returns
TypeDescription
StreamWithAnnotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public StreamWithAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StreamWithAnnotation.Builder
Overrides

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
NameDescription
indexint
valueStreamWithAnnotation.NodeAnnotation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueStreamWithAnnotation.NodeAnnotation.Builder
Returns
TypeDescription
StreamWithAnnotation.Builder

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

public StreamWithAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StreamWithAnnotation.Builder
Overrides

setStream(String value)

public StreamWithAnnotation.Builder setStream(String value)

Vision AI Stream resource name.

string stream = 1;

Parameter
NameDescription
valueString

The stream to set.

Returns
TypeDescription
StreamWithAnnotation.Builder

This builder for chaining.

setStreamBytes(ByteString value)

public StreamWithAnnotation.Builder setStreamBytes(ByteString value)

Vision AI Stream resource name.

string stream = 1;

Parameter
NameDescription
valueByteString

The bytes for stream to set.

Returns
TypeDescription
StreamWithAnnotation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final StreamWithAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StreamWithAnnotation.Builder
Overrides