Class SessionsClientImpl (3.6.0)

public sealed class SessionsClientImpl : SessionsClient

Sessions client wrapper implementation, for convenient use.

Inheritance

Object > SessionsClient > SessionsClientImpl

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Remarks

A service used for session interactions.

For more information, see the API interactions guide.

Constructors

SessionsClientImpl(Sessions.SessionsClient, SessionsSettings)

public SessionsClientImpl(Sessions.SessionsClient grpcClient, SessionsSettings settings)

Constructs a client wrapper for the Sessions service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient Sessions.SessionsClient

The underlying gRPC client.

settings SessionsSettings

The base SessionsSettings used within this client.

Properties

GrpcClient

public override Sessions.SessionsClient GrpcClient { get; }

The underlying gRPC Sessions client

Property Value
Type Description
Sessions.SessionsClient
Overrides

Methods

DetectIntent(DetectIntentRequest, CallSettings)

public override DetectIntentResponse DetectIntent(DetectIntentRequest request, CallSettings callSettings = null)

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

If you might use Agent Assist or other CCAI products now or in the future, consider using [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] instead of DetectIntent. AnalyzeContent has additional functionality for Agent Assist and other CCAI products.

Note: Always use agent versions for production traffic. See Versions and environments.

Parameters
Name Description
request DetectIntentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DetectIntentResponse

The RPC response.

Overrides

DetectIntentAsync(DetectIntentRequest, CallSettings)

public override Task<DetectIntentResponse> DetectIntentAsync(DetectIntentRequest request, CallSettings callSettings = null)

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

If you might use Agent Assist or other CCAI products now or in the future, consider using [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] instead of DetectIntent. AnalyzeContent has additional functionality for Agent Assist and other CCAI products.

Note: Always use agent versions for production traffic. See Versions and environments.

Parameters
Name Description
request DetectIntentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<DetectIntentResponse>

A Task containing the RPC response.

Overrides

StreamingDetectIntent(CallSettings, BidirectionalStreamingSettings)

public override SessionsClient.StreamingDetectIntentStream StreamingDetectIntent(CallSettings callSettings = null, BidirectionalStreamingSettings streamingSettings = null)

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).

If you might use Agent Assist or other CCAI products now or in the future, consider using [StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent] instead of StreamingDetectIntent. StreamingAnalyzeContent has additional functionality for Agent Assist and other CCAI products.

Note: Always use agent versions for production traffic. See Versions and environments.

Parameters
Name Description
callSettings CallSettings

If not null, applies overrides to this RPC call.

streamingSettings BidirectionalStreamingSettings

If not null, applies streaming overrides to this RPC call.

Returns
Type Description
SessionsClient.StreamingDetectIntentStream

The client-server stream.

Overrides