Class StreamWithAnnotation.Builder (0.6.0)

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.cloud.visionai.v1.StreamWithAnnotation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
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.cloud.visionai.v1.StreamAnnotation application_annotations = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.visionai.v1.StreamAnnotation>
Returns
Type Description
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.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation>
Returns
Type Description
StreamWithAnnotation.Builder

addApplicationAnnotations(StreamAnnotation value)

public StreamWithAnnotation.Builder addApplicationAnnotations(StreamAnnotation value)

Annotations that will be applied to the whole application.

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

Parameter
Name Description
value StreamAnnotation
Returns
Type Description
StreamWithAnnotation.Builder

addApplicationAnnotations(StreamAnnotation.Builder builderForValue)

public StreamWithAnnotation.Builder addApplicationAnnotations(StreamAnnotation.Builder builderForValue)

Annotations that will be applied to the whole application.

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

Parameter
Name Description
builderForValue StreamAnnotation.Builder
Returns
Type Description
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.cloud.visionai.v1.StreamAnnotation application_annotations = 2;

Parameters
Name Description
index int
value StreamAnnotation
Returns
Type Description
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.cloud.visionai.v1.StreamAnnotation application_annotations = 2;

Parameters
Name Description
index int
builderForValue StreamAnnotation.Builder
Returns
Type Description
StreamWithAnnotation.Builder

addApplicationAnnotationsBuilder()

public StreamAnnotation.Builder addApplicationAnnotationsBuilder()

Annotations that will be applied to the whole application.

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

Returns
Type Description
StreamAnnotation.Builder

addApplicationAnnotationsBuilder(int index)

public StreamAnnotation.Builder addApplicationAnnotationsBuilder(int index)

Annotations that will be applied to the whole application.

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

Parameter
Name Description
index int
Returns
Type Description
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.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;

Parameter
Name Description
value StreamWithAnnotation.NodeAnnotation
Returns
Type Description
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.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;

Parameter
Name Description
builderForValue StreamWithAnnotation.NodeAnnotation.Builder
Returns
Type Description
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.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;

Parameters
Name Description
index int
value StreamWithAnnotation.NodeAnnotation
Returns
Type Description
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.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;

Parameters
Name Description
index int
builderForValue StreamWithAnnotation.NodeAnnotation.Builder
Returns
Type Description
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.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;

Returns
Type Description
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.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;

Parameter
Name Description
index int
Returns
Type Description
StreamWithAnnotation.NodeAnnotation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StreamWithAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StreamWithAnnotation.Builder
Overrides

build()

public StreamWithAnnotation build()
Returns
Type Description
StreamWithAnnotation

buildPartial()

public StreamWithAnnotation buildPartial()
Returns
Type Description
StreamWithAnnotation

clear()

public StreamWithAnnotation.Builder clear()
Returns
Type Description
StreamWithAnnotation.Builder
Overrides

clearApplicationAnnotations()

public StreamWithAnnotation.Builder clearApplicationAnnotations()

Annotations that will be applied to the whole application.

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

Returns
Type Description
StreamWithAnnotation.Builder

clearField(Descriptors.FieldDescriptor field)

public StreamWithAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;

Returns
Type Description
StreamWithAnnotation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public StreamWithAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StreamWithAnnotation.Builder
Overrides

clearStream()

public StreamWithAnnotation.Builder clearStream()

Vision AI Stream resource name.

string stream = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
StreamWithAnnotation.Builder

This builder for chaining.

clone()

public StreamWithAnnotation.Builder clone()
Returns
Type Description
StreamWithAnnotation.Builder
Overrides

getApplicationAnnotations(int index)

public StreamAnnotation getApplicationAnnotations(int index)

Annotations that will be applied to the whole application.

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

Parameter
Name Description
index int
Returns
Type Description
StreamAnnotation

getApplicationAnnotationsBuilder(int index)

public StreamAnnotation.Builder getApplicationAnnotationsBuilder(int index)

Annotations that will be applied to the whole application.

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

Parameter
Name Description
index int
Returns
Type Description
StreamAnnotation.Builder

getApplicationAnnotationsBuilderList()

public List<StreamAnnotation.Builder> getApplicationAnnotationsBuilderList()

Annotations that will be applied to the whole application.

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

Returns
Type Description
List<Builder>

getApplicationAnnotationsCount()

public int getApplicationAnnotationsCount()

Annotations that will be applied to the whole application.

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

Returns
Type Description
int

getApplicationAnnotationsList()

public List<StreamAnnotation> getApplicationAnnotationsList()

Annotations that will be applied to the whole application.

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

Returns
Type Description
List<StreamAnnotation>

getApplicationAnnotationsOrBuilder(int index)

public StreamAnnotationOrBuilder getApplicationAnnotationsOrBuilder(int index)

Annotations that will be applied to the whole application.

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

Parameter
Name Description
index int
Returns
Type Description
StreamAnnotationOrBuilder

getApplicationAnnotationsOrBuilderList()

public List<? extends StreamAnnotationOrBuilder> getApplicationAnnotationsOrBuilderList()

Annotations that will be applied to the whole application.

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

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.StreamAnnotationOrBuilder>

getDefaultInstanceForType()

public StreamWithAnnotation getDefaultInstanceForType()
Returns
Type Description
StreamWithAnnotation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;

Parameter
Name Description
index int
Returns
Type Description
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.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;

Parameter
Name Description
index int
Returns
Type Description
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.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;

Returns
Type Description
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.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;

Returns
Type Description
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.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;

Returns
Type Description
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.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;

Parameter
Name Description
index int
Returns
Type Description
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.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotationOrBuilder>

getStream()

public String getStream()

Vision AI Stream resource name.

string stream = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The stream.

getStreamBytes()

public ByteString getStreamBytes()

Vision AI Stream resource name.

string stream = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for stream.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StreamWithAnnotation other)

public StreamWithAnnotation.Builder mergeFrom(StreamWithAnnotation other)
Parameter
Name Description
other StreamWithAnnotation
Returns
Type Description
StreamWithAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StreamWithAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamWithAnnotation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StreamWithAnnotation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StreamWithAnnotation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StreamWithAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StreamWithAnnotation.Builder
Overrides

removeApplicationAnnotations(int index)

public StreamWithAnnotation.Builder removeApplicationAnnotations(int index)

Annotations that will be applied to the whole application.

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

Parameter
Name Description
index int
Returns
Type Description
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.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;

Parameter
Name Description
index int
Returns
Type Description
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.cloud.visionai.v1.StreamAnnotation application_annotations = 2;

Parameters
Name Description
index int
value StreamAnnotation
Returns
Type Description
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.cloud.visionai.v1.StreamAnnotation application_annotations = 2;

Parameters
Name Description
index int
builderForValue StreamAnnotation.Builder
Returns
Type Description
StreamWithAnnotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public StreamWithAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;

Parameters
Name Description
index int
value StreamWithAnnotation.NodeAnnotation
Returns
Type Description
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.cloud.visionai.v1.StreamWithAnnotation.NodeAnnotation node_annotations = 3;

Parameters
Name Description
index int
builderForValue StreamWithAnnotation.NodeAnnotation.Builder
Returns
Type Description
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 FieldDescriptor
index int
value Object
Returns
Type Description
StreamWithAnnotation.Builder
Overrides

setStream(String value)

public StreamWithAnnotation.Builder setStream(String value)

Vision AI Stream resource name.

string stream = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The stream to set.

Returns
Type Description
StreamWithAnnotation.Builder

This builder for chaining.

setStreamBytes(ByteString value)

public StreamWithAnnotation.Builder setStreamBytes(ByteString value)

Vision AI Stream resource name.

string stream = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for stream to set.

Returns
Type Description
StreamWithAnnotation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final StreamWithAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StreamWithAnnotation.Builder
Overrides