# BigQuery Data QnA V1alpha API - Class Google::Cloud::DataQnA::V1alpha::Suggestion (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::Suggestion.

A suggestion for a query with a ranking score.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #ranking_score

    def ranking_score() -> ::Float

**Returns**

- (::Float) --- The score of the suggestion. This can be used to define ordering in UI. The score represents confidence in the suggestion where higher is better. All score values must be in the range \[0, 1).

### #ranking_score=

    def ranking_score=(value) -> ::Float

**Parameter**

- **value** (::Float) --- The score of the suggestion. This can be used to define ordering in UI. The score represents confidence in the suggestion where higher is better. All score values must be in the range \[0, 1).
**Returns**

- (::Float) --- The score of the suggestion. This can be used to define ordering in UI. The score represents confidence in the suggestion where higher is better. All score values must be in the range \[0, 1).

### #suggestion_info

    def suggestion_info() -> ::Google::Cloud::DataQnA::V1alpha::SuggestionInfo

**Returns**

- ([::Google::Cloud::DataQnA::V1alpha::SuggestionInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-SuggestionInfo)) --- Detailed information about the suggestion.

### #suggestion_info=

    def suggestion_info=(value) -> ::Google::Cloud::DataQnA::V1alpha::SuggestionInfo

**Parameter**

- **value** ([::Google::Cloud::DataQnA::V1alpha::SuggestionInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-SuggestionInfo)) --- Detailed information about the suggestion.
**Returns**

- ([::Google::Cloud::DataQnA::V1alpha::SuggestionInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-SuggestionInfo)) --- Detailed information about the suggestion.

### #suggestion_type

    def suggestion_type() -> ::Google::Cloud::DataQnA::V1alpha::SuggestionType

**Returns**

- ([::Google::Cloud::DataQnA::V1alpha::SuggestionType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-SuggestionType)) --- The type of the suggestion.

### #suggestion_type=

    def suggestion_type=(value) -> ::Google::Cloud::DataQnA::V1alpha::SuggestionType

**Parameter**

- **value** ([::Google::Cloud::DataQnA::V1alpha::SuggestionType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-SuggestionType)) --- The type of the suggestion.
**Returns**

- ([::Google::Cloud::DataQnA::V1alpha::SuggestionType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-SuggestionType)) --- The type of the suggestion.