#include <experiment.h>
◆ ExperimentVariations() [1/2]
google_analytics_api::Experiment::ExperimentVariations::ExperimentVariations |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ExperimentVariations() [2/2]
google_analytics_api::Experiment::ExperimentVariations::ExperimentVariations |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ~ExperimentVariations()
google_analytics_api::Experiment::ExperimentVariations::~ExperimentVariations |
( |
| ) |
|
|
virtual |
◆ clear_name()
void google_analytics_api::Experiment::ExperimentVariations::clear_name |
( |
| ) |
|
|
inline |
Clears the 'name
' attribute.
◆ clear_status()
void google_analytics_api::Experiment::ExperimentVariations::clear_status |
( |
| ) |
|
|
inline |
Clears the 'status
' attribute.
◆ clear_url()
void google_analytics_api::Experiment::ExperimentVariations::clear_url |
( |
| ) |
|
|
inline |
Clears the 'url
' attribute.
◆ clear_weight()
void google_analytics_api::Experiment::ExperimentVariations::clear_weight |
( |
| ) |
|
|
inline |
Clears the 'weight
' attribute.
◆ clear_won()
void google_analytics_api::Experiment::ExperimentVariations::clear_won |
( |
| ) |
|
|
inline |
Clears the 'won
' attribute.
◆ get_name()
const StringPiece google_analytics_api::Experiment::ExperimentVariations::get_name |
( |
| ) |
const |
|
inline |
Get the value of the 'name
' attribute.
◆ get_status()
const StringPiece google_analytics_api::Experiment::ExperimentVariations::get_status |
( |
| ) |
const |
|
inline |
Get the value of the 'status
' attribute.
◆ get_url()
const StringPiece google_analytics_api::Experiment::ExperimentVariations::get_url |
( |
| ) |
const |
|
inline |
Get the value of the 'url
' attribute.
◆ get_weight()
double google_analytics_api::Experiment::ExperimentVariations::get_weight |
( |
| ) |
const |
|
inline |
Get the value of the 'weight
' attribute.
◆ get_won()
bool google_analytics_api::Experiment::ExperimentVariations::get_won |
( |
| ) |
const |
|
inline |
Get the value of the 'won
' attribute.
◆ GetTypeName()
const StringPiece google_analytics_api::Experiment::ExperimentVariations::GetTypeName |
( |
| ) |
const |
|
inline |
Returns a string denoting the type of this data object.
- Returns
google_analytics_api::ExperimentVariations
◆ has_name()
bool google_analytics_api::Experiment::ExperimentVariations::has_name |
( |
| ) |
const |
|
inline |
Determine if the 'name
' attribute was set.
- Returns
- true if the '
name
' attribute was set.
◆ has_status()
bool google_analytics_api::Experiment::ExperimentVariations::has_status |
( |
| ) |
const |
|
inline |
Determine if the 'status
' attribute was set.
- Returns
- true if the '
status
' attribute was set.
◆ has_url()
bool google_analytics_api::Experiment::ExperimentVariations::has_url |
( |
| ) |
const |
|
inline |
Determine if the 'url
' attribute was set.
- Returns
- true if the '
url
' attribute was set.
◆ has_weight()
bool google_analytics_api::Experiment::ExperimentVariations::has_weight |
( |
| ) |
const |
|
inline |
Determine if the 'weight
' attribute was set.
- Returns
- true if the '
weight
' attribute was set.
◆ has_won()
bool google_analytics_api::Experiment::ExperimentVariations::has_won |
( |
| ) |
const |
|
inline |
Determine if the 'won
' attribute was set.
- Returns
- true if the '
won
' attribute was set.
◆ New()
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_name()
void google_analytics_api::Experiment::ExperimentVariations::set_name |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'name
' attribute.
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
-
◆ set_status()
void google_analytics_api::Experiment::ExperimentVariations::set_status |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'status
' attribute.
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
-
◆ set_url()
void google_analytics_api::Experiment::ExperimentVariations::set_url |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'url
' attribute.
The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED.
- Parameters
-
◆ set_weight()
void google_analytics_api::Experiment::ExperimentVariations::set_weight |
( |
double |
value | ) |
|
|
inline |
Change the 'weight
' attribute.
Weight that this variation should receive. Only present if the experiment is running. This field is read-only.
- Parameters
-
◆ set_won()
void google_analytics_api::Experiment::ExperimentVariations::set_won |
( |
bool |
value | ) |
|
|
inline |
Change the 'won
' attribute.
True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only.
- Parameters
-
The documentation for this class was generated from the following files:
- google/analytics_api/experiment.h
- google/analytics_api/experiment.cc