# Google Cloud Document Ai V1 Client - Class InputData (2.7.0)

2.7.0 (latest) 2.6.1 2.5.1 2.4.1 2.3.0 2.2.2 2.1.3 2.0.0 1.14.0 1.13.1 1.12.2 1.9.0 1.8.2 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.2 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Document Ai V1 Client class InputData.

The input data used to train a new
[ProcessorVersion](https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.ProcessorVersion).

Generated from protobuf message `google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData`

## Namespace

Google \\ Cloud \\ DocumentAI \\ V1 \\ TrainProcessorVersionRequest

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ training_documents` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.BatchDocumentsInputConfig` The documents used for training the new version. |
| `↳ test_documents` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.BatchDocumentsInputConfig` The documents used for testing the trained version. |

### getTrainingDocuments

The documents used for training the new version.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.BatchDocumentsInputConfig|null` |   |

### hasTrainingDocuments

### clearTrainingDocuments

### setTrainingDocuments

The documents used for training the new version.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.BatchDocumentsInputConfig` |

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

### getTestDocuments

The documents used for testing the trained version.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.BatchDocumentsInputConfig|null` |   |

### hasTestDocuments

### clearTestDocuments

### setTestDocuments

The documents used for testing the trained version.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.BatchDocumentsInputConfig` |

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