# Google Cloud Sql Admin V1 Client - Class PostgresImportOptions (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 PostgresImportOptions.

Generated from protobuf message `google.cloud.sql.v1.ImportContext.SqlImportOptions.PostgresImportOptions`

## Namespace

Google \\ Cloud \\ Sql \\ V1 \\ ImportContext \\ SqlImportOptions

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ clean` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue` Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel. |
| `↳ if_exists` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue` Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel. |

### getClean

Optional. The --clean flag for the pg_restore utility. This flag
applies only if you enabled Cloud SQL to import files in parallel.

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

### hasClean

### clearClean

### getCleanUnwrapped

Returns the unboxed value from `getClean()`

Optional. The --clean flag for the pg_restore utility. This flag
applies only if you enabled Cloud SQL to import files in parallel.

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

### setClean

Optional. The --clean flag for the pg_restore utility. This flag
applies only if you enabled Cloud SQL to import files in parallel.

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

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

### setCleanUnwrapped

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

Optional. The --clean flag for the pg_restore utility. This flag
applies only if you enabled Cloud SQL to import files in parallel.

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

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

### getIfExists

Optional. The --if-exists flag for the pg_restore utility. This flag
applies only if you enabled Cloud SQL to import files in parallel.

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

### hasIfExists

### clearIfExists

### getIfExistsUnwrapped

Returns the unboxed value from `getIfExists()`

Optional. The --if-exists flag for the pg_restore utility. This flag
applies only if you enabled Cloud SQL to import files in parallel.

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

### setIfExists

Optional. The --if-exists flag for the pg_restore utility. This flag
applies only if you enabled Cloud SQL to import files in parallel.

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

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

### setIfExistsUnwrapped

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

Optional. The --if-exists flag for the pg_restore utility. This flag
applies only if you enabled Cloud SQL to import files in parallel.

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

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