public final class DataPoint extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Fitness API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
DataPoint() |
| Modifier and Type | Method and Description |
|---|---|
DataPoint |
clone() |
Long |
getComputationTimeMillis()
DO NOT USE THIS FIELD.
|
String |
getDataTypeName()
The data type defining the format of the values in this data point.
|
Long |
getEndTimeNanos()
The end time of the interval represented by this data point, in nanoseconds since epoch.
|
Long |
getModifiedTimeMillis()
Indicates the last time this data point was modified.
|
String |
getOriginDataSourceId()
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.
|
Long |
getRawTimestampNanos()
The raw timestamp from the original SensorEvent.
|
Long |
getStartTimeNanos()
The start time of the interval represented by this data point, in nanoseconds since epoch.
|
List<Value> |
getValue()
Values of each data type field for the data point.
|
DataPoint |
set(String fieldName,
Object value) |
DataPoint |
setComputationTimeMillis(Long computationTimeMillis)
DO NOT USE THIS FIELD.
|
DataPoint |
setDataTypeName(String dataTypeName)
The data type defining the format of the values in this data point.
|
DataPoint |
setEndTimeNanos(Long endTimeNanos)
The end time of the interval represented by this data point, in nanoseconds since epoch.
|
DataPoint |
setModifiedTimeMillis(Long modifiedTimeMillis)
Indicates the last time this data point was modified.
|
DataPoint |
setOriginDataSourceId(String originDataSourceId)
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.
|
DataPoint |
setRawTimestampNanos(Long rawTimestampNanos)
The raw timestamp from the original SensorEvent.
|
DataPoint |
setStartTimeNanos(Long startTimeNanos)
The start time of the interval represented by this data point, in nanoseconds since epoch.
|
DataPoint |
setValue(List<Value> value)
Values of each data type field for the data point.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Long getComputationTimeMillis()
null for nonepublic DataPoint setComputationTimeMillis(Long computationTimeMillis)
computationTimeMillis - computationTimeMillis or null for nonepublic String getDataTypeName()
null for nonepublic DataPoint setDataTypeName(String dataTypeName)
dataTypeName - dataTypeName or null for nonepublic Long getEndTimeNanos()
null for nonepublic DataPoint setEndTimeNanos(Long endTimeNanos)
endTimeNanos - endTimeNanos or null for nonepublic Long getModifiedTimeMillis()
null for nonepublic DataPoint setModifiedTimeMillis(Long modifiedTimeMillis)
modifiedTimeMillis - modifiedTimeMillis or null for nonepublic String getOriginDataSourceId()
null for nonepublic DataPoint setOriginDataSourceId(String originDataSourceId)
originDataSourceId - originDataSourceId or null for nonepublic Long getRawTimestampNanos()
null for nonepublic DataPoint setRawTimestampNanos(Long rawTimestampNanos)
rawTimestampNanos - rawTimestampNanos or null for nonepublic Long getStartTimeNanos()
null for nonepublic DataPoint setStartTimeNanos(Long startTimeNanos)
startTimeNanos - startTimeNanos or null for nonepublic List<Value> getValue()
null for nonepublic DataPoint setValue(List<Value> value)
value - value or null for nonepublic DataPoint set(String fieldName, Object value)
set in class GenericJsonpublic DataPoint clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.