Google Cloud Dialogflow Cx V3 Client - Class Experiment (0.8.1)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class Experiment.

Represents an experiment in an environment.

Generated from protobuf message google.cloud.dialogflow.cx.v3.Experiment

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ name
string

The name of the experiment. Format: projects/

↳ display_name
string

Required. The human-readable name of the experiment (unique in an environment). Limit of 64 characters.

↳ description
string

The human-readable description of the experiment.

↳ state
int

The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or RUNNING->DONE.

↳ definition
Experiment\Definition

The definition of the experiment.

↳ rollout_config
RolloutConfig

The configuration for auto rollout. If set, there should be exactly two variants in the experiment (control variant being the default version of the flow), the traffic allocation for the non-control variant will gradually increase to 100% when conditions are met, and eventually replace the control variant to become the default version of the flow.

↳ rollout_state
RolloutState

State of the auto rollout process.

↳ rollout_failure_reason
string

The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED.

↳ result
Experiment\Result

Inference result of the experiment.

↳ create_time
Google\Protobuf\Timestamp

Creation time of this experiment.

↳ start_time
Google\Protobuf\Timestamp

Start time of this experiment.

↳ end_time
Google\Protobuf\Timestamp

End time of this experiment.

↳ last_update_time
Google\Protobuf\Timestamp

Last update time of this experiment.

↳ experiment_length
Google\Protobuf\Duration

Maximum number of days to run the experiment/rollout. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.

↳ variants_history
array< VariantsHistory >

The history of updates to the experiment variants.

getName

The name of the experiment.

Format: projects/

Returns
Type
Description
string

setName

The name of the experiment.

Format: projects/

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getDisplayName

Required. The human-readable name of the experiment (unique in an environment). Limit of 64 characters.

Returns
Type
Description
string

setDisplayName

Required. The human-readable name of the experiment (unique in an environment). Limit of 64 characters.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getDescription

The human-readable description of the experiment.

Returns
Type
Description
string

setDescription

The human-readable description of the experiment.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getState

The current state of the experiment.

Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or RUNNING->DONE.

Returns
Type
Description
int

setState

The current state of the experiment.

Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or RUNNING->DONE.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getDefinition

The definition of the experiment.

Returns
Type
Description

hasDefinition

clearDefinition

setDefinition

The definition of the experiment.

Parameter
Name
Description
Returns
Type
Description
$this

getRolloutConfig

The configuration for auto rollout. If set, there should be exactly two variants in the experiment (control variant being the default version of the flow), the traffic allocation for the non-control variant will gradually increase to 100% when conditions are met, and eventually replace the control variant to become the default version of the flow.

Returns
Type
Description

hasRolloutConfig

clearRolloutConfig

setRolloutConfig

The configuration for auto rollout. If set, there should be exactly two variants in the experiment (control variant being the default version of the flow), the traffic allocation for the non-control variant will gradually increase to 100% when conditions are met, and eventually replace the control variant to become the default version of the flow.

Parameter
Name
Description
Returns
Type
Description
$this

getRolloutState

State of the auto rollout process.

Returns
Type
Description
RolloutState |null

hasRolloutState

clearRolloutState

setRolloutState

State of the auto rollout process.

Parameter
Name
Description
Returns
Type
Description
$this

getRolloutFailureReason

The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED.

Returns
Type
Description
string

setRolloutFailureReason

The reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getResult

Inference result of the experiment.

Returns
Type
Description

hasResult

clearResult

setResult

Inference result of the experiment.

Parameter
Name
Description
Returns
Type
Description
$this

getCreateTime

Creation time of this experiment.

Returns
Type
Description

hasCreateTime

clearCreateTime

setCreateTime

Creation time of this experiment.

Parameter
Name
Description
Returns
Type
Description
$this

getStartTime

Start time of this experiment.

Returns
Type
Description

hasStartTime

clearStartTime

setStartTime

Start time of this experiment.

Parameter
Name
Description
Returns
Type
Description
$this

getEndTime

End time of this experiment.

Returns
Type
Description

hasEndTime

clearEndTime

setEndTime

End time of this experiment.

Parameter
Name
Description
Returns
Type
Description
$this

getLastUpdateTime

Last update time of this experiment.

Returns
Type
Description

hasLastUpdateTime

clearLastUpdateTime

setLastUpdateTime

Last update time of this experiment.

Parameter
Name
Description
Returns
Type
Description
$this

getExperimentLength

Maximum number of days to run the experiment/rollout. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.

Returns
Type
Description

hasExperimentLength

clearExperimentLength

setExperimentLength

Maximum number of days to run the experiment/rollout. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.

Parameter
Name
Description
Returns
Type
Description
$this

getVariantsHistory

The history of updates to the experiment variants.

Returns
Type
Description

setVariantsHistory

The history of updates to the experiment variants.

Parameter
Name
Description
var
array< VariantsHistory >
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: