Google Cloud Datalabeling V1beta1 Client - Class LabelImageRequest (0.4.2)

Reference documentation and code samples for the Google Cloud Datalabeling V1beta1 Client class LabelImageRequest.

Request message for starting an image labeling task.

Generated from protobuf message google.cloud.datalabeling.v1beta1.LabelImageRequest

Namespace

Google \ Cloud \ DataLabeling \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ image_classification_config Google\Cloud\DataLabeling\V1beta1\ImageClassificationConfig

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

↳ bounding_poly_config Google\Cloud\DataLabeling\V1beta1\BoundingPolyConfig

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

↳ polyline_config Google\Cloud\DataLabeling\V1beta1\PolylineConfig

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

↳ segmentation_config Google\Cloud\DataLabeling\V1beta1\SegmentationConfig

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

↳ parent string

Required. Name of the dataset to request labeling task, format: projects/{project_id}/datasets/{dataset_id}

↳ basic_config Google\Cloud\DataLabeling\V1beta1\HumanAnnotationConfig

Required. Basic human annotation config.

↳ feature int

Required. The type of image labeling task.

getImageClassificationConfig

Configuration for image classification task.

One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

Returns
TypeDescription
Google\Cloud\DataLabeling\V1beta1\ImageClassificationConfig|null

hasImageClassificationConfig

setImageClassificationConfig

Configuration for image classification task.

One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

Parameter
NameDescription
var Google\Cloud\DataLabeling\V1beta1\ImageClassificationConfig
Returns
TypeDescription
$this

getBoundingPolyConfig

Configuration for bounding box and bounding poly task.

One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

Returns
TypeDescription
Google\Cloud\DataLabeling\V1beta1\BoundingPolyConfig|null

hasBoundingPolyConfig

setBoundingPolyConfig

Configuration for bounding box and bounding poly task.

One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

Parameter
NameDescription
var Google\Cloud\DataLabeling\V1beta1\BoundingPolyConfig
Returns
TypeDescription
$this

getPolylineConfig

Configuration for polyline task.

One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

Returns
TypeDescription
Google\Cloud\DataLabeling\V1beta1\PolylineConfig|null

hasPolylineConfig

setPolylineConfig

Configuration for polyline task.

One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

Parameter
NameDescription
var Google\Cloud\DataLabeling\V1beta1\PolylineConfig
Returns
TypeDescription
$this

getSegmentationConfig

Configuration for segmentation task.

One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

Returns
TypeDescription
Google\Cloud\DataLabeling\V1beta1\SegmentationConfig|null

hasSegmentationConfig

setSegmentationConfig

Configuration for segmentation task.

One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required.

Parameter
NameDescription
var Google\Cloud\DataLabeling\V1beta1\SegmentationConfig
Returns
TypeDescription
$this

getParent

Required. Name of the dataset to request labeling task, format: projects/{project_id}/datasets/{dataset_id}

Returns
TypeDescription
string

setParent

Required. Name of the dataset to request labeling task, format: projects/{project_id}/datasets/{dataset_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBasicConfig

Required. Basic human annotation config.

Returns
TypeDescription
Google\Cloud\DataLabeling\V1beta1\HumanAnnotationConfig|null

hasBasicConfig

clearBasicConfig

setBasicConfig

Required. Basic human annotation config.

Parameter
NameDescription
var Google\Cloud\DataLabeling\V1beta1\HumanAnnotationConfig
Returns
TypeDescription
$this

getFeature

Required. The type of image labeling task.

Returns
TypeDescription
int

setFeature

Required. The type of image labeling task.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getRequestConfig

Returns
TypeDescription
string

static::build

Parameters
NameDescription
parent string

Required. Name of the dataset to request labeling task, format: projects/{project_id}/datasets/{dataset_id} Please see Google\Cloud\DataLabeling\V1beta1\DataLabelingServiceClient::datasetName() for help formatting this field.

basicConfig Google\Cloud\DataLabeling\V1beta1\HumanAnnotationConfig

Required. Basic human annotation config.

feature int

Required. The type of image labeling task. For allowed values, use constants defined on Google\Cloud\DataLabeling\V1beta1\LabelImageRequest\Feature

Returns
TypeDescription
Google\Cloud\DataLabeling\V1beta1\LabelImageRequest