Class LabelImageRequest.Builder (0.164.0)

public static final class LabelImageRequest.Builder extends GeneratedMessageV3.Builder<LabelImageRequest.Builder> implements LabelImageRequestOrBuilder

Request message for starting an image labeling task.

Protobuf type google.cloud.datalabeling.v1beta1.LabelImageRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LabelImageRequest build()
Returns
Type Description
LabelImageRequest

buildPartial()

public LabelImageRequest buildPartial()
Returns
Type Description
LabelImageRequest

clear()

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

clearBasicConfig()

public LabelImageRequest.Builder clearBasicConfig()

Required. Basic human annotation config.

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

Returns
Type Description
LabelImageRequest.Builder

clearBoundingPolyConfig()

public LabelImageRequest.Builder clearBoundingPolyConfig()

Configuration for bounding box and bounding poly task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;

Returns
Type Description
LabelImageRequest.Builder

clearFeature()

public LabelImageRequest.Builder clearFeature()

Required. The type of image labeling task.

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

Returns
Type Description
LabelImageRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearImageClassificationConfig()

public LabelImageRequest.Builder clearImageClassificationConfig()

Configuration for image classification task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4;

Returns
Type Description
LabelImageRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public LabelImageRequest.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
LabelImageRequest.Builder

This builder for chaining.

clearPolylineConfig()

public LabelImageRequest.Builder clearPolylineConfig()

Configuration for polyline task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6;

Returns
Type Description
LabelImageRequest.Builder

clearRequestConfig()

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

clearSegmentationConfig()

public LabelImageRequest.Builder clearSegmentationConfig()

Configuration for segmentation task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;

Returns
Type Description
LabelImageRequest.Builder

clone()

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

getBoundingPolyConfig()

public BoundingPolyConfig getBoundingPolyConfig()

Configuration for bounding box and bounding poly task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;

Returns
Type Description
BoundingPolyConfig

The boundingPolyConfig.

getBoundingPolyConfigBuilder()

public BoundingPolyConfig.Builder getBoundingPolyConfigBuilder()

Configuration for bounding box and bounding poly task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;

Returns
Type Description
BoundingPolyConfig.Builder

getBoundingPolyConfigOrBuilder()

public BoundingPolyConfigOrBuilder getBoundingPolyConfigOrBuilder()

Configuration for bounding box and bounding poly task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;

Returns
Type Description
BoundingPolyConfigOrBuilder

getDefaultInstanceForType()

public LabelImageRequest getDefaultInstanceForType()
Returns
Type Description
LabelImageRequest

getDescriptorForType()

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

getFeature()

public LabelImageRequest.Feature getFeature()

Required. The type of image labeling task.

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

Returns
Type Description
LabelImageRequest.Feature

The feature.

getFeatureValue()

public int getFeatureValue()

Required. The type of image labeling task.

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

Returns
Type Description
int

The enum numeric value on the wire for feature.

getImageClassificationConfig()

public ImageClassificationConfig getImageClassificationConfig()

Configuration for image classification task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4;

Returns
Type Description
ImageClassificationConfig

The imageClassificationConfig.

getImageClassificationConfigBuilder()

public ImageClassificationConfig.Builder getImageClassificationConfigBuilder()

Configuration for image classification task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4;

Returns
Type Description
ImageClassificationConfig.Builder

getImageClassificationConfigOrBuilder()

public ImageClassificationConfigOrBuilder getImageClassificationConfigOrBuilder()

Configuration for image classification task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4;

Returns
Type Description
ImageClassificationConfigOrBuilder

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.

getPolylineConfig()

public PolylineConfig getPolylineConfig()

Configuration for polyline task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6;

Returns
Type Description
PolylineConfig

The polylineConfig.

getPolylineConfigBuilder()

public PolylineConfig.Builder getPolylineConfigBuilder()

Configuration for polyline task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6;

Returns
Type Description
PolylineConfig.Builder

getPolylineConfigOrBuilder()

public PolylineConfigOrBuilder getPolylineConfigOrBuilder()

Configuration for polyline task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6;

Returns
Type Description
PolylineConfigOrBuilder

getRequestConfigCase()

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

getSegmentationConfig()

public SegmentationConfig getSegmentationConfig()

Configuration for segmentation task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;

Returns
Type Description
SegmentationConfig

The segmentationConfig.

getSegmentationConfigBuilder()

public SegmentationConfig.Builder getSegmentationConfigBuilder()

Configuration for segmentation task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;

Returns
Type Description
SegmentationConfig.Builder

getSegmentationConfigOrBuilder()

public SegmentationConfigOrBuilder getSegmentationConfigOrBuilder()

Configuration for segmentation task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;

Returns
Type Description
SegmentationConfigOrBuilder

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.

hasBoundingPolyConfig()

public boolean hasBoundingPolyConfig()

Configuration for bounding box and bounding poly task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;

Returns
Type Description
boolean

Whether the boundingPolyConfig field is set.

hasImageClassificationConfig()

public boolean hasImageClassificationConfig()

Configuration for image classification task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4;

Returns
Type Description
boolean

Whether the imageClassificationConfig field is set.

hasPolylineConfig()

public boolean hasPolylineConfig()

Configuration for polyline task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6;

Returns
Type Description
boolean

Whether the polylineConfig field is set.

hasSegmentationConfig()

public boolean hasSegmentationConfig()

Configuration for segmentation task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;

Returns
Type Description
boolean

Whether the segmentationConfig 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 LabelImageRequest.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
LabelImageRequest.Builder

mergeBoundingPolyConfig(BoundingPolyConfig value)

public LabelImageRequest.Builder mergeBoundingPolyConfig(BoundingPolyConfig value)

Configuration for bounding box and bounding poly task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;

Parameter
Name Description
value BoundingPolyConfig
Returns
Type Description
LabelImageRequest.Builder

mergeFrom(LabelImageRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeImageClassificationConfig(ImageClassificationConfig value)

public LabelImageRequest.Builder mergeImageClassificationConfig(ImageClassificationConfig value)

Configuration for image classification task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4;

Parameter
Name Description
value ImageClassificationConfig
Returns
Type Description
LabelImageRequest.Builder

mergePolylineConfig(PolylineConfig value)

public LabelImageRequest.Builder mergePolylineConfig(PolylineConfig value)

Configuration for polyline task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6;

Parameter
Name Description
value PolylineConfig
Returns
Type Description
LabelImageRequest.Builder

mergeSegmentationConfig(SegmentationConfig value)

public LabelImageRequest.Builder mergeSegmentationConfig(SegmentationConfig value)

Configuration for segmentation task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;

Parameter
Name Description
value SegmentationConfig
Returns
Type Description
LabelImageRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBasicConfig(HumanAnnotationConfig value)

public LabelImageRequest.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
LabelImageRequest.Builder

setBasicConfig(HumanAnnotationConfig.Builder builderForValue)

public LabelImageRequest.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
LabelImageRequest.Builder

setBoundingPolyConfig(BoundingPolyConfig value)

public LabelImageRequest.Builder setBoundingPolyConfig(BoundingPolyConfig value)

Configuration for bounding box and bounding poly task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;

Parameter
Name Description
value BoundingPolyConfig
Returns
Type Description
LabelImageRequest.Builder

setBoundingPolyConfig(BoundingPolyConfig.Builder builderForValue)

public LabelImageRequest.Builder setBoundingPolyConfig(BoundingPolyConfig.Builder builderForValue)

Configuration for bounding box and bounding poly task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;

Parameter
Name Description
builderForValue BoundingPolyConfig.Builder
Returns
Type Description
LabelImageRequest.Builder

setFeature(LabelImageRequest.Feature value)

public LabelImageRequest.Builder setFeature(LabelImageRequest.Feature value)

Required. The type of image labeling task.

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

Parameter
Name Description
value LabelImageRequest.Feature

The feature to set.

Returns
Type Description
LabelImageRequest.Builder

This builder for chaining.

setFeatureValue(int value)

public LabelImageRequest.Builder setFeatureValue(int value)

Required. The type of image labeling task.

.google.cloud.datalabeling.v1beta1.LabelImageRequest.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
LabelImageRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setImageClassificationConfig(ImageClassificationConfig value)

public LabelImageRequest.Builder setImageClassificationConfig(ImageClassificationConfig value)

Configuration for image classification task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4;

Parameter
Name Description
value ImageClassificationConfig
Returns
Type Description
LabelImageRequest.Builder

setImageClassificationConfig(ImageClassificationConfig.Builder builderForValue)

public LabelImageRequest.Builder setImageClassificationConfig(ImageClassificationConfig.Builder builderForValue)

Configuration for image classification task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4;

Parameter
Name Description
builderForValue ImageClassificationConfig.Builder
Returns
Type Description
LabelImageRequest.Builder

setParent(String value)

public LabelImageRequest.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
LabelImageRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public LabelImageRequest.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
LabelImageRequest.Builder

This builder for chaining.

setPolylineConfig(PolylineConfig value)

public LabelImageRequest.Builder setPolylineConfig(PolylineConfig value)

Configuration for polyline task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6;

Parameter
Name Description
value PolylineConfig
Returns
Type Description
LabelImageRequest.Builder

setPolylineConfig(PolylineConfig.Builder builderForValue)

public LabelImageRequest.Builder setPolylineConfig(PolylineConfig.Builder builderForValue)

Configuration for polyline task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6;

Parameter
Name Description
builderForValue PolylineConfig.Builder
Returns
Type Description
LabelImageRequest.Builder

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

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

setSegmentationConfig(SegmentationConfig value)

public LabelImageRequest.Builder setSegmentationConfig(SegmentationConfig value)

Configuration for segmentation task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;

Parameter
Name Description
value SegmentationConfig
Returns
Type Description
LabelImageRequest.Builder

setSegmentationConfig(SegmentationConfig.Builder builderForValue)

public LabelImageRequest.Builder setSegmentationConfig(SegmentationConfig.Builder builderForValue)

Configuration for segmentation task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

.google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;

Parameter
Name Description
builderForValue SegmentationConfig.Builder
Returns
Type Description
LabelImageRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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