Class StreamAnnotations.Builder (0.2.0)

public static final class StreamAnnotations.Builder extends GeneratedMessageV3.Builder<StreamAnnotations.Builder> implements StreamAnnotationsOrBuilder

A wrapper of repeated StreamAnnotation.

Protobuf type google.cloud.visionai.v1.StreamAnnotations

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllStreamAnnotations(Iterable<? extends StreamAnnotation> values)

public StreamAnnotations.Builder addAllStreamAnnotations(Iterable<? extends StreamAnnotation> values)

Multiple annotations.

repeated .google.cloud.visionai.v1.StreamAnnotation stream_annotations = 1;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addStreamAnnotations(StreamAnnotation value)

public StreamAnnotations.Builder addStreamAnnotations(StreamAnnotation value)

Multiple annotations.

repeated .google.cloud.visionai.v1.StreamAnnotation stream_annotations = 1;

Parameter
Name Description
value StreamAnnotation
Returns
Type Description
StreamAnnotations.Builder

addStreamAnnotations(StreamAnnotation.Builder builderForValue)

public StreamAnnotations.Builder addStreamAnnotations(StreamAnnotation.Builder builderForValue)

Multiple annotations.

repeated .google.cloud.visionai.v1.StreamAnnotation stream_annotations = 1;

Parameter
Name Description
builderForValue StreamAnnotation.Builder
Returns
Type Description
StreamAnnotations.Builder

addStreamAnnotations(int index, StreamAnnotation value)

public StreamAnnotations.Builder addStreamAnnotations(int index, StreamAnnotation value)

Multiple annotations.

repeated .google.cloud.visionai.v1.StreamAnnotation stream_annotations = 1;

Parameters
Name Description
index int
value StreamAnnotation
Returns
Type Description
StreamAnnotations.Builder

addStreamAnnotations(int index, StreamAnnotation.Builder builderForValue)

public StreamAnnotations.Builder addStreamAnnotations(int index, StreamAnnotation.Builder builderForValue)

Multiple annotations.

repeated .google.cloud.visionai.v1.StreamAnnotation stream_annotations = 1;

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

addStreamAnnotationsBuilder()

public StreamAnnotation.Builder addStreamAnnotationsBuilder()

Multiple annotations.

repeated .google.cloud.visionai.v1.StreamAnnotation stream_annotations = 1;

Returns
Type Description
StreamAnnotation.Builder

addStreamAnnotationsBuilder(int index)

public StreamAnnotation.Builder addStreamAnnotationsBuilder(int index)

Multiple annotations.

repeated .google.cloud.visionai.v1.StreamAnnotation stream_annotations = 1;

Parameter
Name Description
index int
Returns
Type Description
StreamAnnotation.Builder

build()

public StreamAnnotations build()
Returns
Type Description
StreamAnnotations

buildPartial()

public StreamAnnotations buildPartial()
Returns
Type Description
StreamAnnotations

clear()

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

clearField(Descriptors.FieldDescriptor field)

public StreamAnnotations.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StreamAnnotations.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStreamAnnotations()

public StreamAnnotations.Builder clearStreamAnnotations()

Multiple annotations.

repeated .google.cloud.visionai.v1.StreamAnnotation stream_annotations = 1;

Returns
Type Description
StreamAnnotations.Builder

clone()

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

getDefaultInstanceForType()

public StreamAnnotations getDefaultInstanceForType()
Returns
Type Description
StreamAnnotations

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getStreamAnnotations(int index)

public StreamAnnotation getStreamAnnotations(int index)

Multiple annotations.

repeated .google.cloud.visionai.v1.StreamAnnotation stream_annotations = 1;

Parameter
Name Description
index int
Returns
Type Description
StreamAnnotation

getStreamAnnotationsBuilder(int index)

public StreamAnnotation.Builder getStreamAnnotationsBuilder(int index)

Multiple annotations.

repeated .google.cloud.visionai.v1.StreamAnnotation stream_annotations = 1;

Parameter
Name Description
index int
Returns
Type Description
StreamAnnotation.Builder

getStreamAnnotationsBuilderList()

public List<StreamAnnotation.Builder> getStreamAnnotationsBuilderList()

Multiple annotations.

repeated .google.cloud.visionai.v1.StreamAnnotation stream_annotations = 1;

Returns
Type Description
List<Builder>

getStreamAnnotationsCount()

public int getStreamAnnotationsCount()

Multiple annotations.

repeated .google.cloud.visionai.v1.StreamAnnotation stream_annotations = 1;

Returns
Type Description
int

getStreamAnnotationsList()

public List<StreamAnnotation> getStreamAnnotationsList()

Multiple annotations.

repeated .google.cloud.visionai.v1.StreamAnnotation stream_annotations = 1;

Returns
Type Description
List<StreamAnnotation>

getStreamAnnotationsOrBuilder(int index)

public StreamAnnotationOrBuilder getStreamAnnotationsOrBuilder(int index)

Multiple annotations.

repeated .google.cloud.visionai.v1.StreamAnnotation stream_annotations = 1;

Parameter
Name Description
index int
Returns
Type Description
StreamAnnotationOrBuilder

getStreamAnnotationsOrBuilderList()

public List<? extends StreamAnnotationOrBuilder> getStreamAnnotationsOrBuilderList()

Multiple annotations.

repeated .google.cloud.visionai.v1.StreamAnnotation stream_annotations = 1;

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StreamAnnotations other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeStreamAnnotations(int index)

public StreamAnnotations.Builder removeStreamAnnotations(int index)

Multiple annotations.

repeated .google.cloud.visionai.v1.StreamAnnotation stream_annotations = 1;

Parameter
Name Description
index int
Returns
Type Description
StreamAnnotations.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public StreamAnnotations.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StreamAnnotations.Builder
Overrides

setStreamAnnotations(int index, StreamAnnotation value)

public StreamAnnotations.Builder setStreamAnnotations(int index, StreamAnnotation value)

Multiple annotations.

repeated .google.cloud.visionai.v1.StreamAnnotation stream_annotations = 1;

Parameters
Name Description
index int
value StreamAnnotation
Returns
Type Description
StreamAnnotations.Builder

setStreamAnnotations(int index, StreamAnnotation.Builder builderForValue)

public StreamAnnotations.Builder setStreamAnnotations(int index, StreamAnnotation.Builder builderForValue)

Multiple annotations.

repeated .google.cloud.visionai.v1.StreamAnnotation stream_annotations = 1;

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

setUnknownFields(UnknownFieldSet unknownFields)

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