Experiments

google.cloud.dialogflow.cx.v3. Experiments

Represents an Experiments

Constructor

new Experiments(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new Experiments service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

createExperiment(request, callback) → {undefined}

Calls CreateExperiment.

Parameters:
Name Type Description
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:
Type Description
undefined

createExperiment(request) → {Promise.<google.cloud.dialogflow.cx.v3.Experiment>}

Calls CreateExperiment.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3.ICreateExperimentRequest

CreateExperimentRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.cx.v3.Experiment>

Promise

deleteExperiment(request, callback) → {undefined}

Calls DeleteExperiment.

Parameters:
Name Type Description
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:
Type Description
undefined

deleteExperiment(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteExperiment.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest

DeleteExperimentRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

getExperiment(request, callback) → {undefined}

Calls GetExperiment.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3.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:
Type Description
undefined

getExperiment(request) → {Promise.<google.cloud.dialogflow.cx.v3.Experiment>}

Calls GetExperiment.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3.IGetExperimentRequest

GetExperimentRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.cx.v3.Experiment>

Promise

listExperiments(request, callback) → {undefined}

Calls ListExperiments.

Parameters:
Name Type Description
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:
Type Description
undefined

listExperiments(request) → {Promise.<google.cloud.dialogflow.cx.v3.ListExperimentsResponse>}

Calls ListExperiments.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3.IListExperimentsRequest

ListExperimentsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.cx.v3.ListExperimentsResponse>

Promise

startExperiment(request, callback) → {undefined}

Calls StartExperiment.

Parameters:
Name Type Description
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:
Type Description
undefined

startExperiment(request) → {Promise.<google.cloud.dialogflow.cx.v3.Experiment>}

Calls StartExperiment.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3.IStartExperimentRequest

StartExperimentRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.cx.v3.Experiment>

Promise

stopExperiment(request, callback) → {undefined}

Calls StopExperiment.

Parameters:
Name Type Description
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:
Type Description
undefined

stopExperiment(request) → {Promise.<google.cloud.dialogflow.cx.v3.Experiment>}

Calls StopExperiment.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3.IStopExperimentRequest

StopExperimentRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.cx.v3.Experiment>

Promise

updateExperiment(request, callback) → {undefined}

Calls UpdateExperiment.

Parameters:
Name Type Description
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:
Type Description
undefined

updateExperiment(request) → {Promise.<google.cloud.dialogflow.cx.v3.Experiment>}

Calls UpdateExperiment.

Parameters:
Name Type Description
request google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest

UpdateExperimentRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.cx.v3.Experiment>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {Experiments}

Creates new Experiments service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
Experiments

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

Type Definitions

CreateExperimentCallback(error, responseopt)

Callback as used by createExperiment.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.cx.v3.Experiment <optional>

Experiment

DeleteExperimentCallback(error, responseopt)

Callback as used by deleteExperiment.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetExperimentCallback(error, responseopt)

Callback as used by getExperiment.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.cx.v3.Experiment <optional>

Experiment

ListExperimentsCallback(error, responseopt)

Callback as used by listExperiments.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.cx.v3.ListExperimentsResponse <optional>

ListExperimentsResponse

StartExperimentCallback(error, responseopt)

Callback as used by startExperiment.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.cx.v3.Experiment <optional>

Experiment

StopExperimentCallback(error, responseopt)

Callback as used by stopExperiment.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.cx.v3.Experiment <optional>

Experiment

UpdateExperimentCallback(error, responseopt)

Callback as used by updateExperiment.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.cx.v3.Experiment <optional>

Experiment