By default response_view is
BASIC; not all information is
retrieved by default because some data, such as payloads, might be
desirable to return only when needed because of its large size or because
of the sensitivity of data that it contains.
Authorization for FULL
requires cloudtasks.tasks.fullViewGoogle
IAM permission on the
Task resource.
By default response_view is
BASIC; not all information is
retrieved by default because some data, such as payloads, might be
desirable to return only when needed because of its large size or because
of the sensitivity of data that it contains.
Authorization for FULL
requires cloudtasks.tasks.fullViewGoogle
IAM permission on the
Task resource.
By default response_view is
BASIC; not all information is
retrieved by default because some data, such as payloads, might be
desirable to return only when needed because of its large size or because
of the sensitivity of data that it contains.
Authorization for FULL
requires cloudtasks.tasks.fullViewGoogle
IAM permission on the
Task resource.
[[["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-09 UTC."],[],[],null,["# Cloud Tasks V2beta2 API - Class Google::Cloud::Tasks::V2beta2::GetTaskRequest (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-GetTaskRequest)\n- [0.14.1](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.14.1/Google-Cloud-Tasks-V2beta2-GetTaskRequest)\n- [0.13.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.13.0/Google-Cloud-Tasks-V2beta2-GetTaskRequest)\n- [0.12.1](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.12.1/Google-Cloud-Tasks-V2beta2-GetTaskRequest)\n- [0.11.3](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.11.3/Google-Cloud-Tasks-V2beta2-GetTaskRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.10.0/Google-Cloud-Tasks-V2beta2-GetTaskRequest)\n- [0.9.2](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.9.2/Google-Cloud-Tasks-V2beta2-GetTaskRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.8.0/Google-Cloud-Tasks-V2beta2-GetTaskRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.7.0/Google-Cloud-Tasks-V2beta2-GetTaskRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.6.0/Google-Cloud-Tasks-V2beta2-GetTaskRequest)\n- [0.5.5](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.5.5/Google-Cloud-Tasks-V2beta2-GetTaskRequest) \nReference documentation and code samples for the Cloud Tasks V2beta2 API class Google::Cloud::Tasks::V2beta2::GetTaskRequest.\n\nRequest message for getting a task using\n[GetTask](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-CloudTasks-Client#Google__Cloud__Tasks__V2beta2__CloudTasks__Client_get_task_instance_ \"Google::Cloud::Tasks::V2beta2::CloudTasks::Client#get_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### #response_view\n\n def response_view() -\u003e ::Google::Cloud::Tasks::V2beta2::Task::View\n\n**Returns**\n\n- ([::Google::Cloud::Tasks::V2beta2::Task::View](./Google-Cloud-Tasks-V2beta2-Task-View)) --- The response_view specifies which subset of the [Task](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task \"Google::Cloud::Tasks::V2beta2::Task (class)\") will be returned.\n\n\n By default response_view is\n [BASIC](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task-View#Google__Cloud__Tasks__V2beta2__Task__View__BASIC \"Google::Cloud::Tasks::V2beta2::Task::View::BASIC (constant)\"); not all information is\n retrieved by default because some data, such as payloads, might be\n desirable to return only when needed because of its large size or because\n of the sensitivity of data that it contains.\n\n Authorization for [FULL](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task-View#Google__Cloud__Tasks__V2beta2__Task__View__FULL \"Google::Cloud::Tasks::V2beta2::Task::View::FULL (constant)\")\n requires `cloudtasks.tasks.fullView` [Google\n IAM](https://cloud.google.com/iam/) permission on the\n [Task](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task \"Google::Cloud::Tasks::V2beta2::Task (class)\") resource.\n\n### #response_view=\n\n def response_view=(value) -\u003e ::Google::Cloud::Tasks::V2beta2::Task::View\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Tasks::V2beta2::Task::View](./Google-Cloud-Tasks-V2beta2-Task-View)) --- The response_view specifies which subset of the [Task](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task \"Google::Cloud::Tasks::V2beta2::Task (class)\") will be returned.\n\n\n By default response_view is\n [BASIC](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task-View#Google__Cloud__Tasks__V2beta2__Task__View__BASIC \"Google::Cloud::Tasks::V2beta2::Task::View::BASIC (constant)\"); not all information is\n retrieved by default because some data, such as payloads, might be\n desirable to return only when needed because of its large size or because\n of the sensitivity of data that it contains.\n\n Authorization for [FULL](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task-View#Google__Cloud__Tasks__V2beta2__Task__View__FULL \"Google::Cloud::Tasks::V2beta2::Task::View::FULL (constant)\")\n requires `cloudtasks.tasks.fullView` [Google\n IAM](https://cloud.google.com/iam/) permission on the\n[Task](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task \"Google::Cloud::Tasks::V2beta2::Task (class)\") resource. \n**Returns**\n\n- ([::Google::Cloud::Tasks::V2beta2::Task::View](./Google-Cloud-Tasks-V2beta2-Task-View)) --- The response_view specifies which subset of the [Task](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task \"Google::Cloud::Tasks::V2beta2::Task (class)\") will be returned.\n\n\n By default response_view is\n [BASIC](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task-View#Google__Cloud__Tasks__V2beta2__Task__View__BASIC \"Google::Cloud::Tasks::V2beta2::Task::View::BASIC (constant)\"); not all information is\n retrieved by default because some data, such as payloads, might be\n desirable to return only when needed because of its large size or because\n of the sensitivity of data that it contains.\n\n Authorization for [FULL](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task-View#Google__Cloud__Tasks__V2beta2__Task__View__FULL \"Google::Cloud::Tasks::V2beta2::Task::View::FULL (constant)\")\n requires `cloudtasks.tasks.fullView` [Google\n IAM](https://cloud.google.com/iam/) permission on the\n [Task](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-Task \"Google::Cloud::Tasks::V2beta2::Task (class)\") resource."]]