|
fitness
v1
|
#include <data_point.h>
Static Public Member Functions | |
| static DataPoint * | New () |
Represents a single data point, generated by a particular data source. A data point holds a value for each field, an end timestamp and an optional start time. The exact semantics of each of these attributes are specified in the documentation for the particular data type.
A data point can represent an instantaneous measurement, reading or input observation, as well as averages or aggregates over a time interval. Check the data type documentation to determine which is the case for a particular data type.
Data points always contain one value for each field of the data type.
|
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 'computationTimeMillis' attribute.
|
inline |
Clears the 'dataTypeName' attribute.
|
inline |
Clears the 'endTimeNanos' attribute.
|
inline |
Clears the 'modifiedTimeMillis' attribute.
|
inline |
Clears the 'originDataSourceId' attribute.
|
inline |
Clears the 'rawTimestampNanos' attribute.
|
inline |
Clears the 'startTimeNanos' attribute.
|
inline |
Clears the 'value' attribute.
|
inline |
Get the value of the 'computationTimeMillis' attribute.
|
inline |
Get the value of the 'dataTypeName' attribute.
|
inline |
Get the value of the 'endTimeNanos' attribute.
|
inline |
Get the value of the 'modifiedTimeMillis' attribute.
|
inline |
Get the value of the 'originDataSourceId' attribute.
|
inline |
Get the value of the 'rawTimestampNanos' attribute.
|
inline |
Get the value of the 'startTimeNanos' attribute.
| const client::JsonCppArray<Value > google_fitness_api::DataPoint::get_value | ( | ) | const |
Get a reference to the value of the 'value' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'computationTimeMillis' attribute was set.
computationTimeMillis' attribute was set.
|
inline |
Determine if the 'dataTypeName' attribute was set.
dataTypeName' attribute was set.
|
inline |
Determine if the 'endTimeNanos' attribute was set.
endTimeNanos' attribute was set.
|
inline |
Determine if the 'modifiedTimeMillis' attribute was set.
modifiedTimeMillis' attribute was set.
|
inline |
Determine if the 'originDataSourceId' attribute was set.
originDataSourceId' attribute was set.
|
inline |
Determine if the 'rawTimestampNanos' attribute was set.
rawTimestampNanos' attribute was set.
|
inline |
Determine if the 'startTimeNanos' attribute was set.
startTimeNanos' attribute was set.
|
inline |
Determine if the 'value' attribute was set.
value' attribute was set. | client::JsonCppArray<Value > google_fitness_api::DataPoint::mutable_value | ( | ) |
Gets a reference to a mutable value of the 'value' property.
Values of each data type field for the data point. It is expected that each value corresponding to a data type field will occur in the same order that the field is listed with in the data type specified in a data source.
Only one of integer and floating point fields will be populated, depending on the format enum value within data source's type field.
|
static |
Creates a new default instance.
|
inline |
Change the 'computationTimeMillis' attribute.
DO NOT USE THIS FIELD. It is ignored, and not stored.
| [in] | value | The new value. |
|
inline |
Change the 'dataTypeName' attribute.
The data type defining the format of the values in this data point.
| [in] | value | The new value. |
|
inline |
Change the 'endTimeNanos' attribute.
The end time of the interval represented by this data point, in nanoseconds since epoch.
| [in] | value | The new value. |
|
inline |
Change the 'modifiedTimeMillis' attribute.
Indicates the last time this data point was modified. Useful only in contexts where we are listing the data changes, rather than representing the current state of the data.
| [in] | value | The new value. |
|
inline |
Change the 'originDataSourceId' attribute.
If the data point is contained in a dataset for a derived data source, this field will be populated with the data source stream ID that created the data point originally.
WARNING: do not rely on this field for anything other than debugging. The value of this field, if it is set at all, is an implementation detail and is not guaranteed to remain consistent.
| [in] | value | The new value. |
|
inline |
Change the 'rawTimestampNanos' attribute.
The raw timestamp from the original SensorEvent.
| [in] | value | The new value. |
|
inline |
Change the 'startTimeNanos' attribute.
The start time of the interval represented by this data point, in nanoseconds since epoch.
| [in] | value | The new value. |