public final class DeviceState
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 Cloud IoT API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
DeviceState() |
| Modifier and Type | Method and Description |
|---|---|
DeviceState |
clone() |
byte[] |
decodeBinaryData()
The device state data.
|
DeviceState |
encodeBinaryData(byte[] binaryData)
The device state data.
|
String |
getBinaryData()
The device state data.
|
String |
getUpdateTime()
[Output only] The time at which this state version was updated in Cloud IoT Core.
|
DeviceState |
set(String fieldName,
Object value) |
DeviceState |
setBinaryData(String binaryData)
The device state data.
|
DeviceState |
setUpdateTime(String updateTime)
[Output only] The time at which this state version was updated in Cloud IoT Core.
|
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 getBinaryData()
null for nonedecodeBinaryData()public byte[] decodeBinaryData()
null for nonegetBinaryData()public DeviceState setBinaryData(String binaryData)
binaryData - binaryData or null for none#encodeBinaryData()public DeviceState encodeBinaryData(byte[] binaryData)
The value is encoded Base64 or {@code null} for none.
public String getUpdateTime()
null for nonepublic DeviceState setUpdateTime(String updateTime)
updateTime - updateTime or null for nonepublic DeviceState set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic DeviceState clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2023 Google. All rights reserved.