Class VideoClassificationConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig
All Implemented Interfaces:
VideoClassificationConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class VideoClassificationConfig extends com.google.protobuf.GeneratedMessage 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:
  • Field Details

    • ANNOTATION_SPEC_SET_CONFIGS_FIELD_NUMBER

      public static final int ANNOTATION_SPEC_SET_CONFIGS_FIELD_NUMBER
      See Also:
    • APPLY_SHOT_DETECTION_FIELD_NUMBER

      public static final int APPLY_SHOT_DETECTION_FIELD_NUMBER
      See Also:
  • 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
    • 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.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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
    • parseFrom

      public static VideoClassificationConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static VideoClassificationConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static VideoClassificationConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static VideoClassificationConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static VideoClassificationConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static VideoClassificationConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static VideoClassificationConfig.Builder newBuilder()
    • newBuilder

      public static VideoClassificationConfig.Builder newBuilder(VideoClassificationConfig prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static VideoClassificationConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<VideoClassificationConfig> parser()
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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