Class LabelVideoRequest.Builder (0.131.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LabelVideoRequest build()
Returns
TypeDescription
LabelVideoRequest

buildPartial()

public LabelVideoRequest buildPartial()
Returns
TypeDescription
LabelVideoRequest

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public LabelVideoRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
LabelVideoRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public LabelVideoRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
LabelVideoRequest.Builder

This builder for chaining.

clearRequestConfig()

public LabelVideoRequest.Builder clearRequestConfig()
Returns
TypeDescription
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
TypeDescription
LabelVideoRequest.Builder

clone()

public LabelVideoRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
HumanAnnotationConfigOrBuilder

getDefaultInstanceForType()

public LabelVideoRequest getDefaultInstanceForType()
Returns
TypeDescription
LabelVideoRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

getRequestConfigCase()

public LabelVideoRequest.RequestConfigCase getRequestConfigCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
VideoClassificationConfigOrBuilder

hasBasicConfig()

public boolean hasBasicConfig()

Required. Basic human annotation config.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the videoClassificationConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueHumanAnnotationConfig
Returns
TypeDescription
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
NameDescription
valueEventConfig
Returns
TypeDescription
LabelVideoRequest.Builder

mergeFrom(LabelVideoRequest other)

public LabelVideoRequest.Builder mergeFrom(LabelVideoRequest other)
Parameter
NameDescription
otherLabelVideoRequest
Returns
TypeDescription
LabelVideoRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public LabelVideoRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueObjectDetectionConfig
Returns
TypeDescription
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
NameDescription
valueObjectTrackingConfig
Returns
TypeDescription
LabelVideoRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LabelVideoRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueVideoClassificationConfig
Returns
TypeDescription
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
NameDescription
valueHumanAnnotationConfig
Returns
TypeDescription
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
NameDescription
builderForValueHumanAnnotationConfig.Builder
Returns
TypeDescription
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
NameDescription
valueEventConfig
Returns
TypeDescription
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
NameDescription
builderForValueEventConfig.Builder
Returns
TypeDescription
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
NameDescription
valueLabelVideoRequest.Feature

The feature to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
LabelVideoRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LabelVideoRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueObjectDetectionConfig
Returns
TypeDescription
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
NameDescription
builderForValueObjectDetectionConfig.Builder
Returns
TypeDescription
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
NameDescription
valueObjectTrackingConfig
Returns
TypeDescription
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
NameDescription
builderForValueObjectTrackingConfig.Builder
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LabelVideoRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LabelVideoRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueVideoClassificationConfig
Returns
TypeDescription
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
NameDescription
builderForValueVideoClassificationConfig.Builder
Returns
TypeDescription
LabelVideoRequest.Builder