Service Client: Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::ExperimentsClient
Client stub representing the remote Experiments gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to dialogflow.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Dialogflow::Cx::V3beta1::Experiment - Compiled Protocol Buffers messages for google/cloud/dialogflow/cx/v3beta1/experiment.proto
SYNOPSIS
use Google::Cloud::Dialogflow::Cx::V3beta1::Experiment;
my $msg = Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment->new({
name => $name,
display_name => $display_name,
description => $description,
state => $state,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/cx/v3beta1/experiment.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment
Represents an experiment in an environment.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe name of the experiment. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/experiments/<ExperimentID>.
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. The human-readable name of the experiment (unique in an environment). Limit of 64 characters.
$msg->description()/$msg->description($value)Type:
StringThe human-readable description of the experiment.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::State)The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or RUNNING->DONE.
$msg->definition()/$msg->definition($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment::Definition)The definition of the experiment.
$msg->rollout_config()/$msg->rollout_config($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::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.
$msg->rollout_state()/$msg->rollout_state($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::RolloutState)State of the auto rollout process.
$msg->rollout_failure_reason()/$msg->rollout_failure_reason($value)Type:
StringThe reason why rollout has failed. Should only be set when state is ROLLOUT_FAILED.
$msg->result()/$msg->result($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment::Result)Inference result of the experiment.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Creation time of this experiment.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Start time of this experiment.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)End time of this experiment.
$msg->last_update_time()/$msg->last_update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Last update time of this experiment.
$msg->experiment_length()/$msg->experiment_length($value)Type:
Message(Google::Protobuf::Duration::Duration)Maximum number of days to run the experiment. 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.
$msg->variants_history()/$msg->variants_history($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::VariantsHistory)The history of updates to the experiment variants.
Enum: Experiment::State
STATE_UNSPECIFIED=>0DRAFT=>1RUNNING=>2DONE=>3ROLLOUT_FAILED=>4
Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::VersionVariants
A list of flow version variants.
Inherits from Protobuf::Message.
Accessors
$msg->variants()/$msg->variants($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::VersionVariants::Variant)A list of flow version variants.
Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::RolloutConfig
The configuration for auto rollout.
Inherits from Protobuf::Message.
Accessors
$msg->rollout_steps()/$msg->rollout_steps($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::RolloutConfig::RolloutStep)Steps to roll out a flow version. Steps should be sorted by percentage in ascending order.
$msg->rollout_condition()/$msg->rollout_condition($value)Type:
StringThe conditions that are used to evaluate the success of a rollout step. If not specified, all rollout steps will proceed to the next one unless failure conditions are met. E.g. "containment_rate > 60% AND callback_rate < 20%". See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
$msg->failure_condition()/$msg->failure_condition($value)Type:
StringThe conditions that are used to evaluate the failure of a rollout step. If not specified, no rollout steps will fail. E.g. "containment_rate < 10% OR average_turn_count < 3". See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::RolloutState
State of the auto-rollout process.
Inherits from Protobuf::Message.
Accessors
$msg->step()/$msg->step($value)Type:
StringDisplay name of the current auto rollout step.
$msg->step_index()/$msg->step_index($value)Type:
Int32Index of the current step in the auto rollout steps list.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Start time of the current step.
Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::VariantsHistory
The history of variants update.
Inherits from Protobuf::Message.
Accessors
$msg->version_variants()/$msg->version_variants($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::VersionVariants)The flow versions as the variants.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Update time of the variants.
Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::ListExperimentsRequest
The request message for [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3beta1.Experiments.ListExperiments].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] to list all environments for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of items to return in a single page. By default 20 and at most 100.
$msg->page_token()/$msg->page_token($value)Type:
StringThe next_page_token value returned from a previous list request.
Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::ListExperimentsResponse
The response message for [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3beta1.Experiments.ListExperiments].
Inherits from Protobuf::Message.
Accessors
$msg->experiments()/$msg->experiments($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment)The list of experiments. There will be a maximum number of items returned based on the page_size field in the request. The list may in some cases be empty or contain fewer entries than page_size even if this isn't the last page.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringToken to retrieve the next page of results, or empty if there are no more results in the list.
Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::GetExperimentRequest
The request message for [Experiments.GetExperiment][google.cloud.dialogflow.cx.v3beta1.Experiments.GetExperiment].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/experiments/<ExperimentID>`.
Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::CreateExperimentRequest
The request message for [Experiments.CreateExperiment][google.cloud.dialogflow.cx.v3beta1.Experiments.CreateExperiment].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The [Agent][google.cloud.dialogflow.cx.v3beta1.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
$msg->experiment()/$msg->experiment($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment)Required. The experiment to create.
Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::UpdateExperimentRequest
The request message for [Experiments.UpdateExperiment][google.cloud.dialogflow.cx.v3beta1.Experiments.UpdateExperiment].
Inherits from Protobuf::Message.
Accessors
$msg->experiment()/$msg->experiment($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Experiment)Required. The experiment to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. The mask to control which fields get updated.
Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::DeleteExperimentRequest
The request message for [Experiments.DeleteExperiment][google.cloud.dialogflow.cx.v3beta1.Experiments.DeleteExperiment].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] to delete. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/experiments/<ExperimentID>`.
Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::StartExperimentRequest
The request message for [Experiments.StartExperiment][google.cloud.dialogflow.cx.v3beta1.Experiments.StartExperiment].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the experiment to start. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/experiments/<ExperimentID>`.
Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::StopExperimentRequest
The request message for [Experiments.StopExperiment][google.cloud.dialogflow.cx.v3beta1.Experiments.StopExperiment].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the experiment to stop. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/experiments/<ExperimentID>`.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::Cx::V3beta1::Experiment::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.