Send feedback
Class VideoClassificationConfig (0.125.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.125.0 keyboard_arrow_down
public final class VideoClassificationConfig extends GeneratedMessageV3 implements VideoClassificationConfigOrBuilder
Config for video classification human labeling task.
Currently two types of video classification are supported:
Assign labels on the entire video.
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
Static Fields
ANNOTATION_SPEC_SET_CONFIGS_FIELD_NUMBER
public static final int ANNOTATION_SPEC_SET_CONFIGS_FIELD_NUMBER
Field Value
APPLY_SHOT_DETECTION_FIELD_NUMBER
public static final int APPLY_SHOT_DETECTION_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static VideoClassificationConfig getDefaultInstance ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
newBuilder()
public static VideoClassificationConfig . Builder newBuilder ()
Returns
newBuilder(VideoClassificationConfig prototype)
public static VideoClassificationConfig . Builder newBuilder ( VideoClassificationConfig prototype )
Parameter
Returns
public static VideoClassificationConfig parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static VideoClassificationConfig parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static VideoClassificationConfig parseFrom ( byte [] data )
Parameter
Name Description data byte []
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static VideoClassificationConfig parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static VideoClassificationConfig parseFrom ( ByteString data )
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static VideoClassificationConfig parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static VideoClassificationConfig parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static VideoClassificationConfig parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static VideoClassificationConfig parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static VideoClassificationConfig parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static VideoClassificationConfig parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static VideoClassificationConfig parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parser()
public static Parser<VideoClassificationConfig> parser ()
Returns
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Returns
Overrides
getAnnotationSpecSetConfigs(int index)
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];
Parameter
Returns
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];
Returns
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];
Returns
getAnnotationSpecSetConfigsOrBuilder(int index)
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];
Parameter
Returns
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];
Returns
Type Description List <? extends com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfigOrBuilder >
getApplyShotDetection()
public boolean getApplyShotDetection ()
Optional. Option to apply shot detection on the video.
bool apply_shot_detection = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type Description boolean The applyShotDetection.
getDefaultInstanceForType()
public VideoClassificationConfig getDefaultInstanceForType ()
Returns
getParserForType()
public Parser<VideoClassificationConfig> getParserForType ()
Returns
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
newBuilderForType()
public VideoClassificationConfig . Builder newBuilderForType ()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected VideoClassificationConfig . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
toBuilder()
public VideoClassificationConfig . Builder toBuilder ()
Returns
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]