# Class GcpConnectionFactoryProvider (1.15.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.15.0 (latest)](https://docs.cloud.google.com/java/docs/reference/jdbc-socket-factory-parent/latest/com.google.cloud.sql.core.GcpConnectionFactoryProvider)
- [1.14.1](https://docs.cloud.google.com/java/docs/reference/jdbc-socket-factory-parent/1.14.1/com.google.cloud.sql.core.GcpConnectionFactoryProvider)

    public abstract class GcpConnectionFactoryProvider implements ConnectionFactoryProvider

ConnectionFactoryProvider for proxied access to GCP Postgres and MySQL instances.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> GcpConnectionFactoryProvider

## Implements

io.r2dbc.spi.ConnectionFactoryProvider

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Static Fields

### ADMIN_ROOT_URL

    public static final Option<String> ADMIN_ROOT_URL

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `io.r2dbc.spi.Option<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### ADMIN_SERVICE_PATH

    public static final Option<String> ADMIN_SERVICE_PATH

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `io.r2dbc.spi.Option<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### DELEGATES

    public static final Option<String> DELEGATES

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `io.r2dbc.spi.Option<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### ENABLE_IAM_AUTH

    public static final Option<Boolean> ENABLE_IAM_AUTH

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `io.r2dbc.spi.Option<https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html>` |   |

### GOOGLE_CREDENTIALS_PATH

    public static final Option<String> GOOGLE_CREDENTIALS_PATH

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `io.r2dbc.spi.Option<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### IP_TYPES

    public static final Option<String> IP_TYPES

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `io.r2dbc.spi.Option<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### NAMED_CONNECTOR

    public static final Option<String> NAMED_CONNECTOR

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `io.r2dbc.spi.Option<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### TARGET_PRINCIPAL

    public static final Option<String> TARGET_PRINCIPAL

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `io.r2dbc.spi.Option<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### UNIX_SOCKET

    public static final Option<String> UNIX_SOCKET

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `io.r2dbc.spi.Option<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

## Constructors

### GcpConnectionFactoryProvider()

    public GcpConnectionFactoryProvider()

## Methods

### create(ConnectionFactoryOptions connectionFactoryOptions)

    public ConnectionFactory create(ConnectionFactoryOptions connectionFactoryOptions)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `connectionFactoryOptions` | `io.r2dbc.spi.ConnectionFactoryOptions` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.r2dbc.spi.ConnectionFactory` |   |

### getDriver()

    public String getDriver()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### supports(ConnectionFactoryOptions connectionFactoryOptions)

    public boolean supports(ConnectionFactoryOptions connectionFactoryOptions)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `connectionFactoryOptions` | `io.r2dbc.spi.ConnectionFactoryOptions` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |