Class StreamAnnotation.Builder (0.14.1)

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

message about annotations about Vision AI stream resource.

Protobuf type google.events.cloud.visionai.v1.StreamAnnotation

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StreamAnnotation build()
Returns
TypeDescription
StreamAnnotation

buildPartial()

public StreamAnnotation buildPartial()
Returns
TypeDescription
StreamAnnotation

clear()

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

clearActiveZone()

public StreamAnnotation.Builder clearActiveZone()

Annotation for type ACTIVE_ZONE

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

Returns
TypeDescription
StreamAnnotation.Builder

clearAnnotationPayload()

public StreamAnnotation.Builder clearAnnotationPayload()
Returns
TypeDescription
StreamAnnotation.Builder

clearCrossingLine()

public StreamAnnotation.Builder clearCrossingLine()

Annotation for type CROSSING_LINE

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

Returns
TypeDescription
StreamAnnotation.Builder

clearDisplayName()

public StreamAnnotation.Builder clearDisplayName()

User-friendly name for the annotation.

string display_name = 2;

Returns
TypeDescription
StreamAnnotation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public StreamAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
StreamAnnotation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSourceStream()

public StreamAnnotation.Builder clearSourceStream()

The Vision AI stream resource name.

string source_stream = 3;

Returns
TypeDescription
StreamAnnotation.Builder

This builder for chaining.

clearType()

public StreamAnnotation.Builder clearType()

The actual type of Annotation.

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

Returns
TypeDescription
StreamAnnotation.Builder

This builder for chaining.

clone()

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

getActiveZone()

public NormalizedPolygon getActiveZone()

Annotation for type ACTIVE_ZONE

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

Returns
TypeDescription
NormalizedPolygon

The activeZone.

getActiveZoneBuilder()

public NormalizedPolygon.Builder getActiveZoneBuilder()

Annotation for type ACTIVE_ZONE

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

Returns
TypeDescription
NormalizedPolygon.Builder

getActiveZoneOrBuilder()

public NormalizedPolygonOrBuilder getActiveZoneOrBuilder()

Annotation for type ACTIVE_ZONE

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

Returns
TypeDescription
NormalizedPolygonOrBuilder

getAnnotationPayloadCase()

public StreamAnnotation.AnnotationPayloadCase getAnnotationPayloadCase()
Returns
TypeDescription
StreamAnnotation.AnnotationPayloadCase

getCrossingLine()

public NormalizedPolyline getCrossingLine()

Annotation for type CROSSING_LINE

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

Returns
TypeDescription
NormalizedPolyline

The crossingLine.

getCrossingLineBuilder()

public NormalizedPolyline.Builder getCrossingLineBuilder()

Annotation for type CROSSING_LINE

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

Returns
TypeDescription
NormalizedPolyline.Builder

getCrossingLineOrBuilder()

public NormalizedPolylineOrBuilder getCrossingLineOrBuilder()

Annotation for type CROSSING_LINE

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

Returns
TypeDescription
NormalizedPolylineOrBuilder

getDefaultInstanceForType()

public StreamAnnotation getDefaultInstanceForType()
Returns
TypeDescription
StreamAnnotation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

User-friendly name for the annotation.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

User-friendly name for the annotation.

string display_name = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for id.

getSourceStream()

public String getSourceStream()

The Vision AI stream resource name.

string source_stream = 3;

Returns
TypeDescription
String

The sourceStream.

getSourceStreamBytes()

public ByteString getSourceStreamBytes()

The Vision AI stream resource name.

string source_stream = 3;

Returns
TypeDescription
ByteString

The bytes for sourceStream.

getType()

public StreamAnnotationType getType()

The actual type of Annotation.

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

Returns
TypeDescription
StreamAnnotationType

The type.

getTypeValue()

public int getTypeValue()

The actual type of Annotation.

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

Returns
TypeDescription
int

The enum numeric value on the wire for type.

hasActiveZone()

public boolean hasActiveZone()

Annotation for type ACTIVE_ZONE

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

Returns
TypeDescription
boolean

Whether the activeZone field is set.

hasCrossingLine()

public boolean hasCrossingLine()

Annotation for type CROSSING_LINE

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

Returns
TypeDescription
boolean

Whether the crossingLine field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeActiveZone(NormalizedPolygon value)

public StreamAnnotation.Builder mergeActiveZone(NormalizedPolygon value)

Annotation for type ACTIVE_ZONE

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

Parameter
NameDescription
valueNormalizedPolygon
Returns
TypeDescription
StreamAnnotation.Builder

mergeCrossingLine(NormalizedPolyline value)

public StreamAnnotation.Builder mergeCrossingLine(NormalizedPolyline value)

Annotation for type CROSSING_LINE

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

Parameter
NameDescription
valueNormalizedPolyline
Returns
TypeDescription
StreamAnnotation.Builder

mergeFrom(StreamAnnotation other)

public StreamAnnotation.Builder mergeFrom(StreamAnnotation other)
Parameter
NameDescription
otherStreamAnnotation
Returns
TypeDescription
StreamAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setActiveZone(NormalizedPolygon value)

public StreamAnnotation.Builder setActiveZone(NormalizedPolygon value)

Annotation for type ACTIVE_ZONE

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

Parameter
NameDescription
valueNormalizedPolygon
Returns
TypeDescription
StreamAnnotation.Builder

setActiveZone(NormalizedPolygon.Builder builderForValue)

public StreamAnnotation.Builder setActiveZone(NormalizedPolygon.Builder builderForValue)

Annotation for type ACTIVE_ZONE

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

Parameter
NameDescription
builderForValueNormalizedPolygon.Builder
Returns
TypeDescription
StreamAnnotation.Builder

setCrossingLine(NormalizedPolyline value)

public StreamAnnotation.Builder setCrossingLine(NormalizedPolyline value)

Annotation for type CROSSING_LINE

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

Parameter
NameDescription
valueNormalizedPolyline
Returns
TypeDescription
StreamAnnotation.Builder

setCrossingLine(NormalizedPolyline.Builder builderForValue)

public StreamAnnotation.Builder setCrossingLine(NormalizedPolyline.Builder builderForValue)

Annotation for type CROSSING_LINE

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

Parameter
NameDescription
builderForValueNormalizedPolyline.Builder
Returns
TypeDescription
StreamAnnotation.Builder

setDisplayName(String value)

public StreamAnnotation.Builder setDisplayName(String value)

User-friendly name for the annotation.

string display_name = 2;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
StreamAnnotation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public StreamAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The id to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StreamAnnotation.Builder
Overrides

setSourceStream(String value)

public StreamAnnotation.Builder setSourceStream(String value)

The Vision AI stream resource name.

string source_stream = 3;

Parameter
NameDescription
valueString

The sourceStream to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for sourceStream to set.

Returns
TypeDescription
StreamAnnotation.Builder

This builder for chaining.

setType(StreamAnnotationType value)

public StreamAnnotation.Builder setType(StreamAnnotationType value)

The actual type of Annotation.

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

Parameter
NameDescription
valueStreamAnnotationType

The type to set.

Returns
TypeDescription
StreamAnnotation.Builder

This builder for chaining.

setTypeValue(int value)

public StreamAnnotation.Builder setTypeValue(int value)

The actual type of Annotation.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
StreamAnnotation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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