target.apidocs.com.google.api.services.androidenterprise.model.Device.html Maven / Gradle / Ivy
Device (Google Play EMM API v1-rev20210723-1.32.1)
com.google.api.services.androidenterprise.model
Class Device
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.androidenterprise.model.Device
-
public final class Device
extends GenericJson
A Devices resource represents a mobile device managed by the EMM and belonging to a specific
enterprise user.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Device()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Device
clone()
String
getAndroidId()
The Google Play Services Android ID for the device encoded as a lowercase hex string.
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(String fieldName,
Object value)
Device
setAndroidId(String androidId)
The Google Play Services Android ID for the device encoded as a lowercase hex string.
Device
setManagementType(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.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAndroidId
public String getAndroidId()
The Google Play Services Android ID for the device encoded as a lowercase hex string. For
example, "123456789abcdef0".
- Returns:
- value or
null
for none
-
setAndroidId
public Device setAndroidId(String androidId)
The Google Play Services Android ID for the device encoded as a lowercase hex string. For
example, "123456789abcdef0".
- Parameters:
androidId
- androidId or null
for none
-
getManagementType
public String getManagementType()
Identifies the extent to which the device is controlled by a managed Google Play EMM in various
deployment configurations. Possible values include: - "managedDevice", a device that has the
EMM's device policy controller (DPC) as the device owner. - "managedProfile", a device that has
a profile managed by the DPC (DPC is profile owner) in addition to a separate, personal profile
that is unavailable to the DPC. - "containerApp", no longer used (deprecated). -
"unmanagedProfile", a device that has been allowed (by the domain's admin, using the Admin
Console to enable the privilege) to use managed Google Play, but the profile is itself not
owned by a DPC.
- Returns:
- value or
null
for none
-
setManagementType
public Device setManagementType(String managementType)
Identifies the extent to which the device is controlled by a managed Google Play EMM in various
deployment configurations. Possible values include: - "managedDevice", a device that has the
EMM's device policy controller (DPC) as the device owner. - "managedProfile", a device that has
a profile managed by the DPC (DPC is profile owner) in addition to a separate, personal profile
that is unavailable to the DPC. - "containerApp", no longer used (deprecated). -
"unmanagedProfile", a device that has been allowed (by the domain's admin, using the Admin
Console to enable the privilege) to use managed Google Play, but the profile is itself not
owned by a DPC.
- Parameters:
managementType
- managementType or null
for none
-
getPolicy
public Policy getPolicy()
The policy enforced on the device.
- Returns:
- value or
null
for none
-
setPolicy
public Device setPolicy(Policy policy)
The policy enforced on the device.
- Parameters:
policy
- policy or null
for none
-
getReport
public DeviceReport getReport()
The device report updated with the latest app states.
- Returns:
- value or
null
for none
-
setReport
public Device setReport(DeviceReport report)
The device report updated with the latest app states.
- Parameters:
report
- report or null
for none
-
set
public Device set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Device clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy