Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class FaqAnswer.
Represents answer from "frequently asked questions".
Generated from protobuf message google.cloud.dialogflow.v2.FaqAnswer
Namespace
Google \ Cloud \ Dialogflow \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ answer
string
The piece of text from the source
knowledge base document.
↳ confidence
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).
↳ question
string
The corresponding FAQ question.
↳ source
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>
.
↳ metadata
array| Google\Protobuf\Internal\MapField
A map that contains metadata about the answer and the document from which it originates.
↳ answer_record
string
The name of answer record, in the format of "projects/
getAnswer
The piece of text from the source
knowledge base document.
string
setAnswer
The piece of text from the source
knowledge base document.
var
string
$this
getConfidence
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).
float
setConfidence
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).
var
float
$this
getQuestion
The corresponding FAQ question.
string
setQuestion
The corresponding FAQ question.
var
string
$this
getSource
Indicates which Knowledge Document this answer was extracted from.
Format: projects/<Project ID>/locations/<Location
ID>/agent/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>
.
string
setSource
Indicates which Knowledge Document this answer was extracted from.
Format: projects/<Project ID>/locations/<Location
ID>/agent/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>
.
var
string
$this
getMetadata
A map that contains metadata about the answer and the document from which it originates.
setMetadata
A map that contains metadata about the answer and the document from which it originates.
$this
getAnswerRecord
The name of answer record, in the format of "projects/
string
setAnswerRecord
The name of answer record, in the format of "projects/
var
string
$this