# Google Cloud Dataplex V1 Client - Class DiscoverySpec (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 DiscoverySpec.

Settings to manage the metadata discovery and publishing for an asset.

Generated from protobuf message `google.cloud.dataplex.v1.Asset.DiscoverySpec`

## Namespace

Google \\ Cloud \\ Dataplex \\ V1 \\ Asset

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ enabled` | `bool` Optional. Whether discovery is enabled. |
| `↳ include_patterns` | `string[]` Optional. The list of patterns to apply for selecting data to include during discovery if only a subset of the data should considered. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names. |
| `↳ exclude_patterns` | `string[]` Optional. The list of patterns to apply for selecting data to exclude during discovery. For Cloud Storage bucket assets, these are interpreted as glob patterns used to match object names. For BigQuery dataset assets, these are interpreted as patterns to match table names. |
| `↳ csv_options` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Asset.DiscoverySpec.CsvOptions` Optional. Configuration for CSV data. |
| `↳ json_options` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Asset.DiscoverySpec.JsonOptions` Optional. Configuration for Json data. |
| `↳ schedule` | `string` Optional. Cron schedule (<https://en.wikipedia.org/wiki/Cron>) for running discovery periodically. Successive discovery runs must be scheduled at least 60 minutes apart. The default value is to run discovery every 60 minutes. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * * *`. |

### getEnabled

Optional. Whether discovery is enabled.

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

### setEnabled

Optional. Whether discovery is enabled.

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

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

### getIncludePatterns

Optional. The list of patterns to apply for selecting data to include
during discovery if only a subset of the data should considered. For
Cloud Storage bucket assets, these are interpreted as glob patterns used
to match object names. For BigQuery dataset assets, these are interpreted
as patterns to match table names.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setIncludePatterns

Optional. The list of patterns to apply for selecting data to include
during discovery if only a subset of the data should considered. For
Cloud Storage bucket assets, these are interpreted as glob patterns used
to match object names. For BigQuery dataset assets, these are interpreted
as patterns to match table names.

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

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

### getExcludePatterns

Optional. The list of patterns to apply for selecting data to exclude
during discovery. For Cloud Storage bucket assets, these are interpreted
as glob patterns used to match object names. For BigQuery dataset assets,
these are interpreted as patterns to match table names.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setExcludePatterns

Optional. The list of patterns to apply for selecting data to exclude
during discovery. For Cloud Storage bucket assets, these are interpreted
as glob patterns used to match object names. For BigQuery dataset assets,
these are interpreted as patterns to match table names.

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

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

### getCsvOptions

Optional. Configuration for CSV data.

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

### hasCsvOptions

### clearCsvOptions

### setCsvOptions

Optional. Configuration for CSV data.

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

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

### getJsonOptions

Optional. Configuration for Json data.

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

### hasJsonOptions

### clearJsonOptions

### setJsonOptions

Optional. Configuration for Json data.

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

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

### getSchedule

Optional. Cron schedule (<https://en.wikipedia.org/wiki/Cron>) for
running discovery periodically. Successive discovery runs must be
scheduled at least 60 minutes apart. The default value is to run
discovery every 60 minutes.

To explicitly set a timezone to the cron tab, apply a prefix in the
cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
database. For example, `CRON_TZ=America/New_York 1 * * * *`, or
`TZ=America/New_York 1 * * * *`.

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

### hasSchedule

### setSchedule

Optional. Cron schedule (<https://en.wikipedia.org/wiki/Cron>) for
running discovery periodically. Successive discovery runs must be
scheduled at least 60 minutes apart. The default value is to run
discovery every 60 minutes.

To explicitly set a timezone to the cron tab, apply a prefix in the
cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
database. For example, `CRON_TZ=America/New_York 1 * * * *`, or
`TZ=America/New_York 1 * * * *`.

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

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

### getTrigger

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