Class LabelVideoRequest.Builder (0.165.0)

public static final class LabelVideoRequest.Builder extends GeneratedMessageV3.Builder<LabelVideoRequest.Builder> implements LabelVideoRequestOrBuilder

Request message for LabelVideo.

Protobuf type google.cloud.datalabeling.v1beta1.LabelVideoRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LabelVideoRequest build()
Returns
Type Description
LabelVideoRequest

buildPartial()

public LabelVideoRequest buildPartial()
Returns
Type Description
LabelVideoRequest

clear()

public LabelVideoRequest.Builder clear()
Returns
Type Description
LabelVideoRequest.Builder
Overrides

clearBasicConfig()

public LabelVideoRequest.Builder clearBasicConfig()

Required. Basic human annotation config.

.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LabelVideoRequest.Builder

clearEventConfig()

public LabelVideoRequest.Builder clearEventConfig()

Configuration for video event task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.EventConfig event_config = 7;

Returns
Type Description
LabelVideoRequest.Builder

clearFeature()

public LabelVideoRequest.Builder clearFeature()

Required. The type of video labeling task.

.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LabelVideoRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearObjectDetectionConfig()

public LabelVideoRequest.Builder clearObjectDetectionConfig()

Configuration for video object detection task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5;

Returns
Type Description
LabelVideoRequest.Builder

clearObjectTrackingConfig()

public LabelVideoRequest.Builder clearObjectTrackingConfig()

Configuration for video object tracking task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6;

Returns
Type Description
LabelVideoRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public LabelVideoRequest.Builder clearParent()

Required. Name of the dataset to request labeling task, format: projects/{project_id}/datasets/{dataset_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
LabelVideoRequest.Builder

This builder for chaining.

clearRequestConfig()

public LabelVideoRequest.Builder clearRequestConfig()
Returns
Type Description
LabelVideoRequest.Builder

clearVideoClassificationConfig()

public LabelVideoRequest.Builder clearVideoClassificationConfig()

Configuration for video classification task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4;

Returns
Type Description
LabelVideoRequest.Builder

clone()

public LabelVideoRequest.Builder clone()
Returns
Type Description
LabelVideoRequest.Builder
Overrides

getBasicConfig()

public HumanAnnotationConfig getBasicConfig()

Required. Basic human annotation config.

.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HumanAnnotationConfig

The basicConfig.

getBasicConfigBuilder()

public HumanAnnotationConfig.Builder getBasicConfigBuilder()

Required. Basic human annotation config.

.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HumanAnnotationConfig.Builder

getBasicConfigOrBuilder()

public HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder()

Required. Basic human annotation config.

.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HumanAnnotationConfigOrBuilder

getDefaultInstanceForType()

public LabelVideoRequest getDefaultInstanceForType()
Returns
Type Description
LabelVideoRequest

getDescriptorForType()

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

getEventConfig()

public EventConfig getEventConfig()

Configuration for video event task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.EventConfig event_config = 7;

Returns
Type Description
EventConfig

The eventConfig.

getEventConfigBuilder()

public EventConfig.Builder getEventConfigBuilder()

Configuration for video event task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.EventConfig event_config = 7;

Returns
Type Description
EventConfig.Builder

getEventConfigOrBuilder()

public EventConfigOrBuilder getEventConfigOrBuilder()

Configuration for video event task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.EventConfig event_config = 7;

Returns
Type Description
EventConfigOrBuilder

getFeature()

public LabelVideoRequest.Feature getFeature()

Required. The type of video labeling task.

.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LabelVideoRequest.Feature

The feature.

getFeatureValue()

public int getFeatureValue()

Required. The type of video labeling task.

.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for feature.

getObjectDetectionConfig()

public ObjectDetectionConfig getObjectDetectionConfig()

Configuration for video object detection task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5;

Returns
Type Description
ObjectDetectionConfig

The objectDetectionConfig.

getObjectDetectionConfigBuilder()

public ObjectDetectionConfig.Builder getObjectDetectionConfigBuilder()

Configuration for video object detection task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5;

Returns
Type Description
ObjectDetectionConfig.Builder

getObjectDetectionConfigOrBuilder()

public ObjectDetectionConfigOrBuilder getObjectDetectionConfigOrBuilder()

Configuration for video object detection task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5;

Returns
Type Description
ObjectDetectionConfigOrBuilder

getObjectTrackingConfig()

public ObjectTrackingConfig getObjectTrackingConfig()

Configuration for video object tracking task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6;

Returns
Type Description
ObjectTrackingConfig

The objectTrackingConfig.

getObjectTrackingConfigBuilder()

public ObjectTrackingConfig.Builder getObjectTrackingConfigBuilder()

Configuration for video object tracking task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6;

Returns
Type Description
ObjectTrackingConfig.Builder

getObjectTrackingConfigOrBuilder()

public ObjectTrackingConfigOrBuilder getObjectTrackingConfigOrBuilder()

Configuration for video object tracking task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6;

Returns
Type Description
ObjectTrackingConfigOrBuilder

getParent()

public String getParent()

Required. Name of the dataset to request labeling task, format: projects/{project_id}/datasets/{dataset_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Name of the dataset to request labeling task, format: projects/{project_id}/datasets/{dataset_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getRequestConfigCase()

public LabelVideoRequest.RequestConfigCase getRequestConfigCase()
Returns
Type Description
LabelVideoRequest.RequestConfigCase

getVideoClassificationConfig()

public VideoClassificationConfig getVideoClassificationConfig()

Configuration for video classification task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4;

Returns
Type Description
VideoClassificationConfig

The videoClassificationConfig.

getVideoClassificationConfigBuilder()

public VideoClassificationConfig.Builder getVideoClassificationConfigBuilder()

Configuration for video classification task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4;

Returns
Type Description
VideoClassificationConfig.Builder

getVideoClassificationConfigOrBuilder()

public VideoClassificationConfigOrBuilder getVideoClassificationConfigOrBuilder()

Configuration for video classification task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4;

Returns
Type Description
VideoClassificationConfigOrBuilder

hasBasicConfig()

public boolean hasBasicConfig()

Required. Basic human annotation config.

.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the basicConfig field is set.

hasEventConfig()

public boolean hasEventConfig()

Configuration for video event task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.EventConfig event_config = 7;

Returns
Type Description
boolean

Whether the eventConfig field is set.

hasObjectDetectionConfig()

public boolean hasObjectDetectionConfig()

Configuration for video object detection task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5;

Returns
Type Description
boolean

Whether the objectDetectionConfig field is set.

hasObjectTrackingConfig()

public boolean hasObjectTrackingConfig()

Configuration for video object tracking task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6;

Returns
Type Description
boolean

Whether the objectTrackingConfig field is set.

hasVideoClassificationConfig()

public boolean hasVideoClassificationConfig()

Configuration for video classification task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4;

Returns
Type Description
boolean

Whether the videoClassificationConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBasicConfig(HumanAnnotationConfig value)

public LabelVideoRequest.Builder mergeBasicConfig(HumanAnnotationConfig value)

Required. Basic human annotation config.

.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value HumanAnnotationConfig
Returns
Type Description
LabelVideoRequest.Builder

mergeEventConfig(EventConfig value)

public LabelVideoRequest.Builder mergeEventConfig(EventConfig value)

Configuration for video event task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.EventConfig event_config = 7;

Parameter
Name Description
value EventConfig
Returns
Type Description
LabelVideoRequest.Builder

mergeFrom(LabelVideoRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeObjectDetectionConfig(ObjectDetectionConfig value)

public LabelVideoRequest.Builder mergeObjectDetectionConfig(ObjectDetectionConfig value)

Configuration for video object detection task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5;

Parameter
Name Description
value ObjectDetectionConfig
Returns
Type Description
LabelVideoRequest.Builder

mergeObjectTrackingConfig(ObjectTrackingConfig value)

public LabelVideoRequest.Builder mergeObjectTrackingConfig(ObjectTrackingConfig value)

Configuration for video object tracking task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6;

Parameter
Name Description
value ObjectTrackingConfig
Returns
Type Description
LabelVideoRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LabelVideoRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LabelVideoRequest.Builder
Overrides

mergeVideoClassificationConfig(VideoClassificationConfig value)

public LabelVideoRequest.Builder mergeVideoClassificationConfig(VideoClassificationConfig value)

Configuration for video classification task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4;

Parameter
Name Description
value VideoClassificationConfig
Returns
Type Description
LabelVideoRequest.Builder

setBasicConfig(HumanAnnotationConfig value)

public LabelVideoRequest.Builder setBasicConfig(HumanAnnotationConfig value)

Required. Basic human annotation config.

.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value HumanAnnotationConfig
Returns
Type Description
LabelVideoRequest.Builder

setBasicConfig(HumanAnnotationConfig.Builder builderForValue)

public LabelVideoRequest.Builder setBasicConfig(HumanAnnotationConfig.Builder builderForValue)

Required. Basic human annotation config.

.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue HumanAnnotationConfig.Builder
Returns
Type Description
LabelVideoRequest.Builder

setEventConfig(EventConfig value)

public LabelVideoRequest.Builder setEventConfig(EventConfig value)

Configuration for video event task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.EventConfig event_config = 7;

Parameter
Name Description
value EventConfig
Returns
Type Description
LabelVideoRequest.Builder

setEventConfig(EventConfig.Builder builderForValue)

public LabelVideoRequest.Builder setEventConfig(EventConfig.Builder builderForValue)

Configuration for video event task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.EventConfig event_config = 7;

Parameter
Name Description
builderForValue EventConfig.Builder
Returns
Type Description
LabelVideoRequest.Builder

setFeature(LabelVideoRequest.Feature value)

public LabelVideoRequest.Builder setFeature(LabelVideoRequest.Feature value)

Required. The type of video labeling task.

.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value LabelVideoRequest.Feature

The feature to set.

Returns
Type Description
LabelVideoRequest.Builder

This builder for chaining.

setFeatureValue(int value)

public LabelVideoRequest.Builder setFeatureValue(int value)

Required. The type of video labeling task.

.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for feature to set.

Returns
Type Description
LabelVideoRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setObjectDetectionConfig(ObjectDetectionConfig value)

public LabelVideoRequest.Builder setObjectDetectionConfig(ObjectDetectionConfig value)

Configuration for video object detection task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5;

Parameter
Name Description
value ObjectDetectionConfig
Returns
Type Description
LabelVideoRequest.Builder

setObjectDetectionConfig(ObjectDetectionConfig.Builder builderForValue)

public LabelVideoRequest.Builder setObjectDetectionConfig(ObjectDetectionConfig.Builder builderForValue)

Configuration for video object detection task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5;

Parameter
Name Description
builderForValue ObjectDetectionConfig.Builder
Returns
Type Description
LabelVideoRequest.Builder

setObjectTrackingConfig(ObjectTrackingConfig value)

public LabelVideoRequest.Builder setObjectTrackingConfig(ObjectTrackingConfig value)

Configuration for video object tracking task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6;

Parameter
Name Description
value ObjectTrackingConfig
Returns
Type Description
LabelVideoRequest.Builder

setObjectTrackingConfig(ObjectTrackingConfig.Builder builderForValue)

public LabelVideoRequest.Builder setObjectTrackingConfig(ObjectTrackingConfig.Builder builderForValue)

Configuration for video object tracking task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6;

Parameter
Name Description
builderForValue ObjectTrackingConfig.Builder
Returns
Type Description
LabelVideoRequest.Builder

setParent(String value)

public LabelVideoRequest.Builder setParent(String value)

Required. Name of the dataset to request labeling task, format: projects/{project_id}/datasets/{dataset_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
LabelVideoRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public LabelVideoRequest.Builder setParentBytes(ByteString value)

Required. Name of the dataset to request labeling task, format: projects/{project_id}/datasets/{dataset_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
LabelVideoRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVideoClassificationConfig(VideoClassificationConfig value)

public LabelVideoRequest.Builder setVideoClassificationConfig(VideoClassificationConfig value)

Configuration for video classification task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4;

Parameter
Name Description
value VideoClassificationConfig
Returns
Type Description
LabelVideoRequest.Builder

setVideoClassificationConfig(VideoClassificationConfig.Builder builderForValue)

public LabelVideoRequest.Builder setVideoClassificationConfig(VideoClassificationConfig.Builder builderForValue)

Configuration for video classification task. One of video_classification_config, object_detection_config, object_tracking_config and event_config is required.

.google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4;

Parameter
Name Description
builderForValue VideoClassificationConfig.Builder
Returns
Type Description
LabelVideoRequest.Builder