# Google Cloud Document Ai V1 Client - Class DatasetValidation (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 DatasetValidation.

The dataset validation information.

This includes any and all errors with documents and the dataset.

Generated from protobuf message `google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation`

## Namespace

Google \\ Cloud \\ DocumentAI \\ V1 \\ TrainProcessorVersionMetadata

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ document_error_count` | `int` The total number of document errors. |
| `↳ dataset_error_count` | `int` The total number of dataset errors. |
| `↳ document_errors` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training. |
| `↳ dataset_errors` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training. |

### getDocumentErrorCount

The total number of document errors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setDocumentErrorCount

The total number of document errors.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

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

### getDatasetErrorCount

The total number of dataset errors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setDatasetErrorCount

The total number of dataset errors.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

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

### getDocumentErrors

Error information pertaining to specific documents. A maximum of 10
document errors will be returned.

Any document with errors will not be used throughout training.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` |   |

### setDocumentErrors

Error information pertaining to specific documents. A maximum of 10
document errors will be returned.

Any document with errors will not be used throughout training.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` |

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

### getDatasetErrors

Error information for the dataset as a whole. A maximum of 10 dataset
errors will be returned.

A single dataset error is terminal for training.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` |   |

### setDatasetErrors

Error information for the dataset as a whole. A maximum of 10 dataset
errors will be returned.

A single dataset error is terminal for training.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` |

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