# Google Cloud Storage Batch Operations V1 Client - Class ErrorSummary (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.1 0.2.1 0.1.2 Reference documentation and code samples for the Google Cloud Storage Batch Operations V1 Client class ErrorSummary.

A summary of errors by error code, plus a count and sample error log
entries.

Generated from protobuf message `google.cloud.storagebatchoperations.v1.ErrorSummary`

## Namespace

Google \\ Cloud \\ StorageBatchOperations \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ error_code` | `int` Required. The canonical error code. |
| `↳ error_count` | `int|string` Required. Number of errors encountered per `error_code`. |
| `↳ error_log_entries` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-storagebatchoperations/latest/V1.ErrorLogEntry>` Required. Sample error logs. |

### getErrorCode

Required. The canonical error code.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Code](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Code.html). |

### setErrorCode

Required. The canonical error code.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Code](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Code.html). |

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

### getErrorCount

Required. Number of errors encountered per `error_code`.

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

### setErrorCount

Required. Number of errors encountered per `error_code`.

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

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

### getErrorLogEntries

Required. Sample error logs.

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

### setErrorLogEntries

Required. Sample error logs.

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

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