Class Agents.AgentsBase (1.0.0)

[BindServiceMethod(typeof(Agents), "BindService")]
public abstract class AgentsBase

Base class for server-side implementations of Agents

Inheritance

System.Object > Agents.AgentsBase

Namespace

Google.Cloud.Dialogflow.Cx.V3

Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

Methods

CreateAgent(CreateAgentRequest, ServerCallContext)

public virtual Task<Agent> CreateAgent(CreateAgentRequest request, ServerCallContext context)

Creates an agent in the specified location.

Parameters
NameDescription
requestCreateAgentRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Agent>

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

DeleteAgent(DeleteAgentRequest, ServerCallContext)

public virtual Task<Empty> DeleteAgent(DeleteAgentRequest request, ServerCallContext context)

Deletes the specified agent.

Parameters
NameDescription
requestDeleteAgentRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Google.Protobuf.WellKnownTypes.Empty>

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

ExportAgent(ExportAgentRequest, ServerCallContext)

public virtual Task<Operation> ExportAgent(ExportAgentRequest request, ServerCallContext context)

Exports the specified agent to a binary file.

Parameters
NameDescription
requestExportAgentRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Google.LongRunning.Operation>

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

GetAgent(GetAgentRequest, ServerCallContext)

public virtual Task<Agent> GetAgent(GetAgentRequest request, ServerCallContext context)

Retrieves the specified agent.

Parameters
NameDescription
requestGetAgentRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Agent>

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

ListAgents(ListAgentsRequest, ServerCallContext)

public virtual Task<ListAgentsResponse> ListAgents(ListAgentsRequest request, ServerCallContext context)

Returns the list of all agents in the specified location.

Parameters
NameDescription
requestListAgentsRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<ListAgentsResponse>

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

RestoreAgent(RestoreAgentRequest, ServerCallContext)

public virtual Task<Operation> RestoreAgent(RestoreAgentRequest request, ServerCallContext context)

Restores the specified agent from a binary file.

Replaces the current agent with a new one. Note that all existing resources in agent (e.g. intents, entity types, flows) will be removed.

Parameters
NameDescription
requestRestoreAgentRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Google.LongRunning.Operation>

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

UpdateAgent(UpdateAgentRequest, ServerCallContext)

public virtual Task<Agent> UpdateAgent(UpdateAgentRequest request, ServerCallContext context)

Updates the specified agent.

Parameters
NameDescription
requestUpdateAgentRequest

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Agent>

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