# Google Cloud Data Catalog V1 Client - Class DataSource (2.4.2)

2.4.2 (latest) 2.4.1 2.3.2 2.2.4 2.1.0 2.0.2 1.10.3 1.9.1 1.8.2 1.7.1 1.6.0 1.5.1 1.4.2 1.3.9 Reference documentation and code samples for the Google Cloud Data Catalog V1 Client class DataSource.

Physical location of an entry.

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

## Namespace

Google \\ Cloud \\ DataCatalog \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ service` | `int` Service that physically stores the data. |
| `↳ resource` | `string` Full name of a resource as defined by the service. For example: `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}` |
| `↳ source_entry` | `string` Output only. Data Catalog entry name, if applicable. |
| `↳ storage_properties` | `StorageProperties` Detailed properties of the underlying storage. |

### getService

Service that physically stores the data.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Service](https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.DataSource.Service). |

### setService

Service that physically stores the data.

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

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

### getResource

Full name of a resource as defined by the service. For example:
`//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`

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

### setResource

Full name of a resource as defined by the service. For example:
`//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`

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

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

### getSourceEntry

Output only. Data Catalog entry name, if applicable.

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

### setSourceEntry

Output only. Data Catalog entry name, if applicable.

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

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

### getStorageProperties

Detailed properties of the underlying storage.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StorageProperties|null` |   |

### hasStorageProperties

### setStorageProperties

Detailed properties of the underlying storage.

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

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

### getProperties

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