public final class AggregateBucket 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 |
|---|
AggregateBucket() |
| Modifier and Type | Method and Description |
|---|---|
AggregateBucket |
clone() |
Integer |
getActivity()
Available for Bucket.Type.ACTIVITY_TYPE, Bucket.Type.ACTIVITY_SEGMENT
|
List<Dataset> |
getDataset()
There will be one dataset per AggregateBy in the request.
|
Long |
getEndTimeMillis()
The end time for the aggregated data, in milliseconds since epoch, inclusive.
|
Session |
getSession()
Available for Bucket.Type.SESSION
|
Long |
getStartTimeMillis()
The start time for the aggregated data, in milliseconds since epoch, inclusive.
|
String |
getType()
The type of a bucket signifies how the data aggregation is performed in the bucket.
|
AggregateBucket |
set(String fieldName,
Object value) |
AggregateBucket |
setActivity(Integer activity)
Available for Bucket.Type.ACTIVITY_TYPE, Bucket.Type.ACTIVITY_SEGMENT
|
AggregateBucket |
setDataset(List<Dataset> dataset)
There will be one dataset per AggregateBy in the request.
|
AggregateBucket |
setEndTimeMillis(Long endTimeMillis)
The end time for the aggregated data, in milliseconds since epoch, inclusive.
|
AggregateBucket |
setSession(Session session)
Available for Bucket.Type.SESSION
|
AggregateBucket |
setStartTimeMillis(Long startTimeMillis)
The start time for the aggregated data, in milliseconds since epoch, inclusive.
|
AggregateBucket |
setType(String type)
The type of a bucket signifies how the data aggregation is performed in the bucket.
|
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 Integer getActivity()
null for nonepublic AggregateBucket setActivity(Integer activity)
activity - activity or null for nonepublic List<Dataset> getDataset()
null for nonepublic AggregateBucket setDataset(List<Dataset> dataset)
dataset - dataset or null for nonepublic Long getEndTimeMillis()
null for nonepublic AggregateBucket setEndTimeMillis(Long endTimeMillis)
endTimeMillis - endTimeMillis or null for nonepublic Session getSession()
null for nonepublic AggregateBucket setSession(Session session)
session - session or null for nonepublic Long getStartTimeMillis()
null for nonepublic AggregateBucket setStartTimeMillis(Long startTimeMillis)
startTimeMillis - startTimeMillis or null for nonepublic String getType()
null for nonepublic AggregateBucket setType(String type)
type - type or null for nonepublic AggregateBucket set(String fieldName, Object value)
set in class GenericJsonpublic AggregateBucket clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.