# Google Cloud Datalabeling V1beta1 Client - Class InputConfig (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 InputConfig.

The configuration of input data, including data type, location, etc.

Generated from protobuf message `google.cloud.datalabeling.v1beta1.InputConfig`

## Namespace

Google \\ Cloud \\ DataLabeling \\ V1beta1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ text_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.TextMetadata` Required for text import, as language code must be specified. |
| `↳ gcs_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.GcsSource` Source located in Cloud Storage. |
| `↳ bigquery_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.BigQuerySource` Source located in BigQuery. You must specify this field if you are using this InputConfig in an [EvaluationJob](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationJob). |
| `↳ data_type` | `int` Required. Data type must be specifed when user tries to import data. |
| `↳ annotation_type` | `int` Optional. The type of annotation to be performed on this data. You must specify this field if you are using this InputConfig in an [EvaluationJob](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationJob). |
| `↳ classification_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.ClassificationMetadata` Optional. Metadata about annotations for the input. You must specify this field if you are using this InputConfig in an [EvaluationJob](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationJob) for a model version that performs classification. |

### getTextMetadata

Required for text import, as language code must be specified.

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

### hasTextMetadata

### setTextMetadata

Required for text import, as language code must be specified.

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

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

### getGcsSource

Source located in Cloud Storage.

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

### hasGcsSource

### setGcsSource

Source located in Cloud Storage.

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

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

### getBigquerySource

Source located in BigQuery. You must specify this field if you are using
this InputConfig in an [EvaluationJob](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationJob).

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

### hasBigquerySource

### setBigquerySource

Source located in BigQuery. You must specify this field if you are using
this InputConfig in an [EvaluationJob](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationJob).

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

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

### getDataType

Required. Data type must be specifed when user tries to import data.

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

### setDataType

Required. Data type must be specifed when user tries to import data.

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

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

### getAnnotationType

Optional. The type of annotation to be performed on this data. You must
specify this field if you are using this InputConfig in an
[EvaluationJob](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationJob).

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

### setAnnotationType

Optional. The type of annotation to be performed on this data. You must
specify this field if you are using this InputConfig in an
[EvaluationJob](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationJob).

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

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

### getClassificationMetadata

Optional. Metadata about annotations for the input. You must specify this
field if you are using this InputConfig in an [EvaluationJob](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationJob) for a
model version that performs classification.

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

### hasClassificationMetadata

### clearClassificationMetadata

### setClassificationMetadata

Optional. Metadata about annotations for the input. You must specify this
field if you are using this InputConfig in an [EvaluationJob](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationJob) for a
model version that performs classification.

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

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

### getDataTypeMetadata

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### getSource

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |