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.
Inherited Members
Namespace
Google.Cloud.Dialogflow.V2Assembly
Google.Cloud.Dialogflow.V2.dll
Remarks
Service for managing [Contexts][google.cloud.dialogflow.v2.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 |
LocationsClient
public override LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |