# Interface DashboardChart.ChartDatasourceOrBuilder (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 static interface DashboardChart.ChartDatasourceOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getDashboardQuery()

    public abstract String getDashboardQuery()

Reference to dashboard query resource used in the chart.

`string dashboard_query = 1 [(.google.api.resource_reference) = { ... }`

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

### getDashboardQueryBytes()

    public abstract ByteString getDashboardQueryBytes()

Reference to dashboard query resource used in the chart.

`string dashboard_query = 1 [(.google.api.resource_reference) = { ... }`

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

### getDataSources(int index)

    public abstract DataSource getDataSources(int index)

Name of the datasource used in the chart.

`repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/com.google.cloud.chronicle.v1.DataSource` | The dataSources at the given index. |

### getDataSourcesCount()

    public abstract int getDataSourcesCount()

Name of the datasource used in the chart.

`repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of dataSources. |

### getDataSourcesList()

    public abstract List<DataSource> getDataSourcesList()

Name of the datasource used in the chart.

`repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/com.google.cloud.chronicle.v1.DataSource>` | A list containing the dataSources. |

### getDataSourcesValue(int index)

    public abstract int getDataSourcesValue(int index)

Name of the datasource used in the chart.

`repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire of dataSources at the given index. |

### getDataSourcesValueList()

    public abstract List<Integer> getDataSourcesValueList()

Name of the datasource used in the chart.

`repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html>` | A list containing the enum numeric values on the wire for dataSources. |