Class StreamAnnotation (0.14.1)

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
TypeDescription
int

CROSSING_LINE_FIELD_NUMBER

public static final int CROSSING_LINE_FIELD_NUMBER
Field Value
TypeDescription
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_STREAM_FIELD_NUMBER

public static final int SOURCE_STREAM_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static StreamAnnotation getDefaultInstance()
Returns
TypeDescription
StreamAnnotation

getDescriptor()

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

newBuilder()

public static StreamAnnotation.Builder newBuilder()
Returns
TypeDescription
StreamAnnotation.Builder

newBuilder(StreamAnnotation prototype)

public static StreamAnnotation.Builder newBuilder(StreamAnnotation prototype)
Parameter
NameDescription
prototypeStreamAnnotation
Returns
TypeDescription
StreamAnnotation.Builder

parseDelimitedFrom(InputStream input)

public static StreamAnnotation parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StreamAnnotation
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamAnnotation
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static StreamAnnotation parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
StreamAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StreamAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StreamAnnotation parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
StreamAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StreamAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StreamAnnotation parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
StreamAnnotation
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamAnnotation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static StreamAnnotation parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StreamAnnotation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamAnnotation
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static StreamAnnotation parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
StreamAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StreamAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<StreamAnnotation> parser()
Returns
TypeDescription
Parser<StreamAnnotation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getActiveZone()

public NormalizedPolygon getActiveZone()

Annotation for type ACTIVE_ZONE

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

Returns
TypeDescription
NormalizedPolygon

The activeZone.

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.

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

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.

getParserForType()

public Parser<StreamAnnotation> getParserForType()
Returns
TypeDescription
Parser<StreamAnnotation>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected StreamAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
StreamAnnotation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException