Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::SuggestedQuery::SearchContext.
Search context is information useful for knowledge search that helps enrich the query. Example: search_context { key: "application name" value: "DesignApp" }
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#key
def key() -> ::String
Returns
- (::String) — Optional. The key of the search context, e.g. "application name".
#key=
def key=(value) -> ::String
Parameter
- value (::String) — Optional. The key of the search context, e.g. "application name".
Returns
- (::String) — Optional. The key of the search context, e.g. "application name".
#value
def value() -> ::String
Returns
- (::String) — Optional. The value of the search context, e.g. "DesignApp".
#value=
def value=(value) -> ::String
Parameter
- value (::String) — Optional. The value of the search context, e.g. "DesignApp".
Returns
- (::String) — Optional. The value of the search context, e.g. "DesignApp".