public static final class VideoClassificationConfig.Builder extends GeneratedMessageV3.Builder<VideoClassificationConfig.Builder> 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 Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllAnnotationSpecSetConfigs(Iterable<? extends VideoClassificationConfig.AnnotationSpecSetConfig> values)
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];
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig>
|
Returns
addAnnotationSpecSetConfigs(VideoClassificationConfig.AnnotationSpecSetConfig value)
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];
Parameter
Returns
addAnnotationSpecSetConfigs(VideoClassificationConfig.AnnotationSpecSetConfig.Builder builderForValue)
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];
Parameter
Returns
addAnnotationSpecSetConfigs(int index, VideoClassificationConfig.AnnotationSpecSetConfig value)
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];
Parameters
Returns
addAnnotationSpecSetConfigs(int index, VideoClassificationConfig.AnnotationSpecSetConfig.Builder builderForValue)
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];
Parameters
Returns
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];
Returns
addAnnotationSpecSetConfigsBuilder(int index)
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];
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public VideoClassificationConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public VideoClassificationConfig build()
Returns
buildPartial()
public VideoClassificationConfig buildPartial()
Returns
clear()
public VideoClassificationConfig.Builder clear()
Returns
Overrides
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];
Returns
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
clearField(Descriptors.FieldDescriptor field)
public VideoClassificationConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public VideoClassificationConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public VideoClassificationConfig.Builder clone()
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
getAnnotationSpecSetConfigsBuilder(int index)
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];
Parameter
Returns
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];
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(VideoClassificationConfig other)
public VideoClassificationConfig.Builder mergeFrom(VideoClassificationConfig other)
Parameter
Returns
public VideoClassificationConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public VideoClassificationConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final VideoClassificationConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeAnnotationSpecSetConfigs(int index)
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];
Parameter
Returns
setAnnotationSpecSetConfigs(int index, VideoClassificationConfig.AnnotationSpecSetConfig value)
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];
Parameters
Returns
setAnnotationSpecSetConfigs(int index, VideoClassificationConfig.AnnotationSpecSetConfig.Builder builderForValue)
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];
Parameters
Returns
setApplyShotDetection(boolean value)
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];
Parameter
Name | Description |
value | boolean
The applyShotDetection to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public VideoClassificationConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public VideoClassificationConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final VideoClassificationConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides