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

Slice containing the key and value for a slice in the chart

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ key` | `string` Optional. Key for the slice |
| `↳ value` | `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.DashboardChart.Visualization.Series.UserSelectedValues` Optional. Value for the slice |

### getKey

Optional. Key for the slice

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

### setKey

Optional. Key for the slice

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

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

### getValue

Optional. Value for the slice

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

### hasValue

### clearValue

### setValue

Optional. Value for the slice

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

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