public final class Device 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 |
|---|
Device() |
| Modifier and Type | Method and Description |
|---|---|
Device |
clone() |
String |
getManufacturer()
Manufacturer of the product/hardware.
|
String |
getModel()
End-user visible model name for the device.
|
String |
getType()
A constant representing the type of the device.
|
String |
getUid()
The serial number or other unique ID for the hardware.
|
String |
getVersion()
Version string for the device hardware/software.
|
Device |
set(String fieldName,
Object value) |
Device |
setManufacturer(String manufacturer)
Manufacturer of the product/hardware.
|
Device |
setModel(String model)
End-user visible model name for the device.
|
Device |
setType(String type)
A constant representing the type of the device.
|
Device |
setUid(String uid)
The serial number or other unique ID for the hardware.
|
Device |
setVersion(String version)
Version string for the device hardware/software.
|
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 getManufacturer()
null for nonepublic Device setManufacturer(String manufacturer)
manufacturer - manufacturer or null for nonepublic String getModel()
null for nonepublic Device setModel(String model)
model - model or null for nonepublic String getType()
null for nonepublic Device setType(String type)
type - type or null for nonepublic String getUid()
null for nonepublic Device setUid(String uid)
uid - uid or null for nonepublic String getVersion()
null for nonepublic Device setVersion(String version)
version - version or null for nonepublic Device set(String fieldName, Object value)
set in class GenericJsonpublic Device clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.