# Interface LogSplitOrBuilder (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.LogSplitOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.audit.v1.LogSplitOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.audit.v1.LogSplitOrBuilder)

    public interface LogSplitOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getIndex()

    public abstract int getIndex()

The index of this LogEntry in the sequence of split logs. LogEntries are
given \|index\| values 0, 1, ..., n-1 for a sequence of n entries.

`int32 index = 2;`

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

### getTotalSplits()

    public abstract int getTotalSplits()

The total number of logs that the original LogEntry was split into.

`int32 total_splits = 3;`

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

### getUid()

    public abstract String getUid()

A globally unique identifier for all LogEntries in a sequence of split
logs. All LogEntries with the same \|LogSplit.uid\| are assumed to be part of
the same sequence of split logs.

`string uid = 1;`

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

### getUidBytes()

    public abstract ByteString getUidBytes()

A globally unique identifier for all LogEntries in a sequence of split
logs. All LogEntries with the same \|LogSplit.uid\| are assumed to be part of
the same sequence of split logs.

`string uid = 1;`

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