The response_view specifies which subset of the
[Task][google.cloud.tasks.v2.Task] will be returned.
By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.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][google.cloud.tasks.v2.Task.View.FULL] requires
cloudtasks.tasks.fullViewGoogle IAM
permission on the [Task][google.cloud.tasks.v2.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-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eGetTaskRequest\u003c/code\u003e class for the Google Cloud Tasks v2 API is 3.5.0, and previous versions are available, ranging from 3.4.0 down to 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetTaskRequest\u003c/code\u003e is used to retrieve a task using the \u003ccode\u003eGetTask\u003c/code\u003e method, and it inherits from \u003ccode\u003eobject\u003c/code\u003e while implementing multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eName\u003c/code\u003e property is required, and it represents the task's resource name in the format \u003ccode\u003eprojects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResponseView\u003c/code\u003e property allows you to specify which subset of the \u003ccode\u003eTask\u003c/code\u003e will be returned, with \u003ccode\u003eBASIC\u003c/code\u003e as the default, and \u003ccode\u003eFULL\u003c/code\u003e requiring additional permissions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTaskName\u003c/code\u003e property provides a typed view over the \u003ccode\u003eName\u003c/code\u003e resource name property, allowing for easier management of task names.\u003c/p\u003e\n"]]],[],null,[]]