Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer.
Represents a SearchKnowledge answer.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#answer
def answer() -> ::String
Returns
- (::String) — The piece of text from the knowledge base documents that answers the search query
#answer=
def answer=(value) -> ::String
Parameter
- value (::String) — The piece of text from the knowledge base documents that answers the search query
Returns
- (::String) — The piece of text from the knowledge base documents that answers the search query
#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>
#answer_sources
def answer_sources() -> ::Array<::Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer::AnswerSource>
Returns
- (::Array<::Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer::AnswerSource>) — All sources used to generate the answer.
#answer_sources=
def answer_sources=(value) -> ::Array<::Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer::AnswerSource>
Parameter
- value (::Array<::Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer::AnswerSource>) — All sources used to generate the answer.
Returns
- (::Array<::Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer::AnswerSource>) — All sources used to generate the answer.
#answer_type
def answer_type() -> ::Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer::AnswerType
Returns
- (::Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer::AnswerType) — The type of the answer.
#answer_type=
def answer_type=(value) -> ::Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer::AnswerType
Parameter
- value (::Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer::AnswerType) — The type of the answer.
Returns
- (::Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer::AnswerType) — The type of the answer.