Class Flows.FlowsClient (1.7.0)

public class FlowsClient : ClientBase<Flows.FlowsClient>

Client for Flows

Inheritance

Object > ClientBase > ClientBase<Flows.FlowsClient> > Flows.FlowsClient

Namespace

Google.Cloud.Dialogflow.Cx.V3

Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

Constructors

FlowsClient()

protected FlowsClient()

Protected parameterless constructor to allow creation of test doubles.

FlowsClient(CallInvoker)

public FlowsClient(CallInvoker callInvoker)

Creates a new client for Flows that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

FlowsClient(ChannelBase)

public FlowsClient(ChannelBase channel)

Creates a new client for Flows

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

FlowsClient(ClientBase.ClientBaseConfiguration)

protected FlowsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

CreateFlow(CreateFlowRequest, CallOptions)

public virtual Flow CreateFlow(CreateFlowRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Flow

The response received from the server.

CreateFlow(CreateFlowRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Flow CreateFlow(CreateFlowRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Flow

The response received from the server.

CreateFlowAsync(CreateFlowRequest, CallOptions)

public virtual AsyncUnaryCall<Flow> CreateFlowAsync(CreateFlowRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Flow>

The call object.

CreateFlowAsync(CreateFlowRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Flow> CreateFlowAsync(CreateFlowRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Flow>

The call object.

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client.

Returns
TypeDescription
Operations.OperationsClient

A new Operations client for the same target as this client.

DeleteFlow(DeleteFlowRequest, CallOptions)

public virtual Empty DeleteFlow(DeleteFlowRequest request, CallOptions options)

Deletes a specified flow.

Parameters
NameDescription
requestDeleteFlowRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteFlow(DeleteFlowRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Empty DeleteFlow(DeleteFlowRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Deletes a specified flow.

Parameters
NameDescription
requestDeleteFlowRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteFlowAsync(DeleteFlowRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteFlowAsync(DeleteFlowRequest request, CallOptions options)

Deletes a specified flow.

Parameters
NameDescription
requestDeleteFlowRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

DeleteFlowAsync(DeleteFlowRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteFlowAsync(DeleteFlowRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Deletes a specified flow.

Parameters
NameDescription
requestDeleteFlowRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

ExportFlow(ExportFlowRequest, CallOptions)

public virtual Operation ExportFlow(ExportFlowRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

ExportFlow(ExportFlowRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation ExportFlow(ExportFlowRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

ExportFlowAsync(ExportFlowRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> ExportFlowAsync(ExportFlowRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

ExportFlowAsync(ExportFlowRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> ExportFlowAsync(ExportFlowRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

GetFlow(GetFlowRequest, CallOptions)

public virtual Flow GetFlow(GetFlowRequest request, CallOptions options)

Retrieves the specified flow.

Parameters
NameDescription
requestGetFlowRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Flow

The response received from the server.

GetFlow(GetFlowRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Flow GetFlow(GetFlowRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Retrieves the specified flow.

Parameters
NameDescription
requestGetFlowRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Flow

The response received from the server.

GetFlowAsync(GetFlowRequest, CallOptions)

public virtual AsyncUnaryCall<Flow> GetFlowAsync(GetFlowRequest request, CallOptions options)

Retrieves the specified flow.

Parameters
NameDescription
requestGetFlowRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Flow>

The call object.

GetFlowAsync(GetFlowRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Flow> GetFlowAsync(GetFlowRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Retrieves the specified flow.

Parameters
NameDescription
requestGetFlowRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Flow>

The call object.

GetFlowValidationResult(GetFlowValidationResultRequest, CallOptions)

public virtual FlowValidationResult GetFlowValidationResult(GetFlowValidationResultRequest request, CallOptions options)

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

Parameters
NameDescription
requestGetFlowValidationResultRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
FlowValidationResult

The response received from the server.

GetFlowValidationResult(GetFlowValidationResultRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual FlowValidationResult GetFlowValidationResult(GetFlowValidationResultRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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

Parameters
NameDescription
requestGetFlowValidationResultRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
FlowValidationResult

The response received from the server.

GetFlowValidationResultAsync(GetFlowValidationResultRequest, CallOptions)

public virtual AsyncUnaryCall<FlowValidationResult> GetFlowValidationResultAsync(GetFlowValidationResultRequest request, CallOptions options)

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

Parameters
NameDescription
requestGetFlowValidationResultRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<FlowValidationResult>

The call object.

GetFlowValidationResultAsync(GetFlowValidationResultRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<FlowValidationResult> GetFlowValidationResultAsync(GetFlowValidationResultRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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

Parameters
NameDescription
requestGetFlowValidationResultRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<FlowValidationResult>

The call object.

ImportFlow(ImportFlowRequest, CallOptions)

public virtual Operation ImportFlow(ImportFlowRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

ImportFlow(ImportFlowRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation ImportFlow(ImportFlowRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

ImportFlowAsync(ImportFlowRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> ImportFlowAsync(ImportFlowRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

ImportFlowAsync(ImportFlowRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> ImportFlowAsync(ImportFlowRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

ListFlows(ListFlowsRequest, CallOptions)

public virtual ListFlowsResponse ListFlows(ListFlowsRequest request, CallOptions options)

Returns the list of all flows in the specified agent.

Parameters
NameDescription
requestListFlowsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListFlowsResponse

The response received from the server.

ListFlows(ListFlowsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ListFlowsResponse ListFlows(ListFlowsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Returns the list of all flows in the specified agent.

Parameters
NameDescription
requestListFlowsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListFlowsResponse

The response received from the server.

ListFlowsAsync(ListFlowsRequest, CallOptions)

public virtual AsyncUnaryCall<ListFlowsResponse> ListFlowsAsync(ListFlowsRequest request, CallOptions options)

Returns the list of all flows in the specified agent.

Parameters
NameDescription
requestListFlowsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ListFlowsResponse>

The call object.

ListFlowsAsync(ListFlowsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ListFlowsResponse> ListFlowsAsync(ListFlowsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Returns the list of all flows in the specified agent.

Parameters
NameDescription
requestListFlowsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<ListFlowsResponse>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override Flows.FlowsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
Flows.FlowsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Dialogflow.Cx.V3.Flows.FlowsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

TrainFlow(TrainFlowRequest, CallOptions)

public virtual Operation TrainFlow(TrainFlowRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

TrainFlow(TrainFlowRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation TrainFlow(TrainFlowRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

TrainFlowAsync(TrainFlowRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> TrainFlowAsync(TrainFlowRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

TrainFlowAsync(TrainFlowRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> TrainFlowAsync(TrainFlowRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

UpdateFlow(UpdateFlowRequest, CallOptions)

public virtual Flow UpdateFlow(UpdateFlowRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Flow

The response received from the server.

UpdateFlow(UpdateFlowRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Flow UpdateFlow(UpdateFlowRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Flow

The response received from the server.

UpdateFlowAsync(UpdateFlowRequest, CallOptions)

public virtual AsyncUnaryCall<Flow> UpdateFlowAsync(UpdateFlowRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Flow>

The call object.

UpdateFlowAsync(UpdateFlowRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Flow> UpdateFlowAsync(UpdateFlowRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Flow>

The call object.

ValidateFlow(ValidateFlowRequest, CallOptions)

public virtual FlowValidationResult ValidateFlow(ValidateFlowRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
FlowValidationResult

The response received from the server.

ValidateFlow(ValidateFlowRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual FlowValidationResult ValidateFlow(ValidateFlowRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
FlowValidationResult

The response received from the server.

ValidateFlowAsync(ValidateFlowRequest, CallOptions)

public virtual AsyncUnaryCall<FlowValidationResult> ValidateFlowAsync(ValidateFlowRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<FlowValidationResult>

The call object.

ValidateFlowAsync(ValidateFlowRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<FlowValidationResult> ValidateFlowAsync(ValidateFlowRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<FlowValidationResult>

The call object.