-
public final class ExperimentVariantA single experiment variant.
SPEC-070-A F.10: Firestore-canonical key for variant data is
payload(matching iOSExperimentVariant.payload); legacy SDKs wroteconfig. The parser in RemoteConfigManager.parseExperiments accepts BOTH keys, preferringpayloadwhen set. The Kotlin field stays namedconfigso all existing callers (e.g. ExperimentManager.getValue) keep working.SPEC-036-F §1.2 —
configRefis the entity id this variant maps to: for the control it's the live active entity id (rendered via the surface index, no payload); for the treatment it's the materialized draft entity whose renderable config the server inlined intoconfig/payload.isControldistinguishes the two. Both nullable for backward-compat. Decoded from the servedconfig_ref/is_controlkeys.
-
-
Method Summary
Modifier and Type Method Description final StringgetId()final DoublegetWeight()final Map<String, Object>getConfig()final StringgetConfigRef()final BooleangetIsControl()final StringgetVariantDoc()-
-
Method Detail
-
getConfigRef
final String getConfigRef()
-
getIsControl
final Boolean getIsControl()
-
getVariantDoc
final String getVariantDoc()
-
-
-
-