public static final class BatchCreateSessionsRequest.Builder extends GeneratedMessageV3.Builder<BatchCreateSessionsRequest.Builder> implements BatchCreateSessionsRequestOrBuilder
The request for
BatchCreateSessions.
Protobuf type google.spanner.v1.BatchCreateSessionsRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BatchCreateSessionsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public BatchCreateSessionsRequest build()
buildPartial()
public BatchCreateSessionsRequest buildPartial()
clear()
public BatchCreateSessionsRequest.Builder clear()
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) = { ... }
clearField(Descriptors.FieldDescriptor field)
public BatchCreateSessionsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BatchCreateSessionsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clearSessionTemplate()
public BatchCreateSessionsRequest.Builder clearSessionTemplate()
Parameters to be applied to each created session.
.google.spanner.v1.Session session_template = 2;
clone()
public BatchCreateSessionsRequest.Builder clone()
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 |
---|
Type | Description |
ByteString | The bytes for database.
|
getDefaultInstanceForType()
public BatchCreateSessionsRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
getSessionTemplateOrBuilder()
public SessionOrBuilder getSessionTemplateOrBuilder()
Parameters to be applied to each created session.
.google.spanner.v1.Session session_template = 2;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public BatchCreateSessionsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public BatchCreateSessionsRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeFrom(BatchCreateSessionsRequest other)
public BatchCreateSessionsRequest.Builder mergeFrom(BatchCreateSessionsRequest other)
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 |
---|
Name | Description |
value | Session
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BatchCreateSessionsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public BatchCreateSessionsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BatchCreateSessionsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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 |
---|
Name | Description |
value | Session
|
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final BatchCreateSessionsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides