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

#include <bucket_by_time.h>

Inheritance diagram for google_fitness_api::BucketByTime:

Public Member Functions

 BucketByTime (const Json::Value &storage)
 
 BucketByTime (Json::Value *storage)
 
virtual ~BucketByTime ()
 
const StringPiece GetTypeName () const
 
bool has_duration_millis () const
 
void clear_duration_millis ()
 
int64 get_duration_millis () const
 
void set_duration_millis (int64 value)
 
bool has_period () const
 
void clear_period ()
 
const BucketByTimePeriod get_period () const
 
BucketByTimePeriod mutable_period ()
 

Static Public Member Functions

static BucketByTimeNew ()
 

Detailed Description

No description provided.

Constructor & Destructor Documentation

◆ BucketByTime() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ BucketByTime() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~BucketByTime()

google_fitness_api::BucketByTime::~BucketByTime ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_duration_millis()

void google_fitness_api::BucketByTime::clear_duration_millis ( )
inline

Clears the 'durationMillis' attribute.

◆ clear_period()

void google_fitness_api::BucketByTime::clear_period ( )
inline

Clears the 'period' attribute.

◆ get_duration_millis()

int64 google_fitness_api::BucketByTime::get_duration_millis ( ) const
inline

Get the value of the 'durationMillis' attribute.

◆ get_period()

const BucketByTimePeriod google_fitness_api::BucketByTime::get_period ( ) const

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

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_fitness_api::BucketByTime

◆ has_duration_millis()

bool google_fitness_api::BucketByTime::has_duration_millis ( ) const
inline

Determine if the 'durationMillis' attribute was set.

Returns
true if the 'durationMillis' attribute was set.

◆ has_period()

bool google_fitness_api::BucketByTime::has_period ( ) const
inline

Determine if the 'period' attribute was set.

Returns
true if the 'period' attribute was set.

◆ mutable_period()

BucketByTimePeriod google_fitness_api::BucketByTime::mutable_period ( )

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

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

◆ New()

BucketByTime * google_fitness_api::BucketByTime::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_duration_millis()

void google_fitness_api::BucketByTime::set_duration_millis ( int64  value)
inline

Change the 'durationMillis' attribute.

Specifies that result buckets aggregate data by exactly durationMillis time frames. Time frames that contain no data will be included in the response with an empty dataset.

Parameters
[in]valueThe new value.

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