# Package com.google.cloud.sql.core (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)
- [1.14.1](https://docs.cloud.google.com/java/docs/reference/jdbc-socket-factory-parent/1.14.1/com.google.cloud.sql.core)
WARNING: This package does not contain any stable, public Java API. The class definitions may
change without notice.

Package com.google.cloud.sql.core holds internal shared packages that implement logic to
create a socket to a Cloud SQL database.

## Classes

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

ConnectionFactory for accessing Cloud SQL instances via R2DBC protocol.

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

ConnectionConfig is an immutable configuration value object that holds the entire configuration
of a CloudSqlInstance connection.

WARNING: This is an internal class. The API is subject to change without notice.

### [ConnectionConfig.Builder](https://docs.cloud.google.com/java/docs/reference/jdbc-socket-factory-parent/latest/com.google.cloud.sql.core.ConnectionConfig.Builder)

The builder for the ConnectionConfig.

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

A value object containing configuration needed to set up an mTLS connection to a Cloud SQL
instance.

### [CoreSocketFactory](https://docs.cloud.google.com/java/docs/reference/jdbc-socket-factory-parent/latest/com.google.cloud.sql.core.CoreSocketFactory) (deprecated)

**Deprecated.** *Use the official java API instead.*

Implementation of informally used Java API to preserve compatibility with older code that uses
CoreSocketFactory.
See Also: [com.google.cloud.sql.ConnectorRegistry](https://docs.cloud.google.com/java/docs/reference/jdbc-socket-factory-parent/latest/com.google.cloud.sql.ConnectorRegistry)

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

Factory for creating a SQLAdmin client that interacts with the real SQL Admin API.

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

ConnectionFactoryProvider for proxied access to GCP Postgres and MySQL instances.

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

ConnectionFactoryProvider for proxied access to GCP MsSQL instances.

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

ConnectionFactoryProvider for proxied access to GCP MySQL instances.

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

ConnectionFactoryProvider for proxied access to GCP Postgres instances.

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

InternalConnectorRegistry keeps track of connectors. This class should not be used directly, but
only through the JDBC driver specific `SocketFactory` implementations.

WARNING: This is an internal class. The API is subject to change without notice.

## Interfaces

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

Factory interface for creating SQLAdmin clients to interact with Cloud SQL Admin API.