# Interface MessagePublishResponse.CursorRangeOrBuilder (1.16.5)

1.16.5 (latest) 1.16.2 1.15.21 1.14.8 1.13.8 1.12.22 1.11.2 1.10.0 1.9.4 1.8.0 1.7.1 1.6.3 1.5.5 1.4.12

    public static interface MessagePublishResponse.CursorRangeOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getEndIndex()

    public abstract int getEndIndex()

Index of the last message in this range. Exclusive.

`int32 end_index = 3;`

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

### getStartCursor()

    public abstract Cursor getStartCursor()

The cursor of the message at the start index. The cursors for remaining
messages up to the end index (exclusive) are sequential.

`.google.cloud.pubsublite.v1.Cursor start_cursor = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsublite/latest/com.google.cloud.pubsublite.proto.Cursor` | The startCursor. |

### getStartCursorOrBuilder()

    public abstract CursorOrBuilder getStartCursorOrBuilder()

The cursor of the message at the start index. The cursors for remaining
messages up to the end index (exclusive) are sequential.

`.google.cloud.pubsublite.v1.Cursor start_cursor = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsublite/latest/com.google.cloud.pubsublite.proto.CursorOrBuilder` |   |

### getStartIndex()

    public abstract int getStartIndex()

Index of the message in the published batch that corresponds to the
start cursor. Inclusive.

`int32 start_index = 2;`

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

### hasStartCursor()

    public abstract boolean hasStartCursor()

The cursor of the message at the start index. The cursors for remaining
messages up to the end index (exclusive) are sequential.

`.google.cloud.pubsublite.v1.Cursor start_cursor = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the startCursor field is set. |