Class 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.GeneratedMessageV3.Builder<VideoContext.Builder>
    implements VideoContextOrBuilder
     Video context and/or feature-specific parameters.
     
    Protobuf type google.cloud.videointelligence.v1beta2.VideoContext
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public VideoContext.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
      • setField

        public VideoContext.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
      • clearField

        public VideoContext.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
      • clearOneof

        public VideoContext.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
      • setRepeatedField

        public VideoContext.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     int index,
                                                     Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
      • addRepeatedField

        public VideoContext.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VideoContext.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • 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;
      • 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.
      • 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;
      • 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.
      • 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;
      • 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.
      • 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;
      • setUnknownFields

        public final VideoContext.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>
      • mergeUnknownFields

        public final VideoContext.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VideoContext.Builder>