class Google::Apis::PeopleV1::Person

Information about a person merged from various data sources such as the authenticated user's contacts and profile data. Most fields can have multiple items. The items in a field have no guaranteed order, but each non-empty field is guaranteed to have exactly one field with `metadata.primary` set to true.

Attributes

addresses[RW]

The person's street addresses. Corresponds to the JSON property `addresses` @return [Array<Google::Apis::PeopleV1::Address>]

age_range[RW]

Output only. DEPRECATED (Please use `person.ageRanges` instead) The person' s age range. Corresponds to the JSON property `ageRange` @return [String]

age_ranges[RW]

Output only. The person's age ranges. Corresponds to the JSON property `ageRanges` @return [Array<Google::Apis::PeopleV1::AgeRangeType>]

biographies[RW]

The person's biographies. This field is a singleton for contact sources. Corresponds to the JSON property `biographies` @return [Array<Google::Apis::PeopleV1::Biography>]

birthdays[RW]

The person's birthdays. This field is a singleton for contact sources. Corresponds to the JSON property `birthdays` @return [Array<Google::Apis::PeopleV1::Birthday>]

bragging_rights[RW]

DEPRECATED: No data will be returned The person's bragging rights. Corresponds to the JSON property `braggingRights` @return [Array<Google::Apis::PeopleV1::BraggingRights>]

calendar_urls[RW]

The person's calendar URLs. Corresponds to the JSON property `calendarUrls` @return [Array<Google::Apis::PeopleV1::CalendarUrl>]

client_data[RW]

The person's client data. Corresponds to the JSON property `clientData` @return [Array<Google::Apis::PeopleV1::ClientData>]

cover_photos[RW]

Output only. The person's cover photos. Corresponds to the JSON property `coverPhotos` @return [Array<Google::Apis::PeopleV1::CoverPhoto>]

email_addresses[RW]

The person's email addresses. For `people.connections.list` and `otherContacts. list` the number of email addresses is limited to 100. If a Person has more email addresses the entire set can be obtained by calling GetPeople. Corresponds to the JSON property `emailAddresses` @return [Array<Google::Apis::PeopleV1::EmailAddress>]

etag[RW]

The [HTTP entity tag](en.wikipedia.org/wiki/HTTP_ETag) of the resource. Used for web cache validation. Corresponds to the JSON property `etag` @return [String]

events[RW]

The person's events. Corresponds to the JSON property `events` @return [Array<Google::Apis::PeopleV1::Event>]

external_ids[RW]

The person's external IDs. Corresponds to the JSON property `externalIds` @return [Array<Google::Apis::PeopleV1::ExternalId>]

file_ases[RW]

The person's file-ases. Corresponds to the JSON property `fileAses` @return [Array<Google::Apis::PeopleV1::FileAs>]

genders[RW]

The person's genders. This field is a singleton for contact sources. Corresponds to the JSON property `genders` @return [Array<Google::Apis::PeopleV1::Gender>]

im_clients[RW]

The person's instant messaging clients. Corresponds to the JSON property `imClients` @return [Array<Google::Apis::PeopleV1::ImClient>]

interests[RW]

The person's interests. Corresponds to the JSON property `interests` @return [Array<Google::Apis::PeopleV1::Interest>]

locales[RW]

The person's locale preferences. Corresponds to the JSON property `locales` @return [Array<Google::Apis::PeopleV1::Locale>]

locations[RW]

The person's locations. Corresponds to the JSON property `locations` @return [Array<Google::Apis::PeopleV1::Location>]

memberships[RW]

The person's group memberships. Corresponds to the JSON property `memberships` @return [Array<Google::Apis::PeopleV1::Membership>]

metadata[RW]

The metadata about a person. Corresponds to the JSON property `metadata` @return [Google::Apis::PeopleV1::PersonMetadata]

misc_keywords[RW]

The person's miscellaneous keywords. Corresponds to the JSON property `miscKeywords` @return [Array<Google::Apis::PeopleV1::MiscKeyword>]

names[RW]

The person's names. This field is a singleton for contact sources. Corresponds to the JSON property `names` @return [Array<Google::Apis::PeopleV1::Name>]

nicknames[RW]

The person's nicknames. Corresponds to the JSON property `nicknames` @return [Array<Google::Apis::PeopleV1::Nickname>]

occupations[RW]

The person's occupations. Corresponds to the JSON property `occupations` @return [Array<Google::Apis::PeopleV1::Occupation>]

organizations[RW]

The person's past or current organizations. Corresponds to the JSON property `organizations` @return [Array<Google::Apis::PeopleV1::Organization>]

phone_numbers[RW]

The person's phone numbers. For `people.connections.list` and `otherContacts. list` the number of phone numbers is limited to 100. If a Person has more phone numbers the entire set can be obtained by calling GetPeople. Corresponds to the JSON property `phoneNumbers` @return [Array<Google::Apis::PeopleV1::PhoneNumber>]

photos[RW]

Output only. The person's photos. Corresponds to the JSON property `photos` @return [Array<Google::Apis::PeopleV1::Photo>]

relations[RW]

The person's relations. Corresponds to the JSON property `relations` @return [Array<Google::Apis::PeopleV1::Relation>]

relationship_interests[RW]

Output only. DEPRECATED: No data will be returned The person's relationship interests. Corresponds to the JSON property `relationshipInterests` @return [Array<Google::Apis::PeopleV1::RelationshipInterest>]

relationship_statuses[RW]

Output only. DEPRECATED: No data will be returned The person's relationship statuses. Corresponds to the JSON property `relationshipStatuses` @return [Array<Google::Apis::PeopleV1::RelationshipStatus>]

residences[RW]

DEPRECATED: (Please use `person.locations` instead) The person's residences. Corresponds to the JSON property `residences` @return [Array<Google::Apis::PeopleV1::Residence>]

resource_name[RW]

The resource name for the person, assigned by the server. An ASCII string with a max length of 27 characters, in the form of `people/`person_id“. Corresponds to the JSON property `resourceName` @return [String]

sip_addresses[RW]

The person's SIP addresses. Corresponds to the JSON property `sipAddresses` @return [Array<Google::Apis::PeopleV1::SipAddress>]

skills[RW]

The person's skills. Corresponds to the JSON property `skills` @return [Array<Google::Apis::PeopleV1::Skill>]

taglines[RW]

Output only. DEPRECATED: No data will be returned The person's taglines. Corresponds to the JSON property `taglines` @return [Array<Google::Apis::PeopleV1::Tagline>]

urls[RW]

The person's associated URLs. Corresponds to the JSON property `urls` @return [Array<Google::Apis::PeopleV1::Url>]

user_defined[RW]

The person's user defined data. Corresponds to the JSON property `userDefined` @return [Array<Google::Apis::PeopleV1::UserDefined>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/people_v1/classes.rb, line 2116
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/people_v1/classes.rb, line 2121
def update!(**args)
  @addresses = args[:addresses] if args.key?(:addresses)
  @age_range = args[:age_range] if args.key?(:age_range)
  @age_ranges = args[:age_ranges] if args.key?(:age_ranges)
  @biographies = args[:biographies] if args.key?(:biographies)
  @birthdays = args[:birthdays] if args.key?(:birthdays)
  @bragging_rights = args[:bragging_rights] if args.key?(:bragging_rights)
  @calendar_urls = args[:calendar_urls] if args.key?(:calendar_urls)
  @client_data = args[:client_data] if args.key?(:client_data)
  @cover_photos = args[:cover_photos] if args.key?(:cover_photos)
  @email_addresses = args[:email_addresses] if args.key?(:email_addresses)
  @etag = args[:etag] if args.key?(:etag)
  @events = args[:events] if args.key?(:events)
  @external_ids = args[:external_ids] if args.key?(:external_ids)
  @file_ases = args[:file_ases] if args.key?(:file_ases)
  @genders = args[:genders] if args.key?(:genders)
  @im_clients = args[:im_clients] if args.key?(:im_clients)
  @interests = args[:interests] if args.key?(:interests)
  @locales = args[:locales] if args.key?(:locales)
  @locations = args[:locations] if args.key?(:locations)
  @memberships = args[:memberships] if args.key?(:memberships)
  @metadata = args[:metadata] if args.key?(:metadata)
  @misc_keywords = args[:misc_keywords] if args.key?(:misc_keywords)
  @names = args[:names] if args.key?(:names)
  @nicknames = args[:nicknames] if args.key?(:nicknames)
  @occupations = args[:occupations] if args.key?(:occupations)
  @organizations = args[:organizations] if args.key?(:organizations)
  @phone_numbers = args[:phone_numbers] if args.key?(:phone_numbers)
  @photos = args[:photos] if args.key?(:photos)
  @relations = args[:relations] if args.key?(:relations)
  @relationship_interests = args[:relationship_interests] if args.key?(:relationship_interests)
  @relationship_statuses = args[:relationship_statuses] if args.key?(:relationship_statuses)
  @residences = args[:residences] if args.key?(:residences)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @sip_addresses = args[:sip_addresses] if args.key?(:sip_addresses)
  @skills = args[:skills] if args.key?(:skills)
  @taglines = args[:taglines] if args.key?(:taglines)
  @urls = args[:urls] if args.key?(:urls)
  @user_defined = args[:user_defined] if args.key?(:user_defined)
end