# Stackdriver Logging V2 Client - Class WriteLogEntriesPartialErrors (2.1.0)

2.1.0 (latest) 2.0.0 1.34.5 1.33.0 1.32.3 1.31.3 1.30.3 1.29.0 1.28.5 1.27.1 1.26.0 1.25.5 1.24.10 Reference documentation and code samples for the Stackdriver Logging V2 Client class WriteLogEntriesPartialErrors.

Error details for WriteLogEntries with partial success.

Generated from protobuf message `google.logging.v2.WriteLogEntriesPartialErrors`

## Namespace

Google \\ Cloud \\ Logging \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ log_entry_errors` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` When `WriteLogEntriesRequest.partial_success` is true, records the error status for entries that were not written due to a permanent error, keyed by the entry's zero-based index in `WriteLogEntriesRequest.entries`. Failed requests for which no entries are written will not include per-entry errors. |

### getLogEntryErrors

When `WriteLogEntriesRequest.partial_success` is true, records the error
status for entries that were not written due to a permanent error, keyed
by the entry's zero-based index in `WriteLogEntriesRequest.entries`.

Failed requests for which no entries are written will not include
per-entry errors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLogEntryErrors

When `WriteLogEntriesRequest.partial_success` is true, records the error
status for entries that were not written due to a permanent error, keyed
by the entry's zero-based index in `WriteLogEntriesRequest.entries`.

Failed requests for which no entries are written will not include
per-entry errors.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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