Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class Variant.
A single flow version with specified traffic allocation.
Generated from protobuf message google.cloud.dialogflow.cx.v3.VersionVariants.Variant
Namespace
Google \ Cloud \ Dialogflow \ Cx \ V3 \ VersionVariantsMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ version
string
The name of the flow version. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>
.
↳ traffic_allocation
float
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.
↳ is_control_group
bool
Whether the variant is for the control group.
getVersion
The name of the flow version.
Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>
.
string
setVersion
The name of the flow version.
Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>
.
var
string
$this
getTrafficAllocation
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.
float
setTrafficAllocation
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.
var
float
$this
getIsControlGroup
Whether the variant is for the control group.
bool
setIsControlGroup
Whether the variant is for the control group.
var
bool
$this