Google Cloud Tasks V2beta2 Client - Class TaskStatus (1.15.2)

Reference documentation and code samples for the Google Cloud Tasks V2beta2 Client class TaskStatus.

Status of the task.

Generated from protobuf message google.cloud.tasks.v2beta2.TaskStatus

Namespace

Google \ Cloud \ Tasks \ V2beta2

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ attempt_dispatch_count
int

Output only. The number of attempts dispatched. This count includes attempts which have been dispatched but haven't received a response.

↳ attempt_response_count
int

Output only. The number of attempts which have received a response. This field is not calculated for pull tasks .

↳ first_attempt_status
AttemptStatus

Output only. The status of the task's first attempt. Only dispatch_time will be set. The other AttemptStatus information is not retained by Cloud Tasks. This field is not calculated for pull tasks .

↳ last_attempt_status
AttemptStatus

Output only. The status of the task's last attempt. This field is not calculated for pull tasks .

getAttemptDispatchCount

Output only. The number of attempts dispatched.

This count includes attempts which have been dispatched but haven't received a response.

Returns
Type
Description
int

setAttemptDispatchCount

Output only. The number of attempts dispatched.

This count includes attempts which have been dispatched but haven't received a response.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getAttemptResponseCount

Output only. The number of attempts which have received a response.

This field is not calculated for pull tasks .

Returns
Type
Description
int

setAttemptResponseCount

Output only. The number of attempts which have received a response.

This field is not calculated for pull tasks .

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getFirstAttemptStatus

Output only. The status of the task's first attempt.

Only dispatch_time will be set. The other AttemptStatus information is not retained by Cloud Tasks. This field is not calculated for pull tasks .

Returns
Type
Description

hasFirstAttemptStatus

clearFirstAttemptStatus

setFirstAttemptStatus

Output only. The status of the task's first attempt.

Only dispatch_time will be set. The other AttemptStatus information is not retained by Cloud Tasks. This field is not calculated for pull tasks .

Parameter
Name
Description
Returns
Type
Description
$this

getLastAttemptStatus

Output only. The status of the task's last attempt.

This field is not calculated for pull tasks .

Returns
Type
Description

hasLastAttemptStatus

clearLastAttemptStatus

setLastAttemptStatus

Output only. The status of the task's last attempt.

This field is not calculated for pull tasks .

Parameter
Name
Description
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: