Interface BatchCreateSessionsRequestOrBuilder (6.82.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
Type Description
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
Type Description
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
Type Description
int

The sessionCount.

getSessionTemplate()

public abstract Session getSessionTemplate()

Parameters to be applied to each created session.

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

Returns
Type Description
Session

The sessionTemplate.

getSessionTemplateOrBuilder()

public abstract SessionOrBuilder getSessionTemplateOrBuilder()

Parameters to be applied to each created session.

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

Returns
Type Description
SessionOrBuilder

hasSessionTemplate()

public abstract boolean hasSessionTemplate()

Parameters to be applied to each created session.

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

Returns
Type Description
boolean

Whether the sessionTemplate field is set.