|
fitness
v1
|
#include <value.h>
Public Member Functions | |
| Value (const Json::Value &storage) | |
| Value (Json::Value *storage) | |
| virtual | ~Value () |
| const StringPiece | GetTypeName () const |
| bool | has_fp_val () const |
| void | clear_fp_val () |
| double | get_fp_val () const |
| void | set_fp_val (double value) |
| bool | has_int_val () const |
| void | clear_int_val () |
| int32 | get_int_val () const |
| void | set_int_val (int32 value) |
| bool | has_map_val () const |
| void | clear_map_val () |
| const client::JsonCppArray< ValueMapValEntry > | get_map_val () const |
| client::JsonCppArray< ValueMapValEntry > | mutable_mapVal () |
| bool | has_string_val () const |
| void | clear_string_val () |
| const StringPiece | get_string_val () const |
| void | set_string_val (const StringPiece &value) |
Static Public Member Functions | |
| static Value * | New () |
Holder object for the value of a single field in a data point.
A field value has a particular format and is only ever set to one of an integer or a floating point value.
|
explicit |
Standard constructor for an immutable data object instance.
| [in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
| [in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'fpVal' attribute.
|
inline |
Clears the 'intVal' attribute.
|
inline |
Clears the 'mapVal' attribute.
|
inline |
Clears the 'stringVal' attribute.
|
inline |
Get the value of the 'fpVal' attribute.
|
inline |
Get the value of the 'intVal' attribute.
| const client::JsonCppArray<ValueMapValEntry > google_fitness_api::Value::get_map_val | ( | ) | const |
Get a reference to the value of the 'mapVal' attribute.
|
inline |
Get the value of the 'stringVal' attribute.
|
inline |
Returns a string denoting the type of this data object.
google_fitness_api::Value
|
inline |
Determine if the 'fpVal' attribute was set.
fpVal' attribute was set.
|
inline |
Determine if the 'intVal' attribute was set.
intVal' attribute was set.
|
inline |
Determine if the 'mapVal' attribute was set.
mapVal' attribute was set.
|
inline |
Determine if the 'stringVal' attribute was set.
stringVal' attribute was set. | client::JsonCppArray<ValueMapValEntry > google_fitness_api::Value::mutable_mapVal | ( | ) |
Gets a reference to a mutable value of the 'mapVal' property.
Map value. The valid key space and units for the corresponding value of each entry should be documented as part of the data type definition. Keys should be kept small whenever possible. Data streams with large keys and high data frequency may be down sampled.
|
static |
Creates a new default instance.
|
inline |
Change the 'fpVal' attribute.
Floating point value. When this is set, other values must not be set.
| [in] | value | The new value. |
|
inline |
Change the 'intVal' attribute.
Integer value. When this is set, other values must not be set.
| [in] | value | The new value. |
|
inline |
Change the 'stringVal' attribute.
String value. When this is set, other values must not be set. Strings should be kept small whenever possible. Data streams with large string values and high data frequency may be down sampled.
| [in] | value | The new value. |