Class LabelImageRequest (0.174.0)

public final class LabelImageRequest extends GeneratedMessageV3 implements LabelImageRequestOrBuilder

Request message for starting an image labeling task.

Protobuf type google.cloud.datalabeling.v1beta1.LabelImageRequest

Static Fields

BASIC_CONFIG_FIELD_NUMBER

public static final int BASIC_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

BOUNDING_POLY_CONFIG_FIELD_NUMBER

public static final int BOUNDING_POLY_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

FEATURE_FIELD_NUMBER

public static final int FEATURE_FIELD_NUMBER
Field Value
Type Description
int

IMAGE_CLASSIFICATION_CONFIG_FIELD_NUMBER

public static final int IMAGE_CLASSIFICATION_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

POLYLINE_CONFIG_FIELD_NUMBER

public static final int POLYLINE_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

SEGMENTATION_CONFIG_FIELD_NUMBER

public static final int SEGMENTATION_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static LabelImageRequest getDefaultInstance()
Returns
Type Description
LabelImageRequest

getDescriptor()

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

newBuilder()

public static LabelImageRequest.Builder newBuilder()
Returns
Type Description
LabelImageRequest.Builder

newBuilder(LabelImageRequest prototype)

public static LabelImageRequest.Builder newBuilder(LabelImageRequest prototype)
Parameter
Name Description
prototype LabelImageRequest
Returns
Type Description
LabelImageRequest.Builder

parseDelimitedFrom(InputStream input)

public static LabelImageRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LabelImageRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LabelImageRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LabelImageRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static LabelImageRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
LabelImageRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LabelImageRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LabelImageRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LabelImageRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
LabelImageRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LabelImageRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LabelImageRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LabelImageRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LabelImageRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LabelImageRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LabelImageRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static LabelImageRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LabelImageRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LabelImageRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LabelImageRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static LabelImageRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LabelImageRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LabelImageRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LabelImageRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<LabelImageRequest> parser()
Returns
Type Description
Parser<LabelImageRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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.

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

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.

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.

getParserForType()

public Parser<LabelImageRequest> getParserForType()
Returns
Type Description
Parser<LabelImageRequest>
Overrides

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.

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LabelImageRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LabelImageRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException