Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::FaqAnswer (v0.16.0)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::FaqAnswer.

Represents answer from "frequently asked questions".

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 source knowledge base document.

#answer=

def answer=(value) -> ::String
Parameter
  • value (::String) — The piece of text from the source knowledge base document.
Returns
  • (::String) — The piece of text from the source knowledge base document.

#answer_record

def answer_record() -> ::String
Returns
  • (::String) — The name of answer record, in the format of "projects/

#answer_record=

def answer_record=(value) -> ::String
Parameter
  • value (::String) — The name of answer record, in the format of "projects/
Returns
  • (::String) — The name of answer record, in the format of "projects/

#confidence

def confidence() -> ::Float
Returns
  • (::Float) — The system's confidence score that this Knowledge answer is a good match for this conversational query, range from 0.0 (completely uncertain) to 1.0 (completely certain).

#confidence=

def confidence=(value) -> ::Float
Parameter
  • value (::Float) — The system's confidence score that this Knowledge answer is a good match for this conversational query, range from 0.0 (completely uncertain) to 1.0 (completely certain).
Returns
  • (::Float) — The system's confidence score that this Knowledge answer is a good match for this conversational query, range from 0.0 (completely uncertain) to 1.0 (completely certain).

#metadata

def metadata() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — A map that contains metadata about the answer and the document from which it originates.

#metadata=

def metadata=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — A map that contains metadata about the answer and the document from which it originates.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — A map that contains metadata about the answer and the document from which it originates.

#question

def question() -> ::String
Returns
  • (::String) — The corresponding FAQ question.

#question=

def question=(value) -> ::String
Parameter
  • value (::String) — The corresponding FAQ question.
Returns
  • (::String) — The corresponding FAQ question.

#source

def source() -> ::String
Returns
  • (::String) — Indicates which Knowledge Document this answer was extracted from. Format: projects/<Project ID>/locations/<Location ID>/agent/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>.

#source=

def source=(value) -> ::String
Parameter
  • value (::String) — Indicates which Knowledge Document this answer was extracted from. Format: projects/<Project ID>/locations/<Location ID>/agent/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>.
Returns
  • (::String) — Indicates which Knowledge Document this answer was extracted from. Format: projects/<Project ID>/locations/<Location ID>/agent/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>.