| Class info |
| public class User extends GenericJson |
| User details class. |
| Constructor name |
User() Constructor for the User class. |
| Return type | Method name |
| String | getCategory() Obtains the resource type, which is always drive#user. |
| User | setCategory (String category) Sets the resource type, which is always drive#user. |
| String | getDisplayName () Obtains the user name that is displayed. |
| User | setDisplayName (String displayName) Sets the user name that is displayed. |
| Boolean | getMe() Checks whether a user is the current requesting user. |
| User | setMe (Boolean me) Sets whether a user is the current requesting user. |
| User | set(String fieldName, Object value) Sets the given field value for the given field name. |
| User | clone() Clones a User object. |
| String | getPermissionId() Obtains the ID of the user's permission. |
| User | setPermissionId(String permissionId) Sets the ID of the user's permission. |
| String | getProfilePhotoLink() Obtains the link to the user's profile picture. By default, the link is not returned. |
| String | setProfilePhotoLink(String profilePhotoLink) Sets the link to the user's profile picture. |
| String | getUserAccount() Obtains the account of the user. |
| User | setUserAccount(String userAccount) Sets the account of the user. |
| constructor |
| User () |
| Constructs a User object. |
| Method |
| public String getCategory() |
| Obtains the resource type, which is always drive#user. |
Return
| type | desc |
| String | Resource type, which is always drive#user. |
| Method |
| public User setCategory(String category) |
| Sets the resource type, which is always drive#user. |
Parameters
| Parameter name | Parameter desc |
| category | Resource type, which is always drive#user. |
Return
| type | desc |
| User | A User object. |
| Method |
| public String getDisplayName() |
| Obtains the user name that is displayed. |
Return
| type | desc |
| String | User name that is displayed. |
| Method |
| public User setDisplayName (String displayName) |
| Sets the user name that is displayed. |
Parameters
| Parameter name | Parameter desc |
| displayName | User name that is displayed. |
Return
| type | desc |
| User | A User object. |
| Method |
| public Boolean getMe() |
| Checks whether a user is the current requesting user. |
Return
| type | desc |
| Boolean | Whether a user is the current requesting user. |
| Method |
| public User setMe (Boolean me) |
| Sets whether a user is the current requesting user. |
Parameters
| Parameter name | Parameter desc |
| me | Indicates whether a user is the current requesting user. |
Return
| type | desc |
| User | A User object. |
| Method |
| public User clone () |
| Clones a User object. |
Return
| type | desc |
| User | A User object. |
| Method |
| public User set(String fieldName,Object value) |
| Sets the given field value for the given field name. |
Parameters
| Parameter name | Parameter desc |
| fieldName | Field name. |
| value | Field value. |
Return
| type | desc |
| User | A User object. |
| Method |
| public String getPermissionId() |
| Obtains the ID of the user's permission. |
Return
| type | desc |
| String | ID of the user's permission. |
| Method |
| public User setPermissionId(String permissionId) |
| Sets the ID of the user's permission. |
Parameters
| Parameter name | Parameter desc |
| permissionId | ID of the user's permission. |
Return
| type | desc |
| User | A User object. |
| Method |
| public String getProfilePhotoLink() |
| Obtains the link to the user's profile picture. By default, the link is not returned. |
Return
| type | desc |
| String | Link to the user's profile picture. |
| Method |
| public User setProfilePhotoLink(String profilePhotoLink) |
| Sets the link to the user's profile picture. |
Parameters
| Parameter name | Parameter desc |
| profilePhotoLink | Link to the user's profile picture. |
Return
| type | desc |
| User | A User object. |
| Method |
| public String getUserAccount() |
| Obtains the account of the user. |
Return
| type | desc |
| String | Account of the user. |
| Method |
| public User setUserAccount(String userAccount) |
| Sets the account of the user. |
Parameters
| Parameter name | Parameter desc |
| userAccount | Account of the user. |
Return
| type | desc |
| User | A User object. |