Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class KnowledgeSource.
Represents a knowledge source for the guidance.
Generated from protobuf message google.cloud.dialogflow.v2.CompanionSuggestion.Guidance.KnowledgeSource
Namespace
Google \ Cloud \ Dialogflow \ V2 \ CompanionSuggestion \ GuidanceMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ knowledge_article_url |
string
URL of the knowledge article. |
↳ knowledge_article_title |
string
Knowledge article title. |
↳ knowledge_snippet |
string
Knowledge snippet. |
getKnowledgeArticleUrl
URL of the knowledge article.
| Returns | |
|---|---|
| Type | Description |
string |
|
setKnowledgeArticleUrl
URL of the knowledge article.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getKnowledgeArticleTitle
Knowledge article title.
| Returns | |
|---|---|
| Type | Description |
string |
|
setKnowledgeArticleTitle
Knowledge article title.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getKnowledgeSnippet
Knowledge snippet.
| Returns | |
|---|---|
| Type | Description |
string |
|
setKnowledgeSnippet
Knowledge snippet.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|