Class BatchCreateSessionsRequest.Builder (6.83.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateSessionsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchCreateSessionsRequest.Builder
Overrides

build()

public BatchCreateSessionsRequest build()
Returns
Type Description
BatchCreateSessionsRequest

buildPartial()

public BatchCreateSessionsRequest buildPartial()
Returns
Type Description
BatchCreateSessionsRequest

clear()

public BatchCreateSessionsRequest.Builder clear()
Returns
Type Description
BatchCreateSessionsRequest.Builder
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
Type Description
BatchCreateSessionsRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BatchCreateSessionsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BatchCreateSessionsRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchCreateSessionsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BatchCreateSessionsRequest.Builder
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
Type Description
BatchCreateSessionsRequest.Builder

This builder for chaining.

clearSessionTemplate()

public BatchCreateSessionsRequest.Builder clearSessionTemplate()

Parameters to be applied to each created session.

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

Returns
Type Description
BatchCreateSessionsRequest.Builder

clone()

public BatchCreateSessionsRequest.Builder clone()
Returns
Type Description
BatchCreateSessionsRequest.Builder
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()
Returns
Type Description
BatchCreateSessionsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Type Description
Session.Builder

getSessionTemplateOrBuilder()

public SessionOrBuilder getSessionTemplateOrBuilder()

Parameters to be applied to each created session.

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

Returns
Type Description
SessionOrBuilder

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchCreateSessionsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreateSessionsRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BatchCreateSessionsRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BatchCreateSessionsRequest.Builder
Overrides

mergeFrom(BatchCreateSessionsRequest other)

public BatchCreateSessionsRequest.Builder mergeFrom(BatchCreateSessionsRequest other)
Parameter
Name Description
other BatchCreateSessionsRequest
Returns
Type Description
BatchCreateSessionsRequest.Builder

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
Returns
Type Description
BatchCreateSessionsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateSessionsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchCreateSessionsRequest.Builder
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
Type Description
BatchCreateSessionsRequest.Builder

This builder for chaining.

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
Type Description
BatchCreateSessionsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateSessionsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchCreateSessionsRequest.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BatchCreateSessionsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BatchCreateSessionsRequest.Builder
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
Type Description
BatchCreateSessionsRequest.Builder

This builder for chaining.

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
Returns
Type Description
BatchCreateSessionsRequest.Builder

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
Name Description
builderForValue Session.Builder
Returns
Type Description
BatchCreateSessionsRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateSessionsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchCreateSessionsRequest.Builder
Overrides