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 latest version of the \u003ccode\u003eCreateSessionRequest\u003c/code\u003e class is \u003ccode\u003e5.0.0-beta05\u003c/code\u003e, with various previous versions also documented, ranging from \u003ccode\u003e5.0.0-beta04\u003c/code\u003e to \u003ccode\u003e3.5.0\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateSessionRequest\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.Spanner.V1\u003c/code\u003e namespace and is used for requesting the creation of a new session in the Google Cloud Spanner v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \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 properties, \u003ccode\u003eDatabase\u003c/code\u003e (a string representing the database name) and \u003ccode\u003eSession\u003c/code\u003e, which are both required for a request.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateSessionRequest\u003c/code\u003e class has two constructors: a default one and another one that takes another \u003ccode\u003eCreateSessionRequest\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"]]],[],null,[]]