Class protos.google.cloud.dialogflow.cx.v3.Experiments (3.4.0)

Represents an Experiments

Inheritance

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

Package

@google-cloud/dialogflow-cx

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new Experiments 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): Experiments;

Creates new Experiments 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
Experiments

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

createExperiment(request, callback)

public createExperiment(request: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.CreateExperimentCallback): void;

Calls CreateExperiment.

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

CreateExperimentRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Experiments.CreateExperimentCallback

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

Returns
TypeDescription
void

createExperiment(request)

public createExperiment(request: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest): Promise<google.cloud.dialogflow.cx.v3.Experiment>;

Calls CreateExperiment.

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

CreateExperimentRequest message or plain object

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

Promise

deleteExperiment(request, callback)

public deleteExperiment(request: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.DeleteExperimentCallback): void;

Calls DeleteExperiment.

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

DeleteExperimentRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Experiments.DeleteExperimentCallback

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

Returns
TypeDescription
void

deleteExperiment(request)

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

Calls DeleteExperiment.

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

DeleteExperimentRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getExperiment(request, callback)

public getExperiment(request: google.cloud.dialogflow.cx.v3.IGetExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.GetExperimentCallback): void;

Calls GetExperiment.

Parameters
NameDescription
request IGetExperimentRequest

GetExperimentRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Experiments.GetExperimentCallback

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

Returns
TypeDescription
void

getExperiment(request)

public getExperiment(request: google.cloud.dialogflow.cx.v3.IGetExperimentRequest): Promise<google.cloud.dialogflow.cx.v3.Experiment>;

Calls GetExperiment.

Parameter
NameDescription
request IGetExperimentRequest

GetExperimentRequest message or plain object

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

Promise

listExperiments(request, callback)

public listExperiments(request: google.cloud.dialogflow.cx.v3.IListExperimentsRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.ListExperimentsCallback): void;

Calls ListExperiments.

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

ListExperimentsRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Experiments.ListExperimentsCallback

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

Returns
TypeDescription
void

listExperiments(request)

public listExperiments(request: google.cloud.dialogflow.cx.v3.IListExperimentsRequest): Promise<google.cloud.dialogflow.cx.v3.ListExperimentsResponse>;

Calls ListExperiments.

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

ListExperimentsRequest message or plain object

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

Promise

startExperiment(request, callback)

public startExperiment(request: google.cloud.dialogflow.cx.v3.IStartExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.StartExperimentCallback): void;

Calls StartExperiment.

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

StartExperimentRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Experiments.StartExperimentCallback

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

Returns
TypeDescription
void

startExperiment(request)

public startExperiment(request: google.cloud.dialogflow.cx.v3.IStartExperimentRequest): Promise<google.cloud.dialogflow.cx.v3.Experiment>;

Calls StartExperiment.

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

StartExperimentRequest message or plain object

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

Promise

stopExperiment(request, callback)

public stopExperiment(request: google.cloud.dialogflow.cx.v3.IStopExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.StopExperimentCallback): void;

Calls StopExperiment.

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

StopExperimentRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Experiments.StopExperimentCallback

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

Returns
TypeDescription
void

stopExperiment(request)

public stopExperiment(request: google.cloud.dialogflow.cx.v3.IStopExperimentRequest): Promise<google.cloud.dialogflow.cx.v3.Experiment>;

Calls StopExperiment.

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

StopExperimentRequest message or plain object

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

Promise

updateExperiment(request, callback)

public updateExperiment(request: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.UpdateExperimentCallback): void;

Calls UpdateExperiment.

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

UpdateExperimentRequest message or plain object

callback google.cloud.dialogflow.cx.v3.Experiments.UpdateExperimentCallback

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

Returns
TypeDescription
void

updateExperiment(request)

public updateExperiment(request: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest): Promise<google.cloud.dialogflow.cx.v3.Experiment>;

Calls UpdateExperiment.

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

UpdateExperimentRequest message or plain object

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

Promise