Interface PublishResponseOrBuilder (1.126.5)

public interface PublishResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMessageIds(int index)

public abstract String getMessageIds(int index)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

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()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of messageIds.

getMessageIdsList()

public abstract List<String> getMessageIdsList()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<String>

A list containing the messageIds.