# Google Cloud BigQuery Migration V2 Client - Class ResourceErrorDetail (1.3.0)

1.3.0 (latest) 1.2.3 1.1.5 1.0.0 0.4.5 0.3.3 0.2.2 0.1.4 Reference documentation and code samples for the Google Cloud BigQuery Migration V2 Client class ResourceErrorDetail.

Provides details for errors and the corresponding resources.

Generated from protobuf message `google.cloud.bigquery.migration.v2.ResourceErrorDetail`

## Namespace

Google \\ Cloud \\ BigQuery \\ Migration \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ resource_info` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.ResourceInfo.html` Required. Information about the resource where the error is located. |
| `↳ error_details` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.ErrorDetail>` Required. The error details for the resource. |
| `↳ error_count` | `int` Required. How many errors there are in total for the resource. Truncation can be indicated by having an `error_count` that is higher than the size of `error_details`. |

### getResourceInfo

Required. Information about the resource where the error is located.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.ResourceInfo.html|null` |   |

### hasResourceInfo

### clearResourceInfo

### setResourceInfo

Required. Information about the resource where the error is located.

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

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

### getErrorDetails

Required. The error details for the resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.ErrorDetail>` |   |

### setErrorDetails

Required. The error details for the resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.ErrorDetail>` |

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

### getErrorCount

Required. How many errors there are in total for the resource. Truncation
can be indicated by having an `error_count` that is higher than the size of
`error_details`.

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

### setErrorCount

Required. How many errors there are in total for the resource. Truncation
can be indicated by having an `error_count` that is higher than the size of
`error_details`.

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

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