Optional. A filter for the sessions to return in the response.
A filter is a logical expression constraining the values of various fields
in each session resource. Filters are case sensitive, and may contain
multiple clauses combined with logical operators (AND, OR).
Supported fields are session_id, session_uuid, state, create_time,
and labels.
Example: state = ACTIVE and create_time < "2023-01-01T00:00:00Z"
is a filter for sessions in an ACTIVE state that were created before
2023-01-01. state = ACTIVE and labels.environment=production is a filter
for sessions in an ACTIVE state that have a production environment label.
[[["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\u003eThis document provides reference documentation for the \u003ccode\u003eListSessionsRequest\u003c/code\u003e class within the Google Cloud Dataproc v1 API, which is used to request a list of sessions in a project.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for this class is 5.17.0, with several previous versions also available, ranging down to 3.1.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eListSessionsRequest\u003c/code\u003e class implements multiple interfaces, including \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, to manage requests and data efficiently.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eListSessionsRequest\u003c/code\u003e class include \u003ccode\u003eFilter\u003c/code\u003e (for narrowing down sessions), \u003ccode\u003ePageSize\u003c/code\u003e and \u003ccode\u003ePageToken\u003c/code\u003e (for pagination), and \u003ccode\u003eParent\u003c/code\u003e (specifying the owner of the sessions).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eListSessionsRequest\u003c/code\u003e class allows for the use of a filter to be used when listing the sessions, allowing a user to narrow down the sessions using supported fields, like session_id, state, and labels.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Dataproc v1 API - Class ListSessionsRequest (5.20.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.20.0 (latest)](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [5.19.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.19.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [5.18.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.18.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [5.17.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.17.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [5.16.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.16.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [5.15.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.15.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [5.14.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.14.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [5.13.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.13.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [5.12.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.12.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [5.11.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.11.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [5.10.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.10.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [5.9.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.9.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [5.8.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.8.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [5.7.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.7.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [5.6.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.6.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [5.5.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.5.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [5.4.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.4.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [5.3.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.3.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [5.2.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.2.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [5.1.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.1.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.0.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/4.0.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.4.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.3.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.2.0/Google.Cloud.Dataproc.V1.ListSessionsRequest)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.1.0/Google.Cloud.Dataproc.V1.ListSessionsRequest) \n\n public sealed class ListSessionsRequest : IPageRequest, IMessage\u003cListSessionsRequest\u003e, IEquatable\u003cListSessionsRequest\u003e, IDeepCloneable\u003cListSessionsRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Dataproc v1 API class ListSessionsRequest.\n\nA request to list sessions in a project. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ListSessionsRequest \n\nImplements\n----------\n\n[IPageRequest](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.IPageRequest.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ListSessionsRequest](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.ListSessionsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ListSessionsRequest](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.ListSessionsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ListSessionsRequest](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.ListSessionsRequest), [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.Dataproc.V1](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Dataproc.V1.dll\n\nConstructors\n------------\n\n### ListSessionsRequest()\n\n public ListSessionsRequest()\n\n### ListSessionsRequest(ListSessionsRequest)\n\n public ListSessionsRequest(ListSessionsRequest other)\n\nProperties\n----------\n\n### Filter\n\n public string Filter { get; set; }\n\nOptional. A filter for the sessions to return in the response.\n\nA filter is a logical expression constraining the values of various fields\nin each session resource. Filters are case sensitive, and may contain\nmultiple clauses combined with logical operators (AND, OR).\nSupported fields are `session_id`, `session_uuid`, `state`, `create_time`,\nand `labels`.\n\nExample: `state = ACTIVE and create_time \u003c \"2023-01-01T00:00:00Z\"`\nis a filter for sessions in an ACTIVE state that were created before\n2023-01-01. `state = ACTIVE and labels.environment=production` is a filter\nfor sessions in an ACTIVE state that have a production environment label.\n\nSee \u003chttps://google.aip.dev/assets/misc/ebnf-filtering.txt\u003e for a detailed\ndescription of the filter syntax and a list of supported comparators.\n\n### PageSize\n\n public int PageSize { get; set; }\n\nOptional. The maximum number of sessions to return in each response.\nThe service may return fewer than this value.\n\n### PageToken\n\n public string PageToken { get; set; }\n\nOptional. A page token received from a previous `ListSessions` call.\nProvide this token to retrieve the subsequent page.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The parent, which owns this collection of sessions.\n\n### ParentAsLocationName\n\n public LocationName ParentAsLocationName { get; set; }\n\n[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.ListSessionsRequest#Google_Cloud_Dataproc_V1_ListSessionsRequest_Parent) resource name property."]]