We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.

HMS Core ReferencesDrive KitClient APIservices.drive.modelUser

User

Class info
public class User extends GenericJson
User details class.

Public Constructor Summary

Constructor name

User()

Constructor for the User class.

Public Method Summary

Return typeMethod name
StringgetCategory()
Obtains the resource type, which is always drive#user.
UsersetCategory (String category)
Sets the resource type, which is always drive#user.
StringgetDisplayName ()
Obtains the user name that is displayed.
UsersetDisplayName (String displayName)
Sets the user name that is displayed.
BooleangetMe()
Checks whether a user is the current requesting user.
UsersetMe (Boolean me)
Sets whether a user is the current requesting user.
Userset(String fieldName, Object value)
Sets the given field value for the given field name.
Userclone()
Clones a User object.
StringgetPermissionId()
Obtains the ID of the user's permission.
UsersetPermissionId(String permissionId)
Sets the ID of the user's permission.
StringgetProfilePhotoLink()
Obtains the link to the user's profile picture. By default, the link is not returned.
StringsetProfilePhotoLink(String profilePhotoLink)
Sets the link to the user's profile picture.
StringgetUserAccount()
Obtains the account of the user.
UsersetUserAccount(String userAccount)
Sets the account of the user.

Public Constructors

constructor
User ()
Constructs a User object.

Public Methods

Method
public String getCategory()
Obtains the resource type, which is always drive#user.

Return

typedesc
StringResource type, which is always drive#user.


Method
public User setCategory(String category)
Sets the resource type, which is always drive#user.

Parameters

Parameter nameParameter desc
categoryResource type, which is always drive#user.

Return

typedesc
UserA User object.


Method
public String getDisplayName()
Obtains the user name that is displayed.

Return

typedesc
StringUser name that is displayed.


Method
public User setDisplayName (String displayName)
Sets the user name that is displayed.

Parameters

Parameter nameParameter desc
displayNameUser name that is displayed.

Return

typedesc
UserA User object.


Method
public Boolean getMe()
Checks whether a user is the current requesting user.

Return

typedesc
BooleanWhether a user is the current requesting user.


Method
public User setMe (Boolean me)
Sets whether a user is the current requesting user.

Parameters

Parameter nameParameter desc
meIndicates whether a user is the current requesting user.

Return

typedesc
UserA User object.


Method
public User clone ()
Clones a User object.

Return

typedesc
UserA User object.


Method
public User set(String fieldName,Object value)
Sets the given field value for the given field name.

Parameters

Parameter nameParameter desc
fieldNameField name.
valueField value.

Return

typedesc
UserA User object.


Method
public String getPermissionId()
Obtains the ID of the user's permission.

Return

typedesc
StringID of the user's permission.


Method
public User setPermissionId(String permissionId)
Sets the ID of the user's permission.

Parameters

Parameter nameParameter desc
permissionIdID of the user's permission.

Return

typedesc
UserA User object.


Method
public String getProfilePhotoLink()
Obtains the link to the user's profile picture. By default, the link is not returned.

Return

typedesc
StringLink to the user's profile picture.


Method
public User setProfilePhotoLink(String profilePhotoLink)
Sets the link to the user's profile picture.

Parameters

Parameter nameParameter desc
profilePhotoLinkLink to the user's profile picture.

Return

typedesc
UserA User object.


Method
public String getUserAccount()
Obtains the account of the user.

Return

typedesc
StringAccount of the user.


Method
public User setUserAccount(String userAccount)
Sets the account of the user.

Parameters

Parameter nameParameter desc
userAccountAccount of the user.

Return

typedesc
UserA User object.
This page may contain third-party content. For details, click here.
Search in References
Enter a keyword.