class Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1FaqAnswer

Represents answer from “frequently asked questions”.

Attributes

answer[RW]

The piece of text from the `source` knowledge base document. Corresponds to the JSON property `answer` @return [String]

answer_record[RW]

The name of answer record, in the format of “projects//locations// answerRecords/” Corresponds to the JSON property `answerRecord` @return [String]

confidence[RW]

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]

metadata[RW]

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>]

question[RW]

The corresponding FAQ question. Corresponds to the JSON property `question` @return [String]

source[RW]

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

new(**args) click to toggle source
# File lib/google/apis/dialogflow_v3/classes.rb, line 11992
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dialogflow_v3/classes.rb, line 11997
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