# Google Cloud Migration Center V1 Client - Class FileValidationReport (1.2.3)

1.2.3 (latest) 1.2.2 1.1.2 1.0.3 0.4.5 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Migration Center V1 Client class FileValidationReport.

A resource that aggregates the validation errors found in an import job file.

Generated from protobuf message `google.cloud.migrationcenter.v1.FileValidationReport`

## Namespace

Google \\ Cloud \\ MigrationCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ file_name` | `string` The name of the file. |
| `↳ row_errors` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.ImportRowError>` Partial list of rows that encountered validation error. |
| `↳ partial_report` | `bool` Flag indicating that processing was aborted due to maximum number of errors. |
| `↳ file_errors` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.ImportError>` List of file level errors. |

### getFileName

The name of the file.

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

### setFileName

The name of the file.

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

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

### getRowErrors

Partial list of rows that encountered validation error.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.ImportRowError>` |   |

### setRowErrors

Partial list of rows that encountered validation error.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.ImportRowError>` |

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

### getPartialReport

Flag indicating that processing was aborted due to maximum number of
errors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setPartialReport

Flag indicating that processing was aborted due to maximum number of
errors.

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

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

### getFileErrors

List of file level errors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.ImportError>` |   |

### setFileErrors

List of file level errors.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.ImportError>` |

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