# Google Cloud Storage Transfer V1 Client - Class ErrorSummary (2.4.0)

2.4.0 (latest) 2.3.2 2.2.1 2.1.1 2.0.2 1.5.0 1.4.5 1.3.1 1.2.0 1.1.1 1.0.6 Reference documentation and code samples for the Google Cloud Storage Transfer V1 Client class ErrorSummary.

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

Generated from protobuf message `google.storagetransfer.v1.ErrorSummary`

## Namespace

Google \\ Cloud \\ StorageTransfer \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ error_code` | `int` Required. |
| `↳ error_count` | `int|string` Required. Count of this type of error. |
| `↳ error_log_entries` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-storage-transfer/latest/V1.ErrorLogEntry>` Error samples. At most 5 error log entries are recorded for a given error code for a single transfer operation. |

### getErrorCode

Required.

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

### setErrorCode

Required.

| **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. Count of this type of error.

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

### setErrorCount

Required. Count of this type of error.

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

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

### getErrorLogEntries

Error samples.

At most 5 error log entries are recorded for a given
error code for a single transfer operation.

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

### setErrorLogEntries

Error samples.

At most 5 error log entries are recorded for a given
error code for a single transfer operation.

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

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