Class Contexts.ContextsBase (3.7.0)

[BindServiceMethod(typeof(Contexts), "BindService")]
public abstract class ContextsBase

Base class for server-side implementations of Contexts

Inheritance

Object > Contexts.ContextsBase

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.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
NameDescription
requestCreateContextRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Context>

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
NameDescription
requestDeleteAllContextsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

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
NameDescription
requestDeleteContextRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

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
NameDescription
requestGetContextRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Context>

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
NameDescription
requestListContextsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListContextsResponse>

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
NameDescription
requestUpdateContextRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Context>

The response to send back to the client (wrapped by a task).