Service Client: Google::Cloud::Dialogflow::Cx::V3beta1::Environment::EnvironmentsClient
Client stub representing the remote Environments 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::Environment - Compiled Protocol Buffers messages for google/cloud/dialogflow/cx/v3beta1/environment.proto
SYNOPSIS
use Google::Cloud::Dialogflow::Cx::V3beta1::Environment;
my $msg = Google::Cloud::Dialogflow::Cx::V3beta1::Environment::Environment->new({
name => $name,
display_name => $display_name,
description => $description,
version_configs => $version_configs,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Dialogflow::Cx::V3beta1::Environment::Environment->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/cx/v3beta1/environment.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::Environment::Environment
Represents an environment for an agent. You can create multiple versions of your agent and publish them to separate environments. When you edit an agent, you are editing the draft agent. At any point, you can save the draft agent as an agent version, which is an immutable snapshot of your agent. When you save the draft agent, it is published to the default environment. When you create agent versions, you can publish them to custom environments. You can create a variety of custom environments for testing, development, production, etc.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe name of the environment. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. The human-readable name of the environment (unique in an agent). Limit of 64 characters.
$msg->description()/$msg->description($value)Type:
StringThe human-readable description of the environment. The maximum length is 500 characters. If exceeded, the request is rejected.
$msg->version_configs()/$msg->version_configs($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Environment::Environment::VersionConfig)A list of configurations for flow versions. You should include version configs for all flows that are reachable from [`Start Flow`][Agent.start_flow] in the agent. Otherwise, an error will be returned.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Update time of this environment.
$msg->test_cases_config()/$msg->test_cases_config($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Environment::Environment::TestCasesConfig)The test cases config for continuous tests of this environment.
$msg->webhook_config()/$msg->webhook_config($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Environment::Environment::WebhookConfig)The webhook configuration for this environment.
Google::Cloud::Dialogflow::Cx::V3beta1::Environment::ListEnvironmentsRequest
The request message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3beta1.Environments.ListEnvironments].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The [Agent][google.cloud.dialogflow.cx.v3beta1.Agent] to list all environments for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
$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::Environment::ListEnvironmentsResponse
The response message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3beta1.Environments.ListEnvironments].
Inherits from Protobuf::Message.
Accessors
$msg->environments()/$msg->environments($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Environment::Environment)The list of environments. 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::Environment::GetEnvironmentRequest
The request message for [Environments.GetEnvironment][google.cloud.dialogflow.cx.v3beta1.Environments.GetEnvironment].
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>`.
Google::Cloud::Dialogflow::Cx::V3beta1::Environment::CreateEnvironmentRequest
The request message for [Environments.CreateEnvironment][google.cloud.dialogflow.cx.v3beta1.Environments.CreateEnvironment].
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>`.
$msg->environment()/$msg->environment($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Environment::Environment)Required. The environment to create.
Google::Cloud::Dialogflow::Cx::V3beta1::Environment::UpdateEnvironmentRequest
The request message for [Environments.UpdateEnvironment][google.cloud.dialogflow.cx.v3beta1.Environments.UpdateEnvironment].
Inherits from Protobuf::Message.
Accessors
$msg->environment()/$msg->environment($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Environment::Environment)Required. The environment 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::Environment::DeleteEnvironmentRequest
The request message for [Environments.DeleteEnvironment][google.cloud.dialogflow.cx.v3beta1.Environments.DeleteEnvironment].
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>`.
Google::Cloud::Dialogflow::Cx::V3beta1::Environment::LookupEnvironmentHistoryRequest
The request message for [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3beta1.Environments.LookupEnvironmentHistory].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the environment to look up the history 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 100 and at most 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringThe next_page_token value returned from a previous list request.
Google::Cloud::Dialogflow::Cx::V3beta1::Environment::LookupEnvironmentHistoryResponse
The response message for [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3beta1.Environments.LookupEnvironmentHistory].
Inherits from Protobuf::Message.
Accessors
$msg->environments()/$msg->environments($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Environment::Environment)Represents a list of snapshots for an environment. Time of the snapshots is stored in [`update_time`][google.cloud.dialogflow.cx.v3beta1.Environment.update_time].
$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::Environment::ContinuousTestResult
Represents a result from running a test case in an agent environment.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe resource name for the continuous test result. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/continuousTestResults/<ContinuousTestResultID>`.
$msg->result()/$msg->result($value)Type:
Enum(Google::Cloud::Dialogflow::Cx::V3beta1::ContinuousTestResult::AggregatedTestResult)The result of this continuous test run, i.e. whether all the tests in this continuous test run pass or not.
$msg->test_case_results()/$msg->test_case_results($value)Type:
StringA list of individual test case results names in this continuous test run.
$msg->run_time()/$msg->run_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Time when the continuous testing run starts.
Enum: ContinuousTestResult::AggregatedTestResult
AGGREGATED_TEST_RESULT_UNSPECIFIED=>0PASSED=>1FAILED=>2
Google::Cloud::Dialogflow::Cx::V3beta1::Environment::RunContinuousTestRequest
The request message for [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3beta1.Environments.RunContinuousTest].
Inherits from Protobuf::Message.
Accessors
$msg->environment()/$msg->environment($value)Type:
StringRequired. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
Google::Cloud::Dialogflow::Cx::V3beta1::Environment::RunContinuousTestResponse
The response message for [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3beta1.Environments.RunContinuousTest].
Inherits from Protobuf::Message.
Accessors
$msg->continuous_test_result()/$msg->continuous_test_result($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Environment::ContinuousTestResult)The result for a continuous test run.
Google::Cloud::Dialogflow::Cx::V3beta1::Environment::RunContinuousTestMetadata
Metadata returned for the [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3beta1.Environments.RunContinuousTest] long running operation.
Inherits from Protobuf::Message.
Accessors
$msg->errors()/$msg->errors($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::TestCase::TestError)The test errors.
Google::Cloud::Dialogflow::Cx::V3beta1::Environment::ListContinuousTestResultsRequest
The request message for [Environments.ListContinuousTestResults][google.cloud.dialogflow.cx.v3beta1.Environments.ListContinuousTestResults].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The environment to list results 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 100 and at most 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringThe next_page_token value returned from a previous list request.
Google::Cloud::Dialogflow::Cx::V3beta1::Environment::ListContinuousTestResultsResponse
The response message for [Environments.ListTestCaseResults][].
Inherits from Protobuf::Message.
Accessors
$msg->continuous_test_results()/$msg->continuous_test_results($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Environment::ContinuousTestResult)The list of continuous test results.
$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::Environment::DeployFlowRequest
The request message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlow].
Inherits from Protobuf::Message.
Accessors
$msg->environment()/$msg->environment($value)Type:
StringRequired. The environment to deploy the flow to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
$msg->flow_version()/$msg->flow_version($value)Type:
StringRequired. The flow version to deploy. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
Google::Cloud::Dialogflow::Cx::V3beta1::Environment::DeployFlowResponse
The response message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlow].
Inherits from Protobuf::Message.
Accessors
$msg->environment()/$msg->environment($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Environment::Environment)The updated environment where the flow is deployed.
$msg->deployment()/$msg->deployment($value)Type:
StringThe name of the flow version deployment. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/deployments/<DeploymentID>`.
Google::Cloud::Dialogflow::Cx::V3beta1::Environment::DeployFlowMetadata
Metadata returned for the [Environments.DeployFlow][google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlow] long running operation.
Inherits from Protobuf::Message.
Accessors
$msg->test_errors()/$msg->test_errors($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::TestCase::TestError)Errors of running deployment tests.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::Cx::V3beta1::Environment::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.