# Google Cloud Gemini Data Analytics V1 Client - Class ChartQuery (0.11.0)

0.11.0 (latest) 0.10.0 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.1 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1 Client class ChartQuery.

A query for generating a chart.

Generated from protobuf message `google.cloud.geminidataanalytics.v1.ChartQuery`

## Namespace

Google \\ Cloud \\ GeminiDataAnalytics \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ instructions` | `string` Optional. Natural language instructions for generating the chart. |
| `↳ data_result_name` | `string` Optional. The name of a previously retrieved data result to use in the chart. |

### getInstructions

Optional. Natural language instructions for generating the chart.

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

### setInstructions

Optional. Natural language instructions for generating the chart.

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

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

### getDataResultName

Optional. The name of a previously retrieved data result to use in the
chart.

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

### setDataResultName

Optional. The name of a previously retrieved data result to use in the
chart.

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

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