Interface PublishResponseOrBuilder (1.123.13)

public interface PublishResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMessageIds(int index)

public abstract String getMessageIds(int index)

The server-assigned ID of each published message, in the same order as the messages in the request. IDs are guaranteed to be unique within the topic.

repeated string message_ids = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The messageIds at the given index.

getMessageIdsBytes(int index)

public abstract ByteString getMessageIdsBytes(int index)

The server-assigned ID of each published message, in the same order as the messages in the request. IDs are guaranteed to be unique within the topic.

repeated string message_ids = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the messageIds at the given index.

getMessageIdsCount()

public abstract int getMessageIdsCount()

The server-assigned ID of each published message, in the same order as the messages in the request. IDs are guaranteed to be unique within the topic.

repeated string message_ids = 1;

Returns
TypeDescription
int

The count of messageIds.

getMessageIdsList()

public abstract List<String> getMessageIdsList()

The server-assigned ID of each published message, in the same order as the messages in the request. IDs are guaranteed to be unique within the topic.

repeated string message_ids = 1;

Returns
TypeDescription
List<String>

A list containing the messageIds.