1.8.4 (latest) 1.7.1 1.6.3 1.5.0 1.4.1 1.3.0 1.2.0 1.1.3 1.0.0 0.10.3 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.3 Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class ConnectionPoolConfig.

Configuration for Managed Connection Pool (MCP).

Generated from protobuf message `google.cloud.alloydb.v1.Instance.ConnectionPoolConfig`

## Namespace

Google \\ Cloud \\ AlloyDb \\ V1 \\ Instance

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ enabled` | `bool` Optional. Whether to enable Managed Connection Pool (MCP). |
| `↳ flags` | `array|Google\Protobuf\Internal\MapField` Optional. Connection Pool flags, as a list of "key": "value" pairs. |
| `↳ pooler_count` | `int` Output only. The number of running poolers per instance. |

### getEnabled

Optional. Whether to enable Managed Connection Pool (MCP).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setEnabled

Optional. Whether to enable Managed Connection Pool (MCP).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFlags

Optional. Connection Pool flags, as a list of "key": "value" pairs.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Internal\MapField` |   |

### setFlags

Optional. Connection Pool flags, as a list of "key": "value" pairs.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|Google\Protobuf\Internal\MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPoolerCount

Output only. The number of running poolers per instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setPoolerCount

Output only. The number of running poolers per instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |