Interface CreateSessionRequestOrBuilder (6.82.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
Type Description
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
Type Description
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
Type Description
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
Type Description
SessionOrBuilder

hasSession()

public abstract boolean hasSession()

Required. The session to create.

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

Returns
Type Description
boolean

Whether the session field is set.