1.0.0-beta25 (latest) 1.0.0-beta24

    public sealed class StreamAssistRequest : IMessage<StreamAssistRequest>, IEquatable<StreamAssistRequest>, IDeepCloneable<StreamAssistRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Discovery Engine v1beta API class StreamAssistRequest.

Request for the
\[AssistantService.StreamAssist\]\[google.cloud.discoveryengine.v1beta.AssistantService.StreamAssist\]
method.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> StreamAssistRequest

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[StreamAssistRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[StreamAssistRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[StreamAssistRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DiscoveryEngine.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)

## Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

## Constructors

### StreamAssistRequest()

    public StreamAssistRequest()

### StreamAssistRequest(StreamAssistRequest)

    public StreamAssistRequest(StreamAssistRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistRequest` |

## Properties

### AgentsSpec

    public StreamAssistRequest.Types.AgentsSpec AgentsSpec { get; set; }

Optional. Specification of agents that are used to serve the request.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistRequest.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistRequest.Types.AgentsSpec` |   |

### AssistantName

    public AssistantName AssistantName { get; set; }

[AssistantName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistantName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistRequest#Google_Cloud_DiscoveryEngine_V1Beta_StreamAssistRequest_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistantName` |   |

### GenerationSpec

    public StreamAssistRequest.Types.GenerationSpec GenerationSpec { get; set; }

Optional. Specification of the generation configuration for the request.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistRequest.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistRequest.Types.GenerationSpec` |   |

### Name

    public string Name { get; set; }

Required. The resource name of the
\[Assistant\]\[google.cloud.discoveryengine.v1beta.Assistant\]. Format:
`projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Query

    public Query Query { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Query` |   |

### Session

    public string Session { get; set; }

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}`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### SessionAsSessionName

    public SessionName SessionAsSessionName { get; set; }

[SessionName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionName)-typed view over the [Session](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistRequest#Google_Cloud_DiscoveryEngine_V1Beta_StreamAssistRequest_Session) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionName` |   |

### ToolsSpec

    public StreamAssistRequest.Types.ToolsSpec ToolsSpec { get; set; }

Optional. Specification of tools that are used to serve the request.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistRequest.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistRequest.Types.ToolsSpec` |   |

### UserMetadata

    public AssistUserMetadata UserMetadata { get; set; }

Optional. Information about the user initiating the query.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.AssistUserMetadata` |   |