Google Cloud Tasks V2beta2 Client - Class AttemptStatus (1.14.6)

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

The status of a task attempt.

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

Namespace

Google \ Cloud \ Tasks \ V2beta2

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ schedule_time
Google\Protobuf\Timestamp

Output only. The time that this attempt was scheduled. schedule_time will be truncated to the nearest microsecond.

↳ dispatch_time
Google\Protobuf\Timestamp

Output only. The time that this attempt was dispatched. dispatch_time will be truncated to the nearest microsecond.

↳ response_time
Google\Protobuf\Timestamp

Output only. The time that this attempt response was received. response_time will be truncated to the nearest microsecond.

↳ response_status
Google\Rpc\Status

Output only. The response from the target for this attempt. If the task has not been attempted or the task is currently running then the response status is unset.

getScheduleTime

Output only. The time that this attempt was scheduled.

schedule_time will be truncated to the nearest microsecond.

Returns
Type
Description

hasScheduleTime

clearScheduleTime

setScheduleTime

Output only. The time that this attempt was scheduled.

schedule_time will be truncated to the nearest microsecond.

Parameter
Name
Description
Returns
Type
Description
$this

getDispatchTime

Output only. The time that this attempt was dispatched.

dispatch_time will be truncated to the nearest microsecond.

Returns
Type
Description

hasDispatchTime

clearDispatchTime

setDispatchTime

Output only. The time that this attempt was dispatched.

dispatch_time will be truncated to the nearest microsecond.

Parameter
Name
Description
Returns
Type
Description
$this

getResponseTime

Output only. The time that this attempt response was received.

response_time will be truncated to the nearest microsecond.

Returns
Type
Description

hasResponseTime

clearResponseTime

setResponseTime

Output only. The time that this attempt response was received.

response_time will be truncated to the nearest microsecond.

Parameter
Name
Description
Returns
Type
Description
$this

getResponseStatus

Output only. The response from the target for this attempt.

If the task has not been attempted or the task is currently running then the response status is unset.

Returns
Type
Description

hasResponseStatus

clearResponseStatus

setResponseStatus

Output only. The response from the target for this attempt.

If the task has not been attempted or the task is currently running then the response status is unset.

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