Class StreamAssistResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StreamAssistResponse.Builder>
com.google.cloud.discoveryengine.v1.StreamAssistResponse.Builder
- All Implemented Interfaces:
StreamAssistResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StreamAssistResponse
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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Assist answer resource object containing parts of the assistant's final answer for the user's query.A global unique ID that identifies the current pair of request and stream of responses.Session information.Assist answer resource object containing parts of the assistant's final answer for the user's query.Assist answer resource object containing parts of the assistant's final answer for the user's query.Assist answer resource object containing parts of the assistant's final answer for the user's query.A global unique ID that identifies the current pair of request and stream of responses.com.google.protobuf.ByteStringA global unique ID that identifies the current pair of request and stream of responses.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSession information.Session information.Session information.booleanAssist answer resource object containing parts of the assistant's final answer for the user's query.booleanSession information.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeAnswer(AssistAnswer value) Assist answer resource object containing parts of the assistant's final answer for the user's query.mergeFrom(StreamAssistResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Session information.setAnswer(AssistAnswer value) Assist answer resource object containing parts of the assistant's final answer for the user's query.setAnswer(AssistAnswer.Builder builderForValue) Assist answer resource object containing parts of the assistant's final answer for the user's query.setAssistToken(String value) A global unique ID that identifies the current pair of request and stream of responses.setAssistTokenBytes(com.google.protobuf.ByteString value) A global unique ID that identifies the current pair of request and stream of responses.Session information.setSessionInfo(StreamAssistResponse.SessionInfo.Builder builderForValue) Session information.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<StreamAssistResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<StreamAssistResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<StreamAssistResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StreamAssistResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StreamAssistResponse.Builder>
-
mergeFrom
public StreamAssistResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StreamAssistResponse.Builder>- Throws:
IOException
-
hasAnswer
public 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;- Specified by:
hasAnswerin interfaceStreamAssistResponseOrBuilder- Returns:
- Whether the answer field is set.
-
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;- Specified by:
getAnswerin interfaceStreamAssistResponseOrBuilder- Returns:
- The answer.
-
setAnswer
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; -
setAnswer
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; -
mergeAnswer
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; -
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; -
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; -
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;- Specified by:
getAnswerOrBuilderin interfaceStreamAssistResponseOrBuilder
-
hasSessionInfo
public boolean hasSessionInfo()Session information.
.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2;- Specified by:
hasSessionInfoin interfaceStreamAssistResponseOrBuilder- Returns:
- Whether the sessionInfo field is set.
-
getSessionInfo
Session information.
.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2;- Specified by:
getSessionInfoin interfaceStreamAssistResponseOrBuilder- Returns:
- The sessionInfo.
-
setSessionInfo
Session information.
.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; -
setSessionInfo
public StreamAssistResponse.Builder setSessionInfo(StreamAssistResponse.SessionInfo.Builder builderForValue) Session information.
.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; -
mergeSessionInfo
Session information.
.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; -
clearSessionInfo
Session information.
.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; -
getSessionInfoBuilder
Session information.
.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2; -
getSessionInfoOrBuilder
Session information.
.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2;- Specified by:
getSessionInfoOrBuilderin interfaceStreamAssistResponseOrBuilder
-
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;- Specified by:
getAssistTokenin interfaceStreamAssistResponseOrBuilder- Returns:
- The assistToken.
-
getAssistTokenBytes
public 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;- Specified by:
getAssistTokenBytesin interfaceStreamAssistResponseOrBuilder- Returns:
- The bytes for assistToken.
-
setAssistToken
A global unique ID that identifies the current pair of request and stream of responses. Used for feedback and support.
string assist_token = 4;- Parameters:
value- The assistToken to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setAssistTokenBytes
A global unique ID that identifies the current pair of request and stream of responses. Used for feedback and support.
string assist_token = 4;- Parameters:
value- The bytes for assistToken to set.- Returns:
- This builder for chaining.
-