Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class Text.
The text response message.
Generated from protobuf message google.cloud.dialogflow.v2.ResponseMessage.Text
Namespace
Google \ Cloud \ Dialogflow \ V2 \ ResponseMessageMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ text |
string[]
A collection of text response variants. If multiple variants are defined, only one text response variant is returned at runtime. |
getText
A collection of text response variants. If multiple variants are defined, only one text response variant is returned at runtime.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setText
A collection of text response variants. If multiple variants are defined, only one text response variant is returned at runtime.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|