Class ConnectionPoolConfig.Builder (0.1.0)

public static final class ConnectionPoolConfig.Builder extends GeneratedMessage.Builder<ConnectionPoolConfig.Builder> implements ConnectionPoolConfigOrBuilder

The managed connection pooling configuration.

Protobuf type google.cloud.sql.v1.ConnectionPoolConfig

Static Methods

getDescriptor()

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

Methods

addAllFlags(Iterable<? extends ConnectionPoolFlags> values)

public ConnectionPoolConfig.Builder addAllFlags(Iterable<? extends ConnectionPoolFlags> values)

Optional. List of connection pool configuration flags.

repeated .google.cloud.sql.v1.ConnectionPoolFlags flags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.sql.v1.ConnectionPoolFlags>
Returns
Type Description
ConnectionPoolConfig.Builder

addFlags(ConnectionPoolFlags value)

public ConnectionPoolConfig.Builder addFlags(ConnectionPoolFlags value)

Optional. List of connection pool configuration flags.

repeated .google.cloud.sql.v1.ConnectionPoolFlags flags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ConnectionPoolFlags
Returns
Type Description
ConnectionPoolConfig.Builder

addFlags(ConnectionPoolFlags.Builder builderForValue)

public ConnectionPoolConfig.Builder addFlags(ConnectionPoolFlags.Builder builderForValue)

Optional. List of connection pool configuration flags.

repeated .google.cloud.sql.v1.ConnectionPoolFlags flags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ConnectionPoolFlags.Builder
Returns
Type Description
ConnectionPoolConfig.Builder

addFlags(int index, ConnectionPoolFlags value)

public ConnectionPoolConfig.Builder addFlags(int index, ConnectionPoolFlags value)

Optional. List of connection pool configuration flags.

repeated .google.cloud.sql.v1.ConnectionPoolFlags flags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ConnectionPoolFlags
Returns
Type Description
ConnectionPoolConfig.Builder

addFlags(int index, ConnectionPoolFlags.Builder builderForValue)

public ConnectionPoolConfig.Builder addFlags(int index, ConnectionPoolFlags.Builder builderForValue)

Optional. List of connection pool configuration flags.

repeated .google.cloud.sql.v1.ConnectionPoolFlags flags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ConnectionPoolFlags.Builder
Returns
Type Description
ConnectionPoolConfig.Builder

addFlagsBuilder()

public ConnectionPoolFlags.Builder addFlagsBuilder()

Optional. List of connection pool configuration flags.

repeated .google.cloud.sql.v1.ConnectionPoolFlags flags = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ConnectionPoolFlags.Builder

addFlagsBuilder(int index)

public ConnectionPoolFlags.Builder addFlagsBuilder(int index)

Optional. List of connection pool configuration flags.

repeated .google.cloud.sql.v1.ConnectionPoolFlags flags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ConnectionPoolFlags.Builder

build()

public ConnectionPoolConfig build()
Returns
Type Description
ConnectionPoolConfig

buildPartial()

public ConnectionPoolConfig buildPartial()
Returns
Type Description
ConnectionPoolConfig

clear()

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

clearConnectionPoolingEnabled()

public ConnectionPoolConfig.Builder clearConnectionPoolingEnabled()

Whether managed connection pooling is enabled.

optional bool connection_pooling_enabled = 1;

Returns
Type Description
ConnectionPoolConfig.Builder

This builder for chaining.

clearFlags()

public ConnectionPoolConfig.Builder clearFlags()

Optional. List of connection pool configuration flags.

repeated .google.cloud.sql.v1.ConnectionPoolFlags flags = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ConnectionPoolConfig.Builder

clearPoolerCount()

public ConnectionPoolConfig.Builder clearPoolerCount()

Output only. Number of connection poolers.

optional int32 pooler_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ConnectionPoolConfig.Builder

This builder for chaining.

getConnectionPoolingEnabled()

public boolean getConnectionPoolingEnabled()

Whether managed connection pooling is enabled.

optional bool connection_pooling_enabled = 1;

Returns
Type Description
boolean

The connectionPoolingEnabled.

getDefaultInstanceForType()

public ConnectionPoolConfig getDefaultInstanceForType()
Returns
Type Description
ConnectionPoolConfig

getDescriptorForType()

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

getFlags(int index)

public ConnectionPoolFlags getFlags(int index)

Optional. List of connection pool configuration flags.

repeated .google.cloud.sql.v1.ConnectionPoolFlags flags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ConnectionPoolFlags

getFlagsBuilder(int index)

public ConnectionPoolFlags.Builder getFlagsBuilder(int index)

Optional. List of connection pool configuration flags.

repeated .google.cloud.sql.v1.ConnectionPoolFlags flags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ConnectionPoolFlags.Builder

getFlagsBuilderList()

public List<ConnectionPoolFlags.Builder> getFlagsBuilderList()

Optional. List of connection pool configuration flags.

repeated .google.cloud.sql.v1.ConnectionPoolFlags flags = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getFlagsCount()

public int getFlagsCount()

Optional. List of connection pool configuration flags.

repeated .google.cloud.sql.v1.ConnectionPoolFlags flags = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getFlagsList()

public List<ConnectionPoolFlags> getFlagsList()

Optional. List of connection pool configuration flags.

repeated .google.cloud.sql.v1.ConnectionPoolFlags flags = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ConnectionPoolFlags>

getFlagsOrBuilder(int index)

public ConnectionPoolFlagsOrBuilder getFlagsOrBuilder(int index)

Optional. List of connection pool configuration flags.

repeated .google.cloud.sql.v1.ConnectionPoolFlags flags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ConnectionPoolFlagsOrBuilder

getFlagsOrBuilderList()

public List<? extends ConnectionPoolFlagsOrBuilder> getFlagsOrBuilderList()

Optional. List of connection pool configuration flags.

repeated .google.cloud.sql.v1.ConnectionPoolFlags flags = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.sql.v1.ConnectionPoolFlagsOrBuilder>

getPoolerCount()

public int getPoolerCount()

Output only. Number of connection poolers.

optional int32 pooler_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The poolerCount.

hasConnectionPoolingEnabled()

public boolean hasConnectionPoolingEnabled()

Whether managed connection pooling is enabled.

optional bool connection_pooling_enabled = 1;

Returns
Type Description
boolean

Whether the connectionPoolingEnabled field is set.

hasPoolerCount()

public boolean hasPoolerCount()

Output only. Number of connection poolers.

optional int32 pooler_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the poolerCount field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ConnectionPoolConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeFlags(int index)

public ConnectionPoolConfig.Builder removeFlags(int index)

Optional. List of connection pool configuration flags.

repeated .google.cloud.sql.v1.ConnectionPoolFlags flags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ConnectionPoolConfig.Builder

setConnectionPoolingEnabled(boolean value)

public ConnectionPoolConfig.Builder setConnectionPoolingEnabled(boolean value)

Whether managed connection pooling is enabled.

optional bool connection_pooling_enabled = 1;

Parameter
Name Description
value boolean

The connectionPoolingEnabled to set.

Returns
Type Description
ConnectionPoolConfig.Builder

This builder for chaining.

setFlags(int index, ConnectionPoolFlags value)

public ConnectionPoolConfig.Builder setFlags(int index, ConnectionPoolFlags value)

Optional. List of connection pool configuration flags.

repeated .google.cloud.sql.v1.ConnectionPoolFlags flags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ConnectionPoolFlags
Returns
Type Description
ConnectionPoolConfig.Builder

setFlags(int index, ConnectionPoolFlags.Builder builderForValue)

public ConnectionPoolConfig.Builder setFlags(int index, ConnectionPoolFlags.Builder builderForValue)

Optional. List of connection pool configuration flags.

repeated .google.cloud.sql.v1.ConnectionPoolFlags flags = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ConnectionPoolFlags.Builder
Returns
Type Description
ConnectionPoolConfig.Builder

setPoolerCount(int value)

public ConnectionPoolConfig.Builder setPoolerCount(int value)

Output only. Number of connection poolers.

optional int32 pooler_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The poolerCount to set.

Returns
Type Description
ConnectionPoolConfig.Builder

This builder for chaining.