Output only. The response from the worker for this attempt. Ifresponse_timeis unset, then the task has not been attempted or is currently running and theresponse_statusfield is meaningless.
getScheduleTime
Output only. The time that this attempt was scheduled.
schedule_timewill be truncated to the nearest microsecond.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Tasks V2 Client - Class Attempt (2.0.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.2 (latest)](/php/docs/reference/cloud-tasks/latest/V2.Attempt)\n- [2.0.1](/php/docs/reference/cloud-tasks/2.0.1/V2.Attempt)\n- [1.15.2](/php/docs/reference/cloud-tasks/1.15.2/V2.Attempt)\n- [1.14.6](/php/docs/reference/cloud-tasks/1.14.6/V2.Attempt)\n- [1.13.2](/php/docs/reference/cloud-tasks/1.13.2/V2.Attempt)\n- [1.12.2](/php/docs/reference/cloud-tasks/1.12.2/V2.Attempt)\n- [1.11.11](/php/docs/reference/cloud-tasks/1.11.11/V2.Attempt) \nReference documentation and code samples for the Google Cloud Tasks V2 Client class Attempt.\n\nThe status of a task attempt.\n\nGenerated from protobuf message `google.cloud.tasks.v2.Attempt`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Tasks \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getScheduleTime\n\nOutput only. The time that this attempt was scheduled.\n\n`schedule_time` will be truncated to the nearest microsecond.\n\n### hasScheduleTime\n\n### clearScheduleTime\n\n### setScheduleTime\n\nOutput only. The time that this attempt was scheduled.\n\n`schedule_time` will be truncated to the nearest microsecond.\n\n### getDispatchTime\n\nOutput only. The time that this attempt was dispatched.\n\n`dispatch_time` will be truncated to the nearest microsecond.\n\n### hasDispatchTime\n\n### clearDispatchTime\n\n### setDispatchTime\n\nOutput only. The time that this attempt was dispatched.\n\n`dispatch_time` will be truncated to the nearest microsecond.\n\n### getResponseTime\n\nOutput only. The time that this attempt response was received.\n\n`response_time` will be truncated to the nearest microsecond.\n\n### hasResponseTime\n\n### clearResponseTime\n\n### setResponseTime\n\nOutput only. The time that this attempt response was received.\n\n`response_time` will be truncated to the nearest microsecond.\n\n### getResponseStatus\n\nOutput only. The response from the worker for this attempt.\n\nIf `response_time` is unset, then the task has not been attempted or is\ncurrently running and the `response_status` field is meaningless.\n\n### hasResponseStatus\n\n### clearResponseStatus\n\n### setResponseStatus\n\nOutput only. The response from the worker for this attempt.\n\nIf `response_time` is unset, then the task has not been attempted or is\ncurrently running and the `response_status` field is meaningless."]]