Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer.
Represents a Knowledge Assist answer.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#answer_record
def answer_record() -> ::String
Returns
-
(::String) — The name of the answer record.
Format:
projects/<Project ID>/locations/<location ID>/answer Records/<Answer Record ID>
.
#answer_record=
def answer_record=(value) -> ::String
Parameter
-
value (::String) — The name of the answer record.
Format:
projects/<Project ID>/locations/<location ID>/answer Records/<Answer Record ID>
.
Returns
-
(::String) — The name of the answer record.
Format:
projects/<Project ID>/locations/<location ID>/answer Records/<Answer Record ID>
.
#suggested_query
def suggested_query() -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::SuggestedQuery
Returns
- (::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::SuggestedQuery) — The query suggested based on the context. Suggestion is made only if it is different from the previous suggestion.
#suggested_query=
def suggested_query=(value) -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::SuggestedQuery
Parameter
- value (::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::SuggestedQuery) — The query suggested based on the context. Suggestion is made only if it is different from the previous suggestion.
Returns
- (::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::SuggestedQuery) — The query suggested based on the context. Suggestion is made only if it is different from the previous suggestion.
#suggested_query_answer
def suggested_query_answer() -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer
Returns
- (::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer) — The answer generated for the suggested query. Whether or not an answer is generated depends on how confident we are about the generated query.
#suggested_query_answer=
def suggested_query_answer=(value) -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer
Parameter
- value (::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer) — The answer generated for the suggested query. Whether or not an answer is generated depends on how confident we are about the generated query.
Returns
- (::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer) — The answer generated for the suggested query. Whether or not an answer is generated depends on how confident we are about the generated query.