Class ObjectTrackingAnnotation.Builder (2.39.0)

public static final class ObjectTrackingAnnotation.Builder extends GeneratedMessageV3.Builder<ObjectTrackingAnnotation.Builder> implements ObjectTrackingAnnotationOrBuilder

Annotations corresponding to one tracked object.

Protobuf type google.cloud.videointelligence.v1p3beta1.ObjectTrackingAnnotation

Static Methods

getDescriptor()

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

Methods

addAllFrames(Iterable<? extends ObjectTrackingFrame> values)

public ObjectTrackingAnnotation.Builder addAllFrames(Iterable<? extends ObjectTrackingFrame> values)

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
valuesIterable<? extends com.google.cloud.videointelligence.v1p3beta1.ObjectTrackingFrame>
Returns
TypeDescription
ObjectTrackingAnnotation.Builder

addFrames(ObjectTrackingFrame value)

public ObjectTrackingAnnotation.Builder addFrames(ObjectTrackingFrame value)

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
valueObjectTrackingFrame
Returns
TypeDescription
ObjectTrackingAnnotation.Builder

addFrames(ObjectTrackingFrame.Builder builderForValue)

public ObjectTrackingAnnotation.Builder addFrames(ObjectTrackingFrame.Builder builderForValue)

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
builderForValueObjectTrackingFrame.Builder
Returns
TypeDescription
ObjectTrackingAnnotation.Builder

addFrames(int index, ObjectTrackingFrame value)

public ObjectTrackingAnnotation.Builder addFrames(int index, ObjectTrackingFrame value)

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;

Parameters
NameDescription
indexint
valueObjectTrackingFrame
Returns
TypeDescription
ObjectTrackingAnnotation.Builder

addFrames(int index, ObjectTrackingFrame.Builder builderForValue)

public ObjectTrackingAnnotation.Builder addFrames(int index, ObjectTrackingFrame.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueObjectTrackingFrame.Builder
Returns
TypeDescription
ObjectTrackingAnnotation.Builder

addFramesBuilder()

public ObjectTrackingFrame.Builder addFramesBuilder()

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
ObjectTrackingFrame.Builder

addFramesBuilder(int index)

public ObjectTrackingFrame.Builder addFramesBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ObjectTrackingAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ObjectTrackingAnnotation.Builder
Overrides

build()

public ObjectTrackingAnnotation build()
Returns
TypeDescription
ObjectTrackingAnnotation

buildPartial()

public ObjectTrackingAnnotation buildPartial()
Returns
TypeDescription
ObjectTrackingAnnotation

clear()

public ObjectTrackingAnnotation.Builder clear()
Returns
TypeDescription
ObjectTrackingAnnotation.Builder
Overrides

clearConfidence()

public ObjectTrackingAnnotation.Builder clearConfidence()

Object category's labeling confidence of this track.

float confidence = 4;

Returns
TypeDescription
ObjectTrackingAnnotation.Builder

This builder for chaining.

clearEntity()

public ObjectTrackingAnnotation.Builder clearEntity()

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

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

Returns
TypeDescription
ObjectTrackingAnnotation.Builder

clearField(Descriptors.FieldDescriptor field)

public ObjectTrackingAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ObjectTrackingAnnotation.Builder
Overrides

clearFrames()

public ObjectTrackingAnnotation.Builder clearFrames()

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
ObjectTrackingAnnotation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ObjectTrackingAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ObjectTrackingAnnotation.Builder
Overrides

clearSegment()

public ObjectTrackingAnnotation.Builder clearSegment()

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
ObjectTrackingAnnotation.Builder

clearTrackId()

public ObjectTrackingAnnotation.Builder clearTrackId()

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
ObjectTrackingAnnotation.Builder

This builder for chaining.

clearTrackInfo()

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

clone()

public ObjectTrackingAnnotation.Builder clone()
Returns
TypeDescription
ObjectTrackingAnnotation.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getEntityBuilder()

public Entity.Builder getEntityBuilder()

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

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

Returns
TypeDescription
Entity.Builder

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

getFramesBuilder(int index)

public ObjectTrackingFrame.Builder getFramesBuilder(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.Builder

getFramesBuilderList()

public List<ObjectTrackingFrame.Builder> getFramesBuilderList()

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<Builder>

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>

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.

getSegmentBuilder()

public VideoSegment.Builder getSegmentBuilder()

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.Builder

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

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEntity(Entity value)

public ObjectTrackingAnnotation.Builder mergeEntity(Entity value)

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

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

Parameter
NameDescription
valueEntity
Returns
TypeDescription
ObjectTrackingAnnotation.Builder

mergeFrom(ObjectTrackingAnnotation other)

public ObjectTrackingAnnotation.Builder mergeFrom(ObjectTrackingAnnotation other)
Parameter
NameDescription
otherObjectTrackingAnnotation
Returns
TypeDescription
ObjectTrackingAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ObjectTrackingAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ObjectTrackingAnnotation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ObjectTrackingAnnotation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ObjectTrackingAnnotation.Builder
Overrides

mergeSegment(VideoSegment value)

public ObjectTrackingAnnotation.Builder mergeSegment(VideoSegment value)

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

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

Parameter
NameDescription
valueVideoSegment
Returns
TypeDescription
ObjectTrackingAnnotation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ObjectTrackingAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ObjectTrackingAnnotation.Builder
Overrides

removeFrames(int index)

public ObjectTrackingAnnotation.Builder removeFrames(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
ObjectTrackingAnnotation.Builder

setConfidence(float value)

public ObjectTrackingAnnotation.Builder setConfidence(float value)

Object category's labeling confidence of this track.

float confidence = 4;

Parameter
NameDescription
valuefloat

The confidence to set.

Returns
TypeDescription
ObjectTrackingAnnotation.Builder

This builder for chaining.

setEntity(Entity value)

public ObjectTrackingAnnotation.Builder setEntity(Entity value)

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

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

Parameter
NameDescription
valueEntity
Returns
TypeDescription
ObjectTrackingAnnotation.Builder

setEntity(Entity.Builder builderForValue)

public ObjectTrackingAnnotation.Builder setEntity(Entity.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueEntity.Builder
Returns
TypeDescription
ObjectTrackingAnnotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ObjectTrackingAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ObjectTrackingAnnotation.Builder
Overrides

setFrames(int index, ObjectTrackingFrame value)

public ObjectTrackingAnnotation.Builder setFrames(int index, ObjectTrackingFrame value)

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;

Parameters
NameDescription
indexint
valueObjectTrackingFrame
Returns
TypeDescription
ObjectTrackingAnnotation.Builder

setFrames(int index, ObjectTrackingFrame.Builder builderForValue)

public ObjectTrackingAnnotation.Builder setFrames(int index, ObjectTrackingFrame.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueObjectTrackingFrame.Builder
Returns
TypeDescription
ObjectTrackingAnnotation.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ObjectTrackingAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ObjectTrackingAnnotation.Builder
Overrides

setSegment(VideoSegment value)

public ObjectTrackingAnnotation.Builder setSegment(VideoSegment value)

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

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

Parameter
NameDescription
valueVideoSegment
Returns
TypeDescription
ObjectTrackingAnnotation.Builder

setSegment(VideoSegment.Builder builderForValue)

public ObjectTrackingAnnotation.Builder setSegment(VideoSegment.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueVideoSegment.Builder
Returns
TypeDescription
ObjectTrackingAnnotation.Builder

setTrackId(long value)

public ObjectTrackingAnnotation.Builder setTrackId(long value)

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;

Parameter
NameDescription
valuelong

The trackId to set.

Returns
TypeDescription
ObjectTrackingAnnotation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ObjectTrackingAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ObjectTrackingAnnotation.Builder
Overrides