# Interface LogEntryOperationOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.audit.v1.LogEntryOperationOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.audit.v1.LogEntryOperationOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.audit.v1.LogEntryOperationOrBuilder)

    public interface LogEntryOperationOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getFirst()

    public abstract boolean getFirst()

True if this is the first log entry in the operation.

`bool first = 3;`

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

### getId()

    public abstract String getId()

An arbitrary operation identifier. Log entries with the same
identifier are assumed to be part of the same operation.

`string id = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The id. |

### getIdBytes()

    public abstract ByteString getIdBytes()

An arbitrary operation identifier. Log entries with the same
identifier are assumed to be part of the same operation.

`string id = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for id. |

### getLast()

    public abstract boolean getLast()

True if this is the last log entry in the operation.

`bool last = 4;`

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

### getProducer()

    public abstract String getProducer()

An arbitrary producer identifier. The combination of `id` and
`producer` must be globally unique. Examples for `producer`:
`"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.

`string producer = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The producer. |

### getProducerBytes()

    public abstract ByteString getProducerBytes()

An arbitrary producer identifier. The combination of `id` and
`producer` must be globally unique. Examples for `producer`:
`"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.

`string producer = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for producer. |