public static final class StreamAssistResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<StreamAssistResponse.Builder> implements StreamAssistResponseOrBuilder
Response for the [AssistantService.StreamAssist][google.cloud.discoveryengine.v1.AssistantService.StreamAssist] method.Protobuf type
google.cloud.discoveryengine.v1.StreamAssistResponse| Modifier and Type | Method and Description |
|---|---|
StreamAssistResponse |
build() |
StreamAssistResponse |
buildPartial() |
StreamAssistResponse.Builder |
clear() |
StreamAssistResponse.Builder |
clearAnswer()
Assist answer resource object containing parts of the assistant's final
answer for the user's query.
|
StreamAssistResponse.Builder |
clearAssistToken()
A global unique ID that identifies the current pair of request and stream
of responses.
|
StreamAssistResponse.Builder |
clearSessionInfo()
Session information.
|
AssistAnswer |
getAnswer()
Assist answer resource object containing parts of the assistant's final
answer for the user's query.
|
AssistAnswer.Builder |
getAnswerBuilder()
Assist answer resource object containing parts of the assistant's final
answer for the user's query.
|
AssistAnswerOrBuilder |
getAnswerOrBuilder()
Assist answer resource object containing parts of the assistant's final
answer for the user's query.
|
String |
getAssistToken()
A global unique ID that identifies the current pair of request and stream
of responses.
|
com.google.protobuf.ByteString |
getAssistTokenBytes()
A global unique ID that identifies the current pair of request and stream
of responses.
|
StreamAssistResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
StreamAssistResponse.SessionInfo |
getSessionInfo()
Session information.
|
StreamAssistResponse.SessionInfo.Builder |
getSessionInfoBuilder()
Session information.
|
StreamAssistResponse.SessionInfoOrBuilder |
getSessionInfoOrBuilder()
Session information.
|
boolean |
hasAnswer()
Assist answer resource object containing parts of the assistant's final
answer for the user's query.
|
boolean |
hasSessionInfo()
Session information.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
StreamAssistResponse.Builder |
mergeAnswer(AssistAnswer value)
Assist answer resource object containing parts of the assistant's final
answer for the user's query.
|
StreamAssistResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
StreamAssistResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
StreamAssistResponse.Builder |
mergeFrom(StreamAssistResponse other) |
StreamAssistResponse.Builder |
mergeSessionInfo(StreamAssistResponse.SessionInfo value)
Session information.
|
StreamAssistResponse.Builder |
setAnswer(AssistAnswer.Builder builderForValue)
Assist answer resource object containing parts of the assistant's final
answer for the user's query.
|
StreamAssistResponse.Builder |
setAnswer(AssistAnswer value)
Assist answer resource object containing parts of the assistant's final
answer for the user's query.
|
StreamAssistResponse.Builder |
setAssistToken(String value)
A global unique ID that identifies the current pair of request and stream
of responses.
|
StreamAssistResponse.Builder |
setAssistTokenBytes(com.google.protobuf.ByteString value)
A global unique ID that identifies the current pair of request and stream
of responses.
|
StreamAssistResponse.Builder |
setSessionInfo(StreamAssistResponse.SessionInfo.Builder builderForValue)
Session information.
|
StreamAssistResponse.Builder |
setSessionInfo(StreamAssistResponse.SessionInfo value)
Session information.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<StreamAssistResponse.Builder>public StreamAssistResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<StreamAssistResponse.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<StreamAssistResponse.Builder>public StreamAssistResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic StreamAssistResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic StreamAssistResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic StreamAssistResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamAssistResponse.Builder>public StreamAssistResponse.Builder mergeFrom(StreamAssistResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<StreamAssistResponse.Builder>public StreamAssistResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamAssistResponse.Builder>IOExceptionpublic boolean hasAnswer()
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][google.cloud.discoveryengine.v1.AssistAnswer.replies]. Observe [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to see if more parts are to be expected. While the state is `IN_PROGRESS`, the [AssistAnswer.replies][google.cloud.discoveryengine.v1.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.
.google.cloud.discoveryengine.v1.AssistAnswer answer = 1;hasAnswer in interface StreamAssistResponseOrBuilderpublic AssistAnswer 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][google.cloud.discoveryengine.v1.AssistAnswer.replies]. Observe [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to see if more parts are to be expected. While the state is `IN_PROGRESS`, the [AssistAnswer.replies][google.cloud.discoveryengine.v1.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.
.google.cloud.discoveryengine.v1.AssistAnswer answer = 1;getAnswer in interface StreamAssistResponseOrBuilderpublic StreamAssistResponse.Builder setAnswer(AssistAnswer 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][google.cloud.discoveryengine.v1.AssistAnswer.replies]. Observe [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to see if more parts are to be expected. While the state is `IN_PROGRESS`, the [AssistAnswer.replies][google.cloud.discoveryengine.v1.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.
.google.cloud.discoveryengine.v1.AssistAnswer answer = 1;public StreamAssistResponse.Builder setAnswer(AssistAnswer.Builder builderForValue)
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][google.cloud.discoveryengine.v1.AssistAnswer.replies]. Observe [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to see if more parts are to be expected. While the state is `IN_PROGRESS`, the [AssistAnswer.replies][google.cloud.discoveryengine.v1.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.
.google.cloud.discoveryengine.v1.AssistAnswer answer = 1;public StreamAssistResponse.Builder mergeAnswer(AssistAnswer 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][google.cloud.discoveryengine.v1.AssistAnswer.replies]. Observe [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to see if more parts are to be expected. While the state is `IN_PROGRESS`, the [AssistAnswer.replies][google.cloud.discoveryengine.v1.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.
.google.cloud.discoveryengine.v1.AssistAnswer answer = 1;public StreamAssistResponse.Builder clearAnswer()
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][google.cloud.discoveryengine.v1.AssistAnswer.replies]. Observe [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to see if more parts are to be expected. While the state is `IN_PROGRESS`, the [AssistAnswer.replies][google.cloud.discoveryengine.v1.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.
.google.cloud.discoveryengine.v1.AssistAnswer answer = 1;public AssistAnswer.Builder getAnswerBuilder()
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][google.cloud.discoveryengine.v1.AssistAnswer.replies]. Observe [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to see if more parts are to be expected. While the state is `IN_PROGRESS`, the [AssistAnswer.replies][google.cloud.discoveryengine.v1.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.
.google.cloud.discoveryengine.v1.AssistAnswer answer = 1;public AssistAnswerOrBuilder getAnswerOrBuilder()
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][google.cloud.discoveryengine.v1.AssistAnswer.replies]. Observe [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to see if more parts are to be expected. While the state is `IN_PROGRESS`, the [AssistAnswer.replies][google.cloud.discoveryengine.v1.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.
.google.cloud.discoveryengine.v1.AssistAnswer answer = 1;getAnswerOrBuilder in interface StreamAssistResponseOrBuilderpublic boolean hasSessionInfo()
Session information.
.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2;
hasSessionInfo in interface StreamAssistResponseOrBuilderpublic StreamAssistResponse.SessionInfo getSessionInfo()
Session information.
.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2;
getSessionInfo in interface StreamAssistResponseOrBuilderpublic StreamAssistResponse.Builder setSessionInfo(StreamAssistResponse.SessionInfo value)
Session information.
.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2;
public StreamAssistResponse.Builder setSessionInfo(StreamAssistResponse.SessionInfo.Builder builderForValue)
Session information.
.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2;
public StreamAssistResponse.Builder mergeSessionInfo(StreamAssistResponse.SessionInfo value)
Session information.
.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2;
public StreamAssistResponse.Builder clearSessionInfo()
Session information.
.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2;
public StreamAssistResponse.SessionInfo.Builder getSessionInfoBuilder()
Session information.
.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2;
public StreamAssistResponse.SessionInfoOrBuilder getSessionInfoOrBuilder()
Session information.
.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2;
getSessionInfoOrBuilder in interface StreamAssistResponseOrBuilderpublic String getAssistToken()
A global unique ID that identifies the current pair of request and stream of responses. Used for feedback and support.
string assist_token = 4;getAssistToken in interface StreamAssistResponseOrBuilderpublic com.google.protobuf.ByteString getAssistTokenBytes()
A global unique ID that identifies the current pair of request and stream of responses. Used for feedback and support.
string assist_token = 4;getAssistTokenBytes in interface StreamAssistResponseOrBuilderpublic StreamAssistResponse.Builder setAssistToken(String value)
A global unique ID that identifies the current pair of request and stream of responses. Used for feedback and support.
string assist_token = 4;value - The assistToken to set.public StreamAssistResponse.Builder clearAssistToken()
A global unique ID that identifies the current pair of request and stream of responses. Used for feedback and support.
string assist_token = 4;public StreamAssistResponse.Builder setAssistTokenBytes(com.google.protobuf.ByteString value)
A global unique ID that identifies the current pair of request and stream of responses. Used for feedback and support.
string assist_token = 4;value - The bytes for assistToken to set.Copyright © 2026 Google LLC. All rights reserved.