Interface MessagePublishResponseOrBuilder (1.11.2)

public interface MessagePublishResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCursorRanges(int index)

public abstract MessagePublishResponse.CursorRange getCursorRanges(int index)

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch. The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
MessagePublishResponse.CursorRange

getCursorRangesCount()

public abstract int getCursorRangesCount()

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch. The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

Returns
TypeDescription
int

getCursorRangesList()

public abstract List<MessagePublishResponse.CursorRange> getCursorRangesList()

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch. The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

Returns
TypeDescription
List<CursorRange>

getCursorRangesOrBuilder(int index)

public abstract MessagePublishResponse.CursorRangeOrBuilder getCursorRangesOrBuilder(int index)

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch. The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
MessagePublishResponse.CursorRangeOrBuilder

getCursorRangesOrBuilderList()

public abstract List<? extends MessagePublishResponse.CursorRangeOrBuilder> getCursorRangesOrBuilderList()

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch. The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

Returns
TypeDescription
List<? extends com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder>

getStartCursor()

public abstract Cursor getStartCursor()

The cursor of the first published message in the batch. The cursors for any remaining messages in the batch are guaranteed to be sequential.

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

Returns
TypeDescription
Cursor

The startCursor.

getStartCursorOrBuilder()

public abstract CursorOrBuilder getStartCursorOrBuilder()

The cursor of the first published message in the batch. The cursors for any remaining messages in the batch are guaranteed to be sequential.

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

Returns
TypeDescription
CursorOrBuilder

hasStartCursor()

public abstract boolean hasStartCursor()

The cursor of the first published message in the batch. The cursors for any remaining messages in the batch are guaranteed to be sequential.

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

Returns
TypeDescription
boolean

Whether the startCursor field is set.