Class ObjectTrackingAnnotation (2.41.0)

public final class ObjectTrackingAnnotation extends GeneratedMessageV3 implements ObjectTrackingAnnotationOrBuilder

Annotations corresponding to one tracked object.

Protobuf type google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation

Static Fields

CONFIDENCE_FIELD_NUMBER

public static final int CONFIDENCE_FIELD_NUMBER
Field Value
Type Description
int

ENTITY_FIELD_NUMBER

public static final int ENTITY_FIELD_NUMBER
Field Value
Type Description
int

FRAMES_FIELD_NUMBER

public static final int FRAMES_FIELD_NUMBER
Field Value
Type Description
int

SEGMENT_FIELD_NUMBER

public static final int SEGMENT_FIELD_NUMBER
Field Value
Type Description
int

TRACK_ID_FIELD_NUMBER

public static final int TRACK_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ObjectTrackingAnnotation getDefaultInstance()
Returns
Type Description
ObjectTrackingAnnotation

getDescriptor()

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

newBuilder()

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

newBuilder(ObjectTrackingAnnotation prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getConfidence()

public float getConfidence()

Object category's labeling confidence of this track.

float confidence = 4;

Returns
Type Description
float

The confidence.

getDefaultInstanceForType()

public ObjectTrackingAnnotation getDefaultInstanceForType()
Returns
Type Description
ObjectTrackingAnnotation

getEntity()

public Entity getEntity()

Entity to specify the object category that this track is labeled as.

.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;

Returns
Type Description
Entity

The entity.

getEntityOrBuilder()

public EntityOrBuilder getEntityOrBuilder()

Entity to specify the object category that this track is labeled as.

.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;

Returns
Type Description
EntityOrBuilder

getFrames(int index)

public ObjectTrackingFrame getFrames(int index)

Information corresponding to all frames where this object track appears. Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame messages in frames. Streaming mode: it can only be one ObjectTrackingFrame message in frames.

repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;

Parameter
Name Description
index int
Returns
Type Description
ObjectTrackingFrame

getFramesCount()

public int getFramesCount()

Information corresponding to all frames where this object track appears. Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame messages in frames. Streaming mode: it can only be one ObjectTrackingFrame message in frames.

repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;

Returns
Type Description
int

getFramesList()

public List<ObjectTrackingFrame> getFramesList()

Information corresponding to all frames where this object track appears. Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame messages in frames. Streaming mode: it can only be one ObjectTrackingFrame message in frames.

repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;

Returns
Type Description
List<ObjectTrackingFrame>

getFramesOrBuilder(int index)

public ObjectTrackingFrameOrBuilder getFramesOrBuilder(int index)

Information corresponding to all frames where this object track appears. Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame messages in frames. Streaming mode: it can only be one ObjectTrackingFrame message in frames.

repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;

Parameter
Name Description
index int
Returns
Type Description
ObjectTrackingFrameOrBuilder

getFramesOrBuilderList()

public List<? extends ObjectTrackingFrameOrBuilder> getFramesOrBuilderList()

Information corresponding to all frames where this object track appears. Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame messages in frames. Streaming mode: it can only be one ObjectTrackingFrame message in frames.

repeated .google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame frames = 2;

Returns
Type Description
List<? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder>

getParserForType()

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

getSegment()

public VideoSegment getSegment()

Non-streaming batch mode ONLY. Each object track corresponds to one video segment where it appears.

.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3;

Returns
Type Description
VideoSegment

The segment.

getSegmentOrBuilder()

public VideoSegmentOrBuilder getSegmentOrBuilder()

Non-streaming batch mode ONLY. Each object track corresponds to one video segment where it appears.

.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3;

Returns
Type Description
VideoSegmentOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTrackId()

public long getTrackId()

Streaming mode ONLY. In streaming mode, we do not know the end time of a tracked object before it is completed. Hence, there is no VideoSegment info returned. Instead, we provide a unique identifiable integer track_id so that the customers can correlate the results of the ongoing ObjectTrackAnnotation of the same track_id over time.

int64 track_id = 5;

Returns
Type Description
long

The trackId.

getTrackInfoCase()

public ObjectTrackingAnnotation.TrackInfoCase getTrackInfoCase()
Returns
Type Description
ObjectTrackingAnnotation.TrackInfoCase

hasEntity()

public boolean hasEntity()

Entity to specify the object category that this track is labeled as.

.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;

Returns
Type Description
boolean

Whether the entity field is set.

hasSegment()

public boolean hasSegment()

Non-streaming batch mode ONLY. Each object track corresponds to one video segment where it appears.

.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 3;

Returns
Type Description
boolean

Whether the segment field is set.

hasTrackId()

public boolean hasTrackId()

Streaming mode ONLY. In streaming mode, we do not know the end time of a tracked object before it is completed. Hence, there is no VideoSegment info returned. Instead, we provide a unique identifiable integer track_id so that the customers can correlate the results of the ongoing ObjectTrackAnnotation of the same track_id over time.

int64 track_id = 5;

Returns
Type Description
boolean

Whether the trackId 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 ObjectTrackingAnnotation.Builder newBuilderForType()
Returns
Type Description
ObjectTrackingAnnotation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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