Google Analytics API v3 (revision 41)



com.google.api.services.analytics.model
Class Experiment.Variations

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.analytics.model.Experiment.Variations
All Implemented Interfaces:
Cloneable, Map<String,Object>
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>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
Experiment.Variations()
           
 
Method Summary
 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, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Experiment.Variations

public Experiment.Variations()
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