[[["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-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eLabelSelector\u003c/code\u003e class, part of the Google Cloud Game Services v1 API, is used for grouping labels on resources.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eLabelSelector\u003c/code\u003e is 2.2.0, with previous versions ranging from 2.1.0 down to 1.1.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLabelSelector\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.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, one default and one that takes another \u003ccode\u003eLabelSelector\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains one property, \u003ccode\u003eLabels\u003c/code\u003e, which is a \u003ccode\u003eMapField\u003c/code\u003e used for storing key/value pairs of string labels.\u003c/p\u003e\n"]]],[],null,["# Game Services v1 API - Class LabelSelector (2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.Gaming.V1/latest/Google.Cloud.Gaming.V1.LabelSelector)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Gaming.V1/2.1.0/Google.Cloud.Gaming.V1.LabelSelector)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Gaming.V1/2.0.0/Google.Cloud.Gaming.V1.LabelSelector)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Gaming.V1/1.4.0/Google.Cloud.Gaming.V1.LabelSelector)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Gaming.V1/1.3.0/Google.Cloud.Gaming.V1.LabelSelector)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Gaming.V1/1.2.0/Google.Cloud.Gaming.V1.LabelSelector)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Gaming.V1/1.1.0/Google.Cloud.Gaming.V1.LabelSelector) \n\n public sealed class LabelSelector : IMessage\u003cLabelSelector\u003e, IEquatable\u003cLabelSelector\u003e, IDeepCloneable\u003cLabelSelector\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Game Services v1 API class LabelSelector.\n\nThe label selector, used to group labels on the resources. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e LabelSelector \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[LabelSelector](/dotnet/docs/reference/Google.Cloud.Gaming.V1/latest/Google.Cloud.Gaming.V1.LabelSelector), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[LabelSelector](/dotnet/docs/reference/Google.Cloud.Gaming.V1/latest/Google.Cloud.Gaming.V1.LabelSelector), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[LabelSelector](/dotnet/docs/reference/Google.Cloud.Gaming.V1/latest/Google.Cloud.Gaming.V1.LabelSelector), [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.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Gaming.V1](/dotnet/docs/reference/Google.Cloud.Gaming.V1/latest/Google.Cloud.Gaming.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Gaming.V1.dll\n\nConstructors\n------------\n\n### LabelSelector()\n\n public LabelSelector()\n\n### LabelSelector(LabelSelector)\n\n public LabelSelector(LabelSelector other)\n\nProperties\n----------\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nResource labels for this selector."]]