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

Describes a BigQuery table.

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

## Namespace

Google \\ Cloud \\ DataCatalog \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ table_source_type` | `int` Output only. The table source type. |
| `↳ view_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.ViewSpec` Table view specification. Populated only if the `table_source_type` is `BIGQUERY_VIEW`. |
| `↳ table_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.TableSpec` Specification of a BigQuery table. Populated only if the `table_source_type` is `BIGQUERY_TABLE`. |

### getTableSourceType

Output only. The table source type.

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

### setTableSourceType

Output only. The table source type.

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

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

### getViewSpec

Table view specification. Populated only if
the `table_source_type` is `BIGQUERY_VIEW`.

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

### hasViewSpec

### setViewSpec

Table view specification. Populated only if
the `table_source_type` is `BIGQUERY_VIEW`.

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

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

### getTableSpec

Specification of a BigQuery table. Populated only if
the `table_source_type` is `BIGQUERY_TABLE`.

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

### hasTableSpec

### setTableSpec

Specification of a BigQuery table. Populated only if
the `table_source_type` is `BIGQUERY_TABLE`.

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

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

### getTypeSpec

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