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

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ encryption_options` | `https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.ImportContext.SqlBakImportOptions.EncryptionOptions` |
| `↳ striped` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue` Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server. |
| `↳ no_recovery` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue` Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server. |
| `↳ recovery_only` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue` Whether or not the backup importing request will just bring database online without downloading Bak content only one of "no_recovery" and "recovery_only" can be true otherwise error will return. Applies only to Cloud SQL for SQL Server. |
| `↳ bak_type` | `int` Type of the bak content, FULL or DIFF |
| `↳ stop_at` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only. |
| `↳ stop_at_mark` | `string` Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only. |

### getEncryptionOptions

Generated from protobuf field `.google.cloud.sql.v1.ImportContext.SqlBakImportOptions.EncryptionOptions encryption_options = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.ImportContext.SqlBakImportOptions.EncryptionOptions|null` |   |

### hasEncryptionOptions

### clearEncryptionOptions

### setEncryptionOptions

Generated from protobuf field `.google.cloud.sql.v1.ImportContext.SqlBakImportOptions.EncryptionOptions encryption_options = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.ImportContext.SqlBakImportOptions.EncryptionOptions` |

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

### getStriped

Whether or not the backup set being restored is striped.

Applies only to Cloud SQL for SQL Server.

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

### hasStriped

### clearStriped

### getStripedUnwrapped

Returns the unboxed value from `getStriped()`

Whether or not the backup set being restored is striped.
Applies only to Cloud SQL for SQL Server.

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

### setStriped

Whether or not the backup set being restored is striped.

Applies only to Cloud SQL for SQL Server.

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

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

### setStripedUnwrapped

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

Whether or not the backup set being restored is striped.
Applies only to Cloud SQL for SQL Server.

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

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

### getNoRecovery

Whether or not the backup importing will restore database
with NORECOVERY option.

Applies only to Cloud SQL for SQL Server.

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

### hasNoRecovery

### clearNoRecovery

### getNoRecoveryUnwrapped

Returns the unboxed value from `getNoRecovery()`

Whether or not the backup importing will restore database
with NORECOVERY option.
Applies only to Cloud SQL for SQL Server.

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

### setNoRecovery

Whether or not the backup importing will restore database
with NORECOVERY option.

Applies only to Cloud SQL for SQL Server.

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

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

### setNoRecoveryUnwrapped

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

Whether or not the backup importing will restore database
with NORECOVERY option.
Applies only to Cloud SQL for SQL Server.

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

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

### getRecoveryOnly

Whether or not the backup importing request will just bring database
online without downloading Bak content only one of "no_recovery" and
"recovery_only" can be true otherwise error will return. Applies only to
Cloud SQL for SQL Server.

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

### hasRecoveryOnly

### clearRecoveryOnly

### getRecoveryOnlyUnwrapped

Returns the unboxed value from `getRecoveryOnly()`

Whether or not the backup importing request will just bring database
online without downloading Bak content only one of "no_recovery" and
"recovery_only" can be true otherwise error will return. Applies only to
Cloud SQL for SQL Server.

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

### setRecoveryOnly

Whether or not the backup importing request will just bring database
online without downloading Bak content only one of "no_recovery" and
"recovery_only" can be true otherwise error will return. Applies only to
Cloud SQL for SQL Server.

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

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

### setRecoveryOnlyUnwrapped

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

Whether or not the backup importing request will just bring database
online without downloading Bak content only one of "no_recovery" and
"recovery_only" can be true otherwise error will return. Applies only to
Cloud SQL for SQL Server.

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

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

### getBakType

Type of the bak content, FULL or DIFF

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [BakType](https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.BakType). |

### setBakType

Type of the bak content, FULL or DIFF

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [BakType](https://docs.cloud.google.com/php/docs/reference/cloud-sql-admin/latest/V1.BakType). |

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

### getStopAt

Optional. The timestamp when the import should stop. This timestamp is in
the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example,
`2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT
keyword and applies to Cloud SQL for SQL Server only.

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

### hasStopAt

### clearStopAt

### setStopAt

Optional. The timestamp when the import should stop. This timestamp is in
the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example,
`2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT
keyword and applies to Cloud SQL for SQL Server only.

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

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

### getStopAtMark

Optional. The marked transaction where the import should stop. This field
is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL
Server only.

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

### setStopAtMark

Optional. The marked transaction where the import should stop. This field
is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL
Server only.

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

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