public final class Dataset 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 |
|---|
Dataset() |
| Modifier and Type | Method and Description |
|---|---|
Dataset |
clone() |
String |
getDataSourceId()
The data stream ID of the data source that created the points in this dataset.
|
Long |
getMaxEndTimeNs()
The largest end time of all data points in this possibly partial representation of the dataset.
|
Long |
getMinStartTimeNs()
The smallest start time of all data points in this possibly partial representation of the
dataset.
|
String |
getNextPageToken()
This token will be set when a dataset is received in response to a GET request and the dataset
is too large to be included in a single response.
|
List<DataPoint> |
getPoint()
A partial list of data points contained in the dataset, ordered by endTimeNanos.
|
Dataset |
set(String fieldName,
Object value) |
Dataset |
setDataSourceId(String dataSourceId)
The data stream ID of the data source that created the points in this dataset.
|
Dataset |
setMaxEndTimeNs(Long maxEndTimeNs)
The largest end time of all data points in this possibly partial representation of the dataset.
|
Dataset |
setMinStartTimeNs(Long minStartTimeNs)
The smallest start time of all data points in this possibly partial representation of the
dataset.
|
Dataset |
setNextPageToken(String nextPageToken)
This token will be set when a dataset is received in response to a GET request and the dataset
is too large to be included in a single response.
|
Dataset |
setPoint(List<DataPoint> point)
A partial list of data points contained in the dataset, ordered by endTimeNanos.
|
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 String getDataSourceId()
null for nonepublic Dataset setDataSourceId(String dataSourceId)
dataSourceId - dataSourceId or null for nonepublic Long getMaxEndTimeNs()
null for nonepublic Dataset setMaxEndTimeNs(Long maxEndTimeNs)
maxEndTimeNs - maxEndTimeNs or null for nonepublic Long getMinStartTimeNs()
null for nonepublic Dataset setMinStartTimeNs(Long minStartTimeNs)
minStartTimeNs - minStartTimeNs or null for nonepublic String getNextPageToken()
null for nonepublic Dataset setNextPageToken(String nextPageToken)
nextPageToken - nextPageToken or null for nonepublic List<DataPoint> getPoint()
null for nonepublic Dataset setPoint(List<DataPoint> point)
point - point or null for nonepublic Dataset set(String fieldName, Object value)
set in class GenericJsonpublic Dataset clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.