Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class AssistAnswer.
AssistAnswer resource, main part of AssistResponse.
Generated from protobuf message google.cloud.discoveryengine.v1.AssistAnswer
Namespace
Google \ Cloud \ DiscoveryEngine \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Immutable. Resource name of the |
↳ state |
int
State of the answer generation. |
↳ replies |
array<AssistAnswer\Reply>
Replies of the assistant. |
↳ assist_skipped_reasons |
array
Reasons for not answering the assist call. |
getName
Immutable. Resource name of the AssistAnswer.
Format:
projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}
This field must be a UTF-8 encoded string with a length limit of 1024
characters.
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Immutable. Resource name of the AssistAnswer.
Format:
projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}
This field must be a UTF-8 encoded string with a length limit of 1024
characters.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getState
State of the answer generation.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type State. |
setState
State of the answer generation.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type State. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getReplies
Replies of the assistant.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setReplies
Replies of the assistant.
| Parameter | |
|---|---|
| Name | Description |
var |
array<AssistAnswer\Reply>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAssistSkippedReasons
Reasons for not answering the assist call.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setAssistSkippedReasons
Reasons for not answering the assist call.
| Parameter | |
|---|---|
| Name | Description |
var |
int[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|