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

Entry specification for a Dataplex table.

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

## Namespace

Google \\ Cloud \\ DataCatalog \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ external_tables` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.DataplexExternalTable>` List of external tables registered by Dataplex in other systems based on the same underlying data. External tables allow to query this data in those systems. |
| `↳ dataplex_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.DataplexSpec` Common Dataplex fields. |
| `↳ user_managed` | `bool` Indicates if the table schema is managed by the user or not. |

### getExternalTables

List of external tables registered by Dataplex in other systems based on
the same underlying data.

External tables allow to query this data in those systems.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.DataplexExternalTable>` |   |

### setExternalTables

List of external tables registered by Dataplex in other systems based on
the same underlying data.

External tables allow to query this data in those systems.

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

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

### getDataplexSpec

Common Dataplex fields.

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

### hasDataplexSpec

### clearDataplexSpec

### setDataplexSpec

Common Dataplex fields.

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

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

### getUserManaged

Indicates if the table schema is managed by the user or not.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setUserManaged

Indicates if the table schema is managed by the user or not.

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

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