Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class AnswerSource.
The sources of the answers.
Generated from protobuf message google.cloud.dialogflow.v2.SearchKnowledgeAnswer.AnswerSource
Namespace
Google \ Cloud \ Dialogflow \ V2 \ SearchKnowledgeAnswerMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ title |
string
The title of the article. |
↳ uri |
string
The URI of the article. |
↳ snippet |
string
The relevant snippet of the article. |
getTitle
The title of the article.
Returns | |
---|---|
Type | Description |
string |
setTitle
The title of the article.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getUri
The URI of the article.
Returns | |
---|---|
Type | Description |
string |
setUri
The URI of the article.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSnippet
The relevant snippet of the article.
Returns | |
---|---|
Type | Description |
string |
setSnippet
The relevant snippet of the article.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |