public final class DataSource 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 |
|---|
DataSource() |
| Modifier and Type | Method and Description |
|---|---|
DataSource |
clone() |
Application |
getApplication()
Information about an application which feeds sensor data into the platform.
|
List<String> |
getDataQualityStandard()
DO NOT POPULATE THIS FIELD.
|
String |
getDataStreamId()
A unique identifier for the data stream produced by this data source.
|
String |
getDataStreamName()
The stream name uniquely identifies this particular data source among other data sources of the
same type from the same underlying producer.
|
DataType |
getDataType()
The data type defines the schema for a stream of data being collected by, inserted into, or
queried from the Fitness API.
|
Device |
getDevice()
Representation of an integrated device (such as a phone or a wearable) that can hold sensors.
|
String |
getName()
An end-user visible name for this data source.
|
String |
getType()
A constant describing the type of this data source.
|
DataSource |
set(String fieldName,
Object value) |
DataSource |
setApplication(Application application)
Information about an application which feeds sensor data into the platform.
|
DataSource |
setDataQualityStandard(List<String> dataQualityStandard)
DO NOT POPULATE THIS FIELD.
|
DataSource |
setDataStreamId(String dataStreamId)
A unique identifier for the data stream produced by this data source.
|
DataSource |
setDataStreamName(String dataStreamName)
The stream name uniquely identifies this particular data source among other data sources of the
same type from the same underlying producer.
|
DataSource |
setDataType(DataType dataType)
The data type defines the schema for a stream of data being collected by, inserted into, or
queried from the Fitness API.
|
DataSource |
setDevice(Device device)
Representation of an integrated device (such as a phone or a wearable) that can hold sensors.
|
DataSource |
setName(String name)
An end-user visible name for this data source.
|
DataSource |
setType(String type)
A constant describing the type of this data source.
|
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 Application getApplication()
null for nonepublic DataSource setApplication(Application application)
application - application or null for nonepublic List<String> getDataQualityStandard()
null for nonepublic DataSource setDataQualityStandard(List<String> dataQualityStandard)
dataQualityStandard - dataQualityStandard or null for nonepublic String getDataStreamId()
null for nonepublic DataSource setDataStreamId(String dataStreamId)
dataStreamId - dataStreamId or null for nonepublic String getDataStreamName()
null for nonepublic DataSource setDataStreamName(String dataStreamName)
dataStreamName - dataStreamName or null for nonepublic DataType getDataType()
null for nonepublic DataSource setDataType(DataType dataType)
dataType - dataType or null for nonepublic Device getDevice()
null for nonepublic DataSource setDevice(Device device)
device - device or null for nonepublic String getName()
null for nonepublic DataSource setName(String name)
name - name or null for nonepublic String getType()
null for nonepublic DataSource setType(String type)
type - type or null for nonepublic DataSource set(String fieldName, Object value)
set in class GenericJsonpublic DataSource clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.