Class VideoObjectTrackingAnnotation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VideoObjectTrackingAnnotation.Builder>
com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder
All Implemented Interfaces:
VideoObjectTrackingAnnotationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
VideoObjectTrackingAnnotation

public static final class VideoObjectTrackingAnnotation.Builder extends com.google.protobuf.GeneratedMessage.Builder<VideoObjectTrackingAnnotation.Builder> implements VideoObjectTrackingAnnotationOrBuilder
 Video object tracking annotation.
 
Protobuf type google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<VideoObjectTrackingAnnotation.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<VideoObjectTrackingAnnotation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<VideoObjectTrackingAnnotation.Builder>
    • getDefaultInstanceForType

      public VideoObjectTrackingAnnotation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public VideoObjectTrackingAnnotation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public VideoObjectTrackingAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<VideoObjectTrackingAnnotation.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<VideoObjectTrackingAnnotation.Builder>
    • mergeFrom

      public VideoObjectTrackingAnnotation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<VideoObjectTrackingAnnotation.Builder>
      Throws:
      IOException
    • hasAnnotationSpec

      public boolean hasAnnotationSpec()
       Label of the object tracked in this annotation.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
      Specified by:
      hasAnnotationSpec in interface VideoObjectTrackingAnnotationOrBuilder
      Returns:
      Whether the annotationSpec field is set.
    • getAnnotationSpec

      public AnnotationSpec getAnnotationSpec()
       Label of the object tracked in this annotation.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
      Specified by:
      getAnnotationSpec in interface VideoObjectTrackingAnnotationOrBuilder
      Returns:
      The annotationSpec.
    • setAnnotationSpec

      public VideoObjectTrackingAnnotation.Builder setAnnotationSpec(AnnotationSpec value)
       Label of the object tracked in this annotation.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    • setAnnotationSpec

      public VideoObjectTrackingAnnotation.Builder setAnnotationSpec(AnnotationSpec.Builder builderForValue)
       Label of the object tracked in this annotation.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    • mergeAnnotationSpec

      public VideoObjectTrackingAnnotation.Builder mergeAnnotationSpec(AnnotationSpec value)
       Label of the object tracked in this annotation.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    • clearAnnotationSpec

      public VideoObjectTrackingAnnotation.Builder clearAnnotationSpec()
       Label of the object tracked in this annotation.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    • getAnnotationSpecBuilder

      public AnnotationSpec.Builder getAnnotationSpecBuilder()
       Label of the object tracked in this annotation.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    • getAnnotationSpecOrBuilder

      public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()
       Label of the object tracked in this annotation.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
      Specified by:
      getAnnotationSpecOrBuilder in interface VideoObjectTrackingAnnotationOrBuilder
    • hasTimeSegment

      public boolean hasTimeSegment()
       The time segment of the video to which object tracking applies.
       
      .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;
      Specified by:
      hasTimeSegment in interface VideoObjectTrackingAnnotationOrBuilder
      Returns:
      Whether the timeSegment field is set.
    • getTimeSegment

      public TimeSegment getTimeSegment()
       The time segment of the video to which object tracking applies.
       
      .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;
      Specified by:
      getTimeSegment in interface VideoObjectTrackingAnnotationOrBuilder
      Returns:
      The timeSegment.
    • setTimeSegment

      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;
    • setTimeSegment

      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;
    • mergeTimeSegment

      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;
    • clearTimeSegment

      public VideoObjectTrackingAnnotation.Builder clearTimeSegment()
       The time segment of the video to which object tracking applies.
       
      .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;
    • getTimeSegmentBuilder

      public TimeSegment.Builder getTimeSegmentBuilder()
       The time segment of the video to which object tracking applies.
       
      .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;
    • getTimeSegmentOrBuilder

      public TimeSegmentOrBuilder getTimeSegmentOrBuilder()
       The time segment of the video to which object tracking applies.
       
      .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;
      Specified by:
      getTimeSegmentOrBuilder in interface VideoObjectTrackingAnnotationOrBuilder
    • getObjectTrackingFramesList

      public List<ObjectTrackingFrame> getObjectTrackingFramesList()
       The list of frames where this object track appears.
       
      repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;
      Specified by:
      getObjectTrackingFramesList in interface VideoObjectTrackingAnnotationOrBuilder
    • getObjectTrackingFramesCount

      public int getObjectTrackingFramesCount()
       The list of frames where this object track appears.
       
      repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;
      Specified by:
      getObjectTrackingFramesCount in interface VideoObjectTrackingAnnotationOrBuilder
    • getObjectTrackingFrames

      public ObjectTrackingFrame getObjectTrackingFrames(int index)
       The list of frames where this object track appears.
       
      repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;
      Specified by:
      getObjectTrackingFrames in interface VideoObjectTrackingAnnotationOrBuilder
    • setObjectTrackingFrames

      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;
    • setObjectTrackingFrames

      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;
    • addObjectTrackingFrames

      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;
    • addObjectTrackingFrames

      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;
    • addObjectTrackingFrames

      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;
    • addObjectTrackingFrames

      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;
    • addAllObjectTrackingFrames

      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;
    • clearObjectTrackingFrames

      public VideoObjectTrackingAnnotation.Builder clearObjectTrackingFrames()
       The list of frames where this object track appears.
       
      repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;
    • removeObjectTrackingFrames

      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;
    • getObjectTrackingFramesBuilder

      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;
    • getObjectTrackingFramesOrBuilder

      public ObjectTrackingFrameOrBuilder getObjectTrackingFramesOrBuilder(int index)
       The list of frames where this object track appears.
       
      repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;
      Specified by:
      getObjectTrackingFramesOrBuilder in interface VideoObjectTrackingAnnotationOrBuilder
    • 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;
      Specified by:
      getObjectTrackingFramesOrBuilderList in interface VideoObjectTrackingAnnotationOrBuilder
    • addObjectTrackingFramesBuilder

      public ObjectTrackingFrame.Builder addObjectTrackingFramesBuilder()
       The list of frames where this object track appears.
       
      repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3;
    • addObjectTrackingFramesBuilder

      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;
    • 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;