public final class ObjectTrackingAnnotation extends GeneratedMessageV3 implements ObjectTrackingAnnotationOrBuilder
Annotations corresponding to one tracked object.
Protobuf type google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ObjectTrackingAnnotation.Builder newBuilder()
newBuilder(ObjectTrackingAnnotation prototype)
public static ObjectTrackingAnnotation.Builder newBuilder(ObjectTrackingAnnotation prototype)
public static ObjectTrackingAnnotation parseDelimitedFrom(InputStream input)
public static ObjectTrackingAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ObjectTrackingAnnotation parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ObjectTrackingAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ObjectTrackingAnnotation parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ObjectTrackingAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ObjectTrackingAnnotation parseFrom(CodedInputStream input)
public static ObjectTrackingAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ObjectTrackingAnnotation parseFrom(InputStream input)
public static ObjectTrackingAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ObjectTrackingAnnotation parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ObjectTrackingAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ObjectTrackingAnnotation> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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()
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;
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
|
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;
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
|
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()
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;
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;
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
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()
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()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ObjectTrackingAnnotation.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ObjectTrackingAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public ObjectTrackingAnnotation.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides