Cloud Spanner V1 Client - Class CreateSessionRequest (1.54.2)

Reference documentation and code samples for the Cloud Spanner V1 Client class CreateSessionRequest.

The request for CreateSession.

Generated from protobuf message google.spanner.v1.CreateSessionRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ database string

Required. The database in which the new session is created.

↳ session Google\Cloud\Spanner\V1\Session

Required. The session to create.

getDatabase

Required. The database in which the new session is created.

Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Returns
TypeDescription
string

setDatabase

Required. The database in which the new session is created.

Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSession

Required. The session to create.

Generated from protobuf field .google.spanner.v1.Session session = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Google\Cloud\Spanner\V1\Session|null

hasSession

clearSession

setSession

Required. The session to create.

Generated from protobuf field .google.spanner.v1.Session session = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
var Google\Cloud\Spanner\V1\Session
Returns
TypeDescription
$this