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\u003eThis document provides reference documentation for the \u003ccode\u003eCreateSessionRequest\u003c/code\u003e class within the Google Cloud Spanner v1 API, specifically for version 4.1.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateSessionRequest\u003c/code\u003e class is used to request the creation of a new session in Google Cloud Spanner, and it implements several interfaces, including \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 includes properties such as \u003ccode\u003eDatabase\u003c/code\u003e (a string representing the database name) and \u003ccode\u003eSession\u003c/code\u003e (the session to be created), as well as a \u003ccode\u003eDatabaseAsDatabaseName\u003c/code\u003e property that provides a typed view of the database resource name.\u003c/p\u003e\n"],["\u003cp\u003eThere are several previous versions available for reference, from 3.5.0 up to the most recent beta version 5.0.0-beta05, but only version 4.1.0 is highlighted as being the focus of this page.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, a default and an overload that takes an existing \u003ccode\u003eCreateSessionRequest\u003c/code\u003e object to create a new copy.\u003c/p\u003e\n"]]],[],null,[]]