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

Options for exporting BAK files (SQL Server-only)

Generated from protobuf message `google.cloud.sql.v1.ExportContext.SqlBakExportOptions`

## Namespace

Google \\ Cloud \\ Sql \\ V1 \\ ExportContext

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ striped` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue` Whether or not the export should be striped. |
| `↳ stripe_count` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Int32Value` Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen. |
| `↳ bak_type` | `int` Type of this bak file will be export, FULL or DIFF, SQL Server only |
| `↳ copy_only` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue` Deprecated: copy_only is deprecated. Use differential_base instead |
| `↳ differential_base` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue` Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base |
| `↳ export_log_start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server. |
| `↳ export_log_end_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server. |

### getStriped

Whether or not the export should be striped.

| **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 export should be striped.

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

### setStriped

Whether or not the export should be striped.

| **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 export should be striped.

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

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

### getStripeCount

Option for specifying how many stripes to use for the export.

If blank, and the value of the striped field is true,
the number of stripes is automatically chosen.

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

### hasStripeCount

### clearStripeCount

### getStripeCountUnwrapped

Returns the unboxed value from `getStripeCount()`

Option for specifying how many stripes to use for the export.
If blank, and the value of the striped field is true,
the number of stripes is automatically chosen.

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

### setStripeCount

Option for specifying how many stripes to use for the export.

If blank, and the value of the striped field is true,
the number of stripes is automatically chosen.

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

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

### setStripeCountUnwrapped

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

Option for specifying how many stripes to use for the export.
If blank, and the value of the striped field is true,
the number of stripes is automatically chosen.

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

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

### getBakType

Type of this bak file will be export, FULL or DIFF, SQL Server only

| **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 this bak file will be export, FULL or DIFF, SQL Server only

| **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` |   |

### getCopyOnly

Deprecated: copy_only is deprecated. Use differential_base instead

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

### hasCopyOnly

### clearCopyOnly

### getCopyOnlyUnwrapped

Returns the unboxed value from `getCopyOnly()`

Deprecated: copy_only is deprecated. Use differential_base instead

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

### setCopyOnly

Deprecated: copy_only is deprecated. Use differential_base instead

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

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

### setCopyOnlyUnwrapped

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

Deprecated: copy_only is deprecated. Use differential_base instead

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

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

### getDifferentialBase

Whether or not the backup can be used as a differential base
copy_only backup can not be served as differential base

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

### hasDifferentialBase

### clearDifferentialBase

### getDifferentialBaseUnwrapped

Returns the unboxed value from `getDifferentialBase()`

Whether or not the backup can be used as a differential base
copy_only backup can not be served as differential base

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

### setDifferentialBase

Whether or not the backup can be used as a differential base
copy_only backup can not be served as differential base

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

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

### setDifferentialBaseUnwrapped

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

Whether or not the backup can be used as a differential base
copy_only backup can not be served as differential base

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

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

### getExportLogStartTime

Optional. The begin timestamp when transaction log will be included in
the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339)
format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all
available logs from the beginning of retention period will be included.

Only applied to Cloud SQL for SQL Server.

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

### hasExportLogStartTime

### clearExportLogStartTime

### setExportLogStartTime

Optional. The begin timestamp when transaction log will be included in
the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339)
format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all
available logs from the beginning of retention period will be included.

Only applied to Cloud SQL for SQL Server.

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

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

### getExportLogEndTime

Optional. The end timestamp when transaction log will be included in the
export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format
(for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all
available logs until current time will be included. Only applied to Cloud
SQL for SQL Server.

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

### hasExportLogEndTime

### clearExportLogEndTime

### setExportLogEndTime

Optional. The end timestamp when transaction log will be included in the
export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format
(for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all
available logs until current time will be included. Only applied to Cloud
SQL for SQL Server.

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

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