@Generated public final class StreamAssistRequest extends com.google.protobuf.GeneratedMessage implements StreamAssistRequestOrBuilder
Request for the [AssistantService.StreamAssist][google.cloud.discoveryengine.v1.AssistantService.StreamAssist] method.Protobuf type
google.cloud.discoveryengine.v1.StreamAssistRequest| Modifier and Type | Class and Description |
|---|---|
static class |
StreamAssistRequest.Builder
Request for the
[AssistantService.StreamAssist][google.cloud.discoveryengine.v1.AssistantService.StreamAssist]
method.
|
static class |
StreamAssistRequest.GenerationSpec
Assistant generation specification for the request.
|
static interface |
StreamAssistRequest.GenerationSpecOrBuilder |
static class |
StreamAssistRequest.ToolsSpec
Specification of tools that are used to serve the request.
|
static interface |
StreamAssistRequest.ToolsSpecOrBuilder |
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 |
GENERATION_SPEC_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
QUERY_FIELD_NUMBER |
static int |
SESSION_FIELD_NUMBER |
static int |
TOOLS_SPEC_FIELD_NUMBER |
static int |
USER_METADATA_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static StreamAssistRequest |
getDefaultInstance() |
StreamAssistRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
StreamAssistRequest.GenerationSpec |
getGenerationSpec()
Optional.
|
StreamAssistRequest.GenerationSpecOrBuilder |
getGenerationSpecOrBuilder()
Optional.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
com.google.protobuf.Parser<StreamAssistRequest> |
getParserForType() |
Query |
getQuery()
Optional.
|
QueryOrBuilder |
getQueryOrBuilder()
Optional.
|
int |
getSerializedSize() |
String |
getSession()
Optional.
|
com.google.protobuf.ByteString |
getSessionBytes()
Optional.
|
StreamAssistRequest.ToolsSpec |
getToolsSpec()
Optional.
|
StreamAssistRequest.ToolsSpecOrBuilder |
getToolsSpecOrBuilder()
Optional.
|
AssistUserMetadata |
getUserMetadata()
Optional.
|
AssistUserMetadataOrBuilder |
getUserMetadataOrBuilder()
Optional.
|
boolean |
hasGenerationSpec()
Optional.
|
int |
hashCode() |
boolean |
hasQuery()
Optional.
|
boolean |
hasToolsSpec()
Optional.
|
boolean |
hasUserMetadata()
Optional.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static StreamAssistRequest.Builder |
newBuilder() |
static StreamAssistRequest.Builder |
newBuilder(StreamAssistRequest prototype) |
StreamAssistRequest.Builder |
newBuilderForType() |
protected StreamAssistRequest.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static StreamAssistRequest |
parseDelimitedFrom(InputStream input) |
static StreamAssistRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamAssistRequest |
parseFrom(byte[] data) |
static StreamAssistRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamAssistRequest |
parseFrom(ByteBuffer data) |
static StreamAssistRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamAssistRequest |
parseFrom(com.google.protobuf.ByteString data) |
static StreamAssistRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamAssistRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static StreamAssistRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamAssistRequest |
parseFrom(InputStream input) |
static StreamAssistRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<StreamAssistRequest> |
parser() |
StreamAssistRequest.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 NAME_FIELD_NUMBER
public static final int QUERY_FIELD_NUMBER
public static final int SESSION_FIELD_NUMBER
public static final int USER_METADATA_FIELD_NUMBER
public static final int TOOLS_SPEC_FIELD_NUMBER
public static final int GENERATION_SPEC_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 String getName()
Required. The resource name of the
[Assistant][google.cloud.discoveryengine.v1.Assistant]. Format:
`projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getName in interface StreamAssistRequestOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. The resource name of the
[Assistant][google.cloud.discoveryengine.v1.Assistant]. Format:
`projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getNameBytes in interface StreamAssistRequestOrBuilderpublic boolean hasQuery()
Optional. Current user query. Empty query is only supported if `file_ids` are provided. In this case, the answer will be generated based on those context files.
.google.cloud.discoveryengine.v1.Query query = 2 [(.google.api.field_behavior) = OPTIONAL];
hasQuery in interface StreamAssistRequestOrBuilderpublic Query getQuery()
Optional. Current user query. Empty query is only supported if `file_ids` are provided. In this case, the answer will be generated based on those context files.
.google.cloud.discoveryengine.v1.Query query = 2 [(.google.api.field_behavior) = OPTIONAL];
getQuery in interface StreamAssistRequestOrBuilderpublic QueryOrBuilder getQueryOrBuilder()
Optional. Current user query. Empty query is only supported if `file_ids` are provided. In this case, the answer will be generated based on those context files.
.google.cloud.discoveryengine.v1.Query query = 2 [(.google.api.field_behavior) = OPTIONAL];
getQueryOrBuilder in interface StreamAssistRequestOrBuilderpublic String getSession()
Optional. The session to use for the request. If specified, the assistant
has access to the session history, and the query and the answer are stored
there.
If `-` is specified as the session ID, or it is left empty, then a new
session is created with an automatically generated ID.
Format:
`projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`
string session = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getSession in interface StreamAssistRequestOrBuilderpublic com.google.protobuf.ByteString getSessionBytes()
Optional. The session to use for the request. If specified, the assistant
has access to the session history, and the query and the answer are stored
there.
If `-` is specified as the session ID, or it is left empty, then a new
session is created with an automatically generated ID.
Format:
`projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`
string session = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getSessionBytes in interface StreamAssistRequestOrBuilderpublic boolean hasUserMetadata()
Optional. Information about the user initiating the query.
.google.cloud.discoveryengine.v1.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
hasUserMetadata in interface StreamAssistRequestOrBuilderpublic AssistUserMetadata getUserMetadata()
Optional. Information about the user initiating the query.
.google.cloud.discoveryengine.v1.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
getUserMetadata in interface StreamAssistRequestOrBuilderpublic AssistUserMetadataOrBuilder getUserMetadataOrBuilder()
Optional. Information about the user initiating the query.
.google.cloud.discoveryengine.v1.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
getUserMetadataOrBuilder in interface StreamAssistRequestOrBuilderpublic boolean hasToolsSpec()
Optional. Specification of tools that are used to serve the request.
.google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec tools_spec = 18 [(.google.api.field_behavior) = OPTIONAL];
hasToolsSpec in interface StreamAssistRequestOrBuilderpublic StreamAssistRequest.ToolsSpec getToolsSpec()
Optional. Specification of tools that are used to serve the request.
.google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec tools_spec = 18 [(.google.api.field_behavior) = OPTIONAL];
getToolsSpec in interface StreamAssistRequestOrBuilderpublic StreamAssistRequest.ToolsSpecOrBuilder getToolsSpecOrBuilder()
Optional. Specification of tools that are used to serve the request.
.google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec tools_spec = 18 [(.google.api.field_behavior) = OPTIONAL];
getToolsSpecOrBuilder in interface StreamAssistRequestOrBuilderpublic boolean hasGenerationSpec()
Optional. Specification of the generation configuration for the request.
.google.cloud.discoveryengine.v1.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL];
hasGenerationSpec in interface StreamAssistRequestOrBuilderpublic StreamAssistRequest.GenerationSpec getGenerationSpec()
Optional. Specification of the generation configuration for the request.
.google.cloud.discoveryengine.v1.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL];
getGenerationSpec in interface StreamAssistRequestOrBuilderpublic StreamAssistRequest.GenerationSpecOrBuilder getGenerationSpecOrBuilder()
Optional. Specification of the generation configuration for the request.
.google.cloud.discoveryengine.v1.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL];
getGenerationSpecOrBuilder in interface StreamAssistRequestOrBuilderpublic 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 StreamAssistRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamAssistRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamAssistRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamAssistRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamAssistRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamAssistRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamAssistRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static StreamAssistRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static StreamAssistRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static StreamAssistRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static StreamAssistRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static StreamAssistRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic StreamAssistRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static StreamAssistRequest.Builder newBuilder()
public static StreamAssistRequest.Builder newBuilder(StreamAssistRequest prototype)
public StreamAssistRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected StreamAssistRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static StreamAssistRequest getDefaultInstance()
public static com.google.protobuf.Parser<StreamAssistRequest> parser()
public com.google.protobuf.Parser<StreamAssistRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic StreamAssistRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2026 Google LLC. All rights reserved.