Cloud PubSub V1 Client - Class PullResponse (1.39.3)

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

Response for the Pull method.

Generated from protobuf message google.pubsub.v1.PullResponse

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ received_messages array<Google\Cloud\PubSub\V1\ReceivedMessage>

Received Pub/Sub messages. The list will be empty if there are no more messages available in the backlog. For JSON, the response can be entirely empty. The Pub/Sub system may return fewer than the maxMessages requested even if there are more messages available in the backlog.

getReceivedMessages

Received Pub/Sub messages. The list will be empty if there are no more messages available in the backlog. For JSON, the response can be entirely empty. The Pub/Sub system may return fewer than the maxMessages requested even if there are more messages available in the backlog.

Generated from protobuf field repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setReceivedMessages

Received Pub/Sub messages. The list will be empty if there are no more messages available in the backlog. For JSON, the response can be entirely empty. The Pub/Sub system may return fewer than the maxMessages requested even if there are more messages available in the backlog.

Generated from protobuf field repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Parameter
NameDescription
var array<Google\Cloud\PubSub\V1\ReceivedMessage>
Returns
TypeDescription
$this