public sealed class CreateSessionRequest : IMessage<CreateSessionRequest>, IEquatable<CreateSessionRequest>, IDeepCloneable<CreateSessionRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Spanner v1 API class CreateSessionRequest.
The request for [CreateSession][google.spanner.v1.Spanner.CreateSession].
[[["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\u003eCreateSessionRequest\u003c/code\u003e class is part of the Google Cloud Spanner v1 API, specifically in the \u003ccode\u003eGoogle.Cloud.Spanner.V1\u003c/code\u003e namespace within the \u003ccode\u003eGoogle.Cloud.Spanner.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThis class is used to send a request to create a new session within the Spanner database, implementing interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, one empty and one taking another \u003ccode\u003eCreateSessionRequest\u003c/code\u003e object, allowing for default construction or object duplication.\u003c/p\u003e\n"],["\u003cp\u003eIt contains two key properties: \u003ccode\u003eDatabase\u003c/code\u003e (a string representing the target database) and \u003ccode\u003eSession\u003c/code\u003e (an object representing the session to create).\u003c/p\u003e\n"],["\u003cp\u003eThere are many versions of this documentation available, with the latest being 5.0.0-beta05, and the lowest version available is 3.5.0.\u003c/p\u003e\n"]]],[],null,[]]