public static final class ConnectionPoolConfig.Builder extends GeneratedMessage.Builder<ConnectionPoolConfig.Builder> implements ConnectionPoolConfigOrBuilderThe managed connection pooling configuration.
Protobuf type google.cloud.sql.v1beta4.ConnectionPoolConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ConnectionPoolConfig.BuilderImplements
ConnectionPoolConfigOrBuilderStatic 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.v1beta4.ConnectionPoolFlags flags = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.sql.v1beta4.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.v1beta4.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.v1beta4.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.v1beta4.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.v1beta4.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.v1beta4.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.v1beta4.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 |
|
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.v1beta4.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 |
|
getFlags(int index)
public ConnectionPoolFlags getFlags(int index)Optional. List of connection pool configuration flags.
repeated .google.cloud.sql.v1beta4.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.v1beta4.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.v1beta4.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.v1beta4.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.v1beta4.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.v1beta4.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.v1beta4.ConnectionPoolFlags flags = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.sql.v1beta4.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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ConnectionPoolConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ConnectionPoolConfig.Builder |
|
removeFlags(int index)
public ConnectionPoolConfig.Builder removeFlags(int index)Optional. List of connection pool configuration flags.
repeated .google.cloud.sql.v1beta4.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 |
booleanThe 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.v1beta4.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.v1beta4.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 |
intThe poolerCount to set. |
| Returns | |
|---|---|
| Type | Description |
ConnectionPoolConfig.Builder |
This builder for chaining. |