Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class AnswerPart.
Answer part with citation.
Generated from protobuf message google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.AnswerPart
Namespace
Google \ Cloud \ Dialogflow \ Cx \ V3 \ DataStoreConnectionSignalsMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ text |
string
Substring of the answer. |
↳ supporting_indices |
array
Citations for this answer part. Indices of |
getText
Substring of the answer.
Returns | |
---|---|
Type | Description |
string |
setText
Substring of the answer.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSupportingIndices
Citations for this answer part. Indices of search_snippets
.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setSupportingIndices
Citations for this answer part. Indices of search_snippets
.
Parameter | |
---|---|
Name | Description |
var |
int[]
|
Returns | |
---|---|
Type | Description |
$this |