Interface MessagePublishRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
MessagePublishRequest,MessagePublishRequest.Builder
public interface MessagePublishRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlongThe sequence number corresponding to the first message in `messages`.getMessages(int index) The messages to publish.intThe messages to publish.The messages to publish.getMessagesOrBuilder(int index) The messages to publish.List<? extends PubSubMessageOrBuilder>The messages to publish.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
-
getMessagesList
List<PubSubMessage> getMessagesList()The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; -
getMessages
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; -
getMessagesCount
int getMessagesCount()The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; -
getMessagesOrBuilderList
List<? extends PubSubMessageOrBuilder> getMessagesOrBuilderList()The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; -
getMessagesOrBuilder
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; -
getFirstSequenceNumber
long getFirstSequenceNumber()The sequence number corresponding to the first message in `messages`. Messages within a batch are ordered and the sequence numbers of all subsequent messages in the batch are assumed to be incremental. Sequence numbers are assigned at the message level and the first message published in a publisher client session must have a sequence number of 0. All messages must have contiguous sequence numbers, which uniquely identify the messages accepted by the publisher client. Since messages are ordered, the client only needs to specify the sequence number of the first message in a published batch. The server deduplicates messages with the same sequence number from the same publisher `client_id`.
int64 first_sequence_number = 2;- Returns:
- The firstSequenceNumber.
-