@Generated public final class StreamAssistResponse extends com.google.protobuf.GeneratedMessage implements StreamAssistResponseOrBuilder
Response for the [AssistantService.StreamAssist][google.cloud.discoveryengine.v1.AssistantService.StreamAssist] method.Protobuf type
google.cloud.discoveryengine.v1.StreamAssistResponse| Modifier and Type | Class and Description |
|---|---|
static class |
StreamAssistResponse.Builder
Response for the
[AssistantService.StreamAssist][google.cloud.discoveryengine.v1.AssistantService.StreamAssist]
method.
|
static class |
StreamAssistResponse.SessionInfo
Information about the session.
|
static interface |
StreamAssistResponse.SessionInfoOrBuilder |
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ANSWER_FIELD_NUMBER |
static int |
ASSIST_TOKEN_FIELD_NUMBER |
static int |
SESSION_INFO_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AssistAnswer |
getAnswer()
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.
|
static StreamAssistResponse |
getDefaultInstance() |
StreamAssistResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<StreamAssistResponse> |
getParserForType() |
int |
getSerializedSize() |
StreamAssistResponse.SessionInfo |
getSessionInfo()
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.
|
int |
hashCode() |
boolean |
hasSessionInfo()
Session information.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static StreamAssistResponse.Builder |
newBuilder() |
static StreamAssistResponse.Builder |
newBuilder(StreamAssistResponse prototype) |
StreamAssistResponse.Builder |
newBuilderForType() |
protected StreamAssistResponse.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static StreamAssistResponse |
parseDelimitedFrom(InputStream input) |
static StreamAssistResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamAssistResponse |
parseFrom(byte[] data) |
static StreamAssistResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamAssistResponse |
parseFrom(ByteBuffer data) |
static StreamAssistResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamAssistResponse |
parseFrom(com.google.protobuf.ByteString data) |
static StreamAssistResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamAssistResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static StreamAssistResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamAssistResponse |
parseFrom(InputStream input) |
static StreamAssistResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<StreamAssistResponse> |
parser() |
StreamAssistResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ANSWER_FIELD_NUMBER
public static final int SESSION_INFO_FIELD_NUMBER
public static final int ASSIST_TOKEN_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic 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 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.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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static StreamAssistResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamAssistResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamAssistResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamAssistResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamAssistResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamAssistResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamAssistResponse parseFrom(InputStream input) throws IOException
IOExceptionpublic static StreamAssistResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static StreamAssistResponse parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static StreamAssistResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static StreamAssistResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static StreamAssistResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic StreamAssistResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static StreamAssistResponse.Builder newBuilder()
public static StreamAssistResponse.Builder newBuilder(StreamAssistResponse prototype)
public StreamAssistResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected StreamAssistResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static StreamAssistResponse getDefaultInstance()
public static com.google.protobuf.Parser<StreamAssistResponse> parser()
public com.google.protobuf.Parser<StreamAssistResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic StreamAssistResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2026 Google LLC. All rights reserved.