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.FlagsAbstractMap.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, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic 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 com.google.api.client.json.GenericJsonpublic User clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2023 Google. All rights reserved.