# Google Cloud Lustre V1 Client - Class ErrorSummary (0.4.0)

0.4.0 (latest) 0.3.2 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Lustre 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.lustre.v1.ErrorSummary`

## Namespace

Google \\ Cloud \\ Lustre \\ 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-lustre/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-lustre/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-lustre/latest/V1.ErrorLogEntry>` |

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