Optional. When requesting a 'page' of resources, page_size specifies
number of resources to return. If unspecified or set to 0, all resources
will be returned.
Required. The parent (project and location) where the Memberships will be
listed. Specified in the format projects/*/locations/*.
projects/*/locations/- list memberships in all the regions.
[[["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\u003eListMembershipsRequest\u003c/code\u003e class is the request message for the \u003ccode\u003eGkeHub.ListMemberships\u003c/code\u003e method, used to retrieve a list of GKE Hub memberships.\u003c/p\u003e\n"],["\u003cp\u003eThis class is part of the Google Cloud GKE Hub v1 API and is designed for .NET environments, with the latest version being 2.5.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eListMembershipsRequest\u003c/code\u003e offers several properties such as \u003ccode\u003eFilter\u003c/code\u003e, \u003ccode\u003eOrderBy\u003c/code\u003e, \u003ccode\u003ePageSize\u003c/code\u003e, \u003ccode\u003ePageToken\u003c/code\u003e, and \u003ccode\u003eParent\u003c/code\u003e to refine the list of memberships requested, supporting functionalities like filtering, ordering, and pagination.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eParent\u003c/code\u003e property is required and specifies the project and location for which memberships should be listed, while the \u003ccode\u003eParentAsLocationName\u003c/code\u003e property provides a typed view over the resource name.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements interfaces like \u003ccode\u003eIPageRequest\u003c/code\u003e, \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its capabilities for paged requests, message handling, comparison, deep cloning, and buffer message interactions.\u003c/p\u003e\n"]]],[],null,["# GKE Hub v1 API - Class ListMembershipsRequest (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.ListMembershipsRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.4.0/Google.Cloud.GkeHub.V1.ListMembershipsRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.3.0/Google.Cloud.GkeHub.V1.ListMembershipsRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.2.0/Google.Cloud.GkeHub.V1.ListMembershipsRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.1.0/Google.Cloud.GkeHub.V1.ListMembershipsRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.0.0/Google.Cloud.GkeHub.V1.ListMembershipsRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/1.2.0/Google.Cloud.GkeHub.V1.ListMembershipsRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/1.1.0/Google.Cloud.GkeHub.V1.ListMembershipsRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/1.0.0/Google.Cloud.GkeHub.V1.ListMembershipsRequest) \n\n public sealed class ListMembershipsRequest : IPageRequest, IMessage\u003cListMembershipsRequest\u003e, IEquatable\u003cListMembershipsRequest\u003e, IDeepCloneable\u003cListMembershipsRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the GKE Hub v1 API class ListMembershipsRequest.\n\nRequest message for `GkeHub.ListMemberships` method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ListMembershipsRequest \n\nImplements\n----------\n\n[IPageRequest](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/PagedEnumerableCommon.cs), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ListMembershipsRequest](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.ListMembershipsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ListMembershipsRequest](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.ListMembershipsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ListMembershipsRequest](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.ListMembershipsRequest), [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.GkeHub.V1](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.GkeHub.V1.dll\n\nConstructors\n------------\n\n### ListMembershipsRequest()\n\n public ListMembershipsRequest()\n\n### ListMembershipsRequest(ListMembershipsRequest)\n\n public ListMembershipsRequest(ListMembershipsRequest other)\n\nProperties\n----------\n\n### Filter\n\n public string Filter { get; set; }\n\nOptional. Lists Memberships that match the filter expression, following the\nsyntax outlined in \u003chttps://google.aip.dev/160\u003e.\n\nExamples:\n\n- Name is `bar` in project `foo-proj` and location `global`:\n\n name = \"projects/foo-proj/locations/global/membership/bar\"\n- Memberships that have a label called `foo`:\n\n labels.foo:\\*\n- Memberships that have a label called `foo` whose value is `bar`:\n\n labels.foo = bar\n- Memberships in the CREATING state:\n\n state = CREATING\n\n### OrderBy\n\n public string OrderBy { get; set; }\n\nOptional. One or more fields to compare and use to sort the output.\nSee \u003chttps://google.aip.dev/132#ordering\u003e.\n\n### PageSize\n\n public int PageSize { get; set; }\n\nOptional. When requesting a 'page' of resources, `page_size` specifies\nnumber of resources to return. If unspecified or set to 0, all resources\nwill be returned.\n\n### PageToken\n\n public string PageToken { get; set; }\n\nOptional. Token returned by previous call to `ListMemberships` which\nspecifies the position in the list from where to continue listing the\nresources.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The parent (project and location) where the Memberships will be\nlisted. Specified in the format `projects/*/locations/*`.\n`projects/*/locations/-` list memberships in all the regions.\n\n### ParentAsLocationName\n\n public LocationName ParentAsLocationName { get; set; }\n\n[LocationName](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax/ResourceNames/LocationName.cs)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.ListMembershipsRequest#Google_Cloud_GkeHub_V1_ListMembershipsRequest_Parent) resource name property."]]