Google Cloud Datalabeling V1beta1 Client - Class LabelImageRequest (0.5.7)

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
Name Description
data array

Optional. Data for populating the Message object.

↳ image_classification_config ImageClassificationConfig

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

↳ bounding_poly_config 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 PolylineConfig

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

↳ segmentation_config 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 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
Type Description
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
Name Description
var ImageClassificationConfig
Returns
Type Description
$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
Type Description
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
Name Description
var BoundingPolyConfig
Returns
Type Description
$this

getPolylineConfig

Configuration for polyline task.

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

Returns
Type Description
PolylineConfig|null

hasPolylineConfig

setPolylineConfig

Configuration for polyline task.

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

Parameter
Name Description
var PolylineConfig
Returns
Type Description
$this

getSegmentationConfig

Configuration for segmentation task.

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

Returns
Type Description
SegmentationConfig|null

hasSegmentationConfig

setSegmentationConfig

Configuration for segmentation task.

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

Parameter
Name Description
var SegmentationConfig
Returns
Type Description
$this

getParent

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

Returns
Type Description
string

setParent

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

Parameter
Name Description
var string
Returns
Type Description
$this

getBasicConfig

Required. Basic human annotation config.

Returns
Type Description
HumanAnnotationConfig|null

hasBasicConfig

clearBasicConfig

setBasicConfig

Required. Basic human annotation config.

Parameter
Name Description
var HumanAnnotationConfig
Returns
Type Description
$this

getFeature

Required. The type of image labeling task.

Returns
Type Description
int

setFeature

Required. The type of image labeling task.

Parameter
Name Description
var int
Returns
Type Description
$this

getRequestConfig

Returns
Type Description
string

static::build

Parameters
Name Description
parent string

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

basicConfig HumanAnnotationConfig

Required. Basic human annotation config.

feature int

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

Returns
Type Description
LabelImageRequest