[[["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-08-28 UTC."],[],[],null,["# Cloud Tasks V2beta2 API - Class Google::Cloud::Tasks::V2beta2::AcknowledgeTaskRequest (v0.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.15.0 (latest)](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-AcknowledgeTaskRequest)\n- [0.14.1](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.14.1/Google-Cloud-Tasks-V2beta2-AcknowledgeTaskRequest)\n- [0.13.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.13.0/Google-Cloud-Tasks-V2beta2-AcknowledgeTaskRequest)\n- [0.12.1](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.12.1/Google-Cloud-Tasks-V2beta2-AcknowledgeTaskRequest)\n- [0.11.3](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.11.3/Google-Cloud-Tasks-V2beta2-AcknowledgeTaskRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.10.0/Google-Cloud-Tasks-V2beta2-AcknowledgeTaskRequest)\n- [0.9.2](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.9.2/Google-Cloud-Tasks-V2beta2-AcknowledgeTaskRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.8.0/Google-Cloud-Tasks-V2beta2-AcknowledgeTaskRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.7.0/Google-Cloud-Tasks-V2beta2-AcknowledgeTaskRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.6.0/Google-Cloud-Tasks-V2beta2-AcknowledgeTaskRequest)\n- [0.5.5](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.5.5/Google-Cloud-Tasks-V2beta2-AcknowledgeTaskRequest) \nReference documentation and code samples for the Cloud Tasks V2beta2 API class Google::Cloud::Tasks::V2beta2::AcknowledgeTaskRequest.\n\nRequest message for acknowledging a task using\n[AcknowledgeTask](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-CloudTasks-Client#Google__Cloud__Tasks__V2beta2__CloudTasks__Client_acknowledge_task_instance_ \"Google::Cloud::Tasks::V2beta2::CloudTasks::Client#acknowledge_task (method)\"). \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` \n**Returns**\n\n- (::String) --- Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`\n\n### #schedule_time\n\n def schedule_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Required. The task's current schedule time, available in the [schedule_time](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task#Google__Cloud__Tasks__V2beta2__Task_schedule_time_instance_ \"Google::Cloud::Tasks::V2beta2::Task#schedule_time (method)\") returned by [LeaseTasks](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-CloudTasks-Client#Google__Cloud__Tasks__V2beta2__CloudTasks__Client_lease_tasks_instance_ \"Google::Cloud::Tasks::V2beta2::CloudTasks::Client#lease_tasks (method)\") response or [RenewLease](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-CloudTasks-Client#Google__Cloud__Tasks__V2beta2__CloudTasks__Client_renew_lease_instance_ \"Google::Cloud::Tasks::V2beta2::CloudTasks::Client#renew_lease (method)\") response. This restriction is to ensure that your worker currently holds the lease.\n\n### #schedule_time=\n\n def schedule_time=(value) -\u003e ::Google::Protobuf::Timestamp\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Required. The task's current schedule time, available in the [schedule_time](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task#Google__Cloud__Tasks__V2beta2__Task_schedule_time_instance_ \"Google::Cloud::Tasks::V2beta2::Task#schedule_time (method)\") returned by [LeaseTasks](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-CloudTasks-Client#Google__Cloud__Tasks__V2beta2__CloudTasks__Client_lease_tasks_instance_ \"Google::Cloud::Tasks::V2beta2::CloudTasks::Client#lease_tasks (method)\") response or [RenewLease](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-CloudTasks-Client#Google__Cloud__Tasks__V2beta2__CloudTasks__Client_renew_lease_instance_ \"Google::Cloud::Tasks::V2beta2::CloudTasks::Client#renew_lease (method)\") response. This restriction is to ensure that your worker currently holds the lease. \n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Required. The task's current schedule time, available in the [schedule_time](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task#Google__Cloud__Tasks__V2beta2__Task_schedule_time_instance_ \"Google::Cloud::Tasks::V2beta2::Task#schedule_time (method)\") returned by [LeaseTasks](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-CloudTasks-Client#Google__Cloud__Tasks__V2beta2__CloudTasks__Client_lease_tasks_instance_ \"Google::Cloud::Tasks::V2beta2::CloudTasks::Client#lease_tasks (method)\") response or [RenewLease](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-CloudTasks-Client#Google__Cloud__Tasks__V2beta2__CloudTasks__Client_renew_lease_instance_ \"Google::Cloud::Tasks::V2beta2::CloudTasks::Client#renew_lease (method)\") response. This restriction is to ensure that your worker currently holds the lease."]]