# BigQuery Data QnA V1alpha API - Class Google::Cloud::DataQnA::V1alpha::Interpretation (v0.13.0)

0.13.0 (latest) 0.12.0 0.11.1 0.10.0 0.9.1 0.8.0 0.7.2 0.6.2 0.5.0 0.4.0 0.3.0 0.2.6 Reference documentation and code samples for the BigQuery Data QnA V1alpha API class Google::Cloud::DataQnA::V1alpha::Interpretation.

An interpretation of a natural language query.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #confidence

    def confidence() -> ::Float

**Returns**

- (::Float) --- The level of confidence that one of the interpretations is correct. This is a value in the range \[0, 1\] where a value of 0.5 or below is to be considered a low confidence.

### #confidence=

    def confidence=(value) -> ::Float

**Parameter**

- **value** (::Float) --- The level of confidence that one of the interpretations is correct. This is a value in the range \[0, 1\] where a value of 0.5 or below is to be considered a low confidence.
**Returns**

- (::Float) --- The level of confidence that one of the interpretations is correct. This is a value in the range \[0, 1\] where a value of 0.5 or below is to be considered a low confidence.

### #data_query

    def data_query() -> ::Google::Cloud::DataQnA::V1alpha::DataQuery

**Returns**

- ([::Google::Cloud::DataQnA::V1alpha::DataQuery](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-DataQuery)) --- Representation of the data query to be sent to the backend.

### #data_query=

    def data_query=(value) -> ::Google::Cloud::DataQnA::V1alpha::DataQuery

**Parameter**

- **value** ([::Google::Cloud::DataQnA::V1alpha::DataQuery](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-DataQuery)) --- Representation of the data query to be sent to the backend.
**Returns**

- ([::Google::Cloud::DataQnA::V1alpha::DataQuery](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-DataQuery)) --- Representation of the data query to be sent to the backend.

### #data_sources

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

**Returns**

- (::Array\<::String\>) --- List of data sources used in the current understanding.

### #data_sources=

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

**Parameter**

- **value** (::Array\<::String\>) --- List of data sources used in the current understanding.
**Returns**

- (::Array\<::String\>) --- List of data sources used in the current understanding.

### #execution_info

    def execution_info() -> ::Google::Cloud::DataQnA::V1alpha::ExecutionInfo

**Returns**

- ([::Google::Cloud::DataQnA::V1alpha::ExecutionInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-ExecutionInfo)) --- Information about the backend response. This is populated only if execution of an interpretation was requested.

### #execution_info=

    def execution_info=(value) -> ::Google::Cloud::DataQnA::V1alpha::ExecutionInfo

**Parameter**

- **value** ([::Google::Cloud::DataQnA::V1alpha::ExecutionInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-ExecutionInfo)) --- Information about the backend response. This is populated only if execution of an interpretation was requested.
**Returns**

- ([::Google::Cloud::DataQnA::V1alpha::ExecutionInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-ExecutionInfo)) --- Information about the backend response. This is populated only if execution of an interpretation was requested.

### #human_readable

    def human_readable() -> ::Google::Cloud::DataQnA::V1alpha::HumanReadable

**Returns**

- ([::Google::Cloud::DataQnA::V1alpha::HumanReadable](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-HumanReadable)) --- Human readable representation of the query.

### #human_readable=

    def human_readable=(value) -> ::Google::Cloud::DataQnA::V1alpha::HumanReadable

**Parameter**

- **value** ([::Google::Cloud::DataQnA::V1alpha::HumanReadable](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-HumanReadable)) --- Human readable representation of the query.
**Returns**

- ([::Google::Cloud::DataQnA::V1alpha::HumanReadable](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-HumanReadable)) --- Human readable representation of the query.

### #interpretation_structure

    def interpretation_structure() -> ::Google::Cloud::DataQnA::V1alpha::InterpretationStructure

**Returns**

- ([::Google::Cloud::DataQnA::V1alpha::InterpretationStructure](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-InterpretationStructure)) --- Information about the interpretation structure that helps to understand and visualize the response.

### #interpretation_structure=

    def interpretation_structure=(value) -> ::Google::Cloud::DataQnA::V1alpha::InterpretationStructure

**Parameter**

- **value** ([::Google::Cloud::DataQnA::V1alpha::InterpretationStructure](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-InterpretationStructure)) --- Information about the interpretation structure that helps to understand and visualize the response.
**Returns**

- ([::Google::Cloud::DataQnA::V1alpha::InterpretationStructure](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-InterpretationStructure)) --- Information about the interpretation structure that helps to understand and visualize the response.

### #unused_phrases

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

**Returns**

- (::Array\<::String\>) --- A list of unused phrases. Clients should display a Did You Mean (DYM) dialog if this is non-empty, even if this is the only interpretation.

### #unused_phrases=

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

**Parameter**

- **value** (::Array\<::String\>) --- A list of unused phrases. Clients should display a Did You Mean (DYM) dialog if this is non-empty, even if this is the only interpretation.
**Returns**

- (::Array\<::String\>) --- A list of unused phrases. Clients should display a Did You Mean (DYM) dialog if this is non-empty, even if this is the only interpretation.