public final class DataSource
extends com.google.api.client.json.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. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| 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.
|
java.util.List<java.lang.String> |
getDataQualityStandard()
DO NOT POPULATE THIS FIELD.
|
java.lang.String |
getDataStreamId()
A unique identifier for the data stream produced by this data source.
|
java.lang.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.
|
java.lang.String |
getName()
An end-user visible name for this data source.
|
java.lang.String |
getType()
A constant describing the type of this data source.
|
DataSource |
set(java.lang.String fieldName,
java.lang.Object value) |
DataSource |
setApplication(Application application)
Information about an application which feeds sensor data into the platform.
|
DataSource |
setDataQualityStandard(java.util.List<java.lang.String> dataQualityStandard)
DO NOT POPULATE THIS FIELD.
|
DataSource |
setDataStreamId(java.lang.String dataStreamId)
A unique identifier for the data stream produced by this data source.
|
DataSource |
setDataStreamName(java.lang.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(java.lang.String name)
An end-user visible name for this data source.
|
DataSource |
setType(java.lang.String type)
A constant describing the type of this data source.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic Application getApplication()
null for nonepublic DataSource setApplication(Application application)
application - application or null for nonepublic java.util.List<java.lang.String> getDataQualityStandard()
null for nonepublic DataSource setDataQualityStandard(java.util.List<java.lang.String> dataQualityStandard)
dataQualityStandard - dataQualityStandard or null for nonepublic java.lang.String getDataStreamId()
null for nonepublic DataSource setDataStreamId(java.lang.String dataStreamId)
dataStreamId - dataStreamId or null for nonepublic java.lang.String getDataStreamName()
null for nonepublic DataSource setDataStreamName(java.lang.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 java.lang.String getName()
null for nonepublic DataSource setName(java.lang.String name)
name - name or null for nonepublic java.lang.String getType()
null for nonepublic DataSource setType(java.lang.String type)
type - type or null for nonepublic DataSource set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic DataSource clone()
clone in class com.google.api.client.json.GenericJson