[BindServiceMethod(typeof(Contexts), "BindService")]
public abstract class Contexts.ContextsBaseReference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class Contexts.ContextsBase.
Base class for server-side implementations of Contexts
Namespace
Google.Cloud.Dialogflow.V2Beta1Assembly
Google.Cloud.Dialogflow.V2Beta1.dll
Methods
CreateContext(CreateContextRequest, ServerCallContext)
public virtual Task<Context> CreateContext(CreateContextRequest request, ServerCallContext context)Creates a context.
If the specified context already exists, overrides the context.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateContextRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskContext |
The response to send back to the client (wrapped by a task). |
DeleteAllContexts(DeleteAllContextsRequest, ServerCallContext)
public virtual Task<Empty> DeleteAllContexts(DeleteAllContextsRequest request, ServerCallContext context)Deletes all active contexts in the specified session.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteAllContextsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskEmpty |
The response to send back to the client (wrapped by a task). |
DeleteContext(DeleteContextRequest, ServerCallContext)
public virtual Task<Empty> DeleteContext(DeleteContextRequest request, ServerCallContext context)Deletes the specified context.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteContextRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskEmpty |
The response to send back to the client (wrapped by a task). |
GetContext(GetContextRequest, ServerCallContext)
public virtual Task<Context> GetContext(GetContextRequest request, ServerCallContext context)Retrieves the specified context.
| Parameters | |
|---|---|
| Name | Description |
request |
GetContextRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskContext |
The response to send back to the client (wrapped by a task). |
ListContexts(ListContextsRequest, ServerCallContext)
public virtual Task<ListContextsResponse> ListContexts(ListContextsRequest request, ServerCallContext context)Returns the list of all contexts in the specified session.
| Parameters | |
|---|---|
| Name | Description |
request |
ListContextsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskListContextsResponse |
The response to send back to the client (wrapped by a task). |
UpdateContext(UpdateContextRequest, ServerCallContext)
public virtual Task<Context> UpdateContext(UpdateContextRequest request, ServerCallContext context)Updates the specified context.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateContextRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskContext |
The response to send back to the client (wrapped by a task). |