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

#include <aggregate_bucket.h>

Inheritance diagram for google_fitness_api::AggregateBucket:

Public Member Functions

 AggregateBucket (const Json::Value &storage)
 
 AggregateBucket (Json::Value *storage)
 
virtual ~AggregateBucket ()
 
const StringPiece GetTypeName () const
 
bool has_activity () const
 
void clear_activity ()
 
int32 get_activity () const
 
void set_activity (int32 value)
 
bool has_dataset () const
 
void clear_dataset ()
 
const client::JsonCppArray< Datasetget_dataset () const
 
client::JsonCppArray< Datasetmutable_dataset ()
 
bool has_end_time_millis () const
 
void clear_end_time_millis ()
 
int64 get_end_time_millis () const
 
void set_end_time_millis (int64 value)
 
bool has_session () const
 
void clear_session ()
 
const Session get_session () const
 
Session mutable_session ()
 
bool has_start_time_millis () const
 
void clear_start_time_millis ()
 
int64 get_start_time_millis () const
 
void set_start_time_millis (int64 value)
 
bool has_type () const
 
void clear_type ()
 
const StringPiece get_type () const
 
void set_type (const StringPiece &value)
 

Static Public Member Functions

static AggregateBucketNew ()
 

Detailed Description

No description provided.

Constructor & Destructor Documentation

◆ AggregateBucket() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ AggregateBucket() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~AggregateBucket()

google_fitness_api::AggregateBucket::~AggregateBucket ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_activity()

void google_fitness_api::AggregateBucket::clear_activity ( )
inline

Clears the 'activity' attribute.

◆ clear_dataset()

void google_fitness_api::AggregateBucket::clear_dataset ( )
inline

Clears the 'dataset' attribute.

◆ clear_end_time_millis()

void google_fitness_api::AggregateBucket::clear_end_time_millis ( )
inline

Clears the 'endTimeMillis' attribute.

◆ clear_session()

void google_fitness_api::AggregateBucket::clear_session ( )
inline

Clears the 'session' attribute.

◆ clear_start_time_millis()

void google_fitness_api::AggregateBucket::clear_start_time_millis ( )
inline

Clears the 'startTimeMillis' attribute.

◆ clear_type()

void google_fitness_api::AggregateBucket::clear_type ( )
inline

Clears the 'type' attribute.

◆ get_activity()

int32 google_fitness_api::AggregateBucket::get_activity ( ) const
inline

Get the value of the 'activity' attribute.

◆ get_dataset()

const client::JsonCppArray<Dataset > google_fitness_api::AggregateBucket::get_dataset ( ) const

Get a reference to the value of the 'dataset' attribute.

◆ get_end_time_millis()

int64 google_fitness_api::AggregateBucket::get_end_time_millis ( ) const
inline

Get the value of the 'endTimeMillis' attribute.

◆ get_session()

const Session google_fitness_api::AggregateBucket::get_session ( ) const

Get a reference to the value of the 'session' attribute.

◆ get_start_time_millis()

int64 google_fitness_api::AggregateBucket::get_start_time_millis ( ) const
inline

Get the value of the 'startTimeMillis' attribute.

◆ get_type()

const StringPiece google_fitness_api::AggregateBucket::get_type ( ) const
inline

Get the value of the 'type' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_fitness_api::AggregateBucket

◆ has_activity()

bool google_fitness_api::AggregateBucket::has_activity ( ) const
inline

Determine if the 'activity' attribute was set.

Returns
true if the 'activity' attribute was set.

◆ has_dataset()

bool google_fitness_api::AggregateBucket::has_dataset ( ) const
inline

Determine if the 'dataset' attribute was set.

Returns
true if the 'dataset' attribute was set.

◆ has_end_time_millis()

bool google_fitness_api::AggregateBucket::has_end_time_millis ( ) const
inline

Determine if the 'endTimeMillis' attribute was set.

Returns
true if the 'endTimeMillis' attribute was set.

◆ has_session()

bool google_fitness_api::AggregateBucket::has_session ( ) const
inline

Determine if the 'session' attribute was set.

Returns
true if the 'session' attribute was set.

◆ has_start_time_millis()

bool google_fitness_api::AggregateBucket::has_start_time_millis ( ) const
inline

Determine if the 'startTimeMillis' attribute was set.

Returns
true if the 'startTimeMillis' attribute was set.

◆ has_type()

bool google_fitness_api::AggregateBucket::has_type ( ) const
inline

Determine if the 'type' attribute was set.

Returns
true if the 'type' attribute was set.

◆ mutable_dataset()

client::JsonCppArray<Dataset > google_fitness_api::AggregateBucket::mutable_dataset ( )

Gets a reference to a mutable value of the 'dataset' property.

There will be one dataset per AggregateBy in the request.

Returns
The result can be modified to change the attribute value.

◆ mutable_session()

Session google_fitness_api::AggregateBucket::mutable_session ( )

Gets a reference to a mutable value of the 'session' property.

Available for Bucket.Type.SESSION.

Returns
The result can be modified to change the attribute value.

◆ New()

AggregateBucket * google_fitness_api::AggregateBucket::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_activity()

void google_fitness_api::AggregateBucket::set_activity ( int32  value)
inline

Change the 'activity' attribute.

Available for Bucket.Type.ACTIVITY_TYPE, Bucket.Type.ACTIVITY_SEGMENT.

Parameters
[in]valueThe new value.

◆ set_end_time_millis()

void google_fitness_api::AggregateBucket::set_end_time_millis ( int64  value)
inline

Change the 'endTimeMillis' attribute.

The end time for the aggregated data, in milliseconds since epoch, inclusive.

Parameters
[in]valueThe new value.

◆ set_start_time_millis()

void google_fitness_api::AggregateBucket::set_start_time_millis ( int64  value)
inline

Change the 'startTimeMillis' attribute.

The start time for the aggregated data, in milliseconds since epoch, inclusive.

Parameters
[in]valueThe new value.

◆ set_type()

void google_fitness_api::AggregateBucket::set_type ( const StringPiece &  value)
inline

Change the 'type' attribute.

The type of a bucket signifies how the data aggregation is performed in the bucket.

Parameters
[in]valueThe new value.

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