public sealed class MachinePreferences : IMessage<MachinePreferences>, IEquatable<MachinePreferences>, IDeepCloneable<MachinePreferences>, IBufferMessage, IMessage
Reference documentation and code samples for the Migration Center v1 API class MachinePreferences.
The type of machines to consider when calculating virtual machine migration
insights and recommendations.
Not all machine types are available in all zones and regions.
[[["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 \u003ccode\u003eMachinePreferences\u003c/code\u003e class in the Migration Center v1 API is used to specify the types of machines that should be considered when generating migration insights and recommendations for virtual machines.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionalities such as deep cloning and protocol buffer message handling.\u003c/p\u003e\n"],["\u003cp\u003eIt allows users to set a list of allowed Compute Engine machine series to narrow down recommendations; if this list is empty, all machine series are considered.\u003c/p\u003e\n"],["\u003cp\u003eThere are several available versions of this class, with the latest being version 1.4.0, and previous versions available, including 1.3.0, 1.2.0, 1.1.0, and 1.0.0.\u003c/p\u003e\n"]]],[],null,["# Migration Center v1 API - Class MachinePreferences (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.MachinePreferences)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/1.3.0/Google.Cloud.MigrationCenter.V1.MachinePreferences)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/1.2.0/Google.Cloud.MigrationCenter.V1.MachinePreferences)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/1.1.0/Google.Cloud.MigrationCenter.V1.MachinePreferences)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/1.0.0/Google.Cloud.MigrationCenter.V1.MachinePreferences) \n\n public sealed class MachinePreferences : IMessage\u003cMachinePreferences\u003e, IEquatable\u003cMachinePreferences\u003e, IDeepCloneable\u003cMachinePreferences\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Migration Center v1 API class MachinePreferences.\n\nThe type of machines to consider when calculating virtual machine migration\ninsights and recommendations.\nNot all machine types are available in all zones and regions. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e MachinePreferences \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[MachinePreferences](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.MachinePreferences), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MachinePreferences](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.MachinePreferences), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MachinePreferences](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.MachinePreferences), [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.MigrationCenter.V1](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.MigrationCenter.V1.dll\n\nConstructors\n------------\n\n### MachinePreferences()\n\n public MachinePreferences()\n\n### MachinePreferences(MachinePreferences)\n\n public MachinePreferences(MachinePreferences other)\n\nProperties\n----------\n\n### AllowedMachineSeries\n\n public RepeatedField\u003cMachineSeries\u003e AllowedMachineSeries { get; }\n\nCompute Engine machine series to consider for insights and recommendations.\nIf empty, no restriction is applied on the machine series."]]