target.apidocs.com.google.api.services.drive.model.User.html Maven / Gradle / Ivy
User (Google Drive API v2-rev20240809-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
Modifier and Type
Class and Description
static class
User.Picture
Output only.
-
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.
Boolean
getIsAuthenticatedUser()
Output only.
String
getKind()
Output only.
String
getPermissionId()
Output only.
User.Picture
getPicture()
Output only.
User
set(String fieldName,
Object value)
User
setDisplayName(String displayName)
Output only.
User
setEmailAddress(String emailAddress)
Output only.
User
setIsAuthenticatedUser(Boolean isAuthenticatedUser)
Output only.
User
setKind(String kind)
Output only.
User
setPermissionId(String permissionId)
Output only.
User
setPicture(User.Picture picture)
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.
- Returns:
- value or
null
for none
-
setEmailAddress
public User setEmailAddress(String emailAddress)
Output only. The email address of the user.
- Parameters:
emailAddress
- emailAddress or null
for none
-
getIsAuthenticatedUser
public Boolean getIsAuthenticatedUser()
Output only. Whether this user is the same as the authenticated user for whom the request was
made.
- Returns:
- value or
null
for none
-
setIsAuthenticatedUser
public User setIsAuthenticatedUser(Boolean isAuthenticatedUser)
Output only. Whether this user is the same as the authenticated user for whom the request was
made.
- Parameters:
isAuthenticatedUser
- isAuthenticatedUser or null
for none
-
getKind
public String getKind()
Output only. This is always `drive#user`.
- Returns:
- value or
null
for none
-
setKind
public User setKind(String kind)
Output only. This is always `drive#user`.
- Parameters:
kind
- kind or null
for none
-
getPermissionId
public String getPermissionId()
Output only. The user's ID as visible in the permissions collection.
- Returns:
- value or
null
for none
-
setPermissionId
public User setPermissionId(String permissionId)
Output only. The user's ID as visible in the permissions collection.
- Parameters:
permissionId
- permissionId or null
for none
-
getPicture
public User.Picture getPicture()
Output only. The user's profile picture.
- Returns:
- value or
null
for none
-
setPicture
public User setPicture(User.Picture picture)
Output only. The user's profile picture.
- Parameters:
picture
- picture 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.