Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class KnowledgeAssistAnswer.
Represents a Knowledge Assist answer.
Generated from protobuf message google.cloud.dialogflow.v2.KnowledgeAssistAnswer
Namespace
Google \ Cloud \ Dialogflow \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ suggested_query
Google\Cloud\Dialogflow\V2\KnowledgeAssistAnswer\SuggestedQuery
The query suggested based on the context. Suggestion is made only if it is different from the previous suggestion.
↳ suggested_query_answer
Google\Cloud\Dialogflow\V2\KnowledgeAssistAnswer\KnowledgeAnswer
The answer generated for the suggested query. Whether or not an answer is generated depends on how confident we are about the generated query.
↳ answer_record
string
The name of the answer record. Format: projects/<Project ID>/locations/<location ID>/answer Records/<Answer Record ID>
.
getSuggestedQuery
The query suggested based on the context. Suggestion is made only if it is different from the previous suggestion.
hasSuggestedQuery
clearSuggestedQuery
setSuggestedQuery
The query suggested based on the context. Suggestion is made only if it is different from the previous suggestion.
$this
getSuggestedQueryAnswer
The answer generated for the suggested query. Whether or not an answer is generated depends on how confident we are about the generated query.
hasSuggestedQueryAnswer
clearSuggestedQueryAnswer
setSuggestedQueryAnswer
The answer generated for the suggested query. Whether or not an answer is generated depends on how confident we are about the generated query.
$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