Class protos.google.cloud.dialogflow.cx.v3beta1.Flows

Represents a Flows

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.ICreateFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.CreateFlowCallback): void;

Calls CreateFlow.

Parameters
NameDescription
request ICreateFlowRequest

CreateFlowRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.ICreateFlowRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Flow>;

Calls CreateFlow.

Parameter
NameDescription
request ICreateFlowRequest

CreateFlowRequest message or plain object

Returns
TypeDescription
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
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest

DeleteFlowRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.IDeleteFlowRequest): Promise<google.protobuf.Empty>;

Calls DeleteFlow.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest

DeleteFlowRequest message or plain object

Returns
TypeDescription
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
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest

ExportFlowRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.IExportFlowRequest): Promise<google.longrunning.Operation>;

Calls ExportFlow.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest

ExportFlowRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IGetFlowRequest

GetFlowRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.IGetFlowRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Flow>;

Calls GetFlow.

Parameter
NameDescription
request IGetFlowRequest

GetFlowRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IGetFlowValidationResultRequest

GetFlowValidationResultRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.IGetFlowValidationResultRequest): Promise<google.cloud.dialogflow.cx.v3beta1.FlowValidationResult>;

Calls GetFlowValidationResult.

Parameter
NameDescription
request IGetFlowValidationResultRequest

GetFlowValidationResultRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IImportFlowRequest

ImportFlowRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.IListFlowsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ListFlowsCallback): void;

Calls ListFlows.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest

ListFlowsRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.IListFlowsRequest): Promise<google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse>;

Calls ListFlows.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest

ListFlowsRequest message or plain object

Returns
TypeDescription
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
NameDescription
request google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest

TrainFlowRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.ITrainFlowRequest): Promise<google.longrunning.Operation>;

Calls TrainFlow.

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

TrainFlowRequest message or plain object

Returns
TypeDescription
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
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest

UpdateFlowRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.IUpdateFlowRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Flow>;

Calls UpdateFlow.

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

UpdateFlowRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IValidateFlowRequest

ValidateFlowRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.IValidateFlowRequest): Promise<google.cloud.dialogflow.cx.v3beta1.FlowValidationResult>;

Calls ValidateFlow.

Parameter
NameDescription
request IValidateFlowRequest

ValidateFlowRequest message or plain object

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

Promise