Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class SearchKnowledgeAnswer.
Represents a SearchKnowledge answer.
Generated from protobuf message google.cloud.dialogflow.v2.SearchKnowledgeAnswer
Namespace
Google \ Cloud \ Dialogflow \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ answer
string
The piece of text from the knowledge base documents that answers the search query
↳ answer_type
int
The type of the answer.
↳ answer_sources
↳ answer_record
string
The name of the answer record. Format: projects/<Project ID>/locations/<location ID>/answer Records/<Answer Record ID>
getAnswer
The piece of text from the knowledge base documents that answers the search query
string
setAnswer
The piece of text from the knowledge base documents that answers the search query
var
string
$this
getAnswerType
The type of the answer.
int
setAnswerType
The type of the answer.
var
int
$this
getAnswerSources
All sources used to generate the answer.
setAnswerSources
All sources used to generate the answer.
$this
getAnswerRecord
The name of the answer record.
Format: projects/<Project ID>/locations/<location ID>/answer
Records/<Answer Record ID>
string
setAnswerRecord
The name of the answer record.
Format: projects/<Project ID>/locations/<location ID>/answer
Records/<Answer Record ID>
var
string
$this