Class ConnectionPoolConfig (0.1.0)

public final class ConnectionPoolConfig extends GeneratedMessage implements ConnectionPoolConfigOrBuilder

The managed connection pooling configuration.

Protobuf type google.cloud.sql.v1beta4.ConnectionPoolConfig

Static Fields

CONNECTION_POOLING_ENABLED_FIELD_NUMBER

public static final int CONNECTION_POOLING_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

FLAGS_FIELD_NUMBER

public static final int FLAGS_FIELD_NUMBER
Field Value
Type Description
int

POOLER_COUNT_FIELD_NUMBER

public static final int POOLER_COUNT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ConnectionPoolConfig getDefaultInstance()
Returns
Type Description
ConnectionPoolConfig

getDescriptor()

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

newBuilder()

public static ConnectionPoolConfig.Builder newBuilder()
Returns
Type Description
ConnectionPoolConfig.Builder

newBuilder(ConnectionPoolConfig prototype)

public static ConnectionPoolConfig.Builder newBuilder(ConnectionPoolConfig prototype)
Parameter
Name Description
prototype ConnectionPoolConfig
Returns
Type Description
ConnectionPoolConfig.Builder

parseDelimitedFrom(InputStream input)

public static ConnectionPoolConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ConnectionPoolConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConnectionPoolConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConnectionPoolConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ConnectionPoolConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ConnectionPoolConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ConnectionPoolConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConnectionPoolConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ConnectionPoolConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ConnectionPoolConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ConnectionPoolConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConnectionPoolConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ConnectionPoolConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ConnectionPoolConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ConnectionPoolConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConnectionPoolConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ConnectionPoolConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ConnectionPoolConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConnectionPoolConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConnectionPoolConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ConnectionPoolConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ConnectionPoolConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ConnectionPoolConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConnectionPoolConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ConnectionPoolConfig> parser()
Returns
Type Description
Parser<ConnectionPoolConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

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

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>

getParserForType()

public Parser<ConnectionPoolConfig> getParserForType()
Returns
Type Description
Parser<ConnectionPoolConfig>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ConnectionPoolConfig.Builder newBuilderForType()
Returns
Type Description
ConnectionPoolConfig.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ConnectionPoolConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ConnectionPoolConfig.Builder
Overrides

toBuilder()

public ConnectionPoolConfig.Builder toBuilder()
Returns
Type Description
ConnectionPoolConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException