public sealed class Environment : IMessage<Environment>, IEquatable<Environment>, IDeepCloneable<Environment>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class Environment.
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.
For more information, see the versions and environments guide.
Implements
IMessageEnvironment, IEquatableEnvironment, IDeepCloneableEnvironment, IBufferMessage, IMessageNamespace
Google.Cloud.Dialogflow.V2Beta1Assembly
Google.Cloud.Dialogflow.V2Beta1.dll
Constructors
Environment()
public Environment()
Environment(Environment)
public Environment(Environment other)
Parameter | |
---|---|
Name | Description |
other |
Environment |
Properties
AgentVersion
public string AgentVersion { get; set; }
Optional. The agent version loaded into this environment. Supported formats:
projects/<Project ID>/agent/versions/<Version ID>
projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>
Property Value | |
---|---|
Type | Description |
string |
AgentVersionAsVersionName
public VersionName AgentVersionAsVersionName { get; set; }
VersionName-typed view over the AgentVersion resource name property.
Property Value | |
---|---|
Type | Description |
VersionName |
Description
public string Description { get; set; }
Optional. The developer-provided description for this environment. The maximum length is 500 characters. If exceeded, the request is rejected.
Property Value | |
---|---|
Type | Description |
string |
EnvironmentName
public EnvironmentName EnvironmentName { get; set; }
EnvironmentName-typed view over the Name resource name property.
Property Value | |
---|---|
Type | Description |
EnvironmentName |
Fulfillment
public Fulfillment Fulfillment { get; set; }
Optional. The fulfillment settings to use for this environment.
Property Value | |
---|---|
Type | Description |
Fulfillment |
Name
public string Name { get; set; }
Output only. The unique identifier of this agent environment. Supported formats:
projects/<Project ID>/agent/environments/<Environment ID>
projects/<Project ID>/locations/<Location ID>/agent/environments/<Environment ID>
Property Value | |
---|---|
Type | Description |
string |
State
public Environment.Types.State State { get; set; }
Output only. The state of this environment. This field is read-only, i.e., it cannot be set by create and update methods.
Property Value | |
---|---|
Type | Description |
EnvironmentTypesState |
TextToSpeechSettings
public TextToSpeechSettings TextToSpeechSettings { get; set; }
Optional. Text to speech settings for this environment.
Property Value | |
---|---|
Type | Description |
TextToSpeechSettings |
UpdateTime
public Timestamp UpdateTime { get; set; }
Output only. The last update time of this environment. This field is read-only, i.e., it cannot be set by create and update methods.
Property Value | |
---|---|
Type | Description |
Timestamp |