public sealed class BatchCreateSessionsRequest : IMessage<BatchCreateSessionsRequest>, IEquatable<BatchCreateSessionsRequest>, IDeepCloneable<BatchCreateSessionsRequest>, IBufferMessage, IMessage
The request for [BatchCreateSessions][google.spanner.v1.Spanner.BatchCreateSessions].
public DatabaseName DatabaseAsDatabaseName { get; set; }
Google.Cloud.Spanner.Common.V1.DatabaseName-typed view over the Database resource name property.
Property Value
Type
Description
Google.Cloud.Spanner.Common.V1.DatabaseName
SessionCount
public int SessionCount { get; set; }
Required. The number of sessions to be created in this batch call.
The API may return fewer than the requested number of sessions. If a
specific number of sessions are desired, the client can make additional
calls to BatchCreateSessions (adjusting
[session_count][google.spanner.v1.BatchCreateSessionsRequest.session_count] as necessary).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-17 UTC."],[[["This document outlines the `BatchCreateSessionsRequest` class within the `Google.Cloud.Spanner.V1` namespace, specifically for version 3.9.0, used for requesting the creation of multiple database sessions."],["The latest version available is 5.0.0-beta05, with several other previous versions listed down to 3.5.0 for `BatchCreateSessionsRequest`."],["`BatchCreateSessionsRequest` inherits from `Object` and implements `IMessage\u003cBatchCreateSessionsRequest\u003e`, `IEquatable\u003cBatchCreateSessionsRequest\u003e`, `IDeepCloneable\u003cBatchCreateSessionsRequest\u003e`, `IBufferMessage`, and `IMessage`."],["The class provides constructors for creating instances and includes properties such as `Database`, `DatabaseAsDatabaseName`, `SessionCount`, and `SessionTemplate` to configure session creation."],["The API may return fewer sessions than the amount specified by `SessionCount`, and it is possible to call `BatchCreateSessions` multiple times to achieve the desired amount."]]],[]]