The response_view specifies which subset of the
[Task][google.cloud.tasks.v2beta3.Task] will be returned.
By default response_view is
[BASIC][google.cloud.tasks.v2beta3.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.v2beta3.Task.View.FULL]
requires cloudtasks.tasks.fullViewGoogle
IAM permission on the
[Task][google.cloud.tasks.v2beta3.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-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGetTaskRequest\u003c/code\u003e class is used to request a specific task from the Google Cloud Tasks v2beta3 API, utilizing the \u003ccode\u003eGetTask\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, extending its functionality and usage within the .NET framework.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetTaskRequest\u003c/code\u003e includes properties for \u003ccode\u003eName\u003c/code\u003e (the required task name), \u003ccode\u003eResponseView\u003c/code\u003e (specifying the subset of task data to retrieve), and a \u003ccode\u003eTaskName\u003c/code\u003e type for a structured view of the resource name.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for \u003ccode\u003eGetTaskRequest\u003c/code\u003e: a default constructor and a copy constructor that creates a new instance from an existing \u003ccode\u003eGetTaskRequest\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation covers versions 3.0.0-beta07 (latest), 3.0.0-beta06 and 2.0.0-beta08, showing an evolution of the class and its capabilities within the Google Cloud Tasks API.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Tasks v2beta3 API - Class GetTaskRequest (3.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [3.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.GetTaskRequest)\n- [3.0.0-beta06](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/3.0.0-beta06/Google.Cloud.Tasks.V2Beta3.GetTaskRequest)\n- [2.0.0-beta08](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/2.0.0-beta08/Google.Cloud.Tasks.V2Beta3.GetTaskRequest) \n\n public sealed class GetTaskRequest : IMessage\u003cGetTaskRequest\u003e, IEquatable\u003cGetTaskRequest\u003e, IDeepCloneable\u003cGetTaskRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Tasks v2beta3 API class GetTaskRequest.\n\nRequest message for getting a task using\n\\[GetTask\\]\\[google.cloud.tasks.v2beta3.CloudTasks.GetTask\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GetTaskRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GetTaskRequest](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.GetTaskRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetTaskRequest](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.GetTaskRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GetTaskRequest](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.GetTaskRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Tasks.V2Beta3](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3)\n\nAssembly\n--------\n\nGoogle.Cloud.Tasks.V2Beta3.dll\n\nConstructors\n------------\n\n### GetTaskRequest()\n\n public GetTaskRequest()\n\n### GetTaskRequest(GetTaskRequest)\n\n public GetTaskRequest(GetTaskRequest other)\n\nProperties\n----------\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The task name. For example:\n`projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`\n\n### ResponseView\n\n public Task.Types.View ResponseView { get; set; }\n\nThe response_view specifies which subset of the\n\\[Task\\]\\[google.cloud.tasks.v2beta3.Task\\] will be returned.\n\nBy default response_view is\n\\[BASIC\\]\\[google.cloud.tasks.v2beta3.Task.View.BASIC\\]; not all information is\nretrieved by default because some data, such as payloads, might be\ndesirable to return only when needed because of its large size or because\nof the sensitivity of data that it contains.\n\nAuthorization for \\[FULL\\]\\[google.cloud.tasks.v2beta3.Task.View.FULL\\]\nrequires `cloudtasks.tasks.fullView` [Google\nIAM](https://cloud.google.com/iam/) permission on the\n\\[Task\\]\\[google.cloud.tasks.v2beta3.Task\\] resource.\n\n### TaskName\n\n public TaskName TaskName { get; set; }\n\n[TaskName](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.TaskName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.GetTaskRequest#Google_Cloud_Tasks_V2Beta3_GetTaskRequest_Name) resource name property."]]