# Common Protos for Google Cloud APIs Client - Class TableViewDefinition (1.0.0)

1.0.0 (latest) 0.8.3 0.7.0 0.6.0 0.5.2 0.4.2 0.3.8 Reference documentation and code samples for the Common Protos for Google Cloud APIs Client class TableViewDefinition.

View definition.

Generated from protobuf message `google.cloud.audit.BigQueryAuditMetadata.TableViewDefinition`

## Namespace

Google \\ Cloud \\ Audit \\ BigQueryAuditMetadata

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ query` | `string` SQL query defining the view. Truncated if exceeds 40K. |
| `↳ query_truncated` | `bool` True if the schema_json field was truncated. |

### getQuery

SQL query defining the view. Truncated if exceeds 40K.

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

### setQuery

SQL query defining the view. Truncated if exceeds 40K.

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

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

### getQueryTruncated

True if the schema_json field was truncated.

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

### setQueryTruncated

True if the schema_json field was truncated.

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

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