Class Flows.FlowsBase (2.1.0)

[BindServiceMethod(typeof(Flows), "BindService")]
public abstract class FlowsBase

Base class for server-side implementations of Flows

Inheritance

Object > Flows.FlowsBase

Namespace

Google.Cloud.Dialogflow.Cx.V3

Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

Methods

CreateFlow(CreateFlowRequest, ServerCallContext)

public virtual Task<Flow> CreateFlow(CreateFlowRequest request, ServerCallContext context)

Creates a flow in the specified agent.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestCreateFlowRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Flow>

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

DeleteFlow(DeleteFlowRequest, ServerCallContext)

public virtual Task<Empty> DeleteFlow(DeleteFlowRequest request, ServerCallContext context)

Deletes a specified flow.

Parameters
NameDescription
requestDeleteFlowRequest

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).

ExportFlow(ExportFlowRequest, ServerCallContext)

public virtual Task<Operation> ExportFlow(ExportFlowRequest request, ServerCallContext context)

Exports the specified flow to a binary file.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

  • metadata: An empty Struct message
  • response: [ExportFlowResponse][google.cloud.dialogflow.cx.v3.ExportFlowResponse]

Note that resources (e.g. intents, entities, webhooks) that the flow references will also be exported.

Parameters
NameDescription
requestExportFlowRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

GetFlow(GetFlowRequest, ServerCallContext)

public virtual Task<Flow> GetFlow(GetFlowRequest request, ServerCallContext context)

Retrieves the specified flow.

Parameters
NameDescription
requestGetFlowRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Flow>

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

GetFlowValidationResult(GetFlowValidationResultRequest, ServerCallContext)

public virtual Task<FlowValidationResult> GetFlowValidationResult(GetFlowValidationResultRequest request, ServerCallContext context)

Gets the latest flow validation result. Flow validation is performed when ValidateFlow is called.

Parameters
NameDescription
requestGetFlowValidationResultRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<FlowValidationResult>

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

ImportFlow(ImportFlowRequest, ServerCallContext)

public virtual Task<Operation> ImportFlow(ImportFlowRequest request, ServerCallContext context)

Imports the specified flow to the specified agent from a binary file.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

  • metadata: An empty Struct message
  • response: [ImportFlowResponse][google.cloud.dialogflow.cx.v3.ImportFlowResponse]

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestImportFlowRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

ListFlows(ListFlowsRequest, ServerCallContext)

public virtual Task<ListFlowsResponse> ListFlows(ListFlowsRequest request, ServerCallContext context)

Returns the list of all flows in the specified agent.

Parameters
NameDescription
requestListFlowsRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<ListFlowsResponse>

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

TrainFlow(TrainFlowRequest, ServerCallContext)

public virtual Task<Operation> TrainFlow(TrainFlowRequest request, ServerCallContext context)

Trains the specified flow. Note that only the flow in 'draft' environment is trained.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestTrainFlowRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Operation>

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

UpdateFlow(UpdateFlowRequest, ServerCallContext)

public virtual Task<Flow> UpdateFlow(UpdateFlowRequest request, ServerCallContext context)

Updates the specified flow.

Note: You should always train a flow prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestUpdateFlowRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Flow>

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

ValidateFlow(ValidateFlowRequest, ServerCallContext)

public virtual Task<FlowValidationResult> ValidateFlow(ValidateFlowRequest request, ServerCallContext context)

Validates the specified flow and creates or updates validation results. Please call this API after the training is completed to get the complete validation results.

Parameters
NameDescription
requestValidateFlowRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<FlowValidationResult>

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