Google OAuth2 API v2 (revision 32)



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

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
 Userinfo clone()
           
 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 set(String fieldName, Object value)
           
 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
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
 

Constructor Detail

Userinfo

public Userinfo()
Method Detail

getBirthday

public String getBirthday()
The user's birthday. The year is not present.

Returns:
value or null for none

setBirthday

public Userinfo setBirthday(String birthday)
The user's birthday. The year is not present.

Parameters:
birthday - birthday or null for none

getEmail

public String getEmail()
The user's email address.

Returns:
value or null for none

setEmail

public Userinfo setEmail(String email)
The user's email address.

Parameters:
email - email or null for none

getFamilyName

public String getFamilyName()
The user's last name.

Returns:
value or null for none

setFamilyName

public Userinfo setFamilyName(String familyName)
The user's last name.

Parameters:
familyName - familyName or null for none

getGender

public String getGender()
The user's gender.

Returns:
value or null for none

setGender

public Userinfo setGender(String gender)
The user's gender.

Parameters:
gender - gender or null for none

getGivenName

public String getGivenName()
The user's first name.

Returns:
value or null for none

setGivenName

public Userinfo setGivenName(String givenName)
The user's first name.

Parameters:
givenName - givenName or null for none

getHd

public String getHd()
The hosted domain e.g. example.com if the user is Google apps user.

Returns:
value or null for none

setHd

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

Parameters:
hd - hd or null for none

getId

public String getId()
The focus obfuscated gaia id of the user.

Returns:
value or null for none

setId

public Userinfo setId(String id)
The focus obfuscated gaia id of the user.

Parameters:
id - id or null for none

getLink

public String getLink()
URL of the profile page.

Returns:
value or null for none

setLink

public Userinfo setLink(String link)
URL of the profile page.

Parameters:
link - link or null for none

getLocale

public String getLocale()
The user's default locale.

Returns:
value or null for none

setLocale

public Userinfo setLocale(String locale)
The user's default locale.

Parameters:
locale - locale or null for none

getName

public String getName()
The user's full name.

Returns:
value or null for none

setName

public Userinfo setName(String name)
The user's full name.

Parameters:
name - name or null for none

getPicture

public String getPicture()
URL of the user's picture image.

Returns:
value or null for none

setPicture

public Userinfo setPicture(String picture)
URL of the user's picture image.

Parameters:
picture - picture or null for none

getTimezone

public String getTimezone()
The user's default timezone.

Returns:
value or null for none

setTimezone

public Userinfo setTimezone(String timezone)
The user's default timezone.

Parameters:
timezone - timezone or null for none

getVerifiedEmail

public Boolean getVerifiedEmail()
Boolean flag which is true if the email address is verified.

Returns:
value or null for none

setVerifiedEmail

public Userinfo setVerifiedEmail(Boolean verifiedEmail)
Boolean flag which is true if the email address is verified.

Parameters:
verifiedEmail - verifiedEmail or null for none

set

public Userinfo set(String fieldName,
                    Object value)
Overrides:
set in class GenericJson

clone

public Userinfo clone()
Overrides:
clone in class GenericJson