# Google Cloud Data Catalog V1 Client - Class DataplexSpec (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 DataplexSpec.

Common Dataplex fields.

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

## Namespace

Google \\ Cloud \\ DataCatalog \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ asset` | `string` Fully qualified resource name of an asset in Dataplex, to which the underlying data source (Cloud Storage bucket or BigQuery dataset) of the entity is attached. |
| `↳ data_format` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.PhysicalSchema` Format of the data. |
| `↳ compression_format` | `string` Compression format of the data, e.g., zip, gzip etc. |
| `↳ project_id` | `string` Project ID of the underlying Cloud Storage or BigQuery data. Note that this may not be the same project as the correspondingly Dataplex lake / zone / asset. |

### getAsset

Fully qualified resource name of an asset in Dataplex, to which the
underlying data source (Cloud Storage bucket or BigQuery dataset) of the
entity is attached.

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

### setAsset

Fully qualified resource name of an asset in Dataplex, to which the
underlying data source (Cloud Storage bucket or BigQuery dataset) of the
entity is attached.

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

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

### getDataFormat

Format of the data.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.PhysicalSchema|null` |   |

### hasDataFormat

### clearDataFormat

### setDataFormat

Format of the data.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.PhysicalSchema` |

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

### getCompressionFormat

Compression format of the data, e.g., zip, gzip etc.

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

### setCompressionFormat

Compression format of the data, e.g., zip, gzip etc.

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

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

### getProjectId

Project ID of the underlying Cloud Storage or BigQuery data. Note that
this may not be the same project as the correspondingly Dataplex lake /
zone / asset.

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

### setProjectId

Project ID of the underlying Cloud Storage or BigQuery data. Note that
this may not be the same project as the correspondingly Dataplex lake /
zone / asset.

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

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