Class StreamAnnotation.Builder (0.12.0)

public static final class StreamAnnotation.Builder extends GeneratedMessageV3.Builder<StreamAnnotation.Builder> implements StreamAnnotationOrBuilder

message about annotations about Vision AI stream resource.

Protobuf type google.cloud.visionai.v1.StreamAnnotation

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StreamAnnotation build()
Returns
Type Description
StreamAnnotation

buildPartial()

public StreamAnnotation buildPartial()
Returns
Type Description
StreamAnnotation

clear()

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

clearActiveZone()

public StreamAnnotation.Builder clearActiveZone()

Annotation for type ACTIVE_ZONE

.google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;

Returns
Type Description
StreamAnnotation.Builder

clearAnnotationPayload()

public StreamAnnotation.Builder clearAnnotationPayload()
Returns
Type Description
StreamAnnotation.Builder

clearCrossingLine()

public StreamAnnotation.Builder clearCrossingLine()

Annotation for type CROSSING_LINE

.google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;

Returns
Type Description
StreamAnnotation.Builder

clearDisplayName()

public StreamAnnotation.Builder clearDisplayName()

User-friendly name for the annotation.

string display_name = 2;

Returns
Type Description
StreamAnnotation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public StreamAnnotation.Builder clearId()

ID of the annotation. It must be unique when used in the certain context. For example, all the annotations to one input streams of a Vision AI application.

string id = 1;

Returns
Type Description
StreamAnnotation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSourceStream()

public StreamAnnotation.Builder clearSourceStream()

The Vision AI stream resource name.

string source_stream = 3;

Returns
Type Description
StreamAnnotation.Builder

This builder for chaining.

clearType()

public StreamAnnotation.Builder clearType()

The actual type of Annotation.

.google.cloud.visionai.v1.StreamAnnotationType type = 4;

Returns
Type Description
StreamAnnotation.Builder

This builder for chaining.

clone()

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

getActiveZone()

public NormalizedPolygon getActiveZone()

Annotation for type ACTIVE_ZONE

.google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;

Returns
Type Description
NormalizedPolygon

The activeZone.

getActiveZoneBuilder()

public NormalizedPolygon.Builder getActiveZoneBuilder()

Annotation for type ACTIVE_ZONE

.google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;

Returns
Type Description
NormalizedPolygon.Builder

getActiveZoneOrBuilder()

public NormalizedPolygonOrBuilder getActiveZoneOrBuilder()

Annotation for type ACTIVE_ZONE

.google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;

Returns
Type Description
NormalizedPolygonOrBuilder

getAnnotationPayloadCase()

public StreamAnnotation.AnnotationPayloadCase getAnnotationPayloadCase()
Returns
Type Description
StreamAnnotation.AnnotationPayloadCase

getCrossingLine()

public NormalizedPolyline getCrossingLine()

Annotation for type CROSSING_LINE

.google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;

Returns
Type Description
NormalizedPolyline

The crossingLine.

getCrossingLineBuilder()

public NormalizedPolyline.Builder getCrossingLineBuilder()

Annotation for type CROSSING_LINE

.google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;

Returns
Type Description
NormalizedPolyline.Builder

getCrossingLineOrBuilder()

public NormalizedPolylineOrBuilder getCrossingLineOrBuilder()

Annotation for type CROSSING_LINE

.google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;

Returns
Type Description
NormalizedPolylineOrBuilder

getDefaultInstanceForType()

public StreamAnnotation getDefaultInstanceForType()
Returns
Type Description
StreamAnnotation

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

User-friendly name for the annotation.

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

User-friendly name for the annotation.

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getId()

public String getId()

ID of the annotation. It must be unique when used in the certain context. For example, all the annotations to one input streams of a Vision AI application.

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

ID of the annotation. It must be unique when used in the certain context. For example, all the annotations to one input streams of a Vision AI application.

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

getSourceStream()

public String getSourceStream()

The Vision AI stream resource name.

string source_stream = 3;

Returns
Type Description
String

The sourceStream.

getSourceStreamBytes()

public ByteString getSourceStreamBytes()

The Vision AI stream resource name.

string source_stream = 3;

Returns
Type Description
ByteString

The bytes for sourceStream.

getType()

public StreamAnnotationType getType()

The actual type of Annotation.

.google.cloud.visionai.v1.StreamAnnotationType type = 4;

Returns
Type Description
StreamAnnotationType

The type.

getTypeValue()

public int getTypeValue()

The actual type of Annotation.

.google.cloud.visionai.v1.StreamAnnotationType type = 4;

Returns
Type Description
int

The enum numeric value on the wire for type.

hasActiveZone()

public boolean hasActiveZone()

Annotation for type ACTIVE_ZONE

.google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;

Returns
Type Description
boolean

Whether the activeZone field is set.

hasCrossingLine()

public boolean hasCrossingLine()

Annotation for type CROSSING_LINE

.google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;

Returns
Type Description
boolean

Whether the crossingLine field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeActiveZone(NormalizedPolygon value)

public StreamAnnotation.Builder mergeActiveZone(NormalizedPolygon value)

Annotation for type ACTIVE_ZONE

.google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;

Parameter
Name Description
value NormalizedPolygon
Returns
Type Description
StreamAnnotation.Builder

mergeCrossingLine(NormalizedPolyline value)

public StreamAnnotation.Builder mergeCrossingLine(NormalizedPolyline value)

Annotation for type CROSSING_LINE

.google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;

Parameter
Name Description
value NormalizedPolyline
Returns
Type Description
StreamAnnotation.Builder

mergeFrom(StreamAnnotation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setActiveZone(NormalizedPolygon value)

public StreamAnnotation.Builder setActiveZone(NormalizedPolygon value)

Annotation for type ACTIVE_ZONE

.google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;

Parameter
Name Description
value NormalizedPolygon
Returns
Type Description
StreamAnnotation.Builder

setActiveZone(NormalizedPolygon.Builder builderForValue)

public StreamAnnotation.Builder setActiveZone(NormalizedPolygon.Builder builderForValue)

Annotation for type ACTIVE_ZONE

.google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;

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

setCrossingLine(NormalizedPolyline value)

public StreamAnnotation.Builder setCrossingLine(NormalizedPolyline value)

Annotation for type CROSSING_LINE

.google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;

Parameter
Name Description
value NormalizedPolyline
Returns
Type Description
StreamAnnotation.Builder

setCrossingLine(NormalizedPolyline.Builder builderForValue)

public StreamAnnotation.Builder setCrossingLine(NormalizedPolyline.Builder builderForValue)

Annotation for type CROSSING_LINE

.google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;

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

setDisplayName(String value)

public StreamAnnotation.Builder setDisplayName(String value)

User-friendly name for the annotation.

string display_name = 2;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
StreamAnnotation.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public StreamAnnotation.Builder setDisplayNameBytes(ByteString value)

User-friendly name for the annotation.

string display_name = 2;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
StreamAnnotation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public StreamAnnotation.Builder setId(String value)

ID of the annotation. It must be unique when used in the certain context. For example, all the annotations to one input streams of a Vision AI application.

string id = 1;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
StreamAnnotation.Builder

This builder for chaining.

setIdBytes(ByteString value)

public StreamAnnotation.Builder setIdBytes(ByteString value)

ID of the annotation. It must be unique when used in the certain context. For example, all the annotations to one input streams of a Vision AI application.

string id = 1;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
StreamAnnotation.Builder

This builder for chaining.

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

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

setSourceStream(String value)

public StreamAnnotation.Builder setSourceStream(String value)

The Vision AI stream resource name.

string source_stream = 3;

Parameter
Name Description
value String

The sourceStream to set.

Returns
Type Description
StreamAnnotation.Builder

This builder for chaining.

setSourceStreamBytes(ByteString value)

public StreamAnnotation.Builder setSourceStreamBytes(ByteString value)

The Vision AI stream resource name.

string source_stream = 3;

Parameter
Name Description
value ByteString

The bytes for sourceStream to set.

Returns
Type Description
StreamAnnotation.Builder

This builder for chaining.

setType(StreamAnnotationType value)

public StreamAnnotation.Builder setType(StreamAnnotationType value)

The actual type of Annotation.

.google.cloud.visionai.v1.StreamAnnotationType type = 4;

Parameter
Name Description
value StreamAnnotationType

The type to set.

Returns
Type Description
StreamAnnotation.Builder

This builder for chaining.

setTypeValue(int value)

public StreamAnnotation.Builder setTypeValue(int value)

The actual type of Annotation.

.google.cloud.visionai.v1.StreamAnnotationType type = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
StreamAnnotation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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