Package com.google.spanner.v1
Interface BatchCreateSessionsRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
BatchCreateSessionsRequest,BatchCreateSessionsRequest.Builder
public interface BatchCreateSessionsRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionRequired.com.google.protobuf.ByteStringRequired.intRequired.Parameters to apply to each created session.Parameters to apply to each created session.booleanParameters to apply to each created session.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDatabase
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:
- The database.
-
getDatabaseBytes
com.google.protobuf.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:
- The bytes for database.
-
hasSessionTemplate
boolean hasSessionTemplate()Parameters to apply to each created session.
.google.spanner.v1.Session session_template = 2;- Returns:
- Whether the sessionTemplate field is set.
-
getSessionTemplate
Session getSessionTemplate()Parameters to apply to each created session.
.google.spanner.v1.Session session_template = 2;- Returns:
- The sessionTemplate.
-
getSessionTemplateOrBuilder
SessionOrBuilder getSessionTemplateOrBuilder()Parameters to apply to each created session.
.google.spanner.v1.Session session_template = 2; -
getSessionCount
int getSessionCount()Required. The number of sessions to be created in this batch call. At least one session is created. The API can 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][google.spanner.v1.BatchCreateSessionsRequest.session_count] as necessary).
int32 session_count = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The sessionCount.
-