# Interface GenerationOptionsOrBuilder (0.21.0)

0.21.0 (latest) 0.19.0 0.16.0 0.15.0 0.13.0 0.11.0 0.10.0 0.9.0 0.8.0 0.6.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface GenerationOptionsOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getGenerateDisambiguationQuestion()

    public abstract boolean getGenerateDisambiguationQuestion()

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

`bool generate_disambiguation_question = 4 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getGenerateExplanation()

    public abstract boolean getGenerateExplanation()

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

`bool generate_explanation = 3 [(.google.api.field_behavior) = OPTIONAL];`

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

### getGenerateNaturalLanguageAnswer()

    public abstract boolean getGenerateNaturalLanguageAnswer()

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

`bool generate_natural_language_answer = 2 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getGenerateQueryResult()

    public abstract boolean getGenerateQueryResult()

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

`bool generate_query_result = 1 [(.google.api.field_behavior) = OPTIONAL];`

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