Class BatchCreateSessionsRequest.Builder (6.51.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateSessionsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchCreateSessionsRequest.Builder
Overrides

build()

public BatchCreateSessionsRequest build()
Returns
TypeDescription
BatchCreateSessionsRequest

buildPartial()

public BatchCreateSessionsRequest buildPartial()
Returns
TypeDescription
BatchCreateSessionsRequest

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BatchCreateSessionsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BatchCreateSessionsRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchCreateSessionsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
BatchCreateSessionsRequest.Builder

clone()

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

The bytes for database.

getDefaultInstanceForType()

public BatchCreateSessionsRequest getDefaultInstanceForType()
Returns
TypeDescription
BatchCreateSessionsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
int

The sessionCount.

getSessionTemplate()

public Session getSessionTemplate()

Parameters to be applied to each created session.

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

Returns
TypeDescription
Session

The sessionTemplate.

getSessionTemplateBuilder()

public Session.Builder getSessionTemplateBuilder()

Parameters to be applied to each created session.

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

Returns
TypeDescription
Session.Builder

getSessionTemplateOrBuilder()

public SessionOrBuilder getSessionTemplateOrBuilder()

Parameters to be applied to each created session.

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

Returns
TypeDescription
SessionOrBuilder

hasSessionTemplate()

public boolean hasSessionTemplate()

Parameters to be applied to each created session.

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

Returns
TypeDescription
boolean

Whether the sessionTemplate field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchCreateSessionsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchCreateSessionsRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BatchCreateSessionsRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BatchCreateSessionsRequest.Builder
Overrides

mergeFrom(BatchCreateSessionsRequest other)

public BatchCreateSessionsRequest.Builder mergeFrom(BatchCreateSessionsRequest other)
Parameter
NameDescription
otherBatchCreateSessionsRequest
Returns
TypeDescription
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
NameDescription
valueSession
Returns
TypeDescription
BatchCreateSessionsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateSessionsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The database to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for database to set.

Returns
TypeDescription
BatchCreateSessionsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateSessionsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchCreateSessionsRequest.Builder
Overrides

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

public BatchCreateSessionsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The sessionCount to set.

Returns
TypeDescription
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
NameDescription
valueSession
Returns
TypeDescription
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
NameDescription
builderForValueSession.Builder
Returns
TypeDescription
BatchCreateSessionsRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateSessionsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchCreateSessionsRequest.Builder
Overrides