0.16.0 (latest) 0.15.0 0.14.1 0.11.1 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

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class ChartQuery.

A query for generating a chart.

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

## Namespace

Google \\ Cloud \\ GeminiDataAnalytics \\ V1beta

## 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` |   |