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.
Parameters | |
---|---|
Name | Description |
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;
Returns | |
---|---|
Type | Description |
string |
setTitle
The article title.
Generated from protobuf field string title = 1;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getUri
The article URI.
Generated from protobuf field string uri = 2;
Returns | |
---|---|
Type | Description |
string |
setUri
The article URI.
Generated from protobuf field string uri = 2;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSnippets
Article snippets.
Generated from protobuf field repeated string snippets = 3;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setSnippets
Article snippets.
Generated from protobuf field repeated string snippets = 3;
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$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;
Returns | |
---|---|
Type | Description |
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;
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$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;
Returns | |
---|---|
Type | Description |
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;
Parameter | |
---|---|
Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
Returns | |
---|---|
Type | Description |
$this |
getAnswerRecord
The name of answer record, in the format of "projects/
Generated from protobuf field string answer_record = 6;
Returns | |
---|---|
Type | Description |
string |
setAnswerRecord
The name of answer record, in the format of "projects/
Generated from protobuf field string answer_record = 6;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |