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

Options to control query generation, execution, and response format.

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

## Namespace

Google \\ Cloud \\ GeminiDataAnalytics \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ generate_query_result` | `bool` Optional. If true, the generated query will be executed, and the result data will be returned in the response. |
| `↳ generate_natural_language_answer` | `bool` Optional. If true, a natural language answer based on the query execution result will be generated and returned in the response. |
| `↳ generate_explanation` | `bool` Optional. If true, an explanation of the generated query will be returned in the response. |
| `↳ generate_disambiguation_question` | `bool` Optional. If true (default to false), the service may return a clarifying_question if the input query is ambiguous. |
| `↳ generate_debug_info` | `bool` Optional. If true (default to false), returns internal debugging information. |

### getGenerateQueryResult

Optional. If true, the generated query will be executed, and the result
data will be returned in the response.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setGenerateQueryResult

Optional. If true, the generated query will be executed, and the result
data will be returned in the response.

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

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

### getGenerateNaturalLanguageAnswer

Optional. If true, a natural language answer based on the query execution
result will be generated and returned in the response.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setGenerateNaturalLanguageAnswer

Optional. If true, a natural language answer based on the query execution
result will be generated and returned in the response.

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

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

### getGenerateExplanation

Optional. If true, an explanation of the generated query will be returned
in the response.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setGenerateExplanation

Optional. If true, an explanation of the generated query will be returned
in the response.

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

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

### getGenerateDisambiguationQuestion

Optional. If true (default to false), the service may return a
clarifying_question if the input query is ambiguous.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setGenerateDisambiguationQuestion

Optional. If true (default to false), the service may return a
clarifying_question if the input query is ambiguous.

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

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

### getGenerateDebugInfo

Optional. If true (default to false), returns internal debugging
information.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setGenerateDebugInfo

Optional. If true (default to false), returns internal debugging
information.

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

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