Google Cloud Dialogflow v2beta1 API - Class ContextsClientImpl (1.0.0-beta20)

public sealed class ContextsClientImpl : ContextsClient

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

Contexts client wrapper implementation, for convenient use.

Inheritance

object > ContextsClient > ContextsClientImpl

Namespace

Google.Cloud.Dialogflow.V2Beta1

Assembly

Google.Cloud.Dialogflow.V2Beta1.dll

Remarks

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

Constructors

ContextsClientImpl(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
Name Description
grpcClient ContextsContextsClient

The underlying gRPC client.

settings ContextsSettings

The base ContextsSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override Contexts.ContextsClient GrpcClient { get; }

The underlying gRPC Contexts client

Property Value
Type Description
ContextsContextsClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
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
Name Description
request CreateContextRequest

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
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
Name Description
request CreateContextRequest

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
TaskContext

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
Name Description
request DeleteAllContextsRequest

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

callSettings CallSettings

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
Name Description
request DeleteAllContextsRequest

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

A Task containing the RPC response.

Overrides

DeleteContext(DeleteContextRequest, CallSettings)

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

Deletes the specified context.

Parameters
Name Description
request DeleteContextRequest

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

callSettings CallSettings

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
Name Description
request DeleteContextRequest

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

A Task containing the RPC response.

Overrides

GetContext(GetContextRequest, CallSettings)

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

Retrieves the specified context.

Parameters
Name Description
request GetContextRequest

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
Context

The RPC response.

Overrides

GetContextAsync(GetContextRequest, CallSettings)

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

Retrieves the specified context.

Parameters
Name Description
request GetContextRequest

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
TaskContext

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
Name Description
request ListContextsRequest

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
PagedEnumerableListContextsResponseContext

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
Name Description
request ListContextsRequest

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
PagedAsyncEnumerableListContextsResponseContext

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
Name Description
request UpdateContextRequest

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
Context

The RPC response.

Overrides

UpdateContextAsync(UpdateContextRequest, CallSettings)

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

Updates the specified context.

Parameters
Name Description
request UpdateContextRequest

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
TaskContext

A Task containing the RPC response.

Overrides