Reference documentation and code samples for the GKE Hub v1beta1 API class GkeHubMembershipService.
The GKE Hub MembershipService handles the registration of many Kubernetes
clusters to Google Cloud, represented with the
[Membership][google.cloud.gkehub.v1beta1.Membership] resource.
Membership management may be non-trivial: it is recommended to use one
of the Google-provided client libraries or tools where possible when working
with Membership resources.
public static void BindService(ServiceBinderBase serviceBinder, GkeHubMembershipService.GkeHubMembershipServiceBase serviceImpl)
Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
Note: this method is part of an experimental API that can change or be removed without any prior notice.
[[["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 GkeHubMembershipService class, part of the GKE Hub v1beta1 API, manages the registration of Kubernetes clusters to Google Cloud using the Membership resource.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this class is 2.0.0-beta07, with previous versions including 2.0.0-beta06 and 1.0.0-beta04.\u003c/p\u003e\n"],["\u003cp\u003eGKE Hub is available in the global region and all other Google Cloud regions, and it is recommended to use provided client libraries or tools when working with Membership resources.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes methods for binding service definitions to a server, such as \u003ccode\u003eBindService(GkeHubMembershipServiceBase)\u003c/code\u003e and \u003ccode\u003eBindService(ServiceBinderBase, GkeHubMembershipServiceBase)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe GkeHubMembershipService class inherits from the object class and it is within the namespace \u003ccode\u003eGoogle.Cloud.GkeHub.V1Beta1\u003c/code\u003e and it is within the assembly \u003ccode\u003eGoogle.Cloud.GkeHub.V1Beta1.dll\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# GKE Hub v1beta1 API - Class GkeHubMembershipService (2.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.GkeHubMembershipService)\n- [2.0.0-beta06](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/2.0.0-beta06/Google.Cloud.GkeHub.V1Beta1.GkeHubMembershipService)\n- [1.0.0-beta04](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/1.0.0-beta04/Google.Cloud.GkeHub.V1Beta1.GkeHubMembershipService) \n\n public static class GkeHubMembershipService\n\nReference documentation and code samples for the GKE Hub v1beta1 API class GkeHubMembershipService.\n\nThe GKE Hub MembershipService handles the registration of many Kubernetes\nclusters to Google Cloud, represented with the\n\\[Membership\\]\\[google.cloud.gkehub.v1beta1.Membership\\] resource.\n\nGKE Hub is currently available in the global region and all regions in\n\u003chttps://cloud.google.com/compute/docs/regions-zones\u003e.\n\n**Membership management may be non-trivial:** it is recommended to use one\nof the Google-provided client libraries or tools where possible when working\nwith Membership resources. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GkeHubMembershipService \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.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.GkeHub.V1Beta1](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.GkeHub.V1Beta1.dll\n\nMethods\n-------\n\n### BindService(GkeHubMembershipServiceBase)\n\n public static ServerServiceDefinition BindService(GkeHubMembershipService.GkeHubMembershipServiceBase serviceImpl)\n\nCreates service definition that can be registered with a server\n\n### BindService(ServiceBinderBase, GkeHubMembershipServiceBase)\n\n public static void BindService(ServiceBinderBase serviceBinder, GkeHubMembershipService.GkeHubMembershipServiceBase serviceImpl)\n\nRegister service method with a service binder with or without implementation. Useful when customizing the service binding logic.\nNote: this method is part of an experimental API that can change or be removed without any prior notice."]]