Class ObjectTrackingAnnotation (2.4.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
TypeDescription
int

ENTITY_FIELD_NUMBER

public static final int ENTITY_FIELD_NUMBER
Field Value
TypeDescription
int

FRAMES_FIELD_NUMBER

public static final int FRAMES_FIELD_NUMBER
Field Value
TypeDescription
int

SEGMENT_FIELD_NUMBER

public static final int SEGMENT_FIELD_NUMBER
Field Value
TypeDescription
int

TRACK_ID_FIELD_NUMBER

public static final int TRACK_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ObjectTrackingAnnotation getDefaultInstance()
Returns
TypeDescription
ObjectTrackingAnnotation

getDescriptor()

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

newBuilder()

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

newBuilder(ObjectTrackingAnnotation prototype)

public static ObjectTrackingAnnotation.Builder newBuilder(ObjectTrackingAnnotation prototype)
Parameter
NameDescription
prototypeObjectTrackingAnnotation
Returns
TypeDescription
ObjectTrackingAnnotation.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getConfidence()

public float getConfidence()

Object category's labeling confidence of this track.

float confidence = 4;

Returns
TypeDescription
float

The confidence.

getDefaultInstanceForType()

public ObjectTrackingAnnotation getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrameOrBuilder>

getParserForType()

public Parser<ObjectTrackingAnnotation> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
VideoSegmentOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
long

The trackId.

getTrackInfoCase()

public ObjectTrackingAnnotation.TrackInfoCase getTrackInfoCase()
Returns
TypeDescription
ObjectTrackingAnnotation.TrackInfoCase

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasEntity()

public boolean hasEntity()

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

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

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

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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