# Google Cloud Chronicle V1 Client - Class CreateDataTableRequest (0.4.0)

0.4.0 (latest) 0.3.0 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud Chronicle V1 Client class CreateDataTableRequest.

A request to create DataTable.

Generated from protobuf message `google.cloud.chronicle.v1.CreateDataTableRequest`

## Namespace

Google \\ Cloud \\ Chronicle \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent resource where this data table will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
| `↳ data_table` | `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.DataTable` Required. The data table being created. |
| `↳ data_table_id` | `string` Required. The ID to use for the data table. This is also the display name for the data table. It must satisfy the following requirements: - Starts with letter. - Contains only letters, numbers and underscore. - Must be unique and has length \< 256. |

### getParent

Required. The parent resource where this data table will be created.

Format: projects/{project}/locations/{location}/instances/{instance}

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

### setParent

Required. The parent resource where this data table will be created.

Format: projects/{project}/locations/{location}/instances/{instance}

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

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

### getDataTable

Required. The data table being created.

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

### hasDataTable

### clearDataTable

### setDataTable

Required. The data table being created.

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

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

### getDataTableId

Required. The ID to use for the data table. This is also the display name
for the data table. It must satisfy the following requirements:

- Starts with letter.

- Contains only letters, numbers and underscore.

- Must be unique and has length \< 256.

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

### setDataTableId

Required. The ID to use for the data table. This is also the display name
for the data table. It must satisfy the following requirements:

- Starts with letter.

- Contains only letters, numbers and underscore.

- Must be unique and has length \< 256.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource where this data table will be created. Format: projects/{project}/locations/{location}/instances/{instance} Please see DataTableServiceClient::instanceName() for help formatting this field. |
| `dataTable` | `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.DataTable` Required. The data table being created. |
| `dataTableId` | `string` Required. The ID to use for the data table. This is also the display name for the data table. It must satisfy the following requirements: - Starts with letter. - Contains only letters, numbers and underscore. - Must be unique and has length \< 256. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.CreateDataTableRequest` |   |