Interface SequencedMessageOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SequencedMessage,SequencedMessage.Builder
public interface SequencedMessageOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CursorgetCursor()The position of a message within the partition where it is stored.CursorOrBuildergetCursorOrBuilder()The position of a message within the partition where it is stored.PubSubMessagegetMessage()The user message.PubSubMessageOrBuildergetMessageOrBuilder()The user message.com.google.protobuf.TimestampgetPublishTime()The time when the message was received by the server when it was first published.com.google.protobuf.TimestampOrBuildergetPublishTimeOrBuilder()The time when the message was received by the server when it was first published.longgetSizeBytes()The size in bytes of this message for flow control and quota purposes.booleanhasCursor()The position of a message within the partition where it is stored.booleanhasMessage()The user message.booleanhasPublishTime()The time when the message was received by the server when it was first published.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasCursor
boolean hasCursor()
The position of a message within the partition where it is stored.
.google.cloud.pubsublite.v1.Cursor cursor = 1;- Returns:
- Whether the cursor field is set.
-
getCursor
Cursor getCursor()
The position of a message within the partition where it is stored.
.google.cloud.pubsublite.v1.Cursor cursor = 1;- Returns:
- The cursor.
-
getCursorOrBuilder
CursorOrBuilder getCursorOrBuilder()
The position of a message within the partition where it is stored.
.google.cloud.pubsublite.v1.Cursor cursor = 1;
-
hasPublishTime
boolean hasPublishTime()
The time when the message was received by the server when it was first published.
.google.protobuf.Timestamp publish_time = 2;- Returns:
- Whether the publishTime field is set.
-
getPublishTime
com.google.protobuf.Timestamp getPublishTime()
The time when the message was received by the server when it was first published.
.google.protobuf.Timestamp publish_time = 2;- Returns:
- The publishTime.
-
getPublishTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder()
The time when the message was received by the server when it was first published.
.google.protobuf.Timestamp publish_time = 2;
-
hasMessage
boolean hasMessage()
The user message.
.google.cloud.pubsublite.v1.PubSubMessage message = 3;- Returns:
- Whether the message field is set.
-
getMessage
PubSubMessage getMessage()
The user message.
.google.cloud.pubsublite.v1.PubSubMessage message = 3;- Returns:
- The message.
-
getMessageOrBuilder
PubSubMessageOrBuilder getMessageOrBuilder()
The user message.
.google.cloud.pubsublite.v1.PubSubMessage message = 3;
-
getSizeBytes
long getSizeBytes()
The size in bytes of this message for flow control and quota purposes.
int64 size_bytes = 4;- Returns:
- The sizeBytes.
-
-