# Data Analytics API with Gemini V1BETA API - Class Google::Cloud::GeminiDataAnalytics::V1beta::QueryDataResponse (v0.11.0)

0.11.0 (latest) 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Data Analytics API with Gemini V1BETA API class Google::Cloud::GeminiDataAnalytics::V1beta::QueryDataResponse.

Response containing the generated query and related information.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #disambiguation_question

    def disambiguation_question() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- If ambiguity was detected in the natural language query and options.generate_disambiguation_question was true, this field contains a question to the user for clarification. The returned represents the service's best effort based on the ambiguous input.

### #disambiguation_question=

    def disambiguation_question=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- If ambiguity was detected in the natural language query and options.generate_disambiguation_question was true, this field contains a question to the user for clarification. The returned represents the service's best effort based on the ambiguous input.
**Returns**

- (::Array\<::String\>) --- If ambiguity was detected in the natural language query and options.generate_disambiguation_question was true, this field contains a question to the user for clarification. The returned represents the service's best effort based on the ambiguous input.

### #generated_query

    def generated_query() -> ::String

**Returns**

- (::String) --- Generated query for the given user prompt.

### #generated_query=

    def generated_query=(value) -> ::String

**Parameter**

- **value** (::String) --- Generated query for the given user prompt.
**Returns**

- (::String) --- Generated query for the given user prompt.

### #intent_explanation

    def intent_explanation() -> ::String

**Returns**

- (::String) --- A natural language explanation of the generated query. Populated if options.generate_explanation was true in the request.

### #intent_explanation=

    def intent_explanation=(value) -> ::String

**Parameter**

- **value** (::String) --- A natural language explanation of the generated query. Populated if options.generate_explanation was true in the request.
**Returns**

- (::String) --- A natural language explanation of the generated query. Populated if options.generate_explanation was true in the request.

### #natural_language_answer

    def natural_language_answer() -> ::String

**Returns**

- (::String) --- A natural language answer to the query, based on the query_result. Populated if options.generate_natural_language_answer was true in the request and query execution was successful based in the response from executeSql API.

### #natural_language_answer=

    def natural_language_answer=(value) -> ::String

**Parameter**

- **value** (::String) --- A natural language answer to the query, based on the query_result. Populated if options.generate_natural_language_answer was true in the request and query execution was successful based in the response from executeSql API.
**Returns**

- (::String) --- A natural language answer to the query, based on the query_result. Populated if options.generate_natural_language_answer was true in the request and query execution was successful based in the response from executeSql API.

### #query_result

    def query_result() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ExecutedQueryResult

**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1beta::ExecutedQueryResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-ExecutedQueryResult)) --- The result of executing the query. Populated if options.generate_query_result or options.generate_natural_language_answer was true in the request, and execution was successful or attempted.

### #query_result=

    def query_result=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::ExecutedQueryResult

**Parameter**

- **value** ([::Google::Cloud::GeminiDataAnalytics::V1beta::ExecutedQueryResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-ExecutedQueryResult)) --- The result of executing the query. Populated if options.generate_query_result or options.generate_natural_language_answer was true in the request, and execution was successful or attempted.
**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1beta::ExecutedQueryResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-ExecutedQueryResult)) --- The result of executing the query. Populated if options.generate_query_result or options.generate_natural_language_answer was true in the request, and execution was successful or attempted.