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 ChartResult.

The result of a chart generation query.

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

## Namespace

Google \\ Cloud \\ GeminiDataAnalytics \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ vega_config` | `Google\Protobuf\Struct` Optional. A generated Vega chart config. See <https://vega.github.io/vega/docs/config/> |
| `↳ image` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Blob` Optional. A rendering of the chart if this was requested in the context. |

### getVegaConfig

Optional. A generated Vega chart config.

See <https://vega.github.io/vega/docs/config/>

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Struct|null` |   |

### hasVegaConfig

### clearVegaConfig

### setVegaConfig

Optional. A generated Vega chart config.

See <https://vega.github.io/vega/docs/config/>

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Struct` |

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

### getImage

Optional. A rendering of the chart if this was requested in the context.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Blob|null` |   |

### hasImage

### clearImage

### setImage

Optional. A rendering of the chart if this was requested in the context.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.Blob` |

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