1.0.0 (latest) 1.0.0-beta01

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

Reference documentation and code samples for the Vision AI v1 API class MachineSpec.

Specification of a single machine.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.VisionAI.V1.dll

## Constructors

### MachineSpec()

    public MachineSpec()

### MachineSpec(MachineSpec)

    public MachineSpec(MachineSpec other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.MachineSpec` |

## Properties

### AcceleratorCount

    public int AcceleratorCount { get; set; }

The number of accelerators to attach to the machine.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### AcceleratorType

    public AcceleratorType AcceleratorType { get; set; }

Immutable. The type of accelerator(s) that may be attached to the machine as per \[accelerator_count\]\[google.cloud.visionai.v1.MachineSpec.accelerator_count\].

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.AcceleratorType` |   |

### MachineType

    public string MachineType { get; set; }

Immutable. The type of the machine.

See the [list of machine types supported for prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)

See the [list of machine types supported for custom training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).

For \[DeployedModel\]\[\] this field is optional, and the default value is `n1-standard-2`. For \[BatchPredictionJob\]\[\] or as part of \[WorkerPoolSpec\]\[\] this field is required.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |