Class protos.google.cloud.dialogflow.cx.v3.Flows (3.4.2)

Represents a Flows

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3.Flows

Package

@google-cloud/dialogflow-cx

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new Flows service.

Parameters
NameDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
Flows

RPC service. Useful where requests and/or responses are streamed.

createFlow(request, callback)

public createFlow(request: google.cloud.dialogflow.cx.v3.ICreateFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.CreateFlowCallback): void;

Calls CreateFlow.

Parameters
NameDescription
request ICreateFlowRequest

CreateFlowRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Flows.CreateFlowCallback

Node-style callback called with the error, if any, and Flow

Returns
TypeDescription
void

createFlow(request)

public createFlow(request: google.cloud.dialogflow.cx.v3.ICreateFlowRequest): Promise<google.cloud.dialogflow.cx.v3.Flow>;

Calls CreateFlow.

Parameter
NameDescription
request ICreateFlowRequest

CreateFlowRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.Flow>

Promise

deleteFlow(request, callback)

public deleteFlow(request: google.cloud.dialogflow.cx.v3.IDeleteFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.DeleteFlowCallback): void;

Calls DeleteFlow.

Parameters
NameDescription
request IDeleteFlowRequest

DeleteFlowRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Flows.DeleteFlowCallback

Node-style callback called with the error, if any, and Empty

Returns
TypeDescription
void

deleteFlow(request)

public deleteFlow(request: google.cloud.dialogflow.cx.v3.IDeleteFlowRequest): Promise<google.protobuf.Empty>;

Calls DeleteFlow.

Parameter
NameDescription
request IDeleteFlowRequest

DeleteFlowRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

exportFlow(request, callback)

public exportFlow(request: google.cloud.dialogflow.cx.v3.IExportFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.ExportFlowCallback): void;

Calls ExportFlow.

Parameters
NameDescription
request IExportFlowRequest

ExportFlowRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Flows.ExportFlowCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

exportFlow(request)

public exportFlow(request: google.cloud.dialogflow.cx.v3.IExportFlowRequest): Promise<google.longrunning.Operation>;

Calls ExportFlow.

Parameter
NameDescription
request IExportFlowRequest

ExportFlowRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getFlow(request, callback)

public getFlow(request: google.cloud.dialogflow.cx.v3.IGetFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.GetFlowCallback): void;

Calls GetFlow.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3.IGetFlowRequest

GetFlowRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Flows.GetFlowCallback

Node-style callback called with the error, if any, and Flow

Returns
TypeDescription
void

getFlow(request)

public getFlow(request: google.cloud.dialogflow.cx.v3.IGetFlowRequest): Promise<google.cloud.dialogflow.cx.v3.Flow>;

Calls GetFlow.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3.IGetFlowRequest

GetFlowRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.Flow>

Promise

getFlowValidationResult(request, callback)

public getFlowValidationResult(request: google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest, callback: google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResultCallback): void;

Calls GetFlowValidationResult.

Parameters
NameDescription
request IGetFlowValidationResultRequest

GetFlowValidationResultRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResultCallback

Node-style callback called with the error, if any, and FlowValidationResult

Returns
TypeDescription
void

getFlowValidationResult(request)

public getFlowValidationResult(request: google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest): Promise<google.cloud.dialogflow.cx.v3.FlowValidationResult>;

Calls GetFlowValidationResult.

Parameter
NameDescription
request IGetFlowValidationResultRequest

GetFlowValidationResultRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.FlowValidationResult>

Promise

importFlow(request, callback)

public importFlow(request: google.cloud.dialogflow.cx.v3.IImportFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.ImportFlowCallback): void;

Calls ImportFlow.

Parameters
NameDescription
request IImportFlowRequest

ImportFlowRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Flows.ImportFlowCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

importFlow(request)

public importFlow(request: google.cloud.dialogflow.cx.v3.IImportFlowRequest): Promise<google.longrunning.Operation>;

Calls ImportFlow.

Parameter
NameDescription
request IImportFlowRequest

ImportFlowRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

listFlows(request, callback)

public listFlows(request: google.cloud.dialogflow.cx.v3.IListFlowsRequest, callback: google.cloud.dialogflow.cx.v3.Flows.ListFlowsCallback): void;

Calls ListFlows.

Parameters
NameDescription
request IListFlowsRequest

ListFlowsRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Flows.ListFlowsCallback

Node-style callback called with the error, if any, and ListFlowsResponse

Returns
TypeDescription
void

listFlows(request)

public listFlows(request: google.cloud.dialogflow.cx.v3.IListFlowsRequest): Promise<google.cloud.dialogflow.cx.v3.ListFlowsResponse>;

Calls ListFlows.

Parameter
NameDescription
request IListFlowsRequest

ListFlowsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.ListFlowsResponse>

Promise

trainFlow(request, callback)

public trainFlow(request: google.cloud.dialogflow.cx.v3.ITrainFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.TrainFlowCallback): void;

Calls TrainFlow.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3.ITrainFlowRequest

TrainFlowRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Flows.TrainFlowCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

trainFlow(request)

public trainFlow(request: google.cloud.dialogflow.cx.v3.ITrainFlowRequest): Promise<google.longrunning.Operation>;

Calls TrainFlow.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3.ITrainFlowRequest

TrainFlowRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

updateFlow(request, callback)

public updateFlow(request: google.cloud.dialogflow.cx.v3.IUpdateFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.UpdateFlowCallback): void;

Calls UpdateFlow.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3.IUpdateFlowRequest

UpdateFlowRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Flows.UpdateFlowCallback

Node-style callback called with the error, if any, and Flow

Returns
TypeDescription
void

updateFlow(request)

public updateFlow(request: google.cloud.dialogflow.cx.v3.IUpdateFlowRequest): Promise<google.cloud.dialogflow.cx.v3.Flow>;

Calls UpdateFlow.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3.IUpdateFlowRequest

UpdateFlowRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.Flow>

Promise

validateFlow(request, callback)

public validateFlow(request: google.cloud.dialogflow.cx.v3.IValidateFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.ValidateFlowCallback): void;

Calls ValidateFlow.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3.IValidateFlowRequest

ValidateFlowRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Flows.ValidateFlowCallback

Node-style callback called with the error, if any, and FlowValidationResult

Returns
TypeDescription
void

validateFlow(request)

public validateFlow(request: google.cloud.dialogflow.cx.v3.IValidateFlowRequest): Promise<google.cloud.dialogflow.cx.v3.FlowValidationResult>;

Calls ValidateFlow.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3.IValidateFlowRequest

ValidateFlowRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.FlowValidationResult>

Promise