public sealed class InstanceFlexibilityPolicy.Types.InstanceSelection : IMessage<InstanceFlexibilityPolicy.Types.InstanceSelection>, IEquatable<InstanceFlexibilityPolicy.Types.InstanceSelection>, IDeepCloneable<InstanceFlexibilityPolicy.Types.InstanceSelection>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dataproc v1 API class InstanceFlexibilityPolicy.Types.InstanceSelection.
Defines machines types and a rank to which the machines types belong.
Optional. Preference of this instance selection. Lower number means
higher preference. Dataproc will first try to create a VM based on the
machine-type with priority rank and fallback to next rank based on
availability. Machine types and instance selections with the same
priority have the same preference.
[[["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 reference documentation for the \u003ccode\u003eInstanceFlexibilityPolicy.Types.InstanceSelection\u003c/code\u003e class within the Google Cloud Dataproc v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eInstanceFlexibilityPolicy.Types.InstanceSelection\u003c/code\u003e defines machine types and their ranking for use in Google Cloud Dataproc.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is 5.17.0, and there are numerous older versions of the documentation listed, ranging down to version 3.1.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInstanceSelection\u003c/code\u003e 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.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eInstanceSelection\u003c/code\u003e include \u003ccode\u003eMachineTypes\u003c/code\u003e which are a list of machine-type names, and \u003ccode\u003eRank\u003c/code\u003e, which determines the preference order for machine-type selection.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Dataproc v1 API - Class InstanceFlexibilityPolicy.Types.InstanceSelection (5.20.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.20.0 (latest)](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [5.19.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.19.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [5.18.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.18.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [5.17.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.17.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [5.16.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.16.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [5.15.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.15.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [5.14.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.14.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [5.13.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.13.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [5.12.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.12.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [5.11.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.11.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [5.10.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.10.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [5.9.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.9.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [5.8.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.8.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [5.7.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.7.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [5.6.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.6.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [5.5.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.5.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [5.4.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.4.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [5.3.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.3.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [5.2.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.2.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [5.1.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.1.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.0.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/4.0.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.4.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.3.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.2.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.1.0/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection) \n\n public sealed class InstanceFlexibilityPolicy.Types.InstanceSelection : IMessage\u003cInstanceFlexibilityPolicy.Types.InstanceSelection\u003e, IEquatable\u003cInstanceFlexibilityPolicy.Types.InstanceSelection\u003e, IDeepCloneable\u003cInstanceFlexibilityPolicy.Types.InstanceSelection\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Dataproc v1 API class InstanceFlexibilityPolicy.Types.InstanceSelection.\n\nDefines machines types and a rank to which the machines types belong. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e InstanceFlexibilityPolicy.Types.InstanceSelection \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[InstanceFlexibilityPolicy](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy)[Types](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types)[InstanceSelection](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[InstanceFlexibilityPolicy](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy)[Types](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types)[InstanceSelection](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[InstanceFlexibilityPolicy](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy)[Types](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types)[InstanceSelection](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.InstanceFlexibilityPolicy.Types.InstanceSelection), [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.Dataproc.V1](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Dataproc.V1.dll\n\nConstructors\n------------\n\n### InstanceSelection()\n\n public InstanceSelection()\n\n### InstanceSelection(InstanceSelection)\n\n public InstanceSelection(InstanceFlexibilityPolicy.Types.InstanceSelection other)\n\nProperties\n----------\n\n### MachineTypes\n\n public RepeatedField\u003cstring\u003e MachineTypes { get; }\n\nOptional. Full machine-type names, e.g. \"n1-standard-16\".\n\n### Rank\n\n public int Rank { get; set; }\n\nOptional. Preference of this instance selection. Lower number means\nhigher preference. Dataproc will first try to create a VM based on the\nmachine-type with priority rank and fallback to next rank based on\navailability. Machine types and instance selections with the same\npriority have the same preference."]]