Represents a Flows
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3beta1.FlowsPackage
@google-cloud/dialogflow-cxConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Flows service.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Flows;
Creates new Flows service using the specified rpc implementation.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
Flows | RPC service. Useful where requests and/or responses are streamed. |
createFlow(request, callback)
public createFlow(request: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.CreateFlowCallback): void;
Calls CreateFlow.
Parameters | |
---|---|
Name | Description |
request |
ICreateFlowRequest
CreateFlowRequest message or plain object |
callback |
CreateFlowCallback
Node-style callback called with the error, if any, and Flow |
Returns | |
---|---|
Type | Description |
void |
createFlow(request)
public createFlow(request: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Flow>;
Calls CreateFlow.
Parameter | |
---|---|
Name | Description |
request |
ICreateFlowRequest
CreateFlowRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.Flow> | Promise |
deleteFlow(request, callback)
public deleteFlow(request: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.DeleteFlowCallback): void;
Calls DeleteFlow.
Parameters | |
---|---|
Name | Description |
request |
IDeleteFlowRequest
DeleteFlowRequest message or plain object |
callback |
DeleteFlowCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteFlow(request)
public deleteFlow(request: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest): Promise<google.protobuf.Empty>;
Calls DeleteFlow.
Parameter | |
---|---|
Name | Description |
request |
IDeleteFlowRequest
DeleteFlowRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.protobuf.Empty> | Promise |
exportFlow(request, callback)
public exportFlow(request: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ExportFlowCallback): void;
Calls ExportFlow.
Parameters | |
---|---|
Name | Description |
request |
IExportFlowRequest
ExportFlowRequest message or plain object |
callback |
ExportFlowCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
exportFlow(request)
public exportFlow(request: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest): Promise<google.longrunning.Operation>;
Calls ExportFlow.
Parameter | |
---|---|
Name | Description |
request |
IExportFlowRequest
ExportFlowRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |
getFlow(request, callback)
public getFlow(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowCallback): void;
Calls GetFlow.
Parameters | |
---|---|
Name | Description |
request |
IGetFlowRequest
GetFlowRequest message or plain object |
callback |
GetFlowCallback
Node-style callback called with the error, if any, and Flow |
Returns | |
---|---|
Type | Description |
void |
getFlow(request)
public getFlow(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Flow>;
Calls GetFlow.
Parameter | |
---|---|
Name | Description |
request |
IGetFlowRequest
GetFlowRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.Flow> | Promise |
getFlowValidationResult(request, callback)
public getFlowValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowValidationResultCallback): void;
Calls GetFlowValidationResult.
Parameters | |
---|---|
Name | Description |
request |
IGetFlowValidationResultRequest
GetFlowValidationResultRequest message or plain object |
callback |
GetFlowValidationResultCallback
Node-style callback called with the error, if any, and FlowValidationResult |
Returns | |
---|---|
Type | Description |
void |
getFlowValidationResult(request)
public getFlowValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest): Promise<google.cloud.dialogflow.cx.v3beta1.FlowValidationResult>;
Calls GetFlowValidationResult.
Parameter | |
---|---|
Name | Description |
request |
IGetFlowValidationResultRequest
GetFlowValidationResultRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.FlowValidationResult> | Promise |
importFlow(request, callback)
public importFlow(request: google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ImportFlowCallback): void;
Calls ImportFlow.
Parameters | |
---|---|
Name | Description |
request |
IImportFlowRequest
ImportFlowRequest message or plain object |
callback |
ImportFlowCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
importFlow(request)
public importFlow(request: google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest): Promise<google.longrunning.Operation>;
Calls ImportFlow.
Parameter | |
---|---|
Name | Description |
request |
IImportFlowRequest
ImportFlowRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |
listFlows(request, callback)
public listFlows(request: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ListFlowsCallback): void;
Calls ListFlows.
Parameters | |
---|---|
Name | Description |
request |
IListFlowsRequest
ListFlowsRequest message or plain object |
callback |
ListFlowsCallback
Node-style callback called with the error, if any, and ListFlowsResponse |
Returns | |
---|---|
Type | Description |
void |
listFlows(request)
public listFlows(request: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest): Promise<google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse>;
Calls ListFlows.
Parameter | |
---|---|
Name | Description |
request |
IListFlowsRequest
ListFlowsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse> | Promise |
trainFlow(request, callback)
public trainFlow(request: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.TrainFlowCallback): void;
Calls TrainFlow.
Parameters | |
---|---|
Name | Description |
request |
ITrainFlowRequest
TrainFlowRequest message or plain object |
callback |
TrainFlowCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
trainFlow(request)
public trainFlow(request: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest): Promise<google.longrunning.Operation>;
Calls TrainFlow.
Parameter | |
---|---|
Name | Description |
request |
ITrainFlowRequest
TrainFlowRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |
updateFlow(request, callback)
public updateFlow(request: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.UpdateFlowCallback): void;
Calls UpdateFlow.
Parameters | |
---|---|
Name | Description |
request |
IUpdateFlowRequest
UpdateFlowRequest message or plain object |
callback |
UpdateFlowCallback
Node-style callback called with the error, if any, and Flow |
Returns | |
---|---|
Type | Description |
void |
updateFlow(request)
public updateFlow(request: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Flow>;
Calls UpdateFlow.
Parameter | |
---|---|
Name | Description |
request |
IUpdateFlowRequest
UpdateFlowRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.Flow> | Promise |
validateFlow(request, callback)
public validateFlow(request: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ValidateFlowCallback): void;
Calls ValidateFlow.
Parameters | |
---|---|
Name | Description |
request |
IValidateFlowRequest
ValidateFlowRequest message or plain object |
callback |
ValidateFlowCallback
Node-style callback called with the error, if any, and FlowValidationResult |
Returns | |
---|---|
Type | Description |
void |
validateFlow(request)
public validateFlow(request: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest): Promise<google.cloud.dialogflow.cx.v3beta1.FlowValidationResult>;
Calls ValidateFlow.
Parameter | |
---|---|
Name | Description |
request |
IValidateFlowRequest
ValidateFlowRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.FlowValidationResult> | Promise |