3.16.0 (latest) 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.0.0

    public sealed class Asset.Types.DiscoverySpec : IMessage<Asset.Types.DiscoverySpec>, IEquatable<Asset.Types.DiscoverySpec>, IDeepCloneable<Asset.Types.DiscoverySpec>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Dataplex v1 API class Asset.Types.DiscoverySpec.

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

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Asset.Types.DiscoverySpec

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Asset](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Asset.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Asset.Types.md.txt)[DiscoverySpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Asset.Types.DiscoverySpec.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Asset](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Asset.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Asset.Types.md.txt)[DiscoverySpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Asset.Types.DiscoverySpec.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Asset](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Asset.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Asset.Types.md.txt)[DiscoverySpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Asset.Types.DiscoverySpec.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dataplex.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.md.txt)

## Assembly

Google.Cloud.Dataplex.V1.dll

## Constructors

### DiscoverySpec()

    public DiscoverySpec()

### DiscoverySpec(DiscoverySpec)

    public DiscoverySpec(Asset.Types.DiscoverySpec other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `AssetTypesDiscoverySpec` |

## Properties

### CsvOptions

    public Asset.Types.DiscoverySpec.Types.CsvOptions CsvOptions { get; set; }

Optional. Configuration for CSV data.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AssetTypesDiscoverySpecTypesCsvOptions` |   |

### Enabled

    public bool Enabled { get; set; }

Optional. Whether discovery is enabled.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### ExcludePatterns

    public RepeatedField<string> ExcludePatterns { get; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### HasSchedule

    public bool HasSchedule { get; }

Gets whether the "schedule" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### IncludePatterns

    public RepeatedField<string> IncludePatterns { get; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### JsonOptions

    public Asset.Types.DiscoverySpec.Types.JsonOptions JsonOptions { get; set; }

Optional. Configuration for Json data.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AssetTypesDiscoverySpecTypesJsonOptions` |   |

### Schedule

    public string Schedule { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### TriggerCase

    public Asset.Types.DiscoverySpec.TriggerOneofCase TriggerCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AssetTypesDiscoverySpecTriggerOneofCase` |   |