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

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ id` | `string` |
| `↳ show` | `bool` |
| `↳ z_level` | `int` |
| `↳ z` | `int` |
| `↳ left` | `int` |
| `↳ top` | `int` |
| `↳ right` | `int` |
| `↳ bottom` | `int` |
| `↳ legend_orient` | `int` |
| `↳ legend_align` | `int` |
| `↳ padding` | `int[]` |

### getId

Generated from protobuf field `string id = 1;`

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

### setId

Generated from protobuf field `string id = 1;`

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

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

### getShow

Generated from protobuf field `bool show = 2;`

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

### setShow

Generated from protobuf field `bool show = 2;`

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

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

### getZLevel

Generated from protobuf field `int32 z_level = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setZLevel

Generated from protobuf field `int32 z_level = 3;`

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

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

### getZ

Generated from protobuf field `int32 z = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setZ

Generated from protobuf field `int32 z = 4;`

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

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

### getLeft

Generated from protobuf field `int32 left = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setLeft

Generated from protobuf field `int32 left = 5;`

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

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

### getTop

Generated from protobuf field `int32 top = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setTop

Generated from protobuf field `int32 top = 6;`

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

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

### getRight

Generated from protobuf field `int32 right = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setRight

Generated from protobuf field `int32 right = 7;`

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

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

### getBottom

Generated from protobuf field `int32 bottom = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setBottom

Generated from protobuf field `int32 bottom = 8;`

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

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

### getLegendOrient

Generated from protobuf field `.google.cloud.chronicle.v1.LegendOrient legend_orient = 12;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setLegendOrient

Generated from protobuf field `.google.cloud.chronicle.v1.LegendOrient legend_orient = 12;`

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

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

### getLegendAlign

Generated from protobuf field `.google.cloud.chronicle.v1.LegendAlign legend_align = 13;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setLegendAlign

Generated from protobuf field `.google.cloud.chronicle.v1.LegendAlign legend_align = 13;`

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

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

### getPadding

Generated from protobuf field `repeated int32 padding = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<int>` |   |

### setPadding

Generated from protobuf field `repeated int32 padding = 11;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int[]` |

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