# Google BigQuery Connection V1 Client - Class CloudSqlCredential (2.1.3)

2.1.3 (latest) 2.1.2 2.0.5 1.5.5 1.4.1 1.3.1 1.2.2 1.1.0 1.0.3 Reference documentation and code samples for the Google BigQuery Connection V1 Client class CloudSqlCredential.

Credential info for the Cloud SQL.

Generated from protobuf message `google.cloud.bigquery.connection.v1.CloudSqlCredential`

## Namespace

Google \\ Cloud \\ BigQuery \\ Connection \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ username` | `string` The username for the credential. |
| `↳ password` | `string` The password for the credential. |

### getUsername

The username for the credential.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setUsername

The username for the credential.

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

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

### getPassword

The password for the credential.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPassword

The password for the credential.

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

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