public sealed class Instance.Types.MachineConfig : IMessage<Instance.Types.MachineConfig>, IEquatable<Instance.Types.MachineConfig>, IDeepCloneable<Instance.Types.MachineConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the AlloyDB v1 API class Instance.Types.MachineConfig.
MachineConfig describes the configuration of a machine.
Machine type of the VM instance. E.g. "n2-highmem-4",
"n2-highmem-8", "c4a-highmem-4-lssd".
cpu_count must match the number of vCPUs in the machine type.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eInstance.Types.MachineConfig\u003c/code\u003e class within the Google Cloud AlloyDB v1 API, detailing its configuration properties.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMachineConfig\u003c/code\u003e class describes the machine configuration and it can be found under the \u003ccode\u003eGoogle.Cloud.AlloyDb.V1\u003c/code\u003e namespace, implemented with multiple interfaces.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes a version history of the class, ranging from version 1.0.0 to the latest 1.9.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMachineConfig\u003c/code\u003e class includes a property named \u003ccode\u003eCpuCount\u003c/code\u003e, an integer specifying the number of CPUs in the VM instance.\u003c/p\u003e\n"],["\u003cp\u003eIt also includes two constructors, \u003ccode\u003eMachineConfig()\u003c/code\u003e and \u003ccode\u003eMachineConfig(Instance.Types.MachineConfig other)\u003c/code\u003e, for creating new instances of \u003ccode\u003eMachineConfig\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# AlloyDB v1 API - Class Instance.Types.MachineConfig (1.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.11.0 (latest)](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Instance.Types.MachineConfig)\n- [1.10.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.10.0/Google.Cloud.AlloyDb.V1.Instance.Types.MachineConfig)\n- [1.9.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.9.0/Google.Cloud.AlloyDb.V1.Instance.Types.MachineConfig)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.8.0/Google.Cloud.AlloyDb.V1.Instance.Types.MachineConfig)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.7.0/Google.Cloud.AlloyDb.V1.Instance.Types.MachineConfig)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.6.0/Google.Cloud.AlloyDb.V1.Instance.Types.MachineConfig)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.5.0/Google.Cloud.AlloyDb.V1.Instance.Types.MachineConfig)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.4.0/Google.Cloud.AlloyDb.V1.Instance.Types.MachineConfig)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.3.0/Google.Cloud.AlloyDb.V1.Instance.Types.MachineConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.2.0/Google.Cloud.AlloyDb.V1.Instance.Types.MachineConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.1.0/Google.Cloud.AlloyDb.V1.Instance.Types.MachineConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.0.0/Google.Cloud.AlloyDb.V1.Instance.Types.MachineConfig) \n\n public sealed class Instance.Types.MachineConfig : IMessage\u003cInstance.Types.MachineConfig\u003e, IEquatable\u003cInstance.Types.MachineConfig\u003e, IDeepCloneable\u003cInstance.Types.MachineConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the AlloyDB v1 API class Instance.Types.MachineConfig.\n\nMachineConfig describes the configuration of a machine. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Instance.Types.MachineConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Instance](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Instance)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Instance.Types)[MachineConfig](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Instance.Types.MachineConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Instance](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Instance)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Instance.Types)[MachineConfig](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Instance.Types.MachineConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Instance](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Instance)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Instance.Types)[MachineConfig](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Instance.Types.MachineConfig), [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.AlloyDb.V1](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.AlloyDb.V1.dll\n\nConstructors\n------------\n\n### MachineConfig()\n\n public MachineConfig()\n\n### MachineConfig(MachineConfig)\n\n public MachineConfig(Instance.Types.MachineConfig other)\n\nProperties\n----------\n\n### CpuCount\n\n public int CpuCount { get; set; }\n\nThe number of CPU's in the VM instance.\n\n### MachineType\n\n public string MachineType { get; set; }\n\nMachine type of the VM instance. E.g. \"n2-highmem-4\",\n\"n2-highmem-8\", \"c4a-highmem-4-lssd\".\ncpu_count must match the number of vCPUs in the machine type."]]