public sealed class Label : IMessage<Label>, IEquatable<Label>, IDeepCloneable<Label>, IBufferMessage, IMessage
Reference documentation and code samples for the Security Command Center v2 API class Label.
Represents a generic name-value label. A label has separate name and value
fields to support filtering with the contains() function. For more
information, see Filtering on array-type
fields.
[[["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 \u003ccode\u003eLabel\u003c/code\u003e class in the Security Command Center v2 API represents a generic name-value pair for labels, designed to support filtering with the \u003ccode\u003econtains()\u003c/code\u003e function.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLabel\u003c/code\u003e class, part of the \u003ccode\u003eGoogle.Cloud.SecurityCenter.V2\u003c/code\u003e namespace, is defined in the \u003ccode\u003eGoogle.Cloud.SecurityCenter.V2.dll\u003c/code\u003e assembly and can be constructed using either a default constructor or a copy constructor.\u003c/p\u003e\n"],["\u003cp\u003eIt implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces and inherits from \u003ccode\u003eobject\u003c/code\u003e, providing methods like \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two key properties, \u003ccode\u003eName\u003c/code\u003e and \u003ccode\u003eValue\u003c/code\u003e, both of type string, representing the label's name and its corresponding value, respectively.\u003c/p\u003e\n"]]],[],null,[]]