public final class Device
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 Google Play EMM 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.Flags
Constructor and Description |
---|
Device() |
Modifier and Type | Method and Description |
---|---|
Device |
clone() |
java.lang.String |
getAndroidId()
The Google Play Services Android ID for the device encoded as a lowercase hex string.
|
java.lang.String |
getKind() |
java.lang.String |
getManagementType()
Identifies the extent to which the device is controlled by a managed Google Play EMM in various
deployment configurations.
|
Policy |
getPolicy()
The policy enforced on the device.
|
DeviceReport |
getReport()
The device report updated with the latest app states.
|
Device |
set(java.lang.String fieldName,
java.lang.Object value) |
Device |
setAndroidId(java.lang.String androidId)
The Google Play Services Android ID for the device encoded as a lowercase hex string.
|
Device |
setKind(java.lang.String kind) |
Device |
setManagementType(java.lang.String managementType)
Identifies the extent to which the device is controlled by a managed Google Play EMM in various
deployment configurations.
|
Device |
setPolicy(Policy policy)
The policy enforced on the device.
|
Device |
setReport(DeviceReport report)
The device report updated with the latest app states.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getAndroidId()
null
for nonepublic Device setAndroidId(java.lang.String androidId)
androidId
- androidId or null
for nonepublic java.lang.String getKind()
null
for nonepublic Device setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.String getManagementType()
null
for nonepublic Device setManagementType(java.lang.String managementType)
managementType
- managementType or null
for nonepublic Policy getPolicy()
null
for nonepublic Device setPolicy(Policy policy)
policy
- policy or null
for nonepublic DeviceReport getReport()
null
for nonepublic Device setReport(DeviceReport report)
report
- report or null
for nonepublic Device set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Device clone()
clone
in class com.google.api.client.json.GenericJson