public sealed class FlowsClientImpl : FlowsClient
Flows client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Dialogflow.Cx.V3Assembly
Google.Cloud.Dialogflow.Cx.V3.dll
Remarks
Service for managing [Flows][google.cloud.dialogflow.cx.v3.Flow].
Constructors
FlowsClientImpl(Flows.FlowsClient, FlowsSettings)
public FlowsClientImpl(Flows.FlowsClient grpcClient, FlowsSettings settings)
Constructs a client wrapper for the Flows service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | Flows.FlowsClient The underlying gRPC client. |
settings | FlowsSettings The base FlowsSettings used within this client. |
Properties
ExportFlowOperationsClient
public override OperationsClient ExportFlowOperationsClient { get; }
The long-running operations client for ExportFlow
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public override Flows.FlowsClient GrpcClient { get; }
The underlying gRPC Flows client
Property Value | |
---|---|
Type | Description |
Flows.FlowsClient |
ImportFlowOperationsClient
public override OperationsClient ImportFlowOperationsClient { get; }
The long-running operations client for ImportFlow
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
TrainFlowOperationsClient
public override OperationsClient TrainFlowOperationsClient { get; }
The long-running operations client for TrainFlow
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
CreateFlow(CreateFlowRequest, CallSettings)
public override Flow CreateFlow(CreateFlowRequest request, CallSettings callSettings = null)
Creates a flow in the specified agent.
Note: You should always train a flow prior to sending it queries. See the training documentation.
Parameters | |
---|---|
Name | Description |
request | CreateFlowRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Flow | The RPC response. |
CreateFlowAsync(CreateFlowRequest, CallSettings)
public override Task<Flow> CreateFlowAsync(CreateFlowRequest request, CallSettings callSettings = null)
Creates a flow in the specified agent.
Note: You should always train a flow prior to sending it queries. See the training documentation.
Parameters | |
---|---|
Name | Description |
request | CreateFlowRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Flow> | A Task containing the RPC response. |
DeleteFlow(DeleteFlowRequest, CallSettings)
public override void DeleteFlow(DeleteFlowRequest request, CallSettings callSettings = null)
Deletes a specified flow.
Parameters | |
---|---|
Name | Description |
request | DeleteFlowRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
DeleteFlowAsync(DeleteFlowRequest, CallSettings)
public override Task DeleteFlowAsync(DeleteFlowRequest request, CallSettings callSettings = null)
Deletes a specified flow.
Parameters | |
---|---|
Name | Description |
request | DeleteFlowRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
ExportFlow(ExportFlowRequest, CallSettings)
public override Operation<ExportFlowResponse, Struct> ExportFlow(ExportFlowRequest request, CallSettings callSettings = null)
Exports the specified flow to a binary file.
Note that resources (e.g. intents, entities, webhooks) that the flow references will also be exported.
Parameters | |
---|---|
Name | Description |
request | ExportFlowRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<ExportFlowResponse, Struct> | The RPC response. |
ExportFlowAsync(ExportFlowRequest, CallSettings)
public override Task<Operation<ExportFlowResponse, Struct>> ExportFlowAsync(ExportFlowRequest request, CallSettings callSettings = null)
Exports the specified flow to a binary file.
Note that resources (e.g. intents, entities, webhooks) that the flow references will also be exported.
Parameters | |
---|---|
Name | Description |
request | ExportFlowRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<ExportFlowResponse, Struct>> | A Task containing the RPC response. |
GetFlow(GetFlowRequest, CallSettings)
public override Flow GetFlow(GetFlowRequest request, CallSettings callSettings = null)
Retrieves the specified flow.
Parameters | |
---|---|
Name | Description |
request | GetFlowRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Flow | The RPC response. |
GetFlowAsync(GetFlowRequest, CallSettings)
public override Task<Flow> GetFlowAsync(GetFlowRequest request, CallSettings callSettings = null)
Retrieves the specified flow.
Parameters | |
---|---|
Name | Description |
request | GetFlowRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Flow> | A Task containing the RPC response. |
GetFlowValidationResult(GetFlowValidationResultRequest, CallSettings)
public override FlowValidationResult GetFlowValidationResult(GetFlowValidationResultRequest request, CallSettings callSettings = null)
Gets the latest flow validation result. Flow validation is performed when ValidateFlow is called.
Parameters | |
---|---|
Name | Description |
request | GetFlowValidationResultRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FlowValidationResult | The RPC response. |
GetFlowValidationResultAsync(GetFlowValidationResultRequest, CallSettings)
public override Task<FlowValidationResult> GetFlowValidationResultAsync(GetFlowValidationResultRequest request, CallSettings callSettings = null)
Gets the latest flow validation result. Flow validation is performed when ValidateFlow is called.
Parameters | |
---|---|
Name | Description |
request | GetFlowValidationResultRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<FlowValidationResult> | A Task containing the RPC response. |
ImportFlow(ImportFlowRequest, CallSettings)
public override Operation<ImportFlowResponse, Struct> ImportFlow(ImportFlowRequest request, CallSettings callSettings = null)
Imports the specified flow to the specified agent from a binary file.
Note: You should always train a flow prior to sending it queries. See the training documentation.
Parameters | |
---|---|
Name | Description |
request | ImportFlowRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<ImportFlowResponse, Struct> | The RPC response. |
ImportFlowAsync(ImportFlowRequest, CallSettings)
public override Task<Operation<ImportFlowResponse, Struct>> ImportFlowAsync(ImportFlowRequest request, CallSettings callSettings = null)
Imports the specified flow to the specified agent from a binary file.
Note: You should always train a flow prior to sending it queries. See the training documentation.
Parameters | |
---|---|
Name | Description |
request | ImportFlowRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<ImportFlowResponse, Struct>> | A Task containing the RPC response. |
ListFlows(ListFlowsRequest, CallSettings)
public override PagedEnumerable<ListFlowsResponse, Flow> ListFlows(ListFlowsRequest request, CallSettings callSettings = null)
Returns the list of all flows in the specified agent.
Parameters | |
---|---|
Name | Description |
request | ListFlowsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListFlowsResponse, Flow> | A pageable sequence of Flow resources. |
ListFlowsAsync(ListFlowsRequest, CallSettings)
public override PagedAsyncEnumerable<ListFlowsResponse, Flow> ListFlowsAsync(ListFlowsRequest request, CallSettings callSettings = null)
Returns the list of all flows in the specified agent.
Parameters | |
---|---|
Name | Description |
request | ListFlowsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListFlowsResponse, Flow> | A pageable asynchronous sequence of Flow resources. |
TrainFlow(TrainFlowRequest, CallSettings)
public override Operation<Empty, Struct> TrainFlow(TrainFlowRequest request, CallSettings callSettings = null)
Trains the specified flow. Note that only the flow in 'draft' environment is trained.
Note: You should always train a flow prior to sending it queries. See the training documentation.
Parameters | |
---|---|
Name | Description |
request | TrainFlowRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, Struct> | The RPC response. |
TrainFlowAsync(TrainFlowRequest, CallSettings)
public override Task<Operation<Empty, Struct>> TrainFlowAsync(TrainFlowRequest request, CallSettings callSettings = null)
Trains the specified flow. Note that only the flow in 'draft' environment is trained.
Note: You should always train a flow prior to sending it queries. See the training documentation.
Parameters | |
---|---|
Name | Description |
request | TrainFlowRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, Struct>> | A Task containing the RPC response. |
UpdateFlow(UpdateFlowRequest, CallSettings)
public override Flow UpdateFlow(UpdateFlowRequest request, CallSettings callSettings = null)
Updates the specified flow.
Note: You should always train a flow prior to sending it queries. See the training documentation.
Parameters | |
---|---|
Name | Description |
request | UpdateFlowRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Flow | The RPC response. |
UpdateFlowAsync(UpdateFlowRequest, CallSettings)
public override Task<Flow> UpdateFlowAsync(UpdateFlowRequest request, CallSettings callSettings = null)
Updates the specified flow.
Note: You should always train a flow prior to sending it queries. See the training documentation.
Parameters | |
---|---|
Name | Description |
request | UpdateFlowRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Flow> | A Task containing the RPC response. |
ValidateFlow(ValidateFlowRequest, CallSettings)
public override FlowValidationResult ValidateFlow(ValidateFlowRequest request, CallSettings callSettings = null)
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 | |
---|---|
Name | Description |
request | ValidateFlowRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FlowValidationResult | The RPC response. |
ValidateFlowAsync(ValidateFlowRequest, CallSettings)
public override Task<FlowValidationResult> ValidateFlowAsync(ValidateFlowRequest request, CallSettings callSettings = null)
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 | |
---|---|
Name | Description |
request | ValidateFlowRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<FlowValidationResult> | A Task containing the RPC response. |