1.0.0-alpha36 (latest) 1.0.0-alpha35

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

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

TaskResourceUsage describes the resource usage of the task.

## Inheritance

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

## Implements

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

### TaskResourceUsage()

    public TaskResourceUsage()

### TaskResourceUsage(TaskResourceUsage)

    public TaskResourceUsage(TaskResourceUsage other)

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

## Properties

### CoreHours

    public double CoreHours { get; set; }

The CPU core hours the task consumes based on task requirement and run
time.

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