public final class DataTypeField 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 |
|---|
DataTypeField() |
| Modifier and Type | Method and Description |
|---|---|
DataTypeField |
clone() |
String |
getFormat()
The different supported formats for each field in a data type.
|
String |
getName()
Defines the name and format of data.
|
Boolean |
getOptional() |
DataTypeField |
set(String fieldName,
Object value) |
DataTypeField |
setFormat(String format)
The different supported formats for each field in a data type.
|
DataTypeField |
setName(String name)
Defines the name and format of data.
|
DataTypeField |
setOptional(Boolean optional) |
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 getFormat()
null for nonepublic DataTypeField setFormat(String format)
format - format or null for nonepublic String getName()
null for nonepublic DataTypeField setName(String name)
name - name or null for nonepublic Boolean getOptional()
null for nonepublic DataTypeField setOptional(Boolean optional)
optional - optional or null for nonepublic DataTypeField set(String fieldName, Object value)
set in class GenericJsonpublic DataTypeField clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.