# Google Cloud Datalabeling V1beta1 Client - Class LabelImageRequest (0.7.2)

0.7.2 (latest) 0.7.1 0.6.3 0.5.7 0.4.2 0.3.1 0.2.0 0.1.14

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

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` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/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` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/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` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.PolylineConfig` Configuration for polyline task. One of image_classification_config, bounding_poly_config, polyline_config and segmentation_config are required. |
| `↳ segmentation_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/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` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/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** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/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` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/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** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/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` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/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** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/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` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/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** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/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` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/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** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.HumanAnnotationConfig|null` |   |

### hasBasicConfig

### clearBasicConfig

### setBasicConfig

Required. Basic human annotation config.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.HumanAnnotationConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFeature

Required. The type of image labeling task.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Feature](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.LabelImageRequest.Feature). |

### setFeature

Required. The type of image labeling task.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Feature](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.LabelImageRequest.Feature). |

| **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` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.HumanAnnotationConfig` Required. Basic human annotation config. |
| `feature` | `int` Required. The type of image labeling task. For allowed values, use constants defined on [LabelImageRequest\\Feature](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.LabelImageRequest.Feature) |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.LabelImageRequest` |   |