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

Detailed information about the suggestion.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #annotated_suggestion

    def annotated_suggestion() -> ::Google::Cloud::DataQnA::V1alpha::AnnotatedString

**Returns**

- ([::Google::Cloud::DataQnA::V1alpha::AnnotatedString](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-AnnotatedString)) --- Annotations for the suggestion. This provides information about which part of the suggestion corresponds to what semantic meaning (e.g. a metric).

### #annotated_suggestion=

    def annotated_suggestion=(value) -> ::Google::Cloud::DataQnA::V1alpha::AnnotatedString

**Parameter**

- **value** ([::Google::Cloud::DataQnA::V1alpha::AnnotatedString](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-AnnotatedString)) --- Annotations for the suggestion. This provides information about which part of the suggestion corresponds to what semantic meaning (e.g. a metric).
**Returns**

- ([::Google::Cloud::DataQnA::V1alpha::AnnotatedString](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-AnnotatedString)) --- Annotations for the suggestion. This provides information about which part of the suggestion corresponds to what semantic meaning (e.g. a metric).

### #query_matches

    def query_matches() -> ::Array<::Google::Cloud::DataQnA::V1alpha::SuggestionInfo::MatchInfo>

**Returns**

- (::Array\<[::Google::Cloud::DataQnA::V1alpha::SuggestionInfo::MatchInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-SuggestionInfo-MatchInfo)\>) --- Matches between user query and the annotated string.

### #query_matches=

    def query_matches=(value) -> ::Array<::Google::Cloud::DataQnA::V1alpha::SuggestionInfo::MatchInfo>

**Parameter**

- **value** (::Array\<[::Google::Cloud::DataQnA::V1alpha::SuggestionInfo::MatchInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-SuggestionInfo-MatchInfo)\>) --- Matches between user query and the annotated string.
**Returns**

- (::Array\<[::Google::Cloud::DataQnA::V1alpha::SuggestionInfo::MatchInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataqna-v1alpha/latest/Google-Cloud-DataQnA-V1alpha-SuggestionInfo-MatchInfo)\>) --- Matches between user query and the annotated string.