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 v1beta 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\u003eThe latest version of the \u003ccode\u003eInstance.Types.MachineConfig\u003c/code\u003e class is \u003ccode\u003e1.0.0-beta09\u003c/code\u003e, which can be found in the \u003ccode\u003eGoogle.Cloud.AlloyDb.V1Beta\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eInstance.Types.MachineConfig\u003c/code\u003e is a class within the AlloyDB v1beta API that describes the configuration of a machine and inherits from \u003ccode\u003eobject\u003c/code\u003e, implementing multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides two constructors: a default \u003ccode\u003eMachineConfig()\u003c/code\u003e constructor and a constructor that takes another \u003ccode\u003eInstance.Types.MachineConfig\u003c/code\u003e object as a parameter for copying, \u003ccode\u003eMachineConfig(Instance.Types.MachineConfig other)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMachineConfig\u003c/code\u003e class has one property, \u003ccode\u003eCpuCount\u003c/code\u003e, which is an integer representing the number of CPUs in the VM instance.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation details the \u003ccode\u003eInstance.Types.MachineConfig\u003c/code\u003e class within the Google Cloud AlloyDB v1beta API, outlining its structure, inheritance, constructors, and properties.\u003c/p\u003e\n"]]],[],null,["# AlloyDB v1beta API - Class Instance.Types.MachineConfig (1.0.0-beta12)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta12 (latest)](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.Instance.Types.MachineConfig)\n- [1.0.0-beta11](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/1.0.0-beta11/Google.Cloud.AlloyDb.V1Beta.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 v1beta 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.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.Instance)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.Instance.Types)[MachineConfig](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.Instance.Types.MachineConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Instance](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.Instance)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.Instance.Types)[MachineConfig](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.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.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.Instance)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.Instance.Types)[MachineConfig](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.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.V1Beta](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.AlloyDb.V1Beta.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."]]