Assist answer resource object containing parts of the assistant's final answer for the user's query. Not present if the current response doesn't add anything to previously sent AssistAnswer.replies. Observe AssistAnswer.state to see if more parts are to be expected. While the state is IN_PROGRESS, the AssistAnswer.replies field in each response will contain replies (reply fragments) to be appended to the ones received in previous responses. AssistAnswer.name won't be filled. If the state is SUCCEEDED, FAILED or SKIPPED, the response is the last response and AssistAnswer.name will have a value.
A global unique ID that identifies the current pair of request and stream of responses. Used for feedback and support.
getAnswer
Assist answer resource object containing parts of the assistant's final
answer for the user's query.
Not present if the current response doesn't add anything to previously
sent
AssistAnswer.replies.
Observe
AssistAnswer.state to
see if more parts are to be expected. While the state is IN_PROGRESS, the
AssistAnswer.replies
field in each response will contain replies (reply fragments) to be
appended to the ones received in previous responses. AssistAnswer.name
won't be filled.
If the state is SUCCEEDED, FAILED or SKIPPED, the response
is the last response and AssistAnswer.name will have a value.
Assist answer resource object containing parts of the assistant's final
answer for the user's query.
Not present if the current response doesn't add anything to previously
sent
AssistAnswer.replies.
Observe
AssistAnswer.state to
see if more parts are to be expected. While the state is IN_PROGRESS, the
AssistAnswer.replies
field in each response will contain replies (reply fragments) to be
appended to the ones received in previous responses. AssistAnswer.name
won't be filled.
If the state is SUCCEEDED, FAILED or SKIPPED, the response
is the last response and AssistAnswer.name will have a value.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Discovery Engine V1 Client - Class StreamAssistResponse (1.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.7.0 (latest)](/php/docs/reference/cloud-discoveryengine/latest/V1.StreamAssistResponse)\n- [1.6.1](/php/docs/reference/cloud-discoveryengine/1.6.1/V1.StreamAssistResponse)\n- [1.5.1](/php/docs/reference/cloud-discoveryengine/1.5.1/V1.StreamAssistResponse)\n- [1.4.0](/php/docs/reference/cloud-discoveryengine/1.4.0/V1.StreamAssistResponse)\n- [1.3.3](/php/docs/reference/cloud-discoveryengine/1.3.3/V1.StreamAssistResponse)\n- [1.2.0](/php/docs/reference/cloud-discoveryengine/1.2.0/V1.StreamAssistResponse)\n- [1.1.0](/php/docs/reference/cloud-discoveryengine/1.1.0/V1.StreamAssistResponse)\n- [1.0.0](/php/docs/reference/cloud-discoveryengine/1.0.0/V1.StreamAssistResponse)\n- [0.11.3](/php/docs/reference/cloud-discoveryengine/0.11.3/V1.StreamAssistResponse)\n- [0.8.0](/php/docs/reference/cloud-discoveryengine/0.8.0/V1.StreamAssistResponse)\n- [0.7.1](/php/docs/reference/cloud-discoveryengine/0.7.1/V1.StreamAssistResponse)\n- [0.6.0](/php/docs/reference/cloud-discoveryengine/0.6.0/V1.StreamAssistResponse)\n- [0.5.0](/php/docs/reference/cloud-discoveryengine/0.5.0/V1.StreamAssistResponse)\n- [0.4.0](/php/docs/reference/cloud-discoveryengine/0.4.0/V1.StreamAssistResponse)\n- [0.3.0](/php/docs/reference/cloud-discoveryengine/0.3.0/V1.StreamAssistResponse)\n- [0.2.0](/php/docs/reference/cloud-discoveryengine/0.2.0/V1.StreamAssistResponse)\n- [0.1.1](/php/docs/reference/cloud-discoveryengine/0.1.1/V1.StreamAssistResponse) \nReference documentation and code samples for the Google Cloud Discovery Engine V1 Client class StreamAssistResponse.\n\nResponse for the\n[AssistantService.StreamAssist](/php/docs/reference/cloud-discoveryengine/latest/V1.Client.AssistantServiceClient#_Google_Cloud_DiscoveryEngine_V1_Client_AssistantServiceClient__streamAssist__)\nmethod.\n\nGenerated from protobuf message `google.cloud.discoveryengine.v1.StreamAssistResponse`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ DiscoveryEngine \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getAnswer\n\nAssist answer resource object containing parts of the assistant's final\nanswer for the user's query.\n\nNot present if the current response doesn't add anything to previously\nsent\n[AssistAnswer.replies](/php/docs/reference/cloud-discoveryengine/latest/V1.AssistAnswer#_Google_Cloud_DiscoveryEngine_V1_AssistAnswer__getReplies__).\nObserve\n[AssistAnswer.state](/php/docs/reference/cloud-discoveryengine/latest/V1.AssistAnswer#_Google_Cloud_DiscoveryEngine_V1_AssistAnswer__getState__) to\nsee if more parts are to be expected. While the state is `IN_PROGRESS`, the\n[AssistAnswer.replies](/php/docs/reference/cloud-discoveryengine/latest/V1.AssistAnswer#_Google_Cloud_DiscoveryEngine_V1_AssistAnswer__getReplies__)\nfield in each response will contain replies (reply fragments) to be\nappended to the ones received in previous responses. AssistAnswer.name\nwon't be filled.\nIf the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response\nis the last response and AssistAnswer.name will have a value.\n\n### hasAnswer\n\n### clearAnswer\n\n### setAnswer\n\nAssist answer resource object containing parts of the assistant's final\nanswer for the user's query.\n\nNot present if the current response doesn't add anything to previously\nsent\n[AssistAnswer.replies](/php/docs/reference/cloud-discoveryengine/latest/V1.AssistAnswer#_Google_Cloud_DiscoveryEngine_V1_AssistAnswer__getReplies__).\nObserve\n[AssistAnswer.state](/php/docs/reference/cloud-discoveryengine/latest/V1.AssistAnswer#_Google_Cloud_DiscoveryEngine_V1_AssistAnswer__getState__) to\nsee if more parts are to be expected. While the state is `IN_PROGRESS`, the\n[AssistAnswer.replies](/php/docs/reference/cloud-discoveryengine/latest/V1.AssistAnswer#_Google_Cloud_DiscoveryEngine_V1_AssistAnswer__getReplies__)\nfield in each response will contain replies (reply fragments) to be\nappended to the ones received in previous responses. AssistAnswer.name\nwon't be filled.\nIf the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response\nis the last response and AssistAnswer.name will have a value.\n\n### getSessionInfo\n\nSession information.\n\n### hasSessionInfo\n\n### clearSessionInfo\n\n### setSessionInfo\n\nSession information.\n\n### getAssistToken\n\nA global unique ID that identifies the current pair of request and stream\nof responses. Used for feedback and support.\n\n### setAssistToken\n\nA global unique ID that identifies the current pair of request and stream\nof responses. Used for feedback and support."]]