Google OAuth2 API v1 (revision 38)



com.google.api.services.oauth2.model
Class Userinfo

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

public final class Userinfo
extends GenericJson

Model definition for Userinfo.

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 OAuth2 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
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
Userinfo()
           
 
Method Summary
 String getBirthday()
          The user's birthday.
 String getEmail()
          The user's email address.
 String getFamilyName()
          The user's last name.
 String getGender()
          The user's gender.
 String getGivenName()
          The user's first name.
 String getHd()
          The hosted domain e.g.
 String getId()
          The focus obfuscated gaia id of the user.
 String getLink()
          URL of the profile page.
 String getLocale()
          The user's default locale.
 String getName()
          The user's full name.
 String getPicture()
          URL of the user's picture image.
 String getTimezone()
          The user's default timezone.
 Boolean getVerifiedEmail()
          Boolean flag which is true if the email address is verified.
 Userinfo setBirthday(String birthday)
          The user's birthday.
 Userinfo setEmail(String email)
          The user's email address.
 Userinfo setFamilyName(String familyName)
          The user's last name.
 Userinfo setGender(String gender)
          The user's gender.
 Userinfo setGivenName(String givenName)
          The user's first name.
 Userinfo setHd(String hd)
          The hosted domain e.g.
 Userinfo setId(String id)
          The focus obfuscated gaia id of the user.
 Userinfo setLink(String link)
          URL of the profile page.
 Userinfo setLocale(String locale)
          The user's default locale.
 Userinfo setName(String name)
          The user's full name.
 Userinfo setPicture(String picture)
          URL of the user's picture image.
 Userinfo setTimezone(String timezone)
          The user's default timezone.
 Userinfo setVerifiedEmail(Boolean verifiedEmail)
          Boolean flag which is true if the email address is verified.
 
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

Userinfo

public Userinfo()
Method Detail

getBirthday

public String getBirthday()
The user's birthday. The year is not present. The value returned may be null.


setBirthday

public Userinfo setBirthday(String birthday)
The user's birthday. The year is not present. The value set may be null.


getEmail

public String getEmail()
The user's email address. The value returned may be null.


setEmail

public Userinfo setEmail(String email)
The user's email address. The value set may be null.


getFamilyName

public String getFamilyName()
The user's last name. The value returned may be null.


setFamilyName

public Userinfo setFamilyName(String familyName)
The user's last name. The value set may be null.


getGender

public String getGender()
The user's gender. The value returned may be null.


setGender

public Userinfo setGender(String gender)
The user's gender. The value set may be null.


getGivenName

public String getGivenName()
The user's first name. The value returned may be null.


setGivenName

public Userinfo setGivenName(String givenName)
The user's first name. The value set may be null.


getHd

public String getHd()
The hosted domain e.g. example.com if the user is Google apps user. The value returned may be null.


setHd

public Userinfo setHd(String hd)
The hosted domain e.g. example.com if the user is Google apps user. The value set may be null.


getId

public String getId()
The focus obfuscated gaia id of the user. The value returned may be null.


setId

public Userinfo setId(String id)
The focus obfuscated gaia id of the user. The value set may be null.


getLink

public String getLink()
URL of the profile page. The value returned may be null.


setLink

public Userinfo setLink(String link)
URL of the profile page. The value set may be null.


getLocale

public String getLocale()
The user's default locale. The value returned may be null.


setLocale

public Userinfo setLocale(String locale)
The user's default locale. The value set may be null.


getName

public String getName()
The user's full name. The value returned may be null.


setName

public Userinfo setName(String name)
The user's full name. The value set may be null.


getPicture

public String getPicture()
URL of the user's picture image. The value returned may be null.


setPicture

public Userinfo setPicture(String picture)
URL of the user's picture image. The value set may be null.


getTimezone

public String getTimezone()
The user's default timezone. The value returned may be null.


setTimezone

public Userinfo setTimezone(String timezone)
The user's default timezone. The value set may be null.


getVerifiedEmail

public Boolean getVerifiedEmail()
Boolean flag which is true if the email address is verified. The value returned may be null.


setVerifiedEmail

public Userinfo setVerifiedEmail(Boolean verifiedEmail)
Boolean flag which is true if the email address is verified. The value set may be null.