# Google Cloud Chronicle V1 Client - Class ColumnDef (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 ColumnDef.

Column Definition.

Generated from protobuf message `google.cloud.chronicle.v1.DashboardChart.Visualization.ColumnDef`

## Namespace

Google \\ Cloud \\ Chronicle \\ V1 \\ DashboardChart \\ Visualization

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ field` | `string` Field key in data. |
| `↳ header` | `string` Header name for column. |

### getField

Field key in data.

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

### setField

Field key in data.

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

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

### getHeader

Header name for column.

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

### setHeader

Header name for column.

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

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