[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Backup Dr V1 Client - Class NodeAffinity (0.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.7.0 (latest)](/php/docs/reference/cloud-backupdr/latest/V1.Scheduling.NodeAffinity)\n- [0.6.2](/php/docs/reference/cloud-backupdr/0.6.2/V1.Scheduling.NodeAffinity)\n- [0.5.1](/php/docs/reference/cloud-backupdr/0.5.1/V1.Scheduling.NodeAffinity)\n- [0.4.2](/php/docs/reference/cloud-backupdr/0.4.2/V1.Scheduling.NodeAffinity)\n- [0.3.0](/php/docs/reference/cloud-backupdr/0.3.0/V1.Scheduling.NodeAffinity)\n- [0.2.0](/php/docs/reference/cloud-backupdr/0.2.0/V1.Scheduling.NodeAffinity)\n- [0.1.0](/php/docs/reference/cloud-backupdr/0.1.0/V1.Scheduling.NodeAffinity) \nReference documentation and code samples for the Google Cloud Backup Dr V1 Client class NodeAffinity.\n\nNode Affinity: the configuration of desired nodes onto which this Instance\ncould be scheduled.\n\nGenerated from protobuf message `google.cloud.backupdr.v1.Scheduling.NodeAffinity`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BackupDR \\\\ V1 \\\\ Scheduling\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getKey\n\nOptional. Corresponds to the label key of Node resource.\n\n### hasKey\n\n### clearKey\n\n### setKey\n\nOptional. Corresponds to the label key of Node resource.\n\n### getOperator\n\nOptional. Defines the operation of node selection.\n\n### hasOperator\n\n### clearOperator\n\n### setOperator\n\nOptional. Defines the operation of node selection.\n\n### getValues\n\nOptional. Corresponds to the label values of Node resource.\n\n### setValues\n\nOptional. Corresponds to the label values of Node resource."]]