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

Specification that applies to a table resource. Valid only
for entries with the `TABLE` type.

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

## Namespace

Google \\ Cloud \\ DataCatalog \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` Type of this table. |
| `↳ dataplex_table` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.DataplexTableSpec` Output only. Fields specific to a Dataplex table and present only in the Dataplex table entries. |
| `↳ database_view_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.DatabaseTableSpec.DatabaseViewSpec` Spec what applies to tables that are actually views. Not set for "real" tables. |

### getType

Type of this table.

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

### setType

Type of this table.

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

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

### getDataplexTable

Output only. Fields specific to a Dataplex table and present only in the
Dataplex table entries.

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

### hasDataplexTable

### clearDataplexTable

### setDataplexTable

Output only. Fields specific to a Dataplex table and present only in the
Dataplex table entries.

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

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

### getDatabaseViewSpec

Spec what applies to tables that are actually views.

Not set for "real" tables.

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

### hasDatabaseViewSpec

### clearDatabaseViewSpec

### setDatabaseViewSpec

Spec what applies to tables that are actually views.

Not set for "real" tables.

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

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