Cloud PubSub V1 Client - Class PublishResponse (1.39.3)

Reference documentation and code samples for the Cloud PubSub V1 Client class PublishResponse.

Response for the Publish method.

Generated from protobuf message google.pubsub.v1.PublishResponse

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ message_ids array

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.

getMessageIds

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.

Generated from protobuf field repeated string message_ids = 1;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setMessageIds

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.

Generated from protobuf field repeated string message_ids = 1;

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this