Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class ArticleAnswer.
Represents article answer.
Generated from protobuf message google.cloud.dialogflow.v2.ArticleAnswer
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ title
string
The article title.
↳ uri
string
The article URI.
↳ snippets
array
Article snippets.
↳ confidence
float
Article match confidence. The system's confidence score that this article is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).
↳ 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/
getTitle
The article title.
Generated from protobuf field string title = 1;
string
setTitle
The article title.
Generated from protobuf field string title = 1;
var
string
$this
getUri
The article URI.
Generated from protobuf field string uri = 2;
string
setUri
The article URI.
Generated from protobuf field string uri = 2;
var
string
$this
getSnippets
Article snippets.
Generated from protobuf field repeated string snippets = 3;
Google\Protobuf\Internal\RepeatedField
setSnippets
Article snippets.
Generated from protobuf field repeated string snippets = 3;
var
string[]
$this
getConfidence
Article match confidence.
The system's confidence score that this article is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).
Generated from protobuf field float confidence = 4;
float
setConfidence
Article match confidence.
The system's confidence score that this article is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).
Generated from protobuf field float confidence = 4;
var
float
$this
getMetadata
A map that contains metadata about the answer and the document from which it originates.
Generated from protobuf field map<string, string> metadata = 5;
Google\Protobuf\Internal\MapField
setMetadata
A map that contains metadata about the answer and the document from which it originates.
Generated from protobuf field map<string, string> metadata = 5;
var
array|Google\Protobuf\Internal\MapField
$this
getAnswerRecord
The name of answer record, in the format of "projects/
Generated from protobuf field string answer_record = 6;
string
setAnswerRecord
The name of answer record, in the format of "projects/
Generated from protobuf field string answer_record = 6;
var
string
$this