Optional. The maximum number of consumer groups to return. The service may
return fewer than this value. If unset or zero, all consumer groups for the
parent is returned.
[[["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-03 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eListConsumerGroupsRequest\u003c/code\u003e class is used to request a list of consumer groups in the Managed Service for Apache Kafka API v1.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, \u003ccode\u003eIBufferMessage\u003c/code\u003e, and \u003ccode\u003eIPageRequest\u003c/code\u003e, providing various functionalities like serialization, comparison, deep cloning, and pagination.\u003c/p\u003e\n"],["\u003cp\u003eIt has properties to manage pagination, such as \u003ccode\u003ePageSize\u003c/code\u003e to define the number of consumer groups returned and \u003ccode\u003ePageToken\u003c/code\u003e to retrieve subsequent pages.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eParent\u003c/code\u003e property is required and specifies the cluster from which to retrieve the list of consumer groups, formatted as \u003ccode\u003eprojects/{project}/locations/{location}/clusters/{cluster}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has a constructor that can create a \u003ccode\u003eListConsumerGroupsRequest\u003c/code\u003e from another \u003ccode\u003eListConsumerGroupsRequest\u003c/code\u003e, copying its content.\u003c/p\u003e\n"]]],[],null,["# Managed Service for Apache Kafka API v1 API - Class ListConsumerGroupsRequest (1.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.ListConsumerGroupsRequest)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/1.0.0-beta06/Google.Cloud.ManagedKafka.V1.ListConsumerGroupsRequest) \n\n public sealed class ListConsumerGroupsRequest : IMessage\u003cListConsumerGroupsRequest\u003e, IEquatable\u003cListConsumerGroupsRequest\u003e, IDeepCloneable\u003cListConsumerGroupsRequest\u003e, IBufferMessage, IMessage, IPageRequest\n\nReference documentation and code samples for the Managed Service for Apache Kafka API v1 API class ListConsumerGroupsRequest.\n\nRequest for ListConsumerGroups. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ListConsumerGroupsRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ListConsumerGroupsRequest](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.ListConsumerGroupsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ListConsumerGroupsRequest](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.ListConsumerGroupsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ListConsumerGroupsRequest](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.ListConsumerGroupsRequest), [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), [IPageRequest](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.IPageRequest.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.ManagedKafka.V1](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ManagedKafka.V1.dll\n\nConstructors\n------------\n\n### ListConsumerGroupsRequest()\n\n public ListConsumerGroupsRequest()\n\n### ListConsumerGroupsRequest(ListConsumerGroupsRequest)\n\n public ListConsumerGroupsRequest(ListConsumerGroupsRequest other)\n\nProperties\n----------\n\n### PageSize\n\n public int PageSize { get; set; }\n\nOptional. The maximum number of consumer groups to return. The service may\nreturn fewer than this value. If unset or zero, all consumer groups for the\nparent is returned.\n\n### PageToken\n\n public string PageToken { get; set; }\n\nOptional. A page token, received from a previous `ListConsumerGroups` call.\nProvide this to retrieve the subsequent page.\n\nWhen paginating, all other parameters provided to `ListConsumerGroups` must\nmatch the call that provided the page token.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The parent cluster whose consumer groups are to be listed.\nStructured like\n`projects/{project}/locations/{location}/clusters/{cluster}`.\n\n### ParentAsClusterName\n\n public ClusterName ParentAsClusterName { get; set; }\n\n[ClusterName](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.ClusterName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.ListConsumerGroupsRequest#Google_Cloud_ManagedKafka_V1_ListConsumerGroupsRequest_Parent) resource name property."]]