Interface MessagePublishRequestOrBuilder (1.15.0)

public interface MessagePublishRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getFirstSequenceNumber()

public abstract 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
Type Description
long

The firstSequenceNumber.

getMessages(int index)

public abstract PubSubMessage getMessages(int index)

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Parameter
Name Description
index int
Returns
Type Description
PubSubMessage

getMessagesCount()

public abstract int getMessagesCount()

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Returns
Type Description
int

getMessagesList()

public abstract List<PubSubMessage> getMessagesList()

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Returns
Type Description
List<PubSubMessage>

getMessagesOrBuilder(int index)

public abstract PubSubMessageOrBuilder getMessagesOrBuilder(int index)

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Parameter
Name Description
index int
Returns
Type Description
PubSubMessageOrBuilder

getMessagesOrBuilderList()

public abstract List<? extends PubSubMessageOrBuilder> getMessagesOrBuilderList()

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Returns
Type Description
List<? extends com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder>