Send feedback
Class ObjectTrackingAnnotation (2.2.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.2.1 keyboard_arrow_down
public final class ObjectTrackingAnnotation extends GeneratedMessageV3 implements ObjectTrackingAnnotationOrBuilder
Annotations corresponding to one tracked object.
Protobuf type google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation
Static Fields
CONFIDENCE_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER
Field Value
ENTITY_FIELD_NUMBER
public static final int ENTITY_FIELD_NUMBER
Field Value
FRAMES_FIELD_NUMBER
public static final int FRAMES_FIELD_NUMBER
Field Value
SEGMENT_FIELD_NUMBER
public static final int SEGMENT_FIELD_NUMBER
Field Value
TRACK_ID_FIELD_NUMBER
public static final int TRACK_ID_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ObjectTrackingAnnotation getDefaultInstance ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
newBuilder()
public static ObjectTrackingAnnotation . Builder newBuilder ()
Returns
newBuilder(ObjectTrackingAnnotation prototype)
public static ObjectTrackingAnnotation . Builder newBuilder ( ObjectTrackingAnnotation prototype )
Parameter
Returns
public static ObjectTrackingAnnotation parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static ObjectTrackingAnnotation parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ObjectTrackingAnnotation parseFrom ( byte [] data )
Parameter
Name Description data byte []
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ObjectTrackingAnnotation parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ObjectTrackingAnnotation parseFrom ( ByteString data )
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ObjectTrackingAnnotation parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static ObjectTrackingAnnotation parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static ObjectTrackingAnnotation parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static ObjectTrackingAnnotation parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static ObjectTrackingAnnotation parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ObjectTrackingAnnotation parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ObjectTrackingAnnotation parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parser()
public static Parser<ObjectTrackingAnnotation> parser ()
Returns
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Returns
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
getEntity()
public Entity getEntity ()
Entity to specify the object category that this track is labeled as.
.google.cloud.videointelligence.v1p2beta1.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.v1p2beta1.Entity entity = 1;
Returns
getFrames(int index)
public ObjectTrackingFrame getFrames ( int index )
Information corresponding to all frames where this object track appears.
repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2;
Parameter
Returns
getFramesCount()
public int getFramesCount ()
Information corresponding to all frames where this object track appears.
repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2;
Returns
getFramesList()
public List<ObjectTrackingFrame> getFramesList ()
Information corresponding to all frames where this object track appears.
repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2;
Returns
getFramesOrBuilder(int index)
public ObjectTrackingFrameOrBuilder getFramesOrBuilder ( int index )
Information corresponding to all frames where this object track appears.
repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2;
Parameter
Returns
getFramesOrBuilderList()
public List <? extends ObjectTrackingFrameOrBuilder > getFramesOrBuilderList ()
Information corresponding to all frames where this object track appears.
repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2;
Returns
Type Description List <? extends com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrameOrBuilder >
getParserForType()
public Parser<ObjectTrackingAnnotation> getParserForType ()
Returns
Overrides
getSegment()
public VideoSegment getSegment ()
Non-streaming batch mode ONLY.
Each object track corresponds to one video segment where it appears.
.google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3;
Returns
getSegmentOrBuilder()
public VideoSegmentOrBuilder getSegmentOrBuilder ()
Non-streaming batch mode ONLY.
Each object track corresponds to one video segment where it appears.
.google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3;
Returns
getSerializedSize()
public int getSerializedSize ()
Returns
Overrides
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
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
hasEntity()
public boolean hasEntity ()
Entity to specify the object category that this track is labeled as.
.google.cloud.videointelligence.v1p2beta1.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.v1p2beta1.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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
newBuilderForType()
public ObjectTrackingAnnotation . Builder newBuilderForType ()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ObjectTrackingAnnotation . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
toBuilder()
public ObjectTrackingAnnotation . Builder toBuilder ()
Returns
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]