public final class User
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 Drive API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
Modifier and Type | Class and Description |
---|---|
static class |
User.Picture
The user's profile picture.
|
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
User() |
Modifier and Type | Method and Description |
---|---|
User |
clone() |
java.lang.String |
getDisplayName()
A plain text displayable name for this user.
|
java.lang.String |
getEmailAddress()
The email address of the user.
|
java.lang.Boolean |
getIsAuthenticatedUser()
Whether this user is the same as the authenticated user for whom the request was made.
|
java.lang.String |
getKind()
This is always drive#user.
|
java.lang.String |
getPermissionId()
The user's ID as visible in the permissions collection.
|
User.Picture |
getPicture()
The user's profile picture.
|
User |
set(java.lang.String fieldName,
java.lang.Object value) |
User |
setDisplayName(java.lang.String displayName)
A plain text displayable name for this user.
|
User |
setEmailAddress(java.lang.String emailAddress)
The email address of the user.
|
User |
setIsAuthenticatedUser(java.lang.Boolean isAuthenticatedUser)
Whether this user is the same as the authenticated user for whom the request was made.
|
User |
setKind(java.lang.String kind)
This is always drive#user.
|
User |
setPermissionId(java.lang.String permissionId)
The user's ID as visible in the permissions collection.
|
User |
setPicture(User.Picture picture)
The user's profile picture.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.lang.String getDisplayName()
null
for nonepublic User setDisplayName(java.lang.String displayName)
displayName
- displayName or null
for nonepublic java.lang.String getEmailAddress()
null
for nonepublic User setEmailAddress(java.lang.String emailAddress)
emailAddress
- emailAddress or null
for nonepublic java.lang.Boolean getIsAuthenticatedUser()
null
for nonepublic User setIsAuthenticatedUser(java.lang.Boolean isAuthenticatedUser)
isAuthenticatedUser
- isAuthenticatedUser or null
for nonepublic java.lang.String getKind()
null
for nonepublic User setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.String getPermissionId()
null
for nonepublic User setPermissionId(java.lang.String permissionId)
permissionId
- permissionId or null
for nonepublic User.Picture getPicture()
null
for nonepublic User setPicture(User.Picture picture)
picture
- picture or null
for nonepublic User set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public User clone()
clone
in class com.google.api.client.json.GenericJson