3.7.0 (latest) 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.5.0 2.4.0 2.3.0 2.2.0

    public sealed class GetTaskRequest : IMessage<GetTaskRequest>, IEquatable<GetTaskRequest>, IDeepCloneable<GetTaskRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Tasks v2 API class GetTaskRequest.

Request message for getting a task using
\[GetTask\]\[google.cloud.tasks.v2.CloudTasks.GetTask\].

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> GetTaskRequest

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[GetTaskRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2/latest/Google.Cloud.Tasks.V2.GetTaskRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetTaskRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2/latest/Google.Cloud.Tasks.V2.GetTaskRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[GetTaskRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2/latest/Google.Cloud.Tasks.V2.GetTaskRequest.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Tasks.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2/latest/Google.Cloud.Tasks.V2.md.txt)

## Assembly

Google.Cloud.Tasks.V2.dll

## Constructors

### GetTaskRequest()

    public GetTaskRequest()

### GetTaskRequest(GetTaskRequest)

    public GetTaskRequest(GetTaskRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `GetTaskRequest` |

## Properties

### Name

    public string Name { get; set; }

Required. The task name. For example:
`projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ResponseView

    public Task.Types.View ResponseView { get; set; }

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.fullView` [Google IAM](https://cloud.google.com/iam/)
permission on the \[Task\]\[google.cloud.tasks.v2.Task\] resource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TaskTypesView` |   |

### TaskName

    public TaskName TaskName { get; set; }

[TaskName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2/latest/Google.Cloud.Tasks.V2.TaskName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Tasks.V2/latest/Google.Cloud.Tasks.V2.GetTaskRequest.md.txt#Google_Cloud_Tasks_V2_GetTaskRequest_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TaskName` |   |