target.apidocs.com.google.api.services.plus.model.Person.html Maven / Gradle / Ivy
The newest version!
Person (Google+ API v1-rev20190328-1.30.10)
com.google.api.services.plus.model
Class Person
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.plus.model.Person
-
public final class Person
extends GenericJson
Model definition for Person.
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:
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
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.
-
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>
-
Constructor Summary
Constructors
Constructor and Description
Person()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
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, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, 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
-
getAboutMe
public String getAboutMe()
A short biography for this person.
- Returns:
- value or
null
for none
-
setAboutMe
public Person setAboutMe(String aboutMe)
A short biography for this person.
- Parameters:
aboutMe
- aboutMe or null
for none
-
getAgeRange
public Person.AgeRange getAgeRange()
The age range of the person. Valid ranges are 17 or younger, 18 to 20, and 21 or older. Age is
determined from the user's birthday using Western age reckoning.
- Returns:
- value or
null
for none
-
setAgeRange
public Person setAgeRange(Person.AgeRange ageRange)
The age range of the person. Valid ranges are 17 or younger, 18 to 20, and 21 or older. Age is
determined from the user's birthday using Western age reckoning.
- Parameters:
ageRange
- ageRange or null
for none
-
getBirthday
public String getBirthday()
The person's date of birth, represented as YYYY-MM-DD.
- Returns:
- value or
null
for none
-
setBirthday
public Person setBirthday(String birthday)
The person's date of birth, represented as YYYY-MM-DD.
- Parameters:
birthday
- birthday or null
for none
-
getBraggingRights
public String getBraggingRights()
The "bragging rights" line of this person.
- Returns:
- value or
null
for none
-
setBraggingRights
public Person setBraggingRights(String braggingRights)
The "bragging rights" line of this person.
- Parameters:
braggingRights
- braggingRights or null
for none
-
getCircledByCount
public Integer getCircledByCount()
For followers who are visible, the number of people who have added this person or page to a
circle.
- Returns:
- value or
null
for none
-
setCircledByCount
public Person setCircledByCount(Integer circledByCount)
For followers who are visible, the number of people who have added this person or page to a
circle.
- Parameters:
circledByCount
- circledByCount or null
for none
-
getCover
public Person.Cover getCover()
The cover photo content.
- Returns:
- value or
null
for none
-
setCover
public Person setCover(Person.Cover cover)
The cover photo content.
- Parameters:
cover
- cover or null
for none
-
getCurrentLocation
public String getCurrentLocation()
(this field is not currently used)
- Returns:
- value or
null
for none
-
setCurrentLocation
public Person setCurrentLocation(String currentLocation)
(this field is not currently used)
- Parameters:
currentLocation
- currentLocation or null
for none
-
getDisplayName
public String getDisplayName()
The name of this person, which is suitable for display.
- Returns:
- value or
null
for none
-
setDisplayName
public Person setDisplayName(String displayName)
The name of this person, which is suitable for display.
- Parameters:
displayName
- displayName or null
for none
-
getDomain
public String getDomain()
The hosted domain name for the user's Google Apps account. For instance, example.com. The
plus.profile.emails.read or email scope is needed to get this domain name.
- Returns:
- value or
null
for none
-
setDomain
public Person setDomain(String domain)
The hosted domain name for the user's Google Apps account. For instance, example.com. The
plus.profile.emails.read or email scope is needed to get this domain name.
- Parameters:
domain
- domain or null
for none
-
getEmails
public 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. The plus.profile.emails.read
scope is needed to retrieve these email addresses, or the email scope can be used to retrieve
just the Google account email address.
- Returns:
- value or
null
for none
-
setEmails
public 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. The plus.profile.emails.read
scope is needed to retrieve these email addresses, or the email scope can be used to retrieve
just the Google account email address.
- Parameters:
emails
- emails or null
for none
-
getEtag
public String getEtag()
ETag of this response for caching purposes.
- Returns:
- value or
null
for none
-
setEtag
public Person setEtag(String etag)
ETag of this response for caching purposes.
- Parameters:
etag
- etag or null
for none
-
getGender
public String getGender()
The person's gender. Possible values include, but are not limited to, the following values: -
"male" - Male gender. - "female" - Female gender. - "other" - Other.
- Returns:
- value or
null
for none
-
setGender
public Person setGender(String gender)
The person's gender. Possible values include, but are not limited to, the following values: -
"male" - Male gender. - "female" - Female gender. - "other" - Other.
- Parameters:
gender
- gender or null
for none
-
getId
public String getId()
The ID of this person.
- Returns:
- value or
null
for none
-
getImage
public Person.Image getImage()
The representation of the person's profile photo.
- Returns:
- value or
null
for none
-
setImage
public Person setImage(Person.Image image)
The representation of the person's profile photo.
- Parameters:
image
- image or null
for none
-
getIsPlusUser
public Boolean getIsPlusUser()
Whether this user has signed up for Google+.
- Returns:
- value or
null
for none
-
setIsPlusUser
public Person setIsPlusUser(Boolean isPlusUser)
Whether this user has signed up for Google+.
- Parameters:
isPlusUser
- isPlusUser or null
for none
-
getKind
public String getKind()
Identifies this resource as a person. Value: "plus#person".
- Returns:
- value or
null
for none
-
setKind
public Person setKind(String kind)
Identifies this resource as a person. Value: "plus#person".
- Parameters:
kind
- kind or null
for none
-
getLanguage
public String getLanguage()
The user's preferred language for rendering.
- Returns:
- value or
null
for none
-
setLanguage
public Person setLanguage(String language)
The user's preferred language for rendering.
- Parameters:
language
- language or null
for none
-
getName
public Person.Name getName()
An object representation of the individual components of a person's name.
- Returns:
- value or
null
for none
-
setName
public Person setName(Person.Name name)
An object representation of the individual components of a person's name.
- Parameters:
name
- name or null
for none
-
getNickname
public String getNickname()
The nickname of this person.
- Returns:
- value or
null
for none
-
setNickname
public Person setNickname(String nickname)
The nickname of this person.
- Parameters:
nickname
- nickname or null
for none
-
getObjectType
public String getObjectType()
Type of person within Google+. Possible values include, but are not limited to, the following
values: - "person" - represents an actual person. - "page" - represents a page.
- Returns:
- value or
null
for none
-
setObjectType
public Person setObjectType(String objectType)
Type of person within Google+. Possible values include, but are not limited to, the following
values: - "person" - represents an actual person. - "page" - represents a page.
- Parameters:
objectType
- objectType or null
for none
-
getOccupation
public String getOccupation()
The occupation of this person.
- Returns:
- value or
null
for none
-
setOccupation
public Person setOccupation(String occupation)
The occupation of this person.
- Parameters:
occupation
- occupation or null
for none
-
getOrganizations
public List<Person.Organizations> getOrganizations()
A list of current or past organizations with which this person is associated.
- Returns:
- value or
null
for none
-
setOrganizations
public Person setOrganizations(List<Person.Organizations> organizations)
A list of current or past organizations with which this person is associated.
- Parameters:
organizations
- organizations or null
for none
-
getPlacesLived
public List<Person.PlacesLived> getPlacesLived()
A list of places where this person has lived.
- Returns:
- value or
null
for none
-
setPlacesLived
public Person setPlacesLived(List<Person.PlacesLived> placesLived)
A list of places where this person has lived.
- Parameters:
placesLived
- placesLived or null
for none
-
getPlusOneCount
public Integer getPlusOneCount()
If a Google+ Page, the number of people who have +1'd this page.
- Returns:
- value or
null
for none
-
setPlusOneCount
public Person setPlusOneCount(Integer plusOneCount)
If a Google+ Page, the number of people who have +1'd this page.
- Parameters:
plusOneCount
- plusOneCount or null
for none
-
getRelationshipStatus
public String getRelationshipStatus()
The person's relationship status. Possible values include, but are not limited to, the
following values: - "single" - Person is single. - "in_a_relationship" - Person is in a
relationship. - "engaged" - Person is engaged. - "married" - Person is married. -
"its_complicated" - The relationship is complicated. - "open_relationship" - Person is in an
open relationship. - "widowed" - Person is widowed. - "in_domestic_partnership" - Person is
in a domestic partnership. - "in_civil_union" - Person is in a civil union.
- Returns:
- value or
null
for none
-
setRelationshipStatus
public Person setRelationshipStatus(String relationshipStatus)
The person's relationship status. Possible values include, but are not limited to, the
following values: - "single" - Person is single. - "in_a_relationship" - Person is in a
relationship. - "engaged" - Person is engaged. - "married" - Person is married. -
"its_complicated" - The relationship is complicated. - "open_relationship" - Person is in an
open relationship. - "widowed" - Person is widowed. - "in_domestic_partnership" - Person is
in a domestic partnership. - "in_civil_union" - Person is in a civil union.
- Parameters:
relationshipStatus
- relationshipStatus or null
for none
-
getSkills
public String getSkills()
The person's skills.
- Returns:
- value or
null
for none
-
setSkills
public Person setSkills(String skills)
The person's skills.
- Parameters:
skills
- skills or null
for none
-
getTagline
public String getTagline()
The brief description (tagline) of this person.
- Returns:
- value or
null
for none
-
setTagline
public Person setTagline(String tagline)
The brief description (tagline) of this person.
- Parameters:
tagline
- tagline or null
for none
-
getUrl
public String getUrl()
The URL of this person's profile.
- Returns:
- value or
null
for none
-
setUrl
public Person setUrl(String url)
The URL of this person's profile.
- Parameters:
url
- url or null
for none
-
getUrls
public List<Person.Urls> getUrls()
A list of URLs for this person.
- Returns:
- value or
null
for none
-
setUrls
public Person setUrls(List<Person.Urls> urls)
A list of URLs for this person.
- Parameters:
urls
- urls or null
for none
-
getVerified
public Boolean getVerified()
Whether the person or Google+ Page has been verified.
- Returns:
- value or
null
for none
-
setVerified
public Person setVerified(Boolean verified)
Whether the person or Google+ Page has been verified.
- Parameters:
verified
- verified or null
for none
-
set
public Person set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Person clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy