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
Methods
build
Parameters | |
---|---|
Name | Description |
parent |
string
Required. Name of the dataset to request labeling task, format: projects/{project_id}/datasets/{dataset_id} Please see {@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 {@see \Google\Cloud\DataLabeling\V1beta1\LabelImageRequest\Feature} |
Returns | |
---|---|
Type | Description |
Google\Cloud\DataLabeling\V1beta1\LabelImageRequest |
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
Google\Cloud\DataLabeling\V1beta1\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 |
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 | |
---|---|
Name | Description |
var |
Google\Cloud\DataLabeling\V1beta1\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 |
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 | |
---|---|
Name | Description |
var |
Google\Cloud\DataLabeling\V1beta1\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 |
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 | |
---|---|
Name | Description |
var |
Google\Cloud\DataLabeling\V1beta1\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 |
Google\Cloud\DataLabeling\V1beta1\HumanAnnotationConfig|null |
hasBasicConfig
clearBasicConfig
setBasicConfig
Required. Basic human annotation config.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\DataLabeling\V1beta1\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 |