Class VideoEventAnnotation.Builder

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

public static final class VideoEventAnnotation.Builder extends com.google.protobuf.GeneratedMessage.Builder<VideoEventAnnotation.Builder> implements VideoEventAnnotationOrBuilder
 Video event annotation.
 
Protobuf type google.cloud.datalabeling.v1beta1.VideoEventAnnotation
  • 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<VideoEventAnnotation.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<VideoEventAnnotation.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<VideoEventAnnotation.Builder>
    • getDefaultInstanceForType

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

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

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

      public VideoEventAnnotation.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<VideoEventAnnotation.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<VideoEventAnnotation.Builder>
    • mergeFrom

      public VideoEventAnnotation.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<VideoEventAnnotation.Builder>
      Throws:
      IOException
    • hasAnnotationSpec

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

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

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

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

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

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

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

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

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

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

      public VideoEventAnnotation.Builder setTimeSegment(TimeSegment value)
       The time segment of the video to which the annotation applies.
       
      .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;
    • setTimeSegment

      public VideoEventAnnotation.Builder setTimeSegment(TimeSegment.Builder builderForValue)
       The time segment of the video to which the annotation applies.
       
      .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;
    • mergeTimeSegment

      public VideoEventAnnotation.Builder mergeTimeSegment(TimeSegment value)
       The time segment of the video to which the annotation applies.
       
      .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;
    • clearTimeSegment

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

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

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