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 DataSource : IMessage<DataSource>, IEquatable<DataSource>, IDeepCloneable<DataSource>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Dataplex v1 API class DataSource.

The data source for DataScan.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[DataSource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.DataSource.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DataSource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.DataSource.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[DataSource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.DataSource.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

### DataSource()

    public DataSource()

### DataSource(DataSource)

    public DataSource(DataSource other)

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

## Properties

### Entity

    public string Entity { get; set; }

Immutable. The Dataplex Universal Catalog entity that represents the data
source (e.g. BigQuery table) for DataScan, of the form:
`projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`.

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

### EntityAsEntityName

    public EntityName EntityAsEntityName { get; set; }

[EntityName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.EntityName.md.txt)-typed view over the [Entity](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.DataSource.md.txt#Google_Cloud_Dataplex_V1_DataSource_Entity) resource name property.

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

### HasEntity

    public bool HasEntity { get; }

Gets whether the "entity" field is set

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

### HasResource

    public bool HasResource { get; }

Gets whether the "resource" field is set

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

### Resource

    public string Resource { get; set; }

Immutable. The service-qualified full resource name of the cloud resource
for a DataScan job to scan against. The field could either be: Cloud
Storage bucket for DataDiscoveryScan Format:
//storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID
or
BigQuery table of type "TABLE" for
DataProfileScan/DataQualityScan/DataDocumentationScan
Format:
//bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
or
BigQuery dataset for DataDocumentationScan only
Format:
//bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID

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

### SourceCase

    public DataSource.SourceOneofCase SourceCase { get; }

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