public final class Person extends GenericJson
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+ API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
Modifier and Type | Class and Description |
---|---|
static class |
Person.AgeRange
The age range of the person.
|
static class |
Person.Cover
The cover photo content.
|
static class |
Person.Emails
Model definition for PersonEmails.
|
static class |
Person.Image
The representation of the person's profile photo.
|
static class |
Person.Name
An object representation of the individual components of a person's name.
|
static class |
Person.Organizations
Model definition for PersonOrganizations.
|
static class |
Person.PlacesLived
Model definition for PersonPlacesLived.
|
static class |
Person.Urls
Model definition for PersonUrls.
|
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Person() |
Modifier and Type | Method and Description |
---|---|
Person |
clone() |
String |
getAboutMe()
A short biography for this person.
|
Person.AgeRange |
getAgeRange()
The age range of the person.
|
String |
getBirthday()
The person's date of birth, represented as YYYY-MM-DD.
|
String |
getBraggingRights()
The "bragging rights" line of this person.
|
Integer |
getCircledByCount()
For followers who are visible, the number of people who have added this person or page to a
circle.
|
Person.Cover |
getCover()
The cover photo content.
|
String |
getCurrentLocation()
(this field is not currently used)
|
String |
getDisplayName()
The name of this person, which is suitable for display.
|
String |
getDomain()
The hosted domain name for the user's Google Apps account.
|
List<Person.Emails> |
getEmails()
A list of email addresses that this person has, including their Google account email address,
and the public verified email addresses on their Google+ profile.
|
String |
getEtag()
ETag of this response for caching purposes.
|
String |
getGender()
The person's gender.
|
String |
getId()
The ID of this person.
|
Person.Image |
getImage()
The representation of the person's profile photo.
|
Boolean |
getIsPlusUser()
Whether this user has signed up for Google+.
|
String |
getKind()
Identifies this resource as a person.
|
String |
getLanguage()
The user's preferred language for rendering.
|
Person.Name |
getName()
An object representation of the individual components of a person's name.
|
String |
getNickname()
The nickname of this person.
|
String |
getObjectType()
Type of person within Google+.
|
String |
getOccupation()
The occupation of this person.
|
List<Person.Organizations> |
getOrganizations()
A list of current or past organizations with which this person is associated.
|
List<Person.PlacesLived> |
getPlacesLived()
A list of places where this person has lived.
|
Integer |
getPlusOneCount()
If a Google+ Page, the number of people who have +1'd this page.
|
String |
getRelationshipStatus()
The person's relationship status.
|
String |
getSkills()
The person's skills.
|
String |
getTagline()
The brief description (tagline) of this person.
|
String |
getUrl()
The URL of this person's profile.
|
List<Person.Urls> |
getUrls()
A list of URLs for this person.
|
Boolean |
getVerified()
Whether the person or Google+ Page has been verified.
|
Person |
set(String fieldName,
Object value) |
Person |
setAboutMe(String aboutMe)
A short biography for this person.
|
Person |
setAgeRange(Person.AgeRange ageRange)
The age range of the person.
|
Person |
setBirthday(String birthday)
The person's date of birth, represented as YYYY-MM-DD.
|
Person |
setBraggingRights(String braggingRights)
The "bragging rights" line of this person.
|
Person |
setCircledByCount(Integer circledByCount)
For followers who are visible, the number of people who have added this person or page to a
circle.
|
Person |
setCover(Person.Cover cover)
The cover photo content.
|
Person |
setCurrentLocation(String currentLocation)
(this field is not currently used)
|
Person |
setDisplayName(String displayName)
The name of this person, which is suitable for display.
|
Person |
setDomain(String domain)
The hosted domain name for the user's Google Apps account.
|
Person |
setEmails(List<Person.Emails> emails)
A list of email addresses that this person has, including their Google account email address,
and the public verified email addresses on their Google+ profile.
|
Person |
setEtag(String etag)
ETag of this response for caching purposes.
|
Person |
setGender(String gender)
The person's gender.
|
Person |
setId(String id)
The ID of this person.
|
Person |
setImage(Person.Image image)
The representation of the person's profile photo.
|
Person |
setIsPlusUser(Boolean isPlusUser)
Whether this user has signed up for Google+.
|
Person |
setKind(String kind)
Identifies this resource as a person.
|
Person |
setLanguage(String language)
The user's preferred language for rendering.
|
Person |
setName(Person.Name name)
An object representation of the individual components of a person's name.
|
Person |
setNickname(String nickname)
The nickname of this person.
|
Person |
setObjectType(String objectType)
Type of person within Google+.
|
Person |
setOccupation(String occupation)
The occupation of this person.
|
Person |
setOrganizations(List<Person.Organizations> organizations)
A list of current or past organizations with which this person is associated.
|
Person |
setPlacesLived(List<Person.PlacesLived> placesLived)
A list of places where this person has lived.
|
Person |
setPlusOneCount(Integer plusOneCount)
If a Google+ Page, the number of people who have +1'd this page.
|
Person |
setRelationshipStatus(String relationshipStatus)
The person's relationship status.
|
Person |
setSkills(String skills)
The person's skills.
|
Person |
setTagline(String tagline)
The brief description (tagline) of this person.
|
Person |
setUrl(String url)
The URL of this person's profile.
|
Person |
setUrls(List<Person.Urls> urls)
A list of URLs for this person.
|
Person |
setVerified(Boolean verified)
Whether the person or Google+ Page has been verified.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public String getAboutMe()
null
for nonepublic Person setAboutMe(String aboutMe)
aboutMe
- aboutMe or null
for nonepublic Person.AgeRange getAgeRange()
null
for nonepublic Person setAgeRange(Person.AgeRange ageRange)
ageRange
- ageRange or null
for nonepublic String getBirthday()
null
for nonepublic Person setBirthday(String birthday)
birthday
- birthday or null
for nonepublic String getBraggingRights()
null
for nonepublic Person setBraggingRights(String braggingRights)
braggingRights
- braggingRights or null
for nonepublic Integer getCircledByCount()
null
for nonepublic Person setCircledByCount(Integer circledByCount)
circledByCount
- circledByCount or null
for nonepublic Person.Cover getCover()
null
for nonepublic Person setCover(Person.Cover cover)
cover
- cover or null
for nonepublic String getCurrentLocation()
null
for nonepublic Person setCurrentLocation(String currentLocation)
currentLocation
- currentLocation or null
for nonepublic String getDisplayName()
null
for nonepublic Person setDisplayName(String displayName)
displayName
- displayName or null
for nonepublic String getDomain()
null
for nonepublic Person setDomain(String domain)
domain
- domain or null
for nonepublic List<Person.Emails> getEmails()
null
for nonepublic Person setEmails(List<Person.Emails> emails)
emails
- emails or null
for nonepublic String getEtag()
null
for nonepublic Person setEtag(String etag)
etag
- etag or null
for nonepublic String getGender()
null
for nonepublic Person setGender(String gender)
gender
- gender or null
for nonepublic String getId()
null
for nonepublic Person.Image getImage()
null
for nonepublic Person setImage(Person.Image image)
image
- image or null
for nonepublic Boolean getIsPlusUser()
null
for nonepublic Person setIsPlusUser(Boolean isPlusUser)
isPlusUser
- isPlusUser or null
for nonepublic String getKind()
null
for nonepublic Person setKind(String kind)
kind
- kind or null
for nonepublic String getLanguage()
null
for nonepublic Person setLanguage(String language)
language
- language or null
for nonepublic Person.Name getName()
null
for nonepublic Person setName(Person.Name name)
name
- name or null
for nonepublic String getNickname()
null
for nonepublic Person setNickname(String nickname)
nickname
- nickname or null
for nonepublic String getObjectType()
null
for nonepublic Person setObjectType(String objectType)
objectType
- objectType or null
for nonepublic String getOccupation()
null
for nonepublic Person setOccupation(String occupation)
occupation
- occupation or null
for nonepublic List<Person.Organizations> getOrganizations()
null
for nonepublic Person setOrganizations(List<Person.Organizations> organizations)
organizations
- organizations or null
for nonepublic List<Person.PlacesLived> getPlacesLived()
null
for nonepublic Person setPlacesLived(List<Person.PlacesLived> placesLived)
placesLived
- placesLived or null
for nonepublic Integer getPlusOneCount()
null
for nonepublic Person setPlusOneCount(Integer plusOneCount)
plusOneCount
- plusOneCount or null
for nonepublic String getRelationshipStatus()
null
for nonepublic Person setRelationshipStatus(String relationshipStatus)
relationshipStatus
- relationshipStatus or null
for nonepublic String getSkills()
null
for nonepublic Person setSkills(String skills)
skills
- skills or null
for nonepublic String getTagline()
null
for nonepublic Person setTagline(String tagline)
tagline
- tagline or null
for nonepublic String getUrl()
null
for nonepublic Person setUrl(String url)
url
- url or null
for nonepublic List<Person.Urls> getUrls()
null
for nonepublic Person setUrls(List<Person.Urls> urls)
urls
- urls or null
for nonepublic Boolean getVerified()
null
for nonepublic Person setVerified(Boolean verified)
verified
- verified or null
for nonepublic Person set(String fieldName, Object value)
set
in class GenericJson
public Person clone()
clone
in class GenericJson