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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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];
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];
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];
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];
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(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 |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public VideoClassificationConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public VideoClassificationConfig build()
buildPartial()
public VideoClassificationConfig buildPartial()
clear()
public VideoClassificationConfig.Builder clear()
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];
clearApplyShotDetection()
public VideoClassificationConfig.Builder clearApplyShotDetection()
Optional. Option to apply shot detection on the video.
bool apply_shot_detection = 2 [(.google.api.field_behavior) = OPTIONAL];
clearField(Descriptors.FieldDescriptor field)
public VideoClassificationConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public VideoClassificationConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public VideoClassificationConfig.Builder clone()
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 |
---|
Name | Description |
index | int
|
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 |
---|
Name | Description |
index | int
|
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];
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 |
---|
Type | Description |
int | |
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];
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 |
---|
Name | Description |
index | int
|
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(VideoClassificationConfig other)
public VideoClassificationConfig.Builder mergeFrom(VideoClassificationConfig other)
public VideoClassificationConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public VideoClassificationConfig.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final VideoClassificationConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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 |
---|
Name | Description |
index | int
|
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];
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];
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public VideoClassificationConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public VideoClassificationConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final VideoClassificationConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides