target.apidocs.com.google.api.services.androidenterprise.model.User.html Maven / Gradle / Ivy
User (Google Play EMM API v1-rev20210723-1.32.1)
com.google.api.services.androidenterprise.model
Class User
- 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.User
-
public final class User
extends GenericJson
A Users resource represents an account associated with an enterprise. The account may be specific
to a device or to an individual user (who can then use the account across multiple devices). The
account may provide access to managed Google Play only, or to other Google services, depending on
the identity model: - The Google managed domain identity model requires synchronization to Google
account sources (via primaryEmail). - The managed Google Play Accounts identity model provides a
dynamic means for enterprises to create user or device accounts as needed. These accounts provide
access to managed Google Play.
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
User()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
User
clone()
String
getAccountIdentifier()
A unique identifier you create for this user, such as "user342" or "asset#44418".
String
getAccountType()
The type of account that this user represents.
String
getDisplayName()
The name that will appear in user interfaces.
String
getId()
The unique ID for the user.
String
getManagementType()
The entity that manages the user.
String
getPrimaryEmail()
The user's primary email address, for example, "[email protected]".
User
set(String fieldName,
Object value)
User
setAccountIdentifier(String accountIdentifier)
A unique identifier you create for this user, such as "user342" or "asset#44418".
User
setAccountType(String accountType)
The type of account that this user represents.
User
setDisplayName(String displayName)
The name that will appear in user interfaces.
User
setId(String id)
The unique ID for the user.
User
setManagementType(String managementType)
The entity that manages the user.
User
setPrimaryEmail(String primaryEmail)
The user's primary email address, for example, "[email protected]".
-
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
-
getAccountIdentifier
public String getAccountIdentifier()
A unique identifier you create for this user, such as "user342" or "asset#44418". Do not use
personally identifiable information (PII) for this property. Must always be set for EMM-managed
users. Not set for Google-managed users.
- Returns:
- value or
null
for none
-
setAccountIdentifier
public User setAccountIdentifier(String accountIdentifier)
A unique identifier you create for this user, such as "user342" or "asset#44418". Do not use
personally identifiable information (PII) for this property. Must always be set for EMM-managed
users. Not set for Google-managed users.
- Parameters:
accountIdentifier
- accountIdentifier or null
for none
-
getAccountType
public String getAccountType()
The type of account that this user represents. A userAccount can be installed on multiple
devices, but a deviceAccount is specific to a single device. An EMM-managed user (emmManaged)
can be either type (userAccount, deviceAccount), but a Google-managed user (googleManaged) is
always a userAccount.
- Returns:
- value or
null
for none
-
setAccountType
public User setAccountType(String accountType)
The type of account that this user represents. A userAccount can be installed on multiple
devices, but a deviceAccount is specific to a single device. An EMM-managed user (emmManaged)
can be either type (userAccount, deviceAccount), but a Google-managed user (googleManaged) is
always a userAccount.
- Parameters:
accountType
- accountType or null
for none
-
getDisplayName
public String getDisplayName()
The name that will appear in user interfaces. Setting this property is optional when creating
EMM-managed users. If you do set this property, use something generic about the organization
(such as "Example, Inc.") or your name (as EMM). Not used for Google-managed user accounts.
- Returns:
- value or
null
for none
-
setDisplayName
public User setDisplayName(String displayName)
The name that will appear in user interfaces. Setting this property is optional when creating
EMM-managed users. If you do set this property, use something generic about the organization
(such as "Example, Inc.") or your name (as EMM). Not used for Google-managed user accounts.
- Parameters:
displayName
- displayName or null
for none
-
getId
public String getId()
The unique ID for the user.
- Returns:
- value or
null
for none
-
getManagementType
public String getManagementType()
The entity that manages the user. With googleManaged users, the source of truth is Google so
EMMs have to make sure a Google Account exists for the user. With emmManaged users, the EMM is
in charge.
- Returns:
- value or
null
for none
-
setManagementType
public User setManagementType(String managementType)
The entity that manages the user. With googleManaged users, the source of truth is Google so
EMMs have to make sure a Google Account exists for the user. With emmManaged users, the EMM is
in charge.
- Parameters:
managementType
- managementType or null
for none
-
getPrimaryEmail
public String getPrimaryEmail()
The user's primary email address, for example, "[email protected]". Will always be set for
Google managed users and not set for EMM managed users.
- Returns:
- value or
null
for none
-
setPrimaryEmail
public User setPrimaryEmail(String primaryEmail)
The user's primary email address, for example, "[email protected]". Will always be set for
Google managed users and not set for EMM managed users.
- Parameters:
primaryEmail
- primaryEmail or null
for none
-
set
public User set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public User clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy