Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer (v1.1.0)

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

#answer_sources=

def answer_sources=(value) -> ::Array<::Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer::AnswerSource>
Parameter
Returns

#answer_type

def answer_type() -> ::Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer::AnswerType

#answer_type=

def answer_type=(value) -> ::Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer::AnswerType
Parameter