If non-empty, page_token should contain a
[next_page_token][google.spanner.v1.ListSessionsResponse.next_page_token]
from a previous
[ListSessionsResponse][google.spanner.v1.ListSessionsResponse].
[[["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\u003eListSessionsRequest\u003c/code\u003e class is part of the Google Cloud Spanner v1 API, facilitating requests for listing sessions.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple 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, allowing for broad functionality and compatibility.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers properties such as \u003ccode\u003eDatabase\u003c/code\u003e, \u003ccode\u003eFilter\u003c/code\u003e, \u003ccode\u003ePageSize\u003c/code\u003e, and \u003ccode\u003ePageToken\u003c/code\u003e, which provide ways to define and refine the criteria of the listing sessions request.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of \u003ccode\u003eListSessionsRequest\u003c/code\u003e, with the latest being \u003ccode\u003e5.0.0-beta05\u003c/code\u003e, and it includes older versions dating back to 3.5.0, each accessible via unique URLs.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains two constructor methods: one default and the other accepting another \u003ccode\u003eListSessionsRequest\u003c/code\u003e as a parameter, for convenient cloning.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Spanner v1 API - Class ListSessionsRequest (5.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.1.0 (latest)](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ListSessionsRequest)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/5.0.0/Google.Cloud.Spanner.V1.ListSessionsRequest)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.6.0/Google.Cloud.Spanner.V1.ListSessionsRequest)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.5.0/Google.Cloud.Spanner.V1.ListSessionsRequest)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.4.0/Google.Cloud.Spanner.V1.ListSessionsRequest)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.3.0/Google.Cloud.Spanner.V1.ListSessionsRequest)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.2.0/Google.Cloud.Spanner.V1.ListSessionsRequest)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.1.0/Google.Cloud.Spanner.V1.ListSessionsRequest)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.0.0/Google.Cloud.Spanner.V1.ListSessionsRequest)\n- [3.15.1](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.15.1/Google.Cloud.Spanner.V1.ListSessionsRequest)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.14.0/Google.Cloud.Spanner.V1.ListSessionsRequest)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.13.0/Google.Cloud.Spanner.V1.ListSessionsRequest)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.12.0/Google.Cloud.Spanner.V1.ListSessionsRequest)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.11.0/Google.Cloud.Spanner.V1.ListSessionsRequest)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.10.0/Google.Cloud.Spanner.V1.ListSessionsRequest)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.9.0/Google.Cloud.Spanner.V1.ListSessionsRequest)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.8.0/Google.Cloud.Spanner.V1.ListSessionsRequest)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.7.0/Google.Cloud.Spanner.V1.ListSessionsRequest)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.6.0/Google.Cloud.Spanner.V1.ListSessionsRequest)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.5.0/Google.Cloud.Spanner.V1.ListSessionsRequest) \n\n public sealed class ListSessionsRequest : IMessage\u003cListSessionsRequest\u003e, IEquatable\u003cListSessionsRequest\u003e, IDeepCloneable\u003cListSessionsRequest\u003e, IBufferMessage, IMessage, IPageRequest\n\nReference documentation and code samples for the Google Cloud Spanner v1 API class ListSessionsRequest.\n\nThe request for \\[ListSessions\\]\\[google.spanner.v1.Spanner.ListSessions\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ListSessionsRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ListSessionsRequest](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ListSessionsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ListSessionsRequest](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ListSessionsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ListSessionsRequest](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.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), [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.Spanner.V1](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Spanner.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### Database\n\n public string Database { get; set; }\n\nRequired. The database in which to list sessions.\n\n### DatabaseAsDatabaseName\n\n public DatabaseName DatabaseAsDatabaseName { get; set; }\n\nGoogle.Cloud.Spanner.Common.V1.DatabaseName-typed view over the [Database](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest/Google.Cloud.Spanner.V1.ListSessionsRequest#Google_Cloud_Spanner_V1_ListSessionsRequest_Database) resource name property.\n\n### Filter\n\n public string Filter { get; set; }\n\nAn expression for filtering the results of the request. Filter rules are\ncase insensitive. The fields eligible for filtering are:\n\n- `labels.key` where key is the name of a label\n\nSome examples of using filters are:\n\n- `labels.env:*` --\\\u003e The session has the label \"env\".\n- `labels.env:dev` --\\\u003e The session has the label \"env\" and the value of the label contains the string \"dev\".\n\n### PageSize\n\n public int PageSize { get; set; }\n\nNumber of sessions to be returned in the response. If 0 or less, defaults\nto the server's maximum allowed page size.\n\n### PageToken\n\n public string PageToken { get; set; }\n\nIf non-empty, `page_token` should contain a\n\\[next_page_token\\]\\[google.spanner.v1.ListSessionsResponse.next_page_token\\]\nfrom a previous\n\\[ListSessionsResponse\\]\\[google.spanner.v1.ListSessionsResponse\\]."]]