3.2.0 (latest) 3.1.0 3.0.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    [BindServiceMethod(typeof(Sessions), "BindService")]
    public abstract class Sessions.SessionsBase

Reference documentation and code samples for the Dialogflow v3 API class Sessions.SessionsBase.

Base class for server-side implementations of Sessions

## Inheritance

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

## 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.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dialogflow.Cx.V3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.md.txt)

## Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

## Methods

### DetectIntent(DetectIntentRequest, ServerCallContext)

    public virtual Task<DetectIntentResponse> DetectIntent(DetectIntentRequest request, ServerCallContext context)

Processes a natural language query and returns structured, actionable data
as a result. This method is not idempotent, because it may cause session
entity types to be updated, which in turn might affect results of future
queries.

Note: Always use agent versions for production traffic.
See [Versions and
environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DetectIntentRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskDetectIntentResponse` | The response to send back to the client (wrapped by a task). |

### FulfillIntent(FulfillIntentRequest, ServerCallContext)

    public virtual Task<FulfillIntentResponse> FulfillIntent(FulfillIntentRequest request, ServerCallContext context)

Fulfills a matched intent returned by
\[MatchIntent\]\[google.cloud.dialogflow.cx.v3.Sessions.MatchIntent\]. Must be
called after
\[MatchIntent\]\[google.cloud.dialogflow.cx.v3.Sessions.MatchIntent\], with
input from
\[MatchIntentResponse\]\[google.cloud.dialogflow.cx.v3.MatchIntentResponse\].
Otherwise, the behavior is undefined.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `FulfillIntentRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskFulfillIntentResponse` | The response to send back to the client (wrapped by a task). |

### MatchIntent(MatchIntentRequest, ServerCallContext)

    public virtual Task<MatchIntentResponse> MatchIntent(MatchIntentRequest request, ServerCallContext context)

Returns preliminary intent match results, doesn't change the session
status.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `MatchIntentRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskMatchIntentResponse` | The response to send back to the client (wrapped by a task). |

### ServerStreamingDetectIntent(DetectIntentRequest, IServerStreamWriter\<DetectIntentResponse\>, ServerCallContext)

    public virtual Task ServerStreamingDetectIntent(DetectIntentRequest request, IServerStreamWriter<DetectIntentResponse> responseStream, ServerCallContext context)

Processes a natural language query and returns structured, actionable data
as a result through server-side streaming. Server-side streaming allows
Dialogflow to send [partial
responses](https://cloud.google.com/dialogflow/cx/docs/concept/fulfillment#partial-response)
earlier in a single request.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DetectIntentRequest` The request received from the client. |
| `responseStream` | `IServerStreamWriterDetectIntentResponse` Used for sending responses back to the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A task indicating completion of the handler. |

### StreamingDetectIntent(IAsyncStreamReader\<StreamingDetectIntentRequest\>, IServerStreamWriter\<StreamingDetectIntentResponse\>, ServerCallContext)

    public virtual Task StreamingDetectIntent(IAsyncStreamReader<StreamingDetectIntentRequest> requestStream, IServerStreamWriter<StreamingDetectIntentResponse> responseStream, ServerCallContext context)

Processes a natural language query in audio format in a streaming fashion
and returns structured, actionable data as a result. This method is only
available via the gRPC API (not REST).

Note: Always use agent versions for production traffic.
See [Versions and
environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `requestStream` | `IAsyncStreamReaderStreamingDetectIntentRequest` Used for reading requests from the client. |
| `responseStream` | `IServerStreamWriterStreamingDetectIntentResponse` Used for sending responses back to the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A task indicating completion of the handler. |

### SubmitAnswerFeedback(SubmitAnswerFeedbackRequest, ServerCallContext)

    public virtual Task<AnswerFeedback> SubmitAnswerFeedback(SubmitAnswerFeedbackRequest request, ServerCallContext context)

Updates the feedback received from the user for a single turn of the bot
response.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `SubmitAnswerFeedbackRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskAnswerFeedback` | The response to send back to the client (wrapped by a task). |