Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer.
Represents an answer from Knowledge. Currently supports FAQ and Generative answers.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#answer_text
def answer_text() -> ::String-
(::String) — The piece of text from the
sourcethat answers this suggested query.
#answer_text=
def answer_text=(value) -> ::String-
value (::String) — The piece of text from the
sourcethat answers this suggested query.
-
(::String) — The piece of text from the
sourcethat answers this suggested query.
#event_source
def event_source() -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::EventSource-
(::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::EventSource) — Populated if the prediction was from an event.
Note: The following fields are mutually exclusive:
event_source,faq_source,generative_source,playbook_source. If a field in that set is populated, all other fields in the set will automatically be cleared.
#event_source=
def event_source=(value) -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::EventSource-
value (::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::EventSource) — Populated if the prediction was from an event.
Note: The following fields are mutually exclusive:
event_source,faq_source,generative_source,playbook_source. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::EventSource) — Populated if the prediction was from an event.
Note: The following fields are mutually exclusive:
event_source,faq_source,generative_source,playbook_source. If a field in that set is populated, all other fields in the set will automatically be cleared.
#faq_source
def faq_source() -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::FaqSource-
(::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::FaqSource) — Populated if the prediction came from FAQ.
Note: The following fields are mutually exclusive:
faq_source,generative_source,playbook_source,event_source. If a field in that set is populated, all other fields in the set will automatically be cleared.
#faq_source=
def faq_source=(value) -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::FaqSource-
value (::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::FaqSource) — Populated if the prediction came from FAQ.
Note: The following fields are mutually exclusive:
faq_source,generative_source,playbook_source,event_source. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::FaqSource) — Populated if the prediction came from FAQ.
Note: The following fields are mutually exclusive:
faq_source,generative_source,playbook_source,event_source. If a field in that set is populated, all other fields in the set will automatically be cleared.
#generative_source
def generative_source() -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource-
(::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource) — Populated if the prediction was Generative.
Note: The following fields are mutually exclusive:
generative_source,faq_source,playbook_source,event_source. If a field in that set is populated, all other fields in the set will automatically be cleared.
#generative_source=
def generative_source=(value) -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource-
value (::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource) — Populated if the prediction was Generative.
Note: The following fields are mutually exclusive:
generative_source,faq_source,playbook_source,event_source. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource) — Populated if the prediction was Generative.
Note: The following fields are mutually exclusive:
generative_source,faq_source,playbook_source,event_source. If a field in that set is populated, all other fields in the set will automatically be cleared.
#playbook_source
def playbook_source() -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource-
(::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource) — Populated if the prediction was from Playbook.
Note: The following fields are mutually exclusive:
playbook_source,faq_source,generative_source,event_source. If a field in that set is populated, all other fields in the set will automatically be cleared.
#playbook_source=
def playbook_source=(value) -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource-
value (::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource) — Populated if the prediction was from Playbook.
Note: The following fields are mutually exclusive:
playbook_source,faq_source,generative_source,event_source. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource) — Populated if the prediction was from Playbook.
Note: The following fields are mutually exclusive:
playbook_source,faq_source,generative_source,event_source. If a field in that set is populated, all other fields in the set will automatically be cleared.