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"]],[["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-04-17 UTC."],[[["The `LabelSet` class represents a set of key-value pairs (labels) for identifying VMs in Google Cloud's OS Config."],["Labels within a `LabelSet` are treated with an AND logic, meaning a VM must match all labels in the set to be considered a match."],["The `LabelSet` class is implemented in various versions, from 1.3.0 to the latest 2.4.0, within the Google.Cloud.OsConfig.V1 namespace."],["`LabelSet` provides two constructors, a parameterless one and one that accepts another `LabelSet` instance for copying."],["The `Labels` property of `LabelSet` stores the key-value pairs as a `MapField`, where both keys and values are strings, defining the labels that a VM must possess."]]],[]]