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 document provides reference documentation for the \u003ccode\u003eCreateSessionRequest\u003c/code\u003e class within the Google Cloud Spanner v1 API, specifically for version 4.3.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCreateSessionRequest\u003c/code\u003e is used to define requests for creating sessions in Google Cloud Spanner, inheriting from \u003ccode\u003eobject\u003c/code\u003e and 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 properties such as \u003ccode\u003eDatabase\u003c/code\u003e, which is a required string representing the target database, and \u003ccode\u003eSession\u003c/code\u003e, which is the required session object to be created.\u003c/p\u003e\n"],["\u003cp\u003eAvailable versions of the API, ranging from 3.5.0 to 5.0.0-beta05, are listed, providing links to the documentation for each version.\u003c/p\u003e\n"],["\u003cp\u003eThe class has 2 constructors available, one default and one that accepts another \u003ccode\u003eCreateSessionRequest\u003c/code\u003e as a parameter.\u003c/p\u003e\n"]]],[],null,[]]