public sealed class LabelDescriptor : IMessage<LabelDescriptor>, IEquatable<LabelDescriptor>, IDeepCloneable<LabelDescriptor>, IBufferMessage, IMessage
[[["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-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eLabelDescriptor\u003c/code\u003e class describes a label, inheriting from \u003ccode\u003eobject\u003c/code\u003e and implementing multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides constructors for creating a new \u003ccode\u003eLabelDescriptor\u003c/code\u003e object, either empty or by copying another \u003ccode\u003eLabelDescriptor\u003c/code\u003e, as well as fields like \u003ccode\u003eDescriptionFieldNumber\u003c/code\u003e, \u003ccode\u003eKeyFieldNumber\u003c/code\u003e, and \u003ccode\u003eValueTypeFieldNumber\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eLabelDescriptor\u003c/code\u003e are \u003ccode\u003eDescription\u003c/code\u003e (a human-readable description), \u003ccode\u003eKey\u003c/code\u003e (the label key), \u003ccode\u003eValueType\u003c/code\u003e (the type of data assigned to the label), \u003ccode\u003eDescriptor\u003c/code\u003e, and \u003ccode\u003eParser\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt supports methods such as \u003ccode\u003eCalculateSize()\u003c/code\u003e, \u003ccode\u003eClone()\u003c/code\u003e, \u003ccode\u003eEquals()\u003c/code\u003e, \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eMergeFrom()\u003c/code\u003e, \u003ccode\u003eToString()\u003c/code\u003e, and \u003ccode\u003eWriteTo()\u003c/code\u003e to interact with and manipulate \u003ccode\u003eLabelDescriptor\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eThere are different versions of this file available, including the latest 2.15.0, 2.10.0, and 2.2.0.\u003c/p\u003e\n"]]],[],null,["# Class LabelDescriptor (2.17.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.0 (latest)](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.LabelDescriptor)\n- [2.15.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.15.0/Google.Api.LabelDescriptor)\n- [2.10.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.10.0/Google.Api.LabelDescriptor)\n- [2.2.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.2.0/Google.Api.LabelDescriptor) \n\n public sealed class LabelDescriptor : IMessage\u003cLabelDescriptor\u003e, IEquatable\u003cLabelDescriptor\u003e, IDeepCloneable\u003cLabelDescriptor\u003e, IBufferMessage, IMessage\n\nA description of a label. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e LabelDescriptor \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[LabelDescriptor](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.LabelDescriptor), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[LabelDescriptor](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.LabelDescriptor), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[LabelDescriptor](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.LabelDescriptor), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals)\n\nNamespace\n---------\n\n[Google.Api](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api)\n\nAssembly\n--------\n\nGoogle.Api.CommonProtos.dll\n\nConstructors\n------------\n\n### LabelDescriptor()\n\n public LabelDescriptor()\n\n### LabelDescriptor(LabelDescriptor)\n\n public LabelDescriptor(LabelDescriptor other)\n\nFields\n------\n\n### DescriptionFieldNumber\n\n public const int DescriptionFieldNumber = 3\n\nField number for the \"description\" field.\n\n### KeyFieldNumber\n\n public const int KeyFieldNumber = 1\n\nField number for the \"key\" field.\n\n### ValueTypeFieldNumber\n\n public const int ValueTypeFieldNumber = 2\n\nField number for the \"value_type\" field.\n\nProperties\n----------\n\n### Description\n\n public string Description { get; set; }\n\nA human-readable description for the label.\n\n### Descriptor\n\n public static MessageDescriptor Descriptor { get; }\n\n### Key\n\n public string Key { get; set; }\n\nThe label key.\n\n### Parser\n\n public static MessageParser\u003cLabelDescriptor\u003e Parser { get; }\n\n### ValueType\n\n public LabelDescriptor.Types.ValueType ValueType { get; set; }\n\nThe type of data that can be assigned to the label.\n\nMethods\n-------\n\n### CalculateSize()\n\n public int CalculateSize()\n\n### Clone()\n\n public LabelDescriptor Clone()\n\n### Equals(LabelDescriptor)\n\n public bool Equals(LabelDescriptor other)\n\n### Equals(object)\n\n public override bool Equals(object other)\n\n**Overrides** \n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object))\n\n### GetHashCode()\n\n public override int GetHashCode()\n\n**Overrides** \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)\n\n### MergeFrom(LabelDescriptor)\n\n public void MergeFrom(LabelDescriptor other)\n\n### MergeFrom(CodedInputStream)\n\n public void MergeFrom(CodedInputStream input)\n\n### ToString()\n\n public override string ToString()\n\n**Overrides** \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\n### WriteTo(CodedOutputStream)\n\n public void WriteTo(CodedOutputStream output)"]]