Cloud PubSub V1 Client - Class AcknowledgeRequest (1.41.3)

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

Request for the Acknowledge method.

Generated from protobuf message google.pubsub.v1.AcknowledgeRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ subscription string

Required. The subscription whose message is being acknowledged. Format is projects/{project}/subscriptions/{sub}.

↳ ack_ids array

Required. The acknowledgment ID for the messages being acknowledged that was returned by the Pub/Sub system in the Pull response. Must not be empty.

getSubscription

Required. The subscription whose message is being acknowledged.

Format is projects/{project}/subscriptions/{sub}.

Returns
TypeDescription
string

setSubscription

Required. The subscription whose message is being acknowledged.

Format is projects/{project}/subscriptions/{sub}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAckIds

Required. The acknowledgment ID for the messages being acknowledged that was returned by the Pub/Sub system in the Pull response. Must not be empty.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAckIds

Required. The acknowledgment ID for the messages being acknowledged that was returned by the Pub/Sub system in the Pull response. Must not be empty.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this