Class LabelImageRequest.Builder (0.151.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LabelImageRequest build()
Returns
TypeDescription
LabelImageRequest

buildPartial()

public LabelImageRequest buildPartial()
Returns
TypeDescription
LabelImageRequest

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequestConfig()

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

clone()

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

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
TypeDescription
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
TypeDescription
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
TypeDescription
BoundingPolyConfigOrBuilder

getDefaultInstanceForType()

public LabelImageRequest getDefaultInstanceForType()
Returns
TypeDescription
LabelImageRequest

getDescriptorForType()

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

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
TypeDescription
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
TypeDescription
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
TypeDescription
PolylineConfigOrBuilder

getRequestConfigCase()

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

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.

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

Whether the segmentationConfig 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 LabelImageRequest.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
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
NameDescription
valueBoundingPolyConfig
Returns
TypeDescription
LabelImageRequest.Builder

mergeFrom(LabelImageRequest other)

public LabelImageRequest.Builder mergeFrom(LabelImageRequest other)
Parameter
NameDescription
otherLabelImageRequest
Returns
TypeDescription
LabelImageRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public LabelImageRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueImageClassificationConfig
Returns
TypeDescription
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
NameDescription
valuePolylineConfig
Returns
TypeDescription
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
NameDescription
valueSegmentationConfig
Returns
TypeDescription
LabelImageRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LabelImageRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueHumanAnnotationConfig
Returns
TypeDescription
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
NameDescription
builderForValueHumanAnnotationConfig.Builder
Returns
TypeDescription
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
NameDescription
valueBoundingPolyConfig
Returns
TypeDescription
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
NameDescription
builderForValueBoundingPolyConfig.Builder
Returns
TypeDescription
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
NameDescription
valueLabelImageRequest.Feature

The feature to set.

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

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

Returns
TypeDescription
LabelImageRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LabelImageRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueImageClassificationConfig
Returns
TypeDescription
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
NameDescription
builderForValueImageClassificationConfig.Builder
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
valuePolylineConfig
Returns
TypeDescription
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
NameDescription
builderForValuePolylineConfig.Builder
Returns
TypeDescription
LabelImageRequest.Builder

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

public LabelImageRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSegmentationConfig
Returns
TypeDescription
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
NameDescription
builderForValueSegmentationConfig.Builder
Returns
TypeDescription
LabelImageRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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