Class VideoClassificationConfig.Builder (0.162.0)

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:

  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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

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
Type Description
VideoClassificationConfig.Builder

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
Name Description
value VideoClassificationConfig.AnnotationSpecSetConfig
Returns
Type Description
VideoClassificationConfig.Builder

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
Name Description
builderForValue VideoClassificationConfig.AnnotationSpecSetConfig.Builder
Returns
Type Description
VideoClassificationConfig.Builder

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
Name Description
index int
value VideoClassificationConfig.AnnotationSpecSetConfig
Returns
Type Description
VideoClassificationConfig.Builder

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
Name Description
index int
builderForValue VideoClassificationConfig.AnnotationSpecSetConfig.Builder
Returns
Type Description
VideoClassificationConfig.Builder

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
Type Description
VideoClassificationConfig.AnnotationSpecSetConfig.Builder

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
Returns
Type Description
VideoClassificationConfig.AnnotationSpecSetConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VideoClassificationConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VideoClassificationConfig.Builder
Overrides

build()

public VideoClassificationConfig build()
Returns
Type Description
VideoClassificationConfig

buildPartial()

public VideoClassificationConfig buildPartial()
Returns
Type Description
VideoClassificationConfig

clear()

public VideoClassificationConfig.Builder clear()
Returns
Type Description
VideoClassificationConfig.Builder
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
Type Description
VideoClassificationConfig.Builder

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
Type Description
VideoClassificationConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VideoClassificationConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VideoClassificationConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public VideoClassificationConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VideoClassificationConfig.Builder
Overrides

clone()

public VideoClassificationConfig.Builder clone()
Returns
Type Description
VideoClassificationConfig.Builder
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
Returns
Type Description
VideoClassificationConfig.AnnotationSpecSetConfig

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
Returns
Type Description
VideoClassificationConfig.AnnotationSpecSetConfig.Builder

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
Type Description
List<Builder>

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];

Returns
Type Description
List<AnnotationSpecSetConfig>

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
Returns
Type Description
VideoClassificationConfig.AnnotationSpecSetConfigOrBuilder

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
Type Description
VideoClassificationConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VideoClassificationConfig other)

public VideoClassificationConfig.Builder mergeFrom(VideoClassificationConfig other)
Parameter
Name Description
other VideoClassificationConfig
Returns
Type Description
VideoClassificationConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VideoClassificationConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VideoClassificationConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public VideoClassificationConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
VideoClassificationConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VideoClassificationConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VideoClassificationConfig.Builder
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
Returns
Type Description
VideoClassificationConfig.Builder

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
Name Description
index int
value VideoClassificationConfig.AnnotationSpecSetConfig
Returns
Type Description
VideoClassificationConfig.Builder

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
Name Description
index int
builderForValue VideoClassificationConfig.AnnotationSpecSetConfig.Builder
Returns
Type Description
VideoClassificationConfig.Builder

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
Type Description
VideoClassificationConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VideoClassificationConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VideoClassificationConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public VideoClassificationConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VideoClassificationConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VideoClassificationConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VideoClassificationConfig.Builder
Overrides