Class VideoContext.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VideoContext.Builder>
com.google.cloud.videointelligence.v1beta2.VideoContext.Builder
All Implemented Interfaces:
VideoContextOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
VideoContext

public static final class VideoContext.Builder extends com.google.protobuf.GeneratedMessage.Builder<VideoContext.Builder> implements VideoContextOrBuilder
 Video context and/or feature-specific parameters.
 
Protobuf type google.cloud.videointelligence.v1beta2.VideoContext
  • 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<VideoContext.Builder>
    • clear

      public VideoContext.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<VideoContext.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<VideoContext.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public VideoContext.Builder mergeFrom(VideoContext other)
    • isInitialized

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

      public VideoContext.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<VideoContext.Builder>
      Throws:
      IOException
    • getSegmentsList

      public List<VideoSegment> getSegmentsList()
       Video segments to annotate. The segments may overlap and are not required
       to be contiguous or span the whole video. If unspecified, each video is
       treated as a single segment.
       
      repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;
      Specified by:
      getSegmentsList in interface VideoContextOrBuilder
    • getSegmentsCount

      public int getSegmentsCount()
       Video segments to annotate. The segments may overlap and are not required
       to be contiguous or span the whole video. If unspecified, each video is
       treated as a single segment.
       
      repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;
      Specified by:
      getSegmentsCount in interface VideoContextOrBuilder
    • getSegments

      public VideoSegment getSegments(int index)
       Video segments to annotate. The segments may overlap and are not required
       to be contiguous or span the whole video. If unspecified, each video is
       treated as a single segment.
       
      repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;
      Specified by:
      getSegments in interface VideoContextOrBuilder
    • setSegments

      public VideoContext.Builder setSegments(int index, VideoSegment value)
       Video segments to annotate. The segments may overlap and are not required
       to be contiguous or span the whole video. If unspecified, each video is
       treated as a single segment.
       
      repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;
    • setSegments

      public VideoContext.Builder setSegments(int index, VideoSegment.Builder builderForValue)
       Video segments to annotate. The segments may overlap and are not required
       to be contiguous or span the whole video. If unspecified, each video is
       treated as a single segment.
       
      repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;
    • addSegments

      public VideoContext.Builder addSegments(VideoSegment value)
       Video segments to annotate. The segments may overlap and are not required
       to be contiguous or span the whole video. If unspecified, each video is
       treated as a single segment.
       
      repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;
    • addSegments

      public VideoContext.Builder addSegments(int index, VideoSegment value)
       Video segments to annotate. The segments may overlap and are not required
       to be contiguous or span the whole video. If unspecified, each video is
       treated as a single segment.
       
      repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;
    • addSegments

      public VideoContext.Builder addSegments(VideoSegment.Builder builderForValue)
       Video segments to annotate. The segments may overlap and are not required
       to be contiguous or span the whole video. If unspecified, each video is
       treated as a single segment.
       
      repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;
    • addSegments

      public VideoContext.Builder addSegments(int index, VideoSegment.Builder builderForValue)
       Video segments to annotate. The segments may overlap and are not required
       to be contiguous or span the whole video. If unspecified, each video is
       treated as a single segment.
       
      repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;
    • addAllSegments

      public VideoContext.Builder addAllSegments(Iterable<? extends VideoSegment> values)
       Video segments to annotate. The segments may overlap and are not required
       to be contiguous or span the whole video. If unspecified, each video is
       treated as a single segment.
       
      repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;
    • clearSegments

      public VideoContext.Builder clearSegments()
       Video segments to annotate. The segments may overlap and are not required
       to be contiguous or span the whole video. If unspecified, each video is
       treated as a single segment.
       
      repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;
    • removeSegments

      public VideoContext.Builder removeSegments(int index)
       Video segments to annotate. The segments may overlap and are not required
       to be contiguous or span the whole video. If unspecified, each video is
       treated as a single segment.
       
      repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;
    • getSegmentsBuilder

      public VideoSegment.Builder getSegmentsBuilder(int index)
       Video segments to annotate. The segments may overlap and are not required
       to be contiguous or span the whole video. If unspecified, each video is
       treated as a single segment.
       
      repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;
    • getSegmentsOrBuilder

      public VideoSegmentOrBuilder getSegmentsOrBuilder(int index)
       Video segments to annotate. The segments may overlap and are not required
       to be contiguous or span the whole video. If unspecified, each video is
       treated as a single segment.
       
      repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;
      Specified by:
      getSegmentsOrBuilder in interface VideoContextOrBuilder
    • getSegmentsOrBuilderList

      public List<? extends VideoSegmentOrBuilder> getSegmentsOrBuilderList()
       Video segments to annotate. The segments may overlap and are not required
       to be contiguous or span the whole video. If unspecified, each video is
       treated as a single segment.
       
      repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;
      Specified by:
      getSegmentsOrBuilderList in interface VideoContextOrBuilder
    • addSegmentsBuilder

      public VideoSegment.Builder addSegmentsBuilder()
       Video segments to annotate. The segments may overlap and are not required
       to be contiguous or span the whole video. If unspecified, each video is
       treated as a single segment.
       
      repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;
    • addSegmentsBuilder

      public VideoSegment.Builder addSegmentsBuilder(int index)
       Video segments to annotate. The segments may overlap and are not required
       to be contiguous or span the whole video. If unspecified, each video is
       treated as a single segment.
       
      repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;
    • getSegmentsBuilderList

      public List<VideoSegment.Builder> getSegmentsBuilderList()
       Video segments to annotate. The segments may overlap and are not required
       to be contiguous or span the whole video. If unspecified, each video is
       treated as a single segment.
       
      repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;
    • hasLabelDetectionConfig

      public boolean hasLabelDetectionConfig()
       Config for LABEL_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2;
      Specified by:
      hasLabelDetectionConfig in interface VideoContextOrBuilder
      Returns:
      Whether the labelDetectionConfig field is set.
    • getLabelDetectionConfig

      public LabelDetectionConfig getLabelDetectionConfig()
       Config for LABEL_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2;
      Specified by:
      getLabelDetectionConfig in interface VideoContextOrBuilder
      Returns:
      The labelDetectionConfig.
    • setLabelDetectionConfig

      public VideoContext.Builder setLabelDetectionConfig(LabelDetectionConfig value)
       Config for LABEL_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2;
    • setLabelDetectionConfig

      public VideoContext.Builder setLabelDetectionConfig(LabelDetectionConfig.Builder builderForValue)
       Config for LABEL_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2;
    • mergeLabelDetectionConfig

      public VideoContext.Builder mergeLabelDetectionConfig(LabelDetectionConfig value)
       Config for LABEL_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2;
    • clearLabelDetectionConfig

      public VideoContext.Builder clearLabelDetectionConfig()
       Config for LABEL_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2;
    • getLabelDetectionConfigBuilder

      public LabelDetectionConfig.Builder getLabelDetectionConfigBuilder()
       Config for LABEL_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2;
    • getLabelDetectionConfigOrBuilder

      public LabelDetectionConfigOrBuilder getLabelDetectionConfigOrBuilder()
       Config for LABEL_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2;
      Specified by:
      getLabelDetectionConfigOrBuilder in interface VideoContextOrBuilder
    • hasShotChangeDetectionConfig

      public boolean hasShotChangeDetectionConfig()
       Config for SHOT_CHANGE_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3;
      Specified by:
      hasShotChangeDetectionConfig in interface VideoContextOrBuilder
      Returns:
      Whether the shotChangeDetectionConfig field is set.
    • getShotChangeDetectionConfig

      public ShotChangeDetectionConfig getShotChangeDetectionConfig()
       Config for SHOT_CHANGE_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3;
      Specified by:
      getShotChangeDetectionConfig in interface VideoContextOrBuilder
      Returns:
      The shotChangeDetectionConfig.
    • setShotChangeDetectionConfig

      public VideoContext.Builder setShotChangeDetectionConfig(ShotChangeDetectionConfig value)
       Config for SHOT_CHANGE_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3;
    • setShotChangeDetectionConfig

      public VideoContext.Builder setShotChangeDetectionConfig(ShotChangeDetectionConfig.Builder builderForValue)
       Config for SHOT_CHANGE_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3;
    • mergeShotChangeDetectionConfig

      public VideoContext.Builder mergeShotChangeDetectionConfig(ShotChangeDetectionConfig value)
       Config for SHOT_CHANGE_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3;
    • clearShotChangeDetectionConfig

      public VideoContext.Builder clearShotChangeDetectionConfig()
       Config for SHOT_CHANGE_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3;
    • getShotChangeDetectionConfigBuilder

      public ShotChangeDetectionConfig.Builder getShotChangeDetectionConfigBuilder()
       Config for SHOT_CHANGE_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3;
    • getShotChangeDetectionConfigOrBuilder

      public ShotChangeDetectionConfigOrBuilder getShotChangeDetectionConfigOrBuilder()
       Config for SHOT_CHANGE_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3;
      Specified by:
      getShotChangeDetectionConfigOrBuilder in interface VideoContextOrBuilder
    • hasExplicitContentDetectionConfig

      public boolean hasExplicitContentDetectionConfig()
       Config for EXPLICIT_CONTENT_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
      Specified by:
      hasExplicitContentDetectionConfig in interface VideoContextOrBuilder
      Returns:
      Whether the explicitContentDetectionConfig field is set.
    • getExplicitContentDetectionConfig

      public ExplicitContentDetectionConfig getExplicitContentDetectionConfig()
       Config for EXPLICIT_CONTENT_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
      Specified by:
      getExplicitContentDetectionConfig in interface VideoContextOrBuilder
      Returns:
      The explicitContentDetectionConfig.
    • setExplicitContentDetectionConfig

      public VideoContext.Builder setExplicitContentDetectionConfig(ExplicitContentDetectionConfig value)
       Config for EXPLICIT_CONTENT_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
    • setExplicitContentDetectionConfig

      public VideoContext.Builder setExplicitContentDetectionConfig(ExplicitContentDetectionConfig.Builder builderForValue)
       Config for EXPLICIT_CONTENT_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
    • mergeExplicitContentDetectionConfig

      public VideoContext.Builder mergeExplicitContentDetectionConfig(ExplicitContentDetectionConfig value)
       Config for EXPLICIT_CONTENT_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
    • clearExplicitContentDetectionConfig

      public VideoContext.Builder clearExplicitContentDetectionConfig()
       Config for EXPLICIT_CONTENT_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
    • getExplicitContentDetectionConfigBuilder

      public ExplicitContentDetectionConfig.Builder getExplicitContentDetectionConfigBuilder()
       Config for EXPLICIT_CONTENT_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
    • getExplicitContentDetectionConfigOrBuilder

      public ExplicitContentDetectionConfigOrBuilder getExplicitContentDetectionConfigOrBuilder()
       Config for EXPLICIT_CONTENT_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
      Specified by:
      getExplicitContentDetectionConfigOrBuilder in interface VideoContextOrBuilder
    • hasFaceDetectionConfig

      public boolean hasFaceDetectionConfig()
       Config for FACE_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5;
      Specified by:
      hasFaceDetectionConfig in interface VideoContextOrBuilder
      Returns:
      Whether the faceDetectionConfig field is set.
    • getFaceDetectionConfig

      public FaceDetectionConfig getFaceDetectionConfig()
       Config for FACE_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5;
      Specified by:
      getFaceDetectionConfig in interface VideoContextOrBuilder
      Returns:
      The faceDetectionConfig.
    • setFaceDetectionConfig

      public VideoContext.Builder setFaceDetectionConfig(FaceDetectionConfig value)
       Config for FACE_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5;
    • setFaceDetectionConfig

      public VideoContext.Builder setFaceDetectionConfig(FaceDetectionConfig.Builder builderForValue)
       Config for FACE_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5;
    • mergeFaceDetectionConfig

      public VideoContext.Builder mergeFaceDetectionConfig(FaceDetectionConfig value)
       Config for FACE_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5;
    • clearFaceDetectionConfig

      public VideoContext.Builder clearFaceDetectionConfig()
       Config for FACE_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5;
    • getFaceDetectionConfigBuilder

      public FaceDetectionConfig.Builder getFaceDetectionConfigBuilder()
       Config for FACE_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5;
    • getFaceDetectionConfigOrBuilder

      public FaceDetectionConfigOrBuilder getFaceDetectionConfigOrBuilder()
       Config for FACE_DETECTION.
       
      .google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5;
      Specified by:
      getFaceDetectionConfigOrBuilder in interface VideoContextOrBuilder