Reference documentation and code samples for the Google Cloud Dataproc v1 API class NodeGroupAffinity.
Node Group Affinity for clusters using sole-tenant node groups.
The Dataproc NodeGroupAffinity resource is not related to the
Dataproc [NodeGroup][google.cloud.dataproc.v1.NodeGroup] resource.
[[["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\u003eNodeGroupAffinity\u003c/code\u003e class in the Google Cloud Dataproc v1 API is 5.17.0, and there are several previous versions ranging from 5.16.0 down to 3.1.0, and it also include versions 4.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eNodeGroupAffinity\u003c/code\u003e is a class within the Google.Cloud.Dataproc.V1 namespace and is used for managing node group affinity in clusters with sole-tenant node groups, but is not directly related to the Dataproc NodeGroup resource.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNodeGroupAffinity\u003c/code\u003e class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing various functionalities such as deep cloning and buffer message handling.\u003c/p\u003e\n"],["\u003cp\u003eThe class has a public property \u003ccode\u003eNodeGroupUri\u003c/code\u003e which is a required string representing the URI of a sole-tenant node group resource, allowing for full URLs, partial URIs, or node group names.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNodeGroupAffinity\u003c/code\u003e class provides two constructors, one default \u003ccode\u003eNodeGroupAffinity()\u003c/code\u003e and another \u003ccode\u003eNodeGroupAffinity(NodeGroupAffinity other)\u003c/code\u003e that allows the creation of a \u003ccode\u003eNodeGroupAffinity\u003c/code\u003e using another \u003ccode\u003eNodeGroupAffinity\u003c/code\u003e as the parameter.\u003c/p\u003e\n"]]],[],null,[]]