@Generated
public interface StreamAssistRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
StreamAssistRequest.GenerationSpec |
getGenerationSpec()
Optional.
|
StreamAssistRequest.GenerationSpecOrBuilder |
getGenerationSpecOrBuilder()
Optional.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
Query |
getQuery()
Optional.
|
QueryOrBuilder |
getQueryOrBuilder()
Optional.
|
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.
|
boolean |
hasQuery()
Optional.
|
boolean |
hasToolsSpec()
Optional.
|
boolean |
hasUserMetadata()
Optional.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString 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) = { ... }
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) = { ... }
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];
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];
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];
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) = { ... }
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) = { ... }
boolean hasUserMetadata()
Optional. Information about the user initiating the query.
.google.cloud.discoveryengine.v1.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
AssistUserMetadata getUserMetadata()
Optional. Information about the user initiating the query.
.google.cloud.discoveryengine.v1.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
AssistUserMetadataOrBuilder getUserMetadataOrBuilder()
Optional. Information about the user initiating the query.
.google.cloud.discoveryengine.v1.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL];
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];
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];
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];
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];
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];
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];
Copyright © 2026 Google LLC. All rights reserved.