Interface PublishResponseOrBuilder (1.130.0)

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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
List<String>

A list containing the messageIds.