public sealed class Service.Types.GkeNamespace : IMessage<Service.Types.GkeNamespace>, IEquatable<Service.Types.GkeNamespace>, IDeepCloneable<Service.Types.GkeNamespace>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Monitoring v3 API class Service.Types.GkeNamespace.
GKE Namespace. The field names correspond to the resource metadata labels
on monitored resources that fall under a namespace (for example,
k8s_container or k8s_pod).
Output only. The project this resource lives in. For legacy services
migrated from the Custom type, this may be a distinct project from the
one parenting the service itself.
[[["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\u003eThis document provides reference documentation for the \u003ccode\u003eService.Types.GkeNamespace\u003c/code\u003e class within the Google Cloud Monitoring v3 API, detailing its structure and functionality across multiple versions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGkeNamespace\u003c/code\u003e class, which is a sealed class, represents a GKE namespace and contains metadata labels for monitored resources like \u003ccode\u003ek8s_container\u003c/code\u003e or \u003ccode\u003ek8s_pod\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eGkeNamespace\u003c/code\u003e class documentation is version 3.15.0, with historical versions available down to 2.3.0, each with its own specific documentation.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eGkeNamespace\u003c/code\u003e class include \u003ccode\u003eClusterName\u003c/code\u003e, \u003ccode\u003eLocation\u003c/code\u003e, \u003ccode\u003eNamespaceName\u003c/code\u003e, and \u003ccode\u003eProjectId\u003c/code\u003e, which respectively describe the cluster, its location, the namespace name, and the project ID.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGkeNamespace\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements multiple interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, showcasing its diverse usage.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Monitoring v3 API - Class Service.Types.GkeNamespace (3.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.15.0 (latest)](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.14.0/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.13.0/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.12.0/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.11.0/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.10.0/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.9.0/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.8.0/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.7.0/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.6.0/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.5.0/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.4.0/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.3.0/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.2.0/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.1.0/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.0.0/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.6.0/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.5.0/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.4.0/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.3.0/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace) \n\n public sealed class Service.Types.GkeNamespace : IMessage\u003cService.Types.GkeNamespace\u003e, IEquatable\u003cService.Types.GkeNamespace\u003e, IDeepCloneable\u003cService.Types.GkeNamespace\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Monitoring v3 API class Service.Types.GkeNamespace.\n\nGKE Namespace. The field names correspond to the resource metadata labels\non monitored resources that fall under a namespace (for example,\n`k8s_container` or `k8s_pod`). \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Service.Types.GkeNamespace \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Service](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service)[Types](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service.Types)[GkeNamespace](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Service](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service)[Types](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service.Types)[GkeNamespace](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Service](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service)[Types](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service.Types)[GkeNamespace](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service.Types.GkeNamespace), [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.Monitoring.V3](/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3)\n\nAssembly\n--------\n\nGoogle.Cloud.Monitoring.V3.dll\n\nConstructors\n------------\n\n### GkeNamespace()\n\n public GkeNamespace()\n\n### GkeNamespace(GkeNamespace)\n\n public GkeNamespace(Service.Types.GkeNamespace other)\n\nProperties\n----------\n\n### ClusterName\n\n public string ClusterName { get; set; }\n\nThe name of the parent cluster.\n\n### Location\n\n public string Location { get; set; }\n\nThe location of the parent cluster. This may be a zone or region.\n\n### NamespaceName\n\n public string NamespaceName { get; set; }\n\nThe name of this namespace.\n\n### ProjectId\n\n public string ProjectId { get; set; }\n\nOutput only. The project this resource lives in. For legacy services\nmigrated from the `Custom` type, this may be a distinct project from the\none parenting the service itself."]]