# Google Cloud Dataplex V1 Client - Class DataProfileSpec (1.14.0)

1.14.0 (latest) 1.13.0 1.12.0 1.11.0 1.10.0 1.9.1 1.8.0 1.7.1 1.6.1 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 0.16.1 0.15.1 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.3 0.1.6 Reference documentation and code samples for the Google Cloud Dataplex V1 Client class DataProfileSpec.

DataProfileScan related setting.

Generated from protobuf message `google.cloud.dataplex.v1.DataProfileSpec`

## Namespace

Google \\ Cloud \\ Dataplex \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ sampling_percent` | `float` Optional. The percentage of the records to be selected from the dataset for DataScan. \* \* Value can range between 0.0 and 100.0 with up to 3 significant decimal digits. \* \* Sampling is not applied if `sampling_percent` is not specified, 0 or 100. |
| `↳ row_filter` | `string` Optional. A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in BigQuery standard SQL syntax. Example: col1 \>= 0 AND col2 \< 10 |
| `↳ post_scan_actions` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DataProfileSpec.PostScanActions` Optional. Actions to take upon job completion.. |
| `↳ include_fields` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DataProfileSpec.SelectedFields` Optional. The fields to include in data profile. If not specified, all fields at the time of profile scan job execution are included, except for ones listed in `exclude_fields`. |
| `↳ exclude_fields` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DataProfileSpec.SelectedFields` Optional. The fields to exclude from data profile. If specified, the fields will be excluded from data profile, regardless of `include_fields` value. |
| `↳ catalog_publishing_enabled` | `bool` Optional. If set, the latest DataScan job result will be published as Dataplex Universal Catalog metadata. |
| `↳ mode` | `int` Optional. The execution mode for the profile scan. |

### getSamplingPercent

Optional. The percentage of the records to be selected from the dataset for
DataScan.

- Value can range between 0.0 and 100.0 with up to 3 significant decimal digits.
- Sampling is not applied if `sampling_percent` is not specified, 0 or 100.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setSamplingPercent

Optional. The percentage of the records to be selected from the dataset for
DataScan.

- Value can range between 0.0 and 100.0 with up to 3 significant decimal digits.
- Sampling is not applied if `sampling_percent` is not specified, 0 or 100.

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

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

### getRowFilter

Optional. A filter applied to all rows in a single DataScan job.

The filter needs to be a valid SQL expression for a WHERE clause in
BigQuery standard SQL syntax.
Example: col1 \>= 0 AND col2 \< 10

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

### setRowFilter

Optional. A filter applied to all rows in a single DataScan job.

The filter needs to be a valid SQL expression for a WHERE clause in
BigQuery standard SQL syntax.
Example: col1 \>= 0 AND col2 \< 10

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

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

### getPostScanActions

Optional. Actions to take upon job completion..

Generated from protobuf field `.google.cloud.dataplex.v1.DataProfileSpec.PostScanActions post_scan_actions = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DataProfileSpec.PostScanActions|null` |   |

### hasPostScanActions

### clearPostScanActions

### setPostScanActions

Optional. Actions to take upon job completion..

Generated from protobuf field `.google.cloud.dataplex.v1.DataProfileSpec.PostScanActions post_scan_actions = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DataProfileSpec.PostScanActions` |

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

### getIncludeFields

Optional. The fields to include in data profile.

If not specified, all fields at the time of profile scan job execution are
included, except for ones listed in `exclude_fields`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DataProfileSpec.SelectedFields|null` |   |

### hasIncludeFields

### clearIncludeFields

### setIncludeFields

Optional. The fields to include in data profile.

If not specified, all fields at the time of profile scan job execution are
included, except for ones listed in `exclude_fields`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DataProfileSpec.SelectedFields` |

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

### getExcludeFields

Optional. The fields to exclude from data profile.

If specified, the fields will be excluded from data profile, regardless of
`include_fields` value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DataProfileSpec.SelectedFields|null` |   |

### hasExcludeFields

### clearExcludeFields

### setExcludeFields

Optional. The fields to exclude from data profile.

If specified, the fields will be excluded from data profile, regardless of
`include_fields` value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.DataProfileSpec.SelectedFields` |

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

### getCatalogPublishingEnabled

Optional. If set, the latest DataScan job result will be published as
Dataplex Universal Catalog metadata.

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

### setCatalogPublishingEnabled

Optional. If set, the latest DataScan job result will be published as
Dataplex Universal Catalog metadata.

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

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

### getMode

Optional. The execution mode for the profile scan.

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

### setMode

Optional. The execution mode for the profile scan.

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

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