Class SessionPoolOptions.Builder (6.66.0)

public static final class SessionPoolOptions.Builder extends GeneratedMessageV3.Builder<SessionPoolOptions.Builder> implements SessionPoolOptionsOrBuilder

Options for the session pool used by the DatabaseClient.

Protobuf type google.spanner.executor.v1.SessionPoolOptions

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SessionPoolOptions build()
Returns
Type Description
SessionPoolOptions

buildPartial()

public SessionPoolOptions buildPartial()
Returns
Type Description
SessionPoolOptions

clear()

public SessionPoolOptions.Builder clear()
Returns
Type Description
SessionPoolOptions.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public SessionPoolOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SessionPoolOptions.Builder
Overrides

clearUseMultiplexed()

public SessionPoolOptions.Builder clearUseMultiplexed()

passing this as true, will make applicable RPCs use multiplexed sessions instead of regular sessions

bool use_multiplexed = 1;

Returns
Type Description
SessionPoolOptions.Builder

This builder for chaining.

clone()

public SessionPoolOptions.Builder clone()
Returns
Type Description
SessionPoolOptions.Builder
Overrides

getDefaultInstanceForType()

public SessionPoolOptions getDefaultInstanceForType()
Returns
Type Description
SessionPoolOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getUseMultiplexed()

public boolean getUseMultiplexed()

passing this as true, will make applicable RPCs use multiplexed sessions instead of regular sessions

bool use_multiplexed = 1;

Returns
Type Description
boolean

The useMultiplexed.

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 SessionPoolOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SessionPoolOptions.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(SessionPoolOptions other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SessionPoolOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SessionPoolOptions.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public SessionPoolOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SessionPoolOptions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUseMultiplexed(boolean value)

public SessionPoolOptions.Builder setUseMultiplexed(boolean value)

passing this as true, will make applicable RPCs use multiplexed sessions instead of regular sessions

bool use_multiplexed = 1;

Parameter
Name Description
value boolean

The useMultiplexed to set.

Returns
Type Description
SessionPoolOptions.Builder

This builder for chaining.