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
The person's street addresses. Corresponds to the JSON property `addresses` @return [Array<Google::Apis::PeopleV1::Address>]
Output only. DEPRECATED (Please use `person.ageRanges` instead) The person' s age range. Corresponds to the JSON property `ageRange` @return [String]
Output only. The person's age ranges. Corresponds to the JSON property `ageRanges` @return [Array<Google::Apis::PeopleV1::AgeRangeType>]
The person's biographies. This field is a singleton for contact sources. Corresponds to the JSON property `biographies` @return [Array<Google::Apis::PeopleV1::Biography>]
The person's birthdays. This field is a singleton for contact sources. Corresponds to the JSON property `birthdays` @return [Array<Google::Apis::PeopleV1::Birthday>]
DEPRECATED: No data will be returned The person's bragging rights. Corresponds to the JSON property `braggingRights` @return [Array<Google::Apis::PeopleV1::BraggingRights>]
The person's calendar URLs. Corresponds to the JSON property `calendarUrls` @return [Array<Google::Apis::PeopleV1::CalendarUrl>]
The person's client data. Corresponds to the JSON property `clientData` @return [Array<Google::Apis::PeopleV1::ClientData>]
Output only. The person's cover photos. Corresponds to the JSON property `coverPhotos` @return [Array<Google::Apis::PeopleV1::CoverPhoto>]
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>]
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]
The person's events. Corresponds to the JSON property `events` @return [Array<Google::Apis::PeopleV1::Event>]
The person's external IDs. Corresponds to the JSON property `externalIds` @return [Array<Google::Apis::PeopleV1::ExternalId>]
The person's file-ases. Corresponds to the JSON property `fileAses` @return [Array<Google::Apis::PeopleV1::FileAs>]
The person's genders. This field is a singleton for contact sources. Corresponds to the JSON property `genders` @return [Array<Google::Apis::PeopleV1::Gender>]
The person's instant messaging clients. Corresponds to the JSON property `imClients` @return [Array<Google::Apis::PeopleV1::ImClient>]
The person's interests. Corresponds to the JSON property `interests` @return [Array<Google::Apis::PeopleV1::Interest>]
The person's locale preferences. Corresponds to the JSON property `locales` @return [Array<Google::Apis::PeopleV1::Locale>]
The person's locations. Corresponds to the JSON property `locations` @return [Array<Google::Apis::PeopleV1::Location>]
The person's group memberships. Corresponds to the JSON property `memberships` @return [Array<Google::Apis::PeopleV1::Membership>]
The metadata about a person. Corresponds to the JSON property `metadata` @return [Google::Apis::PeopleV1::PersonMetadata]
The person's miscellaneous keywords. Corresponds to the JSON property `miscKeywords` @return [Array<Google::Apis::PeopleV1::MiscKeyword>]
The person's names. This field is a singleton for contact sources. Corresponds to the JSON property `names` @return [Array<Google::Apis::PeopleV1::Name>]
The person's nicknames. Corresponds to the JSON property `nicknames` @return [Array<Google::Apis::PeopleV1::Nickname>]
The person's occupations. Corresponds to the JSON property `occupations` @return [Array<Google::Apis::PeopleV1::Occupation>]
The person's past or current organizations. Corresponds to the JSON property `organizations` @return [Array<Google::Apis::PeopleV1::Organization>]
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>]
Output only. The person's photos. Corresponds to the JSON property `photos` @return [Array<Google::Apis::PeopleV1::Photo>]
The person's relations. Corresponds to the JSON property `relations` @return [Array<Google::Apis::PeopleV1::Relation>]
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>]
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>]
DEPRECATED: (Please use `person.locations` instead) The person's residences. Corresponds to the JSON property `residences` @return [Array<Google::Apis::PeopleV1::Residence>]
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]
The person's SIP addresses. Corresponds to the JSON property `sipAddresses` @return [Array<Google::Apis::PeopleV1::SipAddress>]
The person's skills. Corresponds to the JSON property `skills` @return [Array<Google::Apis::PeopleV1::Skill>]
Output only. DEPRECATED: No data will be returned The person's taglines. Corresponds to the JSON property `taglines` @return [Array<Google::Apis::PeopleV1::Tagline>]
The person's associated URLs. Corresponds to the JSON property `urls` @return [Array<Google::Apis::PeopleV1::Url>]
The person's user defined data. Corresponds to the JSON property `userDefined` @return [Array<Google::Apis::PeopleV1::UserDefined>]
Public Class Methods
# File lib/google/apis/people_v1/classes.rb, line 2116 def initialize(**args) update!(**args) end
Public Instance Methods
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