Class LabelImageRequest (0.147.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
TypeDescription
int

BOUNDING_POLY_CONFIG_FIELD_NUMBER

public static final int BOUNDING_POLY_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

FEATURE_FIELD_NUMBER

public static final int FEATURE_FIELD_NUMBER
Field Value
TypeDescription
int

IMAGE_CLASSIFICATION_CONFIG_FIELD_NUMBER

public static final int IMAGE_CLASSIFICATION_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

POLYLINE_CONFIG_FIELD_NUMBER

public static final int POLYLINE_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

SEGMENTATION_CONFIG_FIELD_NUMBER

public static final int SEGMENTATION_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LabelImageRequest getDefaultInstance()
Returns
TypeDescription
LabelImageRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static LabelImageRequest.Builder newBuilder()
Returns
TypeDescription
LabelImageRequest.Builder

newBuilder(LabelImageRequest prototype)

public static LabelImageRequest.Builder newBuilder(LabelImageRequest prototype)
Parameter
NameDescription
prototypeLabelImageRequest
Returns
TypeDescription
LabelImageRequest.Builder

parseDelimitedFrom(InputStream input)

public static LabelImageRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LabelImageRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LabelImageRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LabelImageRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static LabelImageRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
LabelImageRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LabelImageRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LabelImageRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LabelImageRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
LabelImageRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LabelImageRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LabelImageRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LabelImageRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
LabelImageRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LabelImageRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LabelImageRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static LabelImageRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LabelImageRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LabelImageRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LabelImageRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static LabelImageRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
LabelImageRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LabelImageRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LabelImageRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<LabelImageRequest> parser()
Returns
TypeDescription
Parser<LabelImageRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
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.

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

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.

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.

getParserForType()

public Parser<LabelImageRequest> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
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.

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public LabelImageRequest.Builder newBuilderForType()
Returns
TypeDescription
LabelImageRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LabelImageRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
LabelImageRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public LabelImageRequest.Builder toBuilder()
Returns
TypeDescription
LabelImageRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException