Interface CreateSessionRequestOrBuilder (6.51.0)

public interface CreateSessionRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDatabase()

public abstract String getDatabase()

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

string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The database.

getDatabaseBytes()

public abstract ByteString getDatabaseBytes()

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

string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for database.

getSession()

public abstract Session getSession()

Required. The session to create.

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

Returns
TypeDescription
Session

The session.

getSessionOrBuilder()

public abstract SessionOrBuilder getSessionOrBuilder()

Required. The session to create.

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

Returns
TypeDescription
SessionOrBuilder

hasSession()

public abstract boolean hasSession()

Required. The session to create.

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

Returns
TypeDescription
boolean

Whether the session field is set.