public static final class BatchCreateSessionsRequest.Builder extends GeneratedMessageV3.Builder<BatchCreateSessionsRequest.Builder> implements BatchCreateSessionsRequestOrBuilder
The request for BatchCreateSessions.
Protobuf type google.spanner.v1.BatchCreateSessionsRequest
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BatchCreateSessionsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public BatchCreateSessionsRequest build()
Returns
buildPartial()
public BatchCreateSessionsRequest buildPartial()
Returns
clear()
public BatchCreateSessionsRequest.Builder clear()
Returns
Overrides
clearDatabase()
public BatchCreateSessionsRequest.Builder clearDatabase()
Required. The database in which the new sessions are created.
string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearField(Descriptors.FieldDescriptor field)
public BatchCreateSessionsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BatchCreateSessionsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSessionCount()
public BatchCreateSessionsRequest.Builder clearSessionCount()
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
clearSessionTemplate()
public BatchCreateSessionsRequest.Builder clearSessionTemplate()
Parameters to be applied to each created session.
.google.spanner.v1.Session session_template = 2;
Returns
clone()
public BatchCreateSessionsRequest.Builder clone()
Returns
Overrides
getDatabase()
public 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 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
getDefaultInstanceForType()
public BatchCreateSessionsRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getSessionCount()
public 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 Session getSessionTemplate()
Parameters to be applied to each created session.
.google.spanner.v1.Session session_template = 2;
Returns
Type | Description |
Session | The sessionTemplate.
|
getSessionTemplateBuilder()
public Session.Builder getSessionTemplateBuilder()
Parameters to be applied to each created session.
.google.spanner.v1.Session session_template = 2;
Returns
getSessionTemplateOrBuilder()
public SessionOrBuilder getSessionTemplateOrBuilder()
Parameters to be applied to each created session.
.google.spanner.v1.Session session_template = 2;
Returns
hasSessionTemplate()
public 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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public BatchCreateSessionsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public BatchCreateSessionsRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(BatchCreateSessionsRequest other)
public BatchCreateSessionsRequest.Builder mergeFrom(BatchCreateSessionsRequest other)
Parameter
Returns
mergeSessionTemplate(Session value)
public BatchCreateSessionsRequest.Builder mergeSessionTemplate(Session value)
Parameters to be applied to each created session.
.google.spanner.v1.Session session_template = 2;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BatchCreateSessionsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setDatabase(String value)
public BatchCreateSessionsRequest.Builder setDatabase(String value)
Required. The database in which the new sessions are created.
string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The database to set.
|
Returns
setDatabaseBytes(ByteString value)
public BatchCreateSessionsRequest.Builder setDatabaseBytes(ByteString value)
Required. The database in which the new sessions are created.
string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for database to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public BatchCreateSessionsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BatchCreateSessionsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSessionCount(int value)
public BatchCreateSessionsRequest.Builder setSessionCount(int value)
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];
Parameter
Name | Description |
value | int
The sessionCount to set.
|
Returns
setSessionTemplate(Session value)
public BatchCreateSessionsRequest.Builder setSessionTemplate(Session value)
Parameters to be applied to each created session.
.google.spanner.v1.Session session_template = 2;
Parameter
Returns
setSessionTemplate(Session.Builder builderForValue)
public BatchCreateSessionsRequest.Builder setSessionTemplate(Session.Builder builderForValue)
Parameters to be applied to each created session.
.google.spanner.v1.Session session_template = 2;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final BatchCreateSessionsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides