Struct googapis::google::cloud::dialogflow::cx::v3::Experiment[][src]

pub struct Experiment {
Show 15 fields pub name: String, pub display_name: String, pub description: String, pub state: i32, pub definition: Option<Definition>, pub rollout_config: Option<RolloutConfig>, pub rollout_state: Option<RolloutState>, pub rollout_failure_reason: String, pub result: Option<Result>, pub create_time: Option<Timestamp>, pub start_time: Option<Timestamp>, pub end_time: Option<Timestamp>, pub last_update_time: Option<Timestamp>, pub experiment_length: Option<Duration>, pub variants_history: Vec<VariantsHistory>,
}
Expand description

Represents an experiment in an environment.

Fields

name: String

The name of the experiment. Format: projects//locations//agents//environments//experiments/..

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: i32

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

definition: Option<Definition>

The definition of the experiment.

rollout_config: Option<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: Option<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: Option<Result>

Inference result of the experiment.

create_time: Option<Timestamp>

Creation time of this experiment.

start_time: Option<Timestamp>

Start time of this experiment.

end_time: Option<Timestamp>

End time of this experiment.

last_update_time: Option<Timestamp>

Last update time of this experiment.

experiment_length: Option<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: Vec<VariantsHistory>

The history of updates to the experiment variants.

Implementations

Returns the enum value of state, or the default if the field is set to an invalid enum value.

Sets state to the provided enum value.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Returns the encoded length of the message without a length delimiter.

Clears the message, resetting all fields to their default.

Encodes the message to a buffer. Read more

Encodes the message to a newly allocated buffer.

Encodes the message with a length-delimiter to a buffer. Read more

Encodes the message with a length-delimiter to a newly allocated buffer.

Decodes an instance of the message from a buffer. Read more

Decodes a length-delimited instance of the message from the buffer.

Decodes an instance of the message from a buffer, and merges it into self. Read more

Decodes a length-delimited instance of the message from buffer, and merges it into self. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more