public static final class ObjectTrackingAnnotation.Builder extends GeneratedMessageV3.Builder<ObjectTrackingAnnotation.Builder> implements ObjectTrackingAnnotationOrBuilder
Annotations corresponding to one tracked object.
Protobuf type google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllFrames(Iterable<? extends ObjectTrackingFrame> values)
public ObjectTrackingAnnotation.Builder addAllFrames(Iterable<? extends ObjectTrackingFrame> values)
Information corresponding to all frames where this object track appears.
repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame>
|
Returns
addFrames(ObjectTrackingFrame value)
public ObjectTrackingAnnotation.Builder addFrames(ObjectTrackingFrame value)
Information corresponding to all frames where this object track appears.
repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2;
Parameter
Returns
addFrames(ObjectTrackingFrame.Builder builderForValue)
public ObjectTrackingAnnotation.Builder addFrames(ObjectTrackingFrame.Builder builderForValue)
Information corresponding to all frames where this object track appears.
repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2;
Parameter
Returns
addFrames(int index, ObjectTrackingFrame value)
public ObjectTrackingAnnotation.Builder addFrames(int index, ObjectTrackingFrame value)
Information corresponding to all frames where this object track appears.
repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2;
Parameters
Returns
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.
repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2;
Parameters
Returns
addFramesBuilder()
public ObjectTrackingFrame.Builder addFramesBuilder()
Information corresponding to all frames where this object track appears.
repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2;
Returns
addFramesBuilder(int index)
public ObjectTrackingFrame.Builder addFramesBuilder(int index)
Information corresponding to all frames where this object track appears.
repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ObjectTrackingAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ObjectTrackingAnnotation build()
Returns
buildPartial()
public ObjectTrackingAnnotation buildPartial()
Returns
clear()
public ObjectTrackingAnnotation.Builder clear()
Returns
Overrides
clearConfidence()
public ObjectTrackingAnnotation.Builder clearConfidence()
Object category's labeling confidence of this track.
float confidence = 4;
Returns
clearEntity()
public ObjectTrackingAnnotation.Builder clearEntity()
Entity to specify the object category that this track is labeled as.
.google.cloud.videointelligence.v1p2beta1.Entity entity = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public ObjectTrackingAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearFrames()
public ObjectTrackingAnnotation.Builder clearFrames()
Information corresponding to all frames where this object track appears.
repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ObjectTrackingAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSegment()
public ObjectTrackingAnnotation.Builder clearSegment()
Each object track corresponds to one video segment where it appears.
.google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3;
Returns
clone()
public ObjectTrackingAnnotation.Builder clone()
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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.
|
getEntityBuilder()
public Entity.Builder getEntityBuilder()
Entity to specify the object category that this track is labeled as.
.google.cloud.videointelligence.v1p2beta1.Entity entity = 1;
Returns
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
getFramesBuilder(int index)
public ObjectTrackingFrame.Builder getFramesBuilder(int index)
Information corresponding to all frames where this object track appears.
repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2;
Parameter
Returns
getFramesBuilderList()
public List<ObjectTrackingFrame.Builder> getFramesBuilderList()
Information corresponding to all frames where this object track appears.
repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2;
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> | |
getSegment()
public VideoSegment getSegment()
Each object track corresponds to one video segment where it appears.
.google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3;
Returns
getSegmentBuilder()
public VideoSegment.Builder getSegmentBuilder()
Each object track corresponds to one video segment where it appears.
.google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3;
Returns
getSegmentOrBuilder()
public VideoSegmentOrBuilder getSegmentOrBuilder()
Each object track corresponds to one video segment where it appears.
.google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3;
Returns
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()
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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.v1p2beta1.Entity entity = 1;
Parameter
Returns
mergeFrom(ObjectTrackingAnnotation other)
public ObjectTrackingAnnotation.Builder mergeFrom(ObjectTrackingAnnotation other)
Parameter
Returns
public ObjectTrackingAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ObjectTrackingAnnotation.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeSegment(VideoSegment value)
public ObjectTrackingAnnotation.Builder mergeSegment(VideoSegment value)
Each object track corresponds to one video segment where it appears.
.google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ObjectTrackingAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeFrames(int index)
public ObjectTrackingAnnotation.Builder removeFrames(int index)
Information corresponding to all frames where this object track appears.
repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2;
Parameter
Returns
setConfidence(float value)
public ObjectTrackingAnnotation.Builder setConfidence(float value)
Object category's labeling confidence of this track.
float confidence = 4;
Parameter
Name | Description |
value | float
The confidence to set.
|
Returns
setEntity(Entity value)
public ObjectTrackingAnnotation.Builder setEntity(Entity value)
Entity to specify the object category that this track is labeled as.
.google.cloud.videointelligence.v1p2beta1.Entity entity = 1;
Parameter
Returns
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.v1p2beta1.Entity entity = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ObjectTrackingAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setFrames(int index, ObjectTrackingFrame value)
public ObjectTrackingAnnotation.Builder setFrames(int index, ObjectTrackingFrame value)
Information corresponding to all frames where this object track appears.
repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2;
Parameters
Returns
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.
repeated .google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame frames = 2;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ObjectTrackingAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSegment(VideoSegment value)
public ObjectTrackingAnnotation.Builder setSegment(VideoSegment value)
Each object track corresponds to one video segment where it appears.
.google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3;
Parameter
Returns
setSegment(VideoSegment.Builder builderForValue)
public ObjectTrackingAnnotation.Builder setSegment(VideoSegment.Builder builderForValue)
Each object track corresponds to one video segment where it appears.
.google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 3;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ObjectTrackingAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides