Class StreamAnnotation (0.16.0)

public final class StreamAnnotation extends GeneratedMessageV3 implements StreamAnnotationOrBuilder

message about annotations about Vision AI stream resource.

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

Static Fields

ACTIVE_ZONE_FIELD_NUMBER

public static final int ACTIVE_ZONE_FIELD_NUMBER
Field Value
Type Description
int

CROSSING_LINE_FIELD_NUMBER

public static final int CROSSING_LINE_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_STREAM_FIELD_NUMBER

public static final int SOURCE_STREAM_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static StreamAnnotation getDefaultInstance()
Returns
Type Description
StreamAnnotation

getDescriptor()

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

newBuilder()

public static StreamAnnotation.Builder newBuilder()
Returns
Type Description
StreamAnnotation.Builder

newBuilder(StreamAnnotation prototype)

public static StreamAnnotation.Builder newBuilder(StreamAnnotation prototype)
Parameter
Name Description
prototype StreamAnnotation
Returns
Type Description
StreamAnnotation.Builder

parseDelimitedFrom(InputStream input)

public static StreamAnnotation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StreamAnnotation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamAnnotation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static StreamAnnotation parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
StreamAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StreamAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StreamAnnotation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
StreamAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StreamAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StreamAnnotation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
StreamAnnotation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamAnnotation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static StreamAnnotation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StreamAnnotation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamAnnotation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static StreamAnnotation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
StreamAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StreamAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<StreamAnnotation> parser()
Returns
Type Description
Parser<StreamAnnotation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getActiveZone()

public NormalizedPolygon getActiveZone()

Annotation for type ACTIVE_ZONE

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

Returns
Type Description
NormalizedPolygon

The activeZone.

getActiveZoneOrBuilder()

public NormalizedPolygonOrBuilder getActiveZoneOrBuilder()

Annotation for type ACTIVE_ZONE

.google.events.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.events.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;

Returns
Type Description
NormalizedPolyline

The crossingLine.

getCrossingLineOrBuilder()

public NormalizedPolylineOrBuilder getCrossingLineOrBuilder()

Annotation for type CROSSING_LINE

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

Returns
Type Description
NormalizedPolylineOrBuilder

getDefaultInstanceForType()

public StreamAnnotation getDefaultInstanceForType()
Returns
Type Description
StreamAnnotation

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.

getParserForType()

public Parser<StreamAnnotation> getParserForType()
Returns
Type Description
Parser<StreamAnnotation>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.events.cloud.visionai.v1.StreamAnnotationType type = 4;

Returns
Type Description
StreamAnnotationType

The type.

getTypeValue()

public int getTypeValue()

The actual type of Annotation.

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

Returns
Type Description
int

The enum numeric value on the wire for type.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hasActiveZone()

public boolean hasActiveZone()

Annotation for type ACTIVE_ZONE

.google.events.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.events.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;

Returns
Type Description
boolean

Whether the crossingLine field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected StreamAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
StreamAnnotation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException