analytics  v3
Public Member Functions | Static Public Member Functions | List of all members
google_analytics_api::Experiment::ExperimentVariations Class Reference

#include <experiment.h>

Inheritance diagram for google_analytics_api::Experiment::ExperimentVariations:

Public Member Functions

 ExperimentVariations (const Json::Value &storage)
 
 ExperimentVariations (Json::Value *storage)
 
virtual ~ExperimentVariations ()
 
const StringPiece GetTypeName () const
 
bool has_name () const
 
void clear_name ()
 
const StringPiece get_name () const
 
void set_name (const StringPiece &value)
 
bool has_status () const
 
void clear_status ()
 
const StringPiece get_status () const
 
void set_status (const StringPiece &value)
 
bool has_url () const
 
void clear_url ()
 
const StringPiece get_url () const
 
void set_url (const StringPiece &value)
 
bool has_weight () const
 
void clear_weight ()
 
double get_weight () const
 
void set_weight (double value)
 
bool has_won () const
 
void clear_won ()
 
bool get_won () const
 
void set_won (bool value)
 

Static Public Member Functions

static ExperimentVariationsNew ()
 

Detailed Description

No description provided.

Constructor & Destructor Documentation

◆ ExperimentVariations() [1/2]

google_analytics_api::Experiment::ExperimentVariations::ExperimentVariations ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe 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]storageThe underlying data storage for this instance.

◆ ~ExperimentVariations()

google_analytics_api::Experiment::ExperimentVariations::~ExperimentVariations ( )
virtual

Standard destructor.

Member Function Documentation

◆ 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()

Experiment::ExperimentVariations * google_analytics_api::Experiment::ExperimentVariations::New ( )
static

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
[in]valueThe new value.

◆ 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
[in]valueThe new value.

◆ 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
[in]valueThe new value.

◆ 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
[in]valueThe new value.

◆ 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
[in]valueThe new value.

The documentation for this class was generated from the following files: