Reference documentation and code samples for the Google Cloud Tasks V2beta2 Client class AcknowledgeTaskRequest.
Request message for acknowledging a task using AcknowledgeTask.
Generated from protobuf message google.cloud.tasks.v2beta2.AcknowledgeTaskRequest
Namespace
Google \ Cloud \ Tasks \ V2beta2Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Required. The task name. For example: |
↳ schedule_time |
Google\Protobuf\Timestamp
Required. The task's current schedule time, available in the schedule_time returned by LeaseTasks response or RenewLease response. This restriction is to ensure that your worker currently holds the lease. |
getName
Required. The task name. For example:
projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID
Returns | |
---|---|
Type | Description |
string |
setName
Required. The task name. For example:
projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getScheduleTime
Required. The task's current schedule time, available in the schedule_time returned by LeaseTasks response or RenewLease response.
This restriction is to ensure that your worker currently holds the lease.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasScheduleTime
clearScheduleTime
setScheduleTime
Required. The task's current schedule time, available in the schedule_time returned by LeaseTasks response or RenewLease response.
This restriction is to ensure that your worker currently holds the lease.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |