# Interface WriteLogEntriesPartialErrorsOrBuilder (3.34.0)

3.34.0 (latest) 3.32.0 3.29.0 3.28.0 3.26.0 3.24.0 3.23.10 3.22.6 3.21.4 3.20.7 3.19.0 3.18.0 3.17.2 3.16.2 3.15.17 3.14.9 3.13.7 3.12.1 3.11.10 3.10.7 3.9.0 3.8.0 3.7.6 3.6.4 3.5.3

    public interface WriteLogEntriesPartialErrorsOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### containsLogEntryErrors(int key)

    public abstract boolean containsLogEntryErrors(int key)

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.

`map<int32, .google.rpc.Status> log_entry_errors = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getLogEntryErrors() (deprecated)

    public abstract Map<Integer,Status> getLogEntryErrors()

Use [#getLogEntryErrorsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-logging/latest/com.google.logging.v2.WriteLogEntriesPartialErrorsOrBuilder#com_google_logging_v2_WriteLogEntriesPartialErrorsOrBuilder_getLogEntryErrorsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html,com.google.rpc.Status>` |   |

### getLogEntryErrorsCount()

    public abstract int getLogEntryErrorsCount()

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.

`map<int32, .google.rpc.Status> log_entry_errors = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getLogEntryErrorsMap()

    public abstract Map<Integer,Status> getLogEntryErrorsMap()

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.

`map<int32, .google.rpc.Status> log_entry_errors = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html,com.google.rpc.Status>` |   |

### getLogEntryErrorsOrDefault(int key, Status defaultValue)

    public abstract Status getLogEntryErrorsOrDefault(int key, Status defaultValue)

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.

`map<int32, .google.rpc.Status> log_entry_errors = 1;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `defaultValue` | `com.google.rpc.Status` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.rpc.Status` |   |

### getLogEntryErrorsOrThrow(int key)

    public abstract Status getLogEntryErrorsOrThrow(int key)

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.

`map<int32, .google.rpc.Status> log_entry_errors = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.rpc.Status` |   |