# Interface AddChartRequestOrBuilder (0.31.0)

0.31.0 (latest) 0.29.0 0.26.0 0.25.0 0.23.0 0.21.0 0.20.0 0.19.0 0.18.0 0.16.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.8.0 0.6.0 0.5.0 0.2.0 0.1.0

    public interface AddChartRequestOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getChartLayout()

    public abstract DashboardDefinition.ChartConfig.ChartLayout getChartLayout()

Required. ChartLayout for newly added chart.

`
.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout` | The chartLayout. |

### getChartLayoutOrBuilder()

    public abstract DashboardDefinition.ChartConfig.ChartLayoutOrBuilder getChartLayoutOrBuilder()

Required. ChartLayout for newly added chart.

`
.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/com.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayoutOrBuilder` |   |

### getDashboardChart()

    public abstract DashboardChart getDashboardChart()

Required. Chart to be added to the dashboard.

`
.google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/com.google.cloud.chronicle.v1.DashboardChart` | The dashboardChart. |

### getDashboardChartOrBuilder()

    public abstract DashboardChartOrBuilder getDashboardChartOrBuilder()

Required. Chart to be added to the dashboard.

`
.google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/com.google.cloud.chronicle.v1.DashboardChartOrBuilder` |   |

### getDashboardQuery()

    public abstract DashboardQuery getDashboardQuery()

Optional. Query used to create the chart.

`
.google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/com.google.cloud.chronicle.v1.DashboardQuery` | The dashboardQuery. |

### getDashboardQueryOrBuilder()

    public abstract DashboardQueryOrBuilder getDashboardQueryOrBuilder()

Optional. Query used to create the chart.

`
.google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/com.google.cloud.chronicle.v1.DashboardQueryOrBuilder` |   |

### getName()

    public abstract String getName()

Required. The dashboard name to add chart in.
Format:
projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}

`
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

Required. The dashboard name to add chart in.
Format:
projects/{project}/locations/{location}/instances/{instance}/nativeDashboards/{dashboard}

`
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### hasChartLayout()

    public abstract boolean hasChartLayout()

Required. ChartLayout for newly added chart.

`
.google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout chart_layout = 4 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the chartLayout field is set. |

### hasDashboardChart()

    public abstract boolean hasDashboardChart()

Required. Chart to be added to the dashboard.

`
.google.cloud.chronicle.v1.DashboardChart dashboard_chart = 3 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the dashboardChart field is set. |

### hasDashboardQuery()

    public abstract boolean hasDashboardQuery()

Optional. Query used to create the chart.

`
.google.cloud.chronicle.v1.DashboardQuery dashboard_query = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the dashboardQuery field is set. |