public static final class StreamAssistRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<StreamAssistRequest.Builder> implements StreamAssistRequestOrBuilder
Request for the [AssistantService.StreamAssist][google.cloud.discoveryengine.v1.AssistantService.StreamAssist] method.Protobuf type
google.cloud.discoveryengine.v1.StreamAssistRequestaddRepeatedField, 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<StreamAssistRequest.Builder>public StreamAssistRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<StreamAssistRequest.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<StreamAssistRequest.Builder>public StreamAssistRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic StreamAssistRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic StreamAssistRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic StreamAssistRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamAssistRequest.Builder>public StreamAssistRequest.Builder mergeFrom(StreamAssistRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<StreamAssistRequest.Builder>public StreamAssistRequest.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<StreamAssistRequest.Builder>IOExceptionpublic 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 StreamAssistRequest.Builder setName(String value)
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) = { ... }
value - The name to set.public StreamAssistRequest.Builder clearName()
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) = { ... }
public StreamAssistRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
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) = { ... }
value - The bytes for name to set.public 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 StreamAssistRequest.Builder setQuery(Query value)
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];
public StreamAssistRequest.Builder setQuery(Query.Builder builderForValue)
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];
public StreamAssistRequest.Builder mergeQuery(Query value)
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];
public StreamAssistRequest.Builder clearQuery()
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];
public Query.Builder getQueryBuilder()
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];
public 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 StreamAssistRequest.Builder setSession(String value)
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) = { ... }
value - The session to set.public StreamAssistRequest.Builder clearSession()
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) = { ... }
public StreamAssistRequest.Builder setSessionBytes(com.google.protobuf.ByteString value)
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) = { ... }
value - The bytes for session to set.public 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 StreamAssistRequest.Builder setUserMetadata(AssistUserMetadata value)
Optional. Information about the user initiating the query.
.google.cloud.discoveryengine.v1.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
public StreamAssistRequest.Builder setUserMetadata(AssistUserMetadata.Builder builderForValue)
Optional. Information about the user initiating the query.
.google.cloud.discoveryengine.v1.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
public StreamAssistRequest.Builder mergeUserMetadata(AssistUserMetadata value)
Optional. Information about the user initiating the query.
.google.cloud.discoveryengine.v1.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
public StreamAssistRequest.Builder clearUserMetadata()
Optional. Information about the user initiating the query.
.google.cloud.discoveryengine.v1.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
public AssistUserMetadata.Builder getUserMetadataBuilder()
Optional. Information about the user initiating the query.
.google.cloud.discoveryengine.v1.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
public 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.Builder setToolsSpec(StreamAssistRequest.ToolsSpec value)
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];
public StreamAssistRequest.Builder setToolsSpec(StreamAssistRequest.ToolsSpec.Builder builderForValue)
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];
public StreamAssistRequest.Builder mergeToolsSpec(StreamAssistRequest.ToolsSpec value)
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];
public StreamAssistRequest.Builder clearToolsSpec()
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];
public StreamAssistRequest.ToolsSpec.Builder getToolsSpecBuilder()
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];
public 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.Builder setGenerationSpec(StreamAssistRequest.GenerationSpec value)
Optional. Specification of the generation configuration for the request.
.google.cloud.discoveryengine.v1.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL];
public StreamAssistRequest.Builder setGenerationSpec(StreamAssistRequest.GenerationSpec.Builder builderForValue)
Optional. Specification of the generation configuration for the request.
.google.cloud.discoveryengine.v1.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL];
public StreamAssistRequest.Builder mergeGenerationSpec(StreamAssistRequest.GenerationSpec value)
Optional. Specification of the generation configuration for the request.
.google.cloud.discoveryengine.v1.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL];
public StreamAssistRequest.Builder clearGenerationSpec()
Optional. Specification of the generation configuration for the request.
.google.cloud.discoveryengine.v1.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL];
public StreamAssistRequest.GenerationSpec.Builder getGenerationSpecBuilder()
Optional. Specification of the generation configuration for the request.
.google.cloud.discoveryengine.v1.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL];
public 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 StreamAssistRequestOrBuilderCopyright © 2026 Google LLC. All rights reserved.