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

The data source for DataScan.

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

## Namespace

Google \\ Cloud \\ Dataplex \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ entity` | `string` 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}`. |
| `↳ resource` | `string` 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 |

### getEntity

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

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

### hasEntity

### setEntity

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

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

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

### getResource

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

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

### hasResource

### setResource

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

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

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

### getSource

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