Google Cloud Dialogflow v2 API - Class ContextsClientImpl (4.8.0)

public sealed class ContextsClientImpl : ContextsClient

Reference documentation and code samples for the Google Cloud Dialogflow v2 API class ContextsClientImpl.

Contexts client wrapper implementation, for convenient use.

Inheritance

Object > ContextsClient > ContextsClientImpl

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Remarks

Service for managing [Contexts][google.cloud.dialogflow.v2.Context].

Constructors

ContextsClientImpl(Contexts.ContextsClient, ContextsSettings, ILogger)

public ContextsClientImpl(Contexts.ContextsClient grpcClient, ContextsSettings settings, ILogger logger)

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

Parameters
NameDescription
grpcClientContexts.ContextsClient

The underlying gRPC client.

settingsContextsSettings

The base ContextsSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override Contexts.ContextsClient GrpcClient { get; }

The underlying gRPC Contexts client

Property Value
TypeDescription
Contexts.ContextsClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient
Overrides

Methods

CreateContext(CreateContextRequest, CallSettings)

public override Context CreateContext(CreateContextRequest request, CallSettings callSettings = null)

Creates a context.

If the specified context already exists, overrides the context.

Parameters
NameDescription
requestCreateContextRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Context

The RPC response.

Overrides

CreateContextAsync(CreateContextRequest, CallSettings)

public override Task<Context> CreateContextAsync(CreateContextRequest request, CallSettings callSettings = null)

Creates a context.

If the specified context already exists, overrides the context.

Parameters
NameDescription
requestCreateContextRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Context>

A Task containing the RPC response.

Overrides

DeleteAllContexts(DeleteAllContextsRequest, CallSettings)

public override void DeleteAllContexts(DeleteAllContextsRequest request, CallSettings callSettings = null)

Deletes all active contexts in the specified session.

Parameters
NameDescription
requestDeleteAllContextsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteAllContextsAsync(DeleteAllContextsRequest, CallSettings)

public override Task DeleteAllContextsAsync(DeleteAllContextsRequest request, CallSettings callSettings = null)

Deletes all active contexts in the specified session.

Parameters
NameDescription
requestDeleteAllContextsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Overrides

DeleteContext(DeleteContextRequest, CallSettings)

public override void DeleteContext(DeleteContextRequest request, CallSettings callSettings = null)

Deletes the specified context.

Parameters
NameDescription
requestDeleteContextRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteContextAsync(DeleteContextRequest, CallSettings)

public override Task DeleteContextAsync(DeleteContextRequest request, CallSettings callSettings = null)

Deletes the specified context.

Parameters
NameDescription
requestDeleteContextRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Overrides

GetContext(GetContextRequest, CallSettings)

public override Context GetContext(GetContextRequest request, CallSettings callSettings = null)

Retrieves the specified context.

Parameters
NameDescription
requestGetContextRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Context

The RPC response.

Overrides

GetContextAsync(GetContextRequest, CallSettings)

public override Task<Context> GetContextAsync(GetContextRequest request, CallSettings callSettings = null)

Retrieves the specified context.

Parameters
NameDescription
requestGetContextRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Context>

A Task containing the RPC response.

Overrides

ListContexts(ListContextsRequest, CallSettings)

public override PagedEnumerable<ListContextsResponse, Context> ListContexts(ListContextsRequest request, CallSettings callSettings = null)

Returns the list of all contexts in the specified session.

Parameters
NameDescription
requestListContextsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListContextsResponse, Context>

A pageable sequence of Context resources.

Overrides

ListContextsAsync(ListContextsRequest, CallSettings)

public override PagedAsyncEnumerable<ListContextsResponse, Context> ListContextsAsync(ListContextsRequest request, CallSettings callSettings = null)

Returns the list of all contexts in the specified session.

Parameters
NameDescription
requestListContextsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListContextsResponse, Context>

A pageable asynchronous sequence of Context resources.

Overrides

UpdateContext(UpdateContextRequest, CallSettings)

public override Context UpdateContext(UpdateContextRequest request, CallSettings callSettings = null)

Updates the specified context.

Parameters
NameDescription
requestUpdateContextRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Context

The RPC response.

Overrides

UpdateContextAsync(UpdateContextRequest, CallSettings)

public override Task<Context> UpdateContextAsync(UpdateContextRequest request, CallSettings callSettings = null)

Updates the specified context.

Parameters
NameDescription
requestUpdateContextRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Context>

A Task containing the RPC response.

Overrides