Drive API v2 (revision 47)



com.google.api.services.drive.model
Class User

java.lang.Object
  extended by java.util.AbstractMap<java.lang.String,java.lang.Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.drive.model.User
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

public final class User
extends GenericJson

The JSON template for a 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: http://code.google.com/p/google-api-java-client/wiki/Json

Upgrade warning: starting with version 1.12 getResponseHeaders() is removed, instead use JsonHttpRequest.getLastResponseHeaders()

Author:
Google, Inc.

Nested Class Summary
static class User.Picture
          The user's profile picture.
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
User()
           
 
Method Summary
 java.lang.String getDisplayName()
          A plain text displayable name for this user.
 java.lang.Boolean getIsAuthenticatedUser()
          Whether this user is the same as the authenticated user of which the request was made on behalf.
 java.lang.String getKind()
          This is always drive#user.
 User.Picture getPicture()
          The user's profile picture.
 User setDisplayName(java.lang.String displayName)
          A plain text displayable name for this user.
 User setIsAuthenticatedUser(java.lang.Boolean isAuthenticatedUser)
          Whether this user is the same as the authenticated user of which the request was made on behalf.
 User setKind(java.lang.String kind)
          This is always drive#user.
 User setPicture(User.Picture picture)
          The user's profile picture.
 
Methods inherited from class com.google.api.client.json.GenericJson
clone, getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, 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
 

Constructor Detail

User

public User()
Method Detail

getDisplayName

public java.lang.String getDisplayName()
A plain text displayable name for this user. The value returned may be null.


setDisplayName

public User setDisplayName(java.lang.String displayName)
A plain text displayable name for this user. The value set may be null.


getIsAuthenticatedUser

public java.lang.Boolean getIsAuthenticatedUser()
Whether this user is the same as the authenticated user of which the request was made on behalf. The value returned may be null.


setIsAuthenticatedUser

public User setIsAuthenticatedUser(java.lang.Boolean isAuthenticatedUser)
Whether this user is the same as the authenticated user of which the request was made on behalf. The value set may be null.


getKind

public java.lang.String getKind()
This is always drive#user. The value returned may be null.


setKind

public User setKind(java.lang.String kind)
This is always drive#user. The value set may be null.


getPicture

public User.Picture getPicture()
The user's profile picture. The value returned may be null.


setPicture

public User setPicture(User.Picture picture)
The user's profile picture. The value set may be null.