Class ContextsClientImpl
Contexts client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Cloud.Dialogflow.V2
Assembly: Google.Cloud.Dialogflow.V2.dll
Syntax
public sealed class ContextsClientImpl : ContextsClient
Remarks
Service for managing [Contexts][google.cloud.dialogflow.v2.Context].
Constructors
ContextsClientImpl(ContextsClient, ContextsSettings, ILogger)
Constructs a client wrapper for the Contexts service, with the specified gRPC client and settings.
Declaration
public ContextsClientImpl(Contexts.ContextsClient grpcClient, ContextsSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
Contexts.ContextsClient | grpcClient | The underlying gRPC client. |
ContextsSettings | settings | The base ContextsSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC Contexts client
Declaration
public override Contexts.ContextsClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
Contexts.ContextsClient |
Overrides
LocationsClient
The Google.Cloud.Location.LocationsClient associated with this client.
Declaration
public override LocationsClient LocationsClient { get; }
Property Value
Type | Description |
---|---|
LocationsClient |
Overrides
Methods
CreateContext(CreateContextRequest, CallSettings)
Creates a context.
If the specified context already exists, overrides the context.
Declaration
public override Context CreateContext(CreateContextRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateContextRequest | request | 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)
Creates a context.
If the specified context already exists, overrides the context.
Declaration
public override Task<Context> CreateContextAsync(CreateContextRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateContextRequest | request | 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<Context> | A Task containing the RPC response. |
Overrides
DeleteAllContexts(DeleteAllContextsRequest, CallSettings)
Deletes all active contexts in the specified session.
Declaration
public override void DeleteAllContexts(DeleteAllContextsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteAllContextsRequest | request | 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)
Deletes all active contexts in the specified session.
Declaration
public override Task DeleteAllContextsAsync(DeleteAllContextsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteAllContextsRequest | request | 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)
Deletes the specified context.
Declaration
public override void DeleteContext(DeleteContextRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteContextRequest | request | 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)
Deletes the specified context.
Declaration
public override Task DeleteContextAsync(DeleteContextRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteContextRequest | request | 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)
Retrieves the specified context.
Declaration
public override Context GetContext(GetContextRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetContextRequest | request | 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)
Retrieves the specified context.
Declaration
public override Task<Context> GetContextAsync(GetContextRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetContextRequest | request | 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<Context> | A Task containing the RPC response. |
Overrides
ListContexts(ListContextsRequest, CallSettings)
Returns the list of all contexts in the specified session.
Declaration
public override PagedEnumerable<ListContextsResponse, Context> ListContexts(ListContextsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListContextsRequest | request | 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 |
---|---|
PagedEnumerable<ListContextsResponse, Context> | A pageable sequence of Context resources. |
Overrides
ListContextsAsync(ListContextsRequest, CallSettings)
Returns the list of all contexts in the specified session.
Declaration
public override PagedAsyncEnumerable<ListContextsResponse, Context> ListContextsAsync(ListContextsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListContextsRequest | request | 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 |
---|---|
PagedAsyncEnumerable<ListContextsResponse, Context> | A pageable asynchronous sequence of Context resources. |
Overrides
UpdateContext(UpdateContextRequest, CallSettings)
Updates the specified context.
Declaration
public override Context UpdateContext(UpdateContextRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateContextRequest | request | 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)
Updates the specified context.
Declaration
public override Task<Context> UpdateContextAsync(UpdateContextRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateContextRequest | request | 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<Context> | A Task containing the RPC response. |