Class VideoClassificationConfig

  • All Implemented Interfaces:
    VideoClassificationConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class VideoClassificationConfig
    extends com.google.protobuf.GeneratedMessageV3
    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
    See Also:
    Serialized Form
    • Field Detail

      • ANNOTATION_SPEC_SET_CONFIGS_FIELD_NUMBER

        public static final int ANNOTATION_SPEC_SET_CONFIGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • APPLY_SHOT_DETECTION_FIELD_NUMBER

        public static final int APPLY_SHOT_DETECTION_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static VideoClassificationConfig parseFrom​(ByteBuffer data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VideoClassificationConfig parseFrom​(ByteBuffer data,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VideoClassificationConfig parseFrom​(com.google.protobuf.ByteString data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VideoClassificationConfig parseFrom​(com.google.protobuf.ByteString data,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VideoClassificationConfig parseFrom​(byte[] data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VideoClassificationConfig parseFrom​(byte[] data,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

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

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

        protected VideoClassificationConfig.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<VideoClassificationConfig> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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