class Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2FaqAnswer
Represents answer from “frequently asked questions”.
Attributes
The piece of text from the `source` knowledge base document. Corresponds to the JSON property `answer` @return [String]
The name of answer record, in the format of “projects//locations// answerRecords/” Corresponds to the JSON property `answerRecord` @return [String]
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). Corresponds to the JSON property `confidence` @return [Float]
A map that contains metadata about the answer and the document from which it originates. Corresponds to the JSON property `metadata` @return [Hash<String,String>]
The corresponding FAQ question. Corresponds to the JSON property `question` @return [String]
Indicates which Knowledge Document this answer was extracted from. Format: ` projects//locations//agent/knowledgeBases//documents/`. Corresponds to the JSON property `source` @return [String]
Public Class Methods
# File lib/google/apis/dialogflow_v3beta1/classes.rb, line 8875 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/dialogflow_v3beta1/classes.rb, line 8880 def update!(**args) @answer = args[:answer] if args.key?(:answer) @answer_record = args[:answer_record] if args.key?(:answer_record) @confidence = args[:confidence] if args.key?(:confidence) @metadata = args[:metadata] if args.key?(:metadata) @question = args[:question] if args.key?(:question) @source = args[:source] if args.key?(:source) end