[[["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 documentation provides details for the \u003ccode\u003eScheduling.Types.NodeAffinity\u003c/code\u003e class, a part of the Backup and DR Service v1 API within the \u003ccode\u003eGoogle.Cloud.BackupDR.V1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNodeAffinity\u003c/code\u003e class is used to configure the desired nodes onto which an instance can be scheduled and implements several interfaces such as \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\u003eIt includes constructors for creating new \u003ccode\u003eNodeAffinity\u003c/code\u003e objects, either default or based on existing instances, and has properties like \u003ccode\u003eHasKey\u003c/code\u003e, \u003ccode\u003eHasOperator\u003c/code\u003e, \u003ccode\u003eKey\u003c/code\u003e, \u003ccode\u003eOperator\u003c/code\u003e, and \u003ccode\u003eValues\u003c/code\u003e for specifying node selection criteria.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides inheritance from the \u003ccode\u003eobject\u003c/code\u003e class and includes public methods for \u003ccode\u003eNodeAffinity()\u003c/code\u003e, \u003ccode\u003eNodeAffinity(Scheduling.Types.NodeAffinity other)\u003c/code\u003e as well as inherited members like \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe available versions of the \u003ccode\u003eScheduling.Types.NodeAffinity\u003c/code\u003e documentation include 2.1.0 (latest), 2.0.0, 1.2.0, 1.1.0, and 1.0.0-beta02, each representing a different release of the API.\u003c/p\u003e\n"]]],[],null,["# Backup and DR Service v1 API - Class Scheduling.Types.NodeAffinity (2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.Scheduling.Types.NodeAffinity)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/2.1.0/Google.Cloud.BackupDR.V1.Scheduling.Types.NodeAffinity)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/2.0.0/Google.Cloud.BackupDR.V1.Scheduling.Types.NodeAffinity)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.2.0/Google.Cloud.BackupDR.V1.Scheduling.Types.NodeAffinity)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.1.0/Google.Cloud.BackupDR.V1.Scheduling.Types.NodeAffinity)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.0.0-beta02/Google.Cloud.BackupDR.V1.Scheduling.Types.NodeAffinity) \n\n public sealed class Scheduling.Types.NodeAffinity : IMessage\u003cScheduling.Types.NodeAffinity\u003e, IEquatable\u003cScheduling.Types.NodeAffinity\u003e, IDeepCloneable\u003cScheduling.Types.NodeAffinity\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Backup and DR Service v1 API class Scheduling.Types.NodeAffinity.\n\nNode Affinity: the configuration of desired nodes onto which this Instance\ncould be scheduled. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Scheduling.Types.NodeAffinity \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Scheduling](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.Scheduling)[Types](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.Scheduling.Types)[NodeAffinity](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.Scheduling.Types.NodeAffinity), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Scheduling](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.Scheduling)[Types](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.Scheduling.Types)[NodeAffinity](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.Scheduling.Types.NodeAffinity), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Scheduling](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.Scheduling)[Types](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.Scheduling.Types)[NodeAffinity](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.Scheduling.Types.NodeAffinity), [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.BackupDR.V1](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.BackupDR.V1.dll\n\nConstructors\n------------\n\n### NodeAffinity()\n\n public NodeAffinity()\n\n### NodeAffinity(NodeAffinity)\n\n public NodeAffinity(Scheduling.Types.NodeAffinity other)\n\nProperties\n----------\n\n### HasKey\n\n public bool HasKey { get; }\n\nGets whether the \"key\" field is set\n\n### HasOperator\n\n public bool HasOperator { get; }\n\nGets whether the \"operator\" field is set\n\n### Key\n\n public string Key { get; set; }\n\nOptional. Corresponds to the label key of Node resource.\n\n### Operator\n\n public Scheduling.Types.NodeAffinity.Types.Operator Operator { get; set; }\n\nOptional. Defines the operation of node selection.\n\n### Values\n\n public RepeatedField\u003cstring\u003e Values { get; }\n\nOptional. Corresponds to the label values of Node resource."]]