target.apidocs.com.google.api.services.drive.model.User.html Maven / Gradle / Ivy
User (Google Drive API v3-rev20240903-2.0.0)
com.google.api.services.drive.model
Class User
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.drive.model.User
-
public final class User
extends com.google.api.client.json.GenericJson
Information about a Drive user.
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 Google Drive API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
User()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
User
clone()
String
getDisplayName()
Output only.
String
getEmailAddress()
Output only.
String
getKind()
Output only.
Boolean
getMe()
Output only.
String
getPermissionId()
Output only.
String
getPhotoLink()
Output only.
User
set(String fieldName,
Object value)
User
setDisplayName(String displayName)
Output only.
User
setEmailAddress(String emailAddress)
Output only.
User
setKind(String kind)
Output only.
User
setMe(Boolean me)
Output only.
User
setPermissionId(String permissionId)
Output only.
User
setPhotoLink(String photoLink)
Output only.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
Output only. A plain text displayable name for this user.
- Returns:
- value or
null
for none
-
setDisplayName
public User setDisplayName(String displayName)
Output only. A plain text displayable name for this user.
- Parameters:
displayName
- displayName or null
for none
-
getEmailAddress
public String getEmailAddress()
Output only. The email address of the user. This may not be present in certain contexts if the
user has not made their email address visible to the requester.
- Returns:
- value or
null
for none
-
setEmailAddress
public User setEmailAddress(String emailAddress)
Output only. The email address of the user. This may not be present in certain contexts if the
user has not made their email address visible to the requester.
- Parameters:
emailAddress
- emailAddress or null
for none
-
getKind
public String getKind()
Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#user"`.
- Returns:
- value or
null
for none
-
setKind
public User setKind(String kind)
Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#user"`.
- Parameters:
kind
- kind or null
for none
-
getMe
public Boolean getMe()
Output only. Whether this user is the requesting user.
- Returns:
- value or
null
for none
-
setMe
public User setMe(Boolean me)
Output only. Whether this user is the requesting user.
- Parameters:
me
- me or null
for none
-
getPermissionId
public String getPermissionId()
Output only. The user's ID as visible in Permission resources.
- Returns:
- value or
null
for none
-
setPermissionId
public User setPermissionId(String permissionId)
Output only. The user's ID as visible in Permission resources.
- Parameters:
permissionId
- permissionId or null
for none
-
getPhotoLink
public String getPhotoLink()
Output only. A link to the user's profile photo, if available.
- Returns:
- value or
null
for none
-
setPhotoLink
public User setPhotoLink(String photoLink)
Output only. A link to the user's profile photo, if available.
- Parameters:
photoLink
- photoLink or null
for none
-
set
public User set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public User clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.