BigQuery Data QnA V1alpha API - Class Google::Cloud::DataQnA::V1alpha::Suggestion (v0.4.0)

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

#suggestion_info=

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

#suggestion_type

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

#suggestion_type=

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