public final class User extends 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: http://code.google.com/p/google-http-java-client/wiki/JSON
Modifier and Type | Class and Description |
---|---|
static class |
User.Picture
The user's profile picture.
|
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
User() |
Modifier and Type | Method and Description |
---|---|
User |
clone() |
String |
getDisplayName()
A plain text displayable name for this user.
|
String |
getEmailAddress()
The email address of the user.
|
Boolean |
getIsAuthenticatedUser()
Whether this user is the same as the authenticated user for whom the request was made.
|
String |
getKind()
This is always drive#user.
|
String |
getPermissionId()
The user's ID as visible in the permissions collection.
|
User.Picture |
getPicture()
The user's profile picture.
|
User |
set(String fieldName,
Object value) |
User |
setDisplayName(String displayName)
A plain text displayable name for this user.
|
User |
setEmailAddress(String emailAddress)
The email address of the user.
|
User |
setIsAuthenticatedUser(Boolean isAuthenticatedUser)
Whether this user is the same as the authenticated user for whom the request was made.
|
User |
setKind(String kind)
This is always drive#user.
|
User |
setPermissionId(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
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public String getDisplayName()
null
for nonepublic User setDisplayName(String displayName)
displayName
- displayName or null
for nonepublic String getEmailAddress()
null
for nonepublic User setEmailAddress(String emailAddress)
emailAddress
- emailAddress or null
for nonepublic Boolean getIsAuthenticatedUser()
null
for nonepublic User setIsAuthenticatedUser(Boolean isAuthenticatedUser)
isAuthenticatedUser
- isAuthenticatedUser or null
for nonepublic String getKind()
null
for nonepublic User setKind(String kind)
kind
- kind or null
for nonepublic String getPermissionId()
null
for nonepublic User setPermissionId(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(String fieldName, Object value)
set
in class GenericJson
public User clone()
clone
in class GenericJson