fitness  v1
Public Member Functions | Static Public Member Functions | List of all members
google_fitness_api::AggregateBy Class Reference

#include <aggregate_by.h>

Inheritance diagram for google_fitness_api::AggregateBy:

Public Member Functions

 AggregateBy (const Json::Value &storage)
 
 AggregateBy (Json::Value *storage)
 
virtual ~AggregateBy ()
 
const StringPiece GetTypeName () const
 
bool has_data_source_id () const
 
void clear_data_source_id ()
 
const StringPiece get_data_source_id () const
 
void set_data_source_id (const StringPiece &value)
 
bool has_data_type_name () const
 
void clear_data_type_name ()
 
const StringPiece get_data_type_name () const
 
void set_data_type_name (const StringPiece &value)
 

Static Public Member Functions

static AggregateByNew ()
 

Detailed Description

The specification of which data to aggregate.

Constructor & Destructor Documentation

◆ AggregateBy() [1/2]

google_fitness_api::AggregateBy::AggregateBy ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ AggregateBy() [2/2]

google_fitness_api::AggregateBy::AggregateBy ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~AggregateBy()

google_fitness_api::AggregateBy::~AggregateBy ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_data_source_id()

void google_fitness_api::AggregateBy::clear_data_source_id ( )
inline

Clears the 'dataSourceId' attribute.

◆ clear_data_type_name()

void google_fitness_api::AggregateBy::clear_data_type_name ( )
inline

Clears the 'dataTypeName' attribute.

◆ get_data_source_id()

const StringPiece google_fitness_api::AggregateBy::get_data_source_id ( ) const
inline

Get the value of the 'dataSourceId' attribute.

◆ get_data_type_name()

const StringPiece google_fitness_api::AggregateBy::get_data_type_name ( ) const
inline

Get the value of the 'dataTypeName' attribute.

◆ GetTypeName()

const StringPiece google_fitness_api::AggregateBy::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_fitness_api::AggregateBy

◆ has_data_source_id()

bool google_fitness_api::AggregateBy::has_data_source_id ( ) const
inline

Determine if the 'dataSourceId' attribute was set.

Returns
true if the 'dataSourceId' attribute was set.

◆ has_data_type_name()

bool google_fitness_api::AggregateBy::has_data_type_name ( ) const
inline

Determine if the 'dataTypeName' attribute was set.

Returns
true if the 'dataTypeName' attribute was set.

◆ New()

AggregateBy * google_fitness_api::AggregateBy::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_data_source_id()

void google_fitness_api::AggregateBy::set_data_source_id ( const StringPiece &  value)
inline

Change the 'dataSourceId' attribute.

A data source ID to aggregate. Only data from the specified data source ID will be included in the aggregation. If specified, this data source must exist; the OAuth scopes in the supplied credentials must grant read access to this data type. The dataset in the response will have the same data source ID. Note: Data can be aggregated by either the dataTypeName or the dataSourceId, not both.

Parameters
[in]valueThe new value.

◆ set_data_type_name()

void google_fitness_api::AggregateBy::set_data_type_name ( const StringPiece &  value)
inline

Change the 'dataTypeName' attribute.

The data type to aggregate. All data sources providing this data type will contribute data to the aggregation. The response will contain a single dataset for this data type name. The dataset will have a data source ID of derived::com.google.android.gms:aggregated. If the user has no data for this data type, an empty data set will be returned. Note: Data can be aggregated by either the dataTypeName or the dataSourceId, not both.

Parameters
[in]valueThe new value.

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