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.
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 webpage provides documentation for the \u003ccode\u003eVariant\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Dialogflow.Cx.V3\u003c/code\u003e namespace, specifically version 1.7.0, but with links to versions going back as far as 1.0.0 and up to 2.23.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eVariant\u003c/code\u003e is a class that represents a single flow version with a specific traffic allocation in the context of Dialogflow CX, used to specify traffic routing to different versions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVariant\u003c/code\u003e class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for message handling, equality comparisons, deep cloning, and buffer manipulation, respectively.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eVariant\u003c/code\u003e class include \u003ccode\u003eIsControlGroup\u003c/code\u003e, a boolean indicating if the variant is a control group, \u003ccode\u003eTrafficAllocation\u003c/code\u003e, a float representing the percentage of traffic routed, and \u003ccode\u003eVersion\u003c/code\u003e, a string that contains the full path to a specific flow version.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVariant\u003c/code\u003e class has two constructors: a default constructor and one that takes another \u003ccode\u003eVariant\u003c/code\u003e object as a parameter, allowing for the creation of new \u003ccode\u003eVariant\u003c/code\u003e instances or the creation of a copy.\u003c/p\u003e\n"]]],[],null,[]]