1.0.0-alpha36 (latest) 1.0.0-alpha35

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

Reference documentation and code samples for the Batch v1alpha API class GetTaskRequest.

Request for a single Task by name.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GetTaskRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.GetTaskRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetTaskRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.GetTaskRequest.md.txt), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GetTaskRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.GetTaskRequest.md.txt), [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)

## 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.Batch.V1Alpha](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.md.txt)

## Assembly

Google.Cloud.Batch.V1Alpha.dll

## Constructors

### GetTaskRequest()

    public GetTaskRequest()

### GetTaskRequest(GetTaskRequest)

    public GetTaskRequest(GetTaskRequest other)

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

## Properties

### Name

    public string Name { get; set; }

Required. Task name.

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

### TaskName

    public TaskName TaskName { get; set; }

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

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