target.apidocs.com.google.api.services.drive.model.User.html Maven / Gradle / Ivy
User (Drive API v2-rev20180830-1.26.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 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
The user's profile picture.
-
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()
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.
-
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, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, 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()
A plain text displayable name for this user.
- Returns:
- value or
null
for none
-
setDisplayName
public User setDisplayName(String displayName)
A plain text displayable name for this user.
- Parameters:
displayName
- displayName or null
for none
-
getEmailAddress
public String getEmailAddress()
The email address of the user.
- Returns:
- value or
null
for none
-
setEmailAddress
public User setEmailAddress(String emailAddress)
The email address of the user.
- Parameters:
emailAddress
- emailAddress or null
for none
-
getIsAuthenticatedUser
public Boolean getIsAuthenticatedUser()
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)
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()
This is always drive#user.
- Returns:
- value or
null
for none
-
setKind
public User setKind(String kind)
This is always drive#user.
- Parameters:
kind
- kind or null
for none
-
getPermissionId
public String getPermissionId()
The user's ID as visible in the permissions collection.
- Returns:
- value or
null
for none
-
setPermissionId
public User setPermissionId(String permissionId)
The user's ID as visible in the permissions collection.
- Parameters:
permissionId
- permissionId or null
for none
-
getPicture
public User.Picture getPicture()
The user's profile picture.
- Returns:
- value or
null
for none
-
setPicture
public User setPicture(User.Picture picture)
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–2018 Google. All rights reserved.