Google Cloud Dialogflow Cx V3 Client - Class Experiment (0.1.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
NameDescription
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 Google\Cloud\Dialogflow\Cx\V3\Experiment\Definition

The definition of the experiment.

↳ rollout_config Google\Cloud\Dialogflow\Cx\V3\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 Google\Cloud\Dialogflow\Cx\V3\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 Google\Cloud\Dialogflow\Cx\V3\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<Google\Cloud\Dialogflow\Cx\V3\VariantsHistory>

The history of updates to the experiment variants.

getName

The name of the experiment.

Format: projects/

Returns
TypeDescription
string

setName

The name of the experiment.

Format: projects/

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

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

Returns
TypeDescription
string

setDisplayName

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

The human-readable description of the experiment.

Returns
TypeDescription
string

setDescription

The human-readable description of the experiment.

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$this

getDefinition

The definition of the experiment.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\Experiment\Definition|null

hasDefinition

clearDefinition

setDefinition

The definition of the experiment.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\Experiment\Definition
Returns
TypeDescription
$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
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\RolloutConfig|null

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
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\RolloutConfig
Returns
TypeDescription
$this

getRolloutState

State of the auto rollout process.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\RolloutState|null

hasRolloutState

clearRolloutState

setRolloutState

State of the auto rollout process.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\RolloutState
Returns
TypeDescription
$this

getRolloutFailureReason

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

Returns
TypeDescription
string

setRolloutFailureReason

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getResult

Inference result of the experiment.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\Experiment\Result|null

hasResult

clearResult

setResult

Inference result of the experiment.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\Experiment\Result
Returns
TypeDescription
$this

getCreateTime

Creation time of this experiment.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Creation time of this experiment.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getStartTime

Start time of this experiment.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

Start time of this experiment.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getEndTime

End time of this experiment.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

End time of this experiment.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getLastUpdateTime

Last update time of this experiment.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasLastUpdateTime

clearLastUpdateTime

setLastUpdateTime

Last update time of this experiment.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$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
TypeDescription
Google\Protobuf\Duration|null

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
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this

getVariantsHistory

The history of updates to the experiment variants.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setVariantsHistory

The history of updates to the experiment variants.

Parameter
NameDescription
var array<Google\Cloud\Dialogflow\Cx\V3\VariantsHistory>
Returns
TypeDescription
$this