# Google Cloud Sql Admin V1 Client - Class EncryptionOptions (1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.1 1.2.6 1.1.0 1.0.0 0.19.0 0.18.0 0.17.1 0.16.1 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.1 0.3.1 0.2.12 Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class EncryptionOptions.

Generated from protobuf message `google.cloud.sql.v1.ImportContext.SqlBakImportOptions.EncryptionOptions`

## Namespace

Google \\ Cloud \\ Sql \\ V1 \\ ImportContext \\ SqlBakImportOptions

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cert_path` | `string` Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file. |
| `↳ pvk_path` | `string` Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file. |
| `↳ pvk_password` | `string` Password that encrypts the private key |
| `↳ keep_encrypted` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue` Optional. Whether the imported file remains encrypted. |

### getCertPath

Path to the Certificate (.cer) in Cloud Storage, in the form
`gs://bucketName/fileName`. The instance must have
write permissions to the bucket and read access to the file.

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

### setCertPath

Path to the Certificate (.cer) in Cloud Storage, in the form
`gs://bucketName/fileName`. The instance must have
write permissions to the bucket and read access to the file.

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

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

### getPvkPath

Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
form `gs://bucketName/fileName`. The instance must have
write permissions to the bucket and read access to the file.

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

### setPvkPath

Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
form `gs://bucketName/fileName`. The instance must have
write permissions to the bucket and read access to the file.

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

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

### getPvkPassword

Password that encrypts the private key

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

### setPvkPassword

Password that encrypts the private key

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

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

### getKeepEncrypted

Optional. Whether the imported file remains encrypted.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue|null` |   |

### hasKeepEncrypted

### clearKeepEncrypted

### getKeepEncryptedUnwrapped

Returns the unboxed value from `getKeepEncrypted()`

Optional. Whether the imported file remains encrypted.

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

### setKeepEncrypted

Optional. Whether the imported file remains encrypted.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue` |

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

### setKeepEncryptedUnwrapped

Sets the field by wrapping a primitive type in a Google\\Protobuf\\BoolValue object.

Optional. Whether the imported file remains encrypted.

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

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