Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class EventSource.
Details about source of Event answer.
Generated from protobuf message google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource
Namespace
Google \ Cloud \ Dialogflow \ V2 \ KnowledgeAssistAnswer \ KnowledgeAnswerMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ event |
string
Name of the triggered event. |
↳ snippets |
GenerativeSource
Sources used in event fulfillment. |
getEvent
Name of the triggered event.
| Returns | |
|---|---|
| Type | Description |
string |
|
setEvent
Name of the triggered event.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSnippets
Sources used in event fulfillment.
| Returns | |
|---|---|
| Type | Description |
GenerativeSource|null |
|
hasSnippets
clearSnippets
setSnippets
Sources used in event fulfillment.
| Parameter | |
|---|---|
| Name | Description |
var |
GenerativeSource
|
| Returns | |
|---|---|
| Type | Description |
$this |
|