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 | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ subscription |
string
Required. The subscription whose message is being acknowledged. Format is |
↳ ack_ids |
array
Required. The acknowledgment ID for the messages being acknowledged that was returned by the Pub/Sub system in the |
getSubscription
Required. The subscription whose message is being acknowledged.
Format is projects/{project}/subscriptions/{sub}
.
Generated from protobuf field string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
Returns | |
---|---|
Type | Description |
string |
setSubscription
Required. The subscription whose message is being acknowledged.
Format is projects/{project}/subscriptions/{sub}
.
Generated from protobuf field string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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.
Generated from protobuf field repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
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.
Generated from protobuf field repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |