Interface BatchCreateSessionsRequestOrBuilder (6.25.0)

public interface BatchCreateSessionsRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDatabase()

public abstract String getDatabase()

Required. The database in which the new sessions are 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 sessions are created.

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

Returns
TypeDescription
ByteString

The bytes for database.

getSessionCount()

public abstract int getSessionCount()

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 as necessary).

int32 session_count = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The sessionCount.

getSessionTemplate()

public abstract Session getSessionTemplate()

Parameters to be applied to each created session.

.google.spanner.v1.Session session_template = 2;

Returns
TypeDescription
Session

The sessionTemplate.

getSessionTemplateOrBuilder()

public abstract SessionOrBuilder getSessionTemplateOrBuilder()

Parameters to be applied to each created session.

.google.spanner.v1.Session session_template = 2;

Returns
TypeDescription
SessionOrBuilder

hasSessionTemplate()

public abstract boolean hasSessionTemplate()

Parameters to be applied to each created session.

.google.spanner.v1.Session session_template = 2;

Returns
TypeDescription
boolean

Whether the sessionTemplate field is set.