Interface MessagePublishResponse.CursorRangeOrBuilder (1.11.0)

public static interface MessagePublishResponse.CursorRangeOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEndIndex()

public abstract int getEndIndex()

Index of the last message in this range. Exclusive.

int32 end_index = 3;

Returns
TypeDescription
int

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
TypeDescription
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
TypeDescription
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
TypeDescription
int

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
TypeDescription
boolean

Whether the startCursor field is set.