public final class StreamAssistResponse extends GeneratedMessage implements StreamAssistResponseOrBuilder
Response for the
AssistantService.StreamAssist
method.
Protobuf type google.cloud.discoveryengine.v1.StreamAssistResponse
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
ANSWER_FIELD_NUMBER
public static final int ANSWER_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ASSIST_TOKEN_FIELD_NUMBER
public static final int ASSIST_TOKEN_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SESSION_INFO_FIELD_NUMBER
public static final int SESSION_INFO_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static StreamAssistResponse getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static StreamAssistResponse.Builder newBuilder()
newBuilder(StreamAssistResponse prototype)
public static StreamAssistResponse.Builder newBuilder(StreamAssistResponse prototype)
public static StreamAssistResponse parseDelimitedFrom(InputStream input)
public static StreamAssistResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static StreamAssistResponse parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static StreamAssistResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static StreamAssistResponse parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static StreamAssistResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static StreamAssistResponse parseFrom(CodedInputStream input)
public static StreamAssistResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static StreamAssistResponse parseFrom(InputStream input)
public static StreamAssistResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static StreamAssistResponse parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static StreamAssistResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<StreamAssistResponse> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAnswer()
public 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.
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.
.google.cloud.discoveryengine.v1.AssistAnswer answer = 1;
getAnswerOrBuilder()
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.
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.
.google.cloud.discoveryengine.v1.AssistAnswer answer = 1;
getAssistToken()
public 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;
| Returns |
| Type |
Description |
String |
The assistToken.
|
getAssistTokenBytes()
public 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;
| Returns |
| Type |
Description |
ByteString |
The bytes for assistToken.
|
getDefaultInstanceForType()
public StreamAssistResponse getDefaultInstanceForType()
getParserForType()
public Parser<StreamAssistResponse> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getSessionInfo()
public StreamAssistResponse.SessionInfo getSessionInfo()
Session information.
.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2;
getSessionInfoOrBuilder()
public StreamAssistResponse.SessionInfoOrBuilder getSessionInfoOrBuilder()
Session information.
.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2;
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.
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.
.google.cloud.discoveryengine.v1.AssistAnswer answer = 1;
| Returns |
| Type |
Description |
boolean |
Whether the answer field is set.
|
hasSessionInfo()
public boolean hasSessionInfo()
Session information.
.google.cloud.discoveryengine.v1.StreamAssistResponse.SessionInfo session_info = 2;
| Returns |
| Type |
Description |
boolean |
Whether the sessionInfo field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public StreamAssistResponse.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected StreamAssistResponse.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public StreamAssistResponse.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides