Class VideoObjectTrackingAnnotation.Builder (0.159.0)

public static final class VideoObjectTrackingAnnotation.Builder extends GeneratedMessageV3.Builder<VideoObjectTrackingAnnotation.Builder> implements VideoObjectTrackingAnnotationOrBuilder

Video object tracking annotation.

Protobuf type google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation

Static Methods

getDescriptor()

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

Methods

addAllObjectTrackingFrames(Iterable<? extends ObjectTrackingFrame> values)

public VideoObjectTrackingAnnotation.Builder addAllObjectTrackingFrames(Iterable<? extends ObjectTrackingFrame> values)

The list of frames where this object track appears.

repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame>
Returns
TypeDescription
VideoObjectTrackingAnnotation.Builder

addObjectTrackingFrames(ObjectTrackingFrame value)

public VideoObjectTrackingAnnotation.Builder addObjectTrackingFrames(ObjectTrackingFrame value)

The list of frames where this object track appears.

repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;

Parameter
NameDescription
valueObjectTrackingFrame
Returns
TypeDescription
VideoObjectTrackingAnnotation.Builder

addObjectTrackingFrames(ObjectTrackingFrame.Builder builderForValue)

public VideoObjectTrackingAnnotation.Builder addObjectTrackingFrames(ObjectTrackingFrame.Builder builderForValue)

The list of frames where this object track appears.

repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;

Parameter
NameDescription
builderForValueObjectTrackingFrame.Builder
Returns
TypeDescription
VideoObjectTrackingAnnotation.Builder

addObjectTrackingFrames(int index, ObjectTrackingFrame value)

public VideoObjectTrackingAnnotation.Builder addObjectTrackingFrames(int index, ObjectTrackingFrame value)

The list of frames where this object track appears.

repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;

Parameters
NameDescription
indexint
valueObjectTrackingFrame
Returns
TypeDescription
VideoObjectTrackingAnnotation.Builder

addObjectTrackingFrames(int index, ObjectTrackingFrame.Builder builderForValue)

public VideoObjectTrackingAnnotation.Builder addObjectTrackingFrames(int index, ObjectTrackingFrame.Builder builderForValue)

The list of frames where this object track appears.

repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;

Parameters
NameDescription
indexint
builderForValueObjectTrackingFrame.Builder
Returns
TypeDescription
VideoObjectTrackingAnnotation.Builder

addObjectTrackingFramesBuilder()

public ObjectTrackingFrame.Builder addObjectTrackingFramesBuilder()

The list of frames where this object track appears.

repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;

Returns
TypeDescription
ObjectTrackingFrame.Builder

addObjectTrackingFramesBuilder(int index)

public ObjectTrackingFrame.Builder addObjectTrackingFramesBuilder(int index)

The list of frames where this object track appears.

repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ObjectTrackingFrame.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VideoObjectTrackingAnnotation build()
Returns
TypeDescription
VideoObjectTrackingAnnotation

buildPartial()

public VideoObjectTrackingAnnotation buildPartial()
Returns
TypeDescription
VideoObjectTrackingAnnotation

clear()

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

clearAnnotationSpec()

public VideoObjectTrackingAnnotation.Builder clearAnnotationSpec()

Label of the object tracked in this annotation.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
TypeDescription
VideoObjectTrackingAnnotation.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearObjectTrackingFrames()

public VideoObjectTrackingAnnotation.Builder clearObjectTrackingFrames()

The list of frames where this object track appears.

repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;

Returns
TypeDescription
VideoObjectTrackingAnnotation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTimeSegment()

public VideoObjectTrackingAnnotation.Builder clearTimeSegment()

The time segment of the video to which object tracking applies.

.google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;

Returns
TypeDescription
VideoObjectTrackingAnnotation.Builder

clone()

public VideoObjectTrackingAnnotation.Builder clone()
Returns
TypeDescription
VideoObjectTrackingAnnotation.Builder
Overrides

getAnnotationSpec()

public AnnotationSpec getAnnotationSpec()

Label of the object tracked in this annotation.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
TypeDescription
AnnotationSpec

The annotationSpec.

getAnnotationSpecBuilder()

public AnnotationSpec.Builder getAnnotationSpecBuilder()

Label of the object tracked in this annotation.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
TypeDescription
AnnotationSpec.Builder

getAnnotationSpecOrBuilder()

public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()

Label of the object tracked in this annotation.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
TypeDescription
AnnotationSpecOrBuilder

getDefaultInstanceForType()

public VideoObjectTrackingAnnotation getDefaultInstanceForType()
Returns
TypeDescription
VideoObjectTrackingAnnotation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getObjectTrackingFrames(int index)

public ObjectTrackingFrame getObjectTrackingFrames(int index)

The list of frames where this object track appears.

repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ObjectTrackingFrame

getObjectTrackingFramesBuilder(int index)

public ObjectTrackingFrame.Builder getObjectTrackingFramesBuilder(int index)

The list of frames where this object track appears.

repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ObjectTrackingFrame.Builder

getObjectTrackingFramesBuilderList()

public List<ObjectTrackingFrame.Builder> getObjectTrackingFramesBuilderList()

The list of frames where this object track appears.

repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;

Returns
TypeDescription
List<Builder>

getObjectTrackingFramesCount()

public int getObjectTrackingFramesCount()

The list of frames where this object track appears.

repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;

Returns
TypeDescription
int

getObjectTrackingFramesList()

public List<ObjectTrackingFrame> getObjectTrackingFramesList()

The list of frames where this object track appears.

repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;

Returns
TypeDescription
List<ObjectTrackingFrame>

getObjectTrackingFramesOrBuilder(int index)

public ObjectTrackingFrameOrBuilder getObjectTrackingFramesOrBuilder(int index)

The list of frames where this object track appears.

repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ObjectTrackingFrameOrBuilder

getObjectTrackingFramesOrBuilderList()

public List<? extends ObjectTrackingFrameOrBuilder> getObjectTrackingFramesOrBuilderList()

The list of frames where this object track appears.

repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;

Returns
TypeDescription
List<? extends com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder>

getTimeSegment()

public TimeSegment getTimeSegment()

The time segment of the video to which object tracking applies.

.google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;

Returns
TypeDescription
TimeSegment

The timeSegment.

getTimeSegmentBuilder()

public TimeSegment.Builder getTimeSegmentBuilder()

The time segment of the video to which object tracking applies.

.google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;

Returns
TypeDescription
TimeSegment.Builder

getTimeSegmentOrBuilder()

public TimeSegmentOrBuilder getTimeSegmentOrBuilder()

The time segment of the video to which object tracking applies.

.google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;

Returns
TypeDescription
TimeSegmentOrBuilder

hasAnnotationSpec()

public boolean hasAnnotationSpec()

Label of the object tracked in this annotation.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
TypeDescription
boolean

Whether the annotationSpec field is set.

hasTimeSegment()

public boolean hasTimeSegment()

The time segment of the video to which object tracking applies.

.google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;

Returns
TypeDescription
boolean

Whether the timeSegment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAnnotationSpec(AnnotationSpec value)

public VideoObjectTrackingAnnotation.Builder mergeAnnotationSpec(AnnotationSpec value)

Label of the object tracked in this annotation.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Parameter
NameDescription
valueAnnotationSpec
Returns
TypeDescription
VideoObjectTrackingAnnotation.Builder

mergeFrom(VideoObjectTrackingAnnotation other)

public VideoObjectTrackingAnnotation.Builder mergeFrom(VideoObjectTrackingAnnotation other)
Parameter
NameDescription
otherVideoObjectTrackingAnnotation
Returns
TypeDescription
VideoObjectTrackingAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTimeSegment(TimeSegment value)

public VideoObjectTrackingAnnotation.Builder mergeTimeSegment(TimeSegment value)

The time segment of the video to which object tracking applies.

.google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;

Parameter
NameDescription
valueTimeSegment
Returns
TypeDescription
VideoObjectTrackingAnnotation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeObjectTrackingFrames(int index)

public VideoObjectTrackingAnnotation.Builder removeObjectTrackingFrames(int index)

The list of frames where this object track appears.

repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
VideoObjectTrackingAnnotation.Builder

setAnnotationSpec(AnnotationSpec value)

public VideoObjectTrackingAnnotation.Builder setAnnotationSpec(AnnotationSpec value)

Label of the object tracked in this annotation.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Parameter
NameDescription
valueAnnotationSpec
Returns
TypeDescription
VideoObjectTrackingAnnotation.Builder

setAnnotationSpec(AnnotationSpec.Builder builderForValue)

public VideoObjectTrackingAnnotation.Builder setAnnotationSpec(AnnotationSpec.Builder builderForValue)

Label of the object tracked in this annotation.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Parameter
NameDescription
builderForValueAnnotationSpec.Builder
Returns
TypeDescription
VideoObjectTrackingAnnotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setObjectTrackingFrames(int index, ObjectTrackingFrame value)

public VideoObjectTrackingAnnotation.Builder setObjectTrackingFrames(int index, ObjectTrackingFrame value)

The list of frames where this object track appears.

repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;

Parameters
NameDescription
indexint
valueObjectTrackingFrame
Returns
TypeDescription
VideoObjectTrackingAnnotation.Builder

setObjectTrackingFrames(int index, ObjectTrackingFrame.Builder builderForValue)

public VideoObjectTrackingAnnotation.Builder setObjectTrackingFrames(int index, ObjectTrackingFrame.Builder builderForValue)

The list of frames where this object track appears.

repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;

Parameters
NameDescription
indexint
builderForValueObjectTrackingFrame.Builder
Returns
TypeDescription
VideoObjectTrackingAnnotation.Builder

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

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

setTimeSegment(TimeSegment value)

public VideoObjectTrackingAnnotation.Builder setTimeSegment(TimeSegment value)

The time segment of the video to which object tracking applies.

.google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;

Parameter
NameDescription
valueTimeSegment
Returns
TypeDescription
VideoObjectTrackingAnnotation.Builder

setTimeSegment(TimeSegment.Builder builderForValue)

public VideoObjectTrackingAnnotation.Builder setTimeSegment(TimeSegment.Builder builderForValue)

The time segment of the video to which object tracking applies.

.google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;

Parameter
NameDescription
builderForValueTimeSegment.Builder
Returns
TypeDescription
VideoObjectTrackingAnnotation.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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