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) — Detailed information about the suggestion.
#suggestion_info=
def suggestion_info=(value) -> ::Google::Cloud::DataQnA::V1alpha::SuggestionInfo
Parameter
- value (::Google::Cloud::DataQnA::V1alpha::SuggestionInfo) — Detailed information about the suggestion.
Returns
- (::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) — The type of the suggestion.
#suggestion_type=
def suggestion_type=(value) -> ::Google::Cloud::DataQnA::V1alpha::SuggestionType
Parameter
- value (::Google::Cloud::DataQnA::V1alpha::SuggestionType) — The type of the suggestion.
Returns
- (::Google::Cloud::DataQnA::V1alpha::SuggestionType) — The type of the suggestion.