Class VideoClassificationConfig.Builder (0.123.7)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig>
Returns
TypeDescription
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
NameDescription
valueVideoClassificationConfig.AnnotationSpecSetConfig
Returns
TypeDescription
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
NameDescription
builderForValueVideoClassificationConfig.AnnotationSpecSetConfig.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueVideoClassificationConfig.AnnotationSpecSetConfig
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVideoClassificationConfig.AnnotationSpecSetConfig.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
VideoClassificationConfig.AnnotationSpecSetConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VideoClassificationConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VideoClassificationConfig.Builder
Overrides

build()

public VideoClassificationConfig build()
Returns
TypeDescription
VideoClassificationConfig

buildPartial()

public VideoClassificationConfig buildPartial()
Returns
TypeDescription
VideoClassificationConfig

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VideoClassificationConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
VideoClassificationConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public VideoClassificationConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
VideoClassificationConfig.Builder
Overrides

clone()

public VideoClassificationConfig.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

The applyShotDetection.

getDefaultInstanceForType()

public VideoClassificationConfig getDefaultInstanceForType()
Returns
TypeDescription
VideoClassificationConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VideoClassificationConfig other)

public VideoClassificationConfig.Builder mergeFrom(VideoClassificationConfig other)
Parameter
NameDescription
otherVideoClassificationConfig
Returns
TypeDescription
VideoClassificationConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VideoClassificationConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VideoClassificationConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public VideoClassificationConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
VideoClassificationConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VideoClassificationConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueVideoClassificationConfig.AnnotationSpecSetConfig
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVideoClassificationConfig.AnnotationSpecSetConfig.Builder
Returns
TypeDescription
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
NameDescription
valueboolean

The applyShotDetection to set.

Returns
TypeDescription
VideoClassificationConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VideoClassificationConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VideoClassificationConfig.Builder
Overrides

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

public VideoClassificationConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VideoClassificationConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VideoClassificationConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VideoClassificationConfig.Builder
Overrides