Interface MessagePublishResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
MessagePublishResponse,MessagePublishResponse.Builder
public interface MessagePublishResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetCursorRanges(int index) Cursors for messages published in the batch.intCursors for messages published in the batch.Cursors for messages published in the batch.getCursorRangesOrBuilder(int index) Cursors for messages published in the batch.List<? extends MessagePublishResponse.CursorRangeOrBuilder>Cursors for messages published in the batch.The cursor of the first published message in the batch.The cursor of the first published message in the batch.booleanThe cursor of the first published message in the batch.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasStartCursor
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:
- Whether the startCursor field is set.
-
getStartCursor
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:
- The startCursor.
-
getStartCursorOrBuilder
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; -
getCursorRangesList
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; -
getCursorRanges
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; -
getCursorRangesCount
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; -
getCursorRangesOrBuilderList
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; -
getCursorRangesOrBuilder
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;
-