Class Version
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.
Namespace: Google.Cloud.Dialogflow.V2
Assembly: Google.Cloud.Dialogflow.V2.dll
Syntax
public sealed class Version : IMessage<Version>, IEquatable<Version>, IDeepCloneable<Version>, IBufferMessage, IMessage
Constructors
Version()
Declaration
public Version()
Version(Version)
Declaration
public Version(Version other)
Parameters
Type | Name | Description |
---|---|---|
Version | other |
Properties
CreateTime
Output only. The creation time of this version. This field is read-only, i.e., it cannot be set by create and update methods.
Declaration
public Timestamp CreateTime { get; set; }
Property Value
Type | Description |
---|---|
Timestamp |
Description
Optional. The developer-provided description of this version.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
Output only. The unique identifier of this agent version. Supported formats:
projects/<Project ID>/agent/versions/<Version ID>
projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Status
Output only. The status of this version. This field is read-only and cannot be set by create and update methods.
Declaration
public Version.Types.VersionStatus Status { get; set; }
Property Value
Type | Description |
---|---|
Version.Types.VersionStatus |
VersionName
VersionName-typed view over the Name resource name property.
Declaration
public VersionName VersionName { get; set; }
Property Value
Type | Description |
---|---|
VersionName |
VersionNumber
Output only. The sequential number of this version. This field is read-only which means it cannot be set by create and update methods.
Declaration
public int VersionNumber { get; set; }
Property Value
Type | Description |
---|---|
int |