Class protos.google.cloud.dialogflow.cx.v3beta1.Experiments (4.2.0)

Represents an Experiments

Inheritance

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

Calls CreateExperiment.

Parameters
NameDescription
request ICreateExperimentRequest

CreateExperimentRequest message or plain object

callback CreateExperimentCallback

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

Returns
TypeDescription
void

createExperiment(request)

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

Calls CreateExperiment.

Parameter
NameDescription
request ICreateExperimentRequest

CreateExperimentRequest message or plain object

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

Promise

deleteExperiment(request, callback)

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

Calls DeleteExperiment.

Parameters
NameDescription
request IDeleteExperimentRequest

DeleteExperimentRequest message or plain object

callback DeleteExperimentCallback

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

Returns
TypeDescription
void

deleteExperiment(request)

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

Calls DeleteExperiment.

Parameter
NameDescription
request IDeleteExperimentRequest

DeleteExperimentRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getExperiment(request, callback)

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

Calls GetExperiment.

Parameters
NameDescription
request IGetExperimentRequest

GetExperimentRequest message or plain object

callback GetExperimentCallback

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

Returns
TypeDescription
void

getExperiment(request)

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

Calls GetExperiment.

Parameter
NameDescription
request IGetExperimentRequest

GetExperimentRequest message or plain object

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

Promise

listExperiments(request, callback)

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

Calls ListExperiments.

Parameters
NameDescription
request IListExperimentsRequest

ListExperimentsRequest message or plain object

callback ListExperimentsCallback

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

Returns
TypeDescription
void

listExperiments(request)

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

Calls ListExperiments.

Parameter
NameDescription
request IListExperimentsRequest

ListExperimentsRequest message or plain object

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

Promise

startExperiment(request, callback)

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

Calls StartExperiment.

Parameters
NameDescription
request IStartExperimentRequest

StartExperimentRequest message or plain object

callback StartExperimentCallback

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

Returns
TypeDescription
void

startExperiment(request)

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

Calls StartExperiment.

Parameter
NameDescription
request IStartExperimentRequest

StartExperimentRequest message or plain object

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

Promise

stopExperiment(request, callback)

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

Calls StopExperiment.

Parameters
NameDescription
request IStopExperimentRequest

StopExperimentRequest message or plain object

callback StopExperimentCallback

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

Returns
TypeDescription
void

stopExperiment(request)

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

Calls StopExperiment.

Parameter
NameDescription
request IStopExperimentRequest

StopExperimentRequest message or plain object

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

Promise

updateExperiment(request, callback)

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

Calls UpdateExperiment.

Parameters
NameDescription
request IUpdateExperimentRequest

UpdateExperimentRequest message or plain object

callback UpdateExperimentCallback

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

Returns
TypeDescription
void

updateExperiment(request)

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

Calls UpdateExperiment.

Parameter
NameDescription
request IUpdateExperimentRequest

UpdateExperimentRequest message or plain object

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

Promise