Class VideoClassificationConfig.Builder

  • All Implemented Interfaces:
    VideoClassificationConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    VideoClassificationConfig

    public static final class VideoClassificationConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<VideoClassificationConfig.Builder>
    implements VideoClassificationConfigOrBuilder
     Config for video classification human labeling task.
     Currently two types of video classification are supported:
     1. Assign labels on the entire video.
     2. Split the video into multiple video clips based on camera shot, and
     assign labels on each video clip.
     
    Protobuf type google.cloud.datalabeling.v1beta1.VideoClassificationConfig
    • 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<VideoClassificationConfig.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<VideoClassificationConfig.Builder>
      • getDefaultInstanceForType

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

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

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

        public VideoClassificationConfig.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<VideoClassificationConfig.Builder>
      • isInitialized

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

        public VideoClassificationConfig.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<VideoClassificationConfig.Builder>
        Throws:
        IOException
      • getAnnotationSpecSetConfigsList

        public List<VideoClassificationConfig.AnnotationSpecSetConfig> getAnnotationSpecSetConfigsList()
         Required. The list of annotation spec set configs.
         Since watching a video clip takes much longer time than an image, we
         support label with multiple AnnotationSpecSet at the same time. Labels
         in each AnnotationSpecSet will be shown in a group to contributors.
         Contributors can select one or more (depending on whether to allow multi
         label) from each group.
         
        repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAnnotationSpecSetConfigsList in interface VideoClassificationConfigOrBuilder
      • getAnnotationSpecSetConfigsCount

        public int getAnnotationSpecSetConfigsCount()
         Required. The list of annotation spec set configs.
         Since watching a video clip takes much longer time than an image, we
         support label with multiple AnnotationSpecSet at the same time. Labels
         in each AnnotationSpecSet will be shown in a group to contributors.
         Contributors can select one or more (depending on whether to allow multi
         label) from each group.
         
        repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAnnotationSpecSetConfigsCount in interface VideoClassificationConfigOrBuilder
      • getAnnotationSpecSetConfigs

        public VideoClassificationConfig.AnnotationSpecSetConfig getAnnotationSpecSetConfigs​(int index)
         Required. The list of annotation spec set configs.
         Since watching a video clip takes much longer time than an image, we
         support label with multiple AnnotationSpecSet at the same time. Labels
         in each AnnotationSpecSet will be shown in a group to contributors.
         Contributors can select one or more (depending on whether to allow multi
         label) from each group.
         
        repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAnnotationSpecSetConfigs in interface VideoClassificationConfigOrBuilder
      • setAnnotationSpecSetConfigs

        public VideoClassificationConfig.Builder setAnnotationSpecSetConfigs​(int index,
                                                                             VideoClassificationConfig.AnnotationSpecSetConfig value)
         Required. The list of annotation spec set configs.
         Since watching a video clip takes much longer time than an image, we
         support label with multiple AnnotationSpecSet at the same time. Labels
         in each AnnotationSpecSet will be shown in a group to contributors.
         Contributors can select one or more (depending on whether to allow multi
         label) from each group.
         
        repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
      • setAnnotationSpecSetConfigs

        public VideoClassificationConfig.Builder setAnnotationSpecSetConfigs​(int index,
                                                                             VideoClassificationConfig.AnnotationSpecSetConfig.Builder builderForValue)
         Required. The list of annotation spec set configs.
         Since watching a video clip takes much longer time than an image, we
         support label with multiple AnnotationSpecSet at the same time. Labels
         in each AnnotationSpecSet will be shown in a group to contributors.
         Contributors can select one or more (depending on whether to allow multi
         label) from each group.
         
        repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
      • addAnnotationSpecSetConfigs

        public VideoClassificationConfig.Builder addAnnotationSpecSetConfigs​(VideoClassificationConfig.AnnotationSpecSetConfig value)
         Required. The list of annotation spec set configs.
         Since watching a video clip takes much longer time than an image, we
         support label with multiple AnnotationSpecSet at the same time. Labels
         in each AnnotationSpecSet will be shown in a group to contributors.
         Contributors can select one or more (depending on whether to allow multi
         label) from each group.
         
        repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
      • addAnnotationSpecSetConfigs

        public VideoClassificationConfig.Builder addAnnotationSpecSetConfigs​(int index,
                                                                             VideoClassificationConfig.AnnotationSpecSetConfig value)
         Required. The list of annotation spec set configs.
         Since watching a video clip takes much longer time than an image, we
         support label with multiple AnnotationSpecSet at the same time. Labels
         in each AnnotationSpecSet will be shown in a group to contributors.
         Contributors can select one or more (depending on whether to allow multi
         label) from each group.
         
        repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
      • addAnnotationSpecSetConfigs

        public VideoClassificationConfig.Builder addAnnotationSpecSetConfigs​(VideoClassificationConfig.AnnotationSpecSetConfig.Builder builderForValue)
         Required. The list of annotation spec set configs.
         Since watching a video clip takes much longer time than an image, we
         support label with multiple AnnotationSpecSet at the same time. Labels
         in each AnnotationSpecSet will be shown in a group to contributors.
         Contributors can select one or more (depending on whether to allow multi
         label) from each group.
         
        repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
      • addAnnotationSpecSetConfigs

        public VideoClassificationConfig.Builder addAnnotationSpecSetConfigs​(int index,
                                                                             VideoClassificationConfig.AnnotationSpecSetConfig.Builder builderForValue)
         Required. The list of annotation spec set configs.
         Since watching a video clip takes much longer time than an image, we
         support label with multiple AnnotationSpecSet at the same time. Labels
         in each AnnotationSpecSet will be shown in a group to contributors.
         Contributors can select one or more (depending on whether to allow multi
         label) from each group.
         
        repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
      • addAllAnnotationSpecSetConfigs

        public VideoClassificationConfig.Builder addAllAnnotationSpecSetConfigs​(Iterable<? extends VideoClassificationConfig.AnnotationSpecSetConfig> values)
         Required. The list of annotation spec set configs.
         Since watching a video clip takes much longer time than an image, we
         support label with multiple AnnotationSpecSet at the same time. Labels
         in each AnnotationSpecSet will be shown in a group to contributors.
         Contributors can select one or more (depending on whether to allow multi
         label) from each group.
         
        repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
      • clearAnnotationSpecSetConfigs

        public VideoClassificationConfig.Builder clearAnnotationSpecSetConfigs()
         Required. The list of annotation spec set configs.
         Since watching a video clip takes much longer time than an image, we
         support label with multiple AnnotationSpecSet at the same time. Labels
         in each AnnotationSpecSet will be shown in a group to contributors.
         Contributors can select one or more (depending on whether to allow multi
         label) from each group.
         
        repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
      • removeAnnotationSpecSetConfigs

        public VideoClassificationConfig.Builder removeAnnotationSpecSetConfigs​(int index)
         Required. The list of annotation spec set configs.
         Since watching a video clip takes much longer time than an image, we
         support label with multiple AnnotationSpecSet at the same time. Labels
         in each AnnotationSpecSet will be shown in a group to contributors.
         Contributors can select one or more (depending on whether to allow multi
         label) from each group.
         
        repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
      • getAnnotationSpecSetConfigsBuilder

        public VideoClassificationConfig.AnnotationSpecSetConfig.Builder getAnnotationSpecSetConfigsBuilder​(int index)
         Required. The list of annotation spec set configs.
         Since watching a video clip takes much longer time than an image, we
         support label with multiple AnnotationSpecSet at the same time. Labels
         in each AnnotationSpecSet will be shown in a group to contributors.
         Contributors can select one or more (depending on whether to allow multi
         label) from each group.
         
        repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
      • getAnnotationSpecSetConfigsOrBuilder

        public VideoClassificationConfig.AnnotationSpecSetConfigOrBuilder getAnnotationSpecSetConfigsOrBuilder​(int index)
         Required. The list of annotation spec set configs.
         Since watching a video clip takes much longer time than an image, we
         support label with multiple AnnotationSpecSet at the same time. Labels
         in each AnnotationSpecSet will be shown in a group to contributors.
         Contributors can select one or more (depending on whether to allow multi
         label) from each group.
         
        repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAnnotationSpecSetConfigsOrBuilder in interface VideoClassificationConfigOrBuilder
      • getAnnotationSpecSetConfigsOrBuilderList

        public List<? extends VideoClassificationConfig.AnnotationSpecSetConfigOrBuilder> getAnnotationSpecSetConfigsOrBuilderList()
         Required. The list of annotation spec set configs.
         Since watching a video clip takes much longer time than an image, we
         support label with multiple AnnotationSpecSet at the same time. Labels
         in each AnnotationSpecSet will be shown in a group to contributors.
         Contributors can select one or more (depending on whether to allow multi
         label) from each group.
         
        repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAnnotationSpecSetConfigsOrBuilderList in interface VideoClassificationConfigOrBuilder
      • addAnnotationSpecSetConfigsBuilder

        public VideoClassificationConfig.AnnotationSpecSetConfig.Builder addAnnotationSpecSetConfigsBuilder()
         Required. The list of annotation spec set configs.
         Since watching a video clip takes much longer time than an image, we
         support label with multiple AnnotationSpecSet at the same time. Labels
         in each AnnotationSpecSet will be shown in a group to contributors.
         Contributors can select one or more (depending on whether to allow multi
         label) from each group.
         
        repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
      • addAnnotationSpecSetConfigsBuilder

        public VideoClassificationConfig.AnnotationSpecSetConfig.Builder addAnnotationSpecSetConfigsBuilder​(int index)
         Required. The list of annotation spec set configs.
         Since watching a video clip takes much longer time than an image, we
         support label with multiple AnnotationSpecSet at the same time. Labels
         in each AnnotationSpecSet will be shown in a group to contributors.
         Contributors can select one or more (depending on whether to allow multi
         label) from each group.
         
        repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
      • getAnnotationSpecSetConfigsBuilderList

        public List<VideoClassificationConfig.AnnotationSpecSetConfig.Builder> getAnnotationSpecSetConfigsBuilderList()
         Required. The list of annotation spec set configs.
         Since watching a video clip takes much longer time than an image, we
         support label with multiple AnnotationSpecSet at the same time. Labels
         in each AnnotationSpecSet will be shown in a group to contributors.
         Contributors can select one or more (depending on whether to allow multi
         label) from each group.
         
        repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
      • getApplyShotDetection

        public boolean getApplyShotDetection()
         Optional. Option to apply shot detection on the video.
         
        bool apply_shot_detection = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getApplyShotDetection in interface VideoClassificationConfigOrBuilder
        Returns:
        The applyShotDetection.
      • setApplyShotDetection

        public VideoClassificationConfig.Builder setApplyShotDetection​(boolean value)
         Optional. Option to apply shot detection on the video.
         
        bool apply_shot_detection = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The applyShotDetection to set.
        Returns:
        This builder for chaining.
      • clearApplyShotDetection

        public VideoClassificationConfig.Builder clearApplyShotDetection()
         Optional. Option to apply shot detection on the video.
         
        bool apply_shot_detection = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final VideoClassificationConfig.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<VideoClassificationConfig.Builder>
      • mergeUnknownFields

        public final VideoClassificationConfig.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<VideoClassificationConfig.Builder>