public sealed class Variant : IMessage<VersionVariants.Types.Variant>, IEquatable<VersionVariants.Types.Variant>, IDeepCloneable<VersionVariants.Types.Variant>, IBufferMessage, IMessage
A single flow version with specified traffic allocation.
Percentage of the traffic which should be routed to this
version of flow. Traffic allocation for a single flow must sum up to 1.0.
Property Value
Type
Description
System.Single
Version
public string Version { get; set; }
The name of the flow version.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/flows/<Flow ID>/versions/<Version ID>.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version available is 2.23.0, part of the \u003ccode\u003eGoogle.Cloud.Dialogflow.Cx.V3\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThis document lists numerous versions of \u003ccode\u003eVersionVariants.Types.Variant\u003c/code\u003e, starting from 1.0.0 up to the most recent 2.23.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVariant\u003c/code\u003e class represents a single flow version with specific traffic allocation settings, and implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVariant\u003c/code\u003e class has properties such as \u003ccode\u003eIsControlGroup\u003c/code\u003e, \u003ccode\u003eTrafficAllocation\u003c/code\u003e, and \u003ccode\u003eVersion\u003c/code\u003e, allowing for control group designation, traffic percentage routing, and flow version identification, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides two constructors, one default and one that accepts another \u003ccode\u003eVariant\u003c/code\u003e as a parameter, and is contained within the \u003ccode\u003eGoogle.Cloud.Dialogflow.Cx.V3.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]