public sealed class LabelSet : IMessage<OSPolicyAssignment.Types.LabelSet>, IEquatable<OSPolicyAssignment.Types.LabelSet>, IDeepCloneable<OSPolicyAssignment.Types.LabelSet>, IBufferMessage, IMessage
Message representing label set.
A label is a key value pair set for a VM.
A LabelSet is a set of labels.
Labels within a LabelSet are ANDed. In other words, a LabelSet is
applicable for a VM only if it matches all the labels in the
LabelSet.
Example: A LabelSet with 2 labels: env=prod and type=webserver will
only be applicable for those VMs with both labels
present.
[[["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-12 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eLabelSet\u003c/code\u003e class represents a set of key-value pairs (labels) for identifying VMs in Google Cloud's OS Config.\u003c/p\u003e\n"],["\u003cp\u003eLabels within a \u003ccode\u003eLabelSet\u003c/code\u003e are treated with an AND logic, meaning a VM must match all labels in the set to be considered a match.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLabelSet\u003c/code\u003e class is implemented in various versions, from 1.3.0 to the latest 2.4.0, within the Google.Cloud.OsConfig.V1 namespace.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLabelSet\u003c/code\u003e provides two constructors, a parameterless one and one that accepts another \u003ccode\u003eLabelSet\u003c/code\u003e instance for copying.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLabels\u003c/code\u003e property of \u003ccode\u003eLabelSet\u003c/code\u003e stores the key-value pairs as a \u003ccode\u003eMapField\u003c/code\u003e, where both keys and values are strings, defining the labels that a VM must possess.\u003c/p\u003e\n"]]],[],null,[]]