target.apidocs.com.google.api.services.analytics.model.Experiment.Variations.html Maven / Gradle / Ivy
Experiment.Variations (Google Analytics API v3-rev20190604-1.30.1)
com.google.api.services.analytics.model
Class Experiment.Variations
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.analytics.model.Experiment.Variations
-
- Enclosing class:
- Experiment
public static final class Experiment.Variations
extends GenericJson
Model definition for ExperimentVariations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Variations()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Experiment.Variations
clone()
String
getName()
The name of the variation.
String
getStatus()
Status of the variation.
String
getUrl()
The URL of the variation.
Double
getWeight()
Weight that this variation should receive.
Boolean
getWon()
True if the experiment has ended and this variation performed (statistically) significantly
better than the original.
Experiment.Variations
set(String fieldName,
Object value)
Experiment.Variations
setName(String name)
The name of the variation.
Experiment.Variations
setStatus(String status)
Status of the variation.
Experiment.Variations
setUrl(String url)
The URL of the variation.
Experiment.Variations
setWeight(Double weight)
Weight that this variation should receive.
Experiment.Variations
setWon(Boolean won)
True if the experiment has ended and this variation performed (statistically) significantly
better than the original.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getName
public String getName()
The name of the variation. This field is required when creating an experiment. This field may
not be changed for an experiment whose status is ENDED.
- Returns:
- value or
null
for none
-
setName
public Experiment.Variations setName(String name)
The name of the variation. This field is required when creating an experiment. This field may
not be changed for an experiment whose status is ENDED.
- Parameters:
name
- name or null
for none
-
getStatus
public String getStatus()
Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE variations are not
served. This field may not be changed for an experiment whose status is ENDED.
- Returns:
- value or
null
for none
-
setStatus
public Experiment.Variations setStatus(String status)
Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE variations are not
served. This field may not be changed for an experiment whose status is ENDED.
- Parameters:
status
- status or null
for none
-
getUrl
public String getUrl()
The URL of the variation. This field may not be changed for an experiment whose status is
RUNNING or ENDED.
- Returns:
- value or
null
for none
-
setUrl
public Experiment.Variations setUrl(String url)
The URL of the variation. This field may not be changed for an experiment whose status is
RUNNING or ENDED.
- Parameters:
url
- url or null
for none
-
getWeight
public Double getWeight()
Weight that this variation should receive. Only present if the experiment is running. This
field is read-only.
- Returns:
- value or
null
for none
-
setWeight
public Experiment.Variations setWeight(Double weight)
Weight that this variation should receive. Only present if the experiment is running. This
field is read-only.
- Parameters:
weight
- weight or null
for none
-
getWon
public Boolean getWon()
True if the experiment has ended and this variation performed (statistically) significantly
better than the original. This field is read-only.
- Returns:
- value or
null
for none
-
setWon
public Experiment.Variations setWon(Boolean won)
True if the experiment has ended and this variation performed (statistically) significantly
better than the original. This field is read-only.
- Parameters:
won
- won or null
for none
-
set
public Experiment.Variations set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Experiment.Variations clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2019 Google. All rights reserved.