class Google::Apis::PeopleV1::Person
Information about a person merged from various data sources such as the authenticated user's contacts and profile data. Fields other than IDs, metadata, and group memberships are user-edited. 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>]
The person's age range. Corresponds to the JSON property `ageRange` @return [String]
The person's biographies. Corresponds to the JSON property `biographies` @return [Array<Google::Apis::PeopleV1::Biography>]
The person's birthdays. Corresponds to the JSON property `birthdays` @return [Array<Google::Apis::PeopleV1::Birthday>]
The person's bragging rights. Corresponds to the JSON property `braggingRights` @return [Array<Google::Apis::PeopleV1::BraggingRights>]
The person's cover photos. Corresponds to the JSON property `coverPhotos` @return [Array<Google::Apis::PeopleV1::CoverPhoto>]
The person's email addresses. 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 genders. 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 group memberships. Corresponds to the JSON property `memberships` @return [Array<Google::Apis::PeopleV1::Membership>]
Metadata about a person. Corresponds to the JSON property `metadata` @return [Google::Apis::PeopleV1::PersonMetadata]
The person's names. 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. Corresponds to the JSON property `phoneNumbers` @return [Array<Google::Apis::PeopleV1::PhoneNumber>]
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>]
The kind of relationship the person is looking for. Corresponds to the JSON property `relationshipInterests` @return [Array<Google::Apis::PeopleV1::RelationshipInterest>]
The person's relationship statuses. Corresponds to the JSON property `relationshipStatuses` @return [Array<Google::Apis::PeopleV1::RelationshipStatus>]
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. Always starts with `people/`. Corresponds to the JSON property `resourceName` @return [String]
The person's skills. Corresponds to the JSON property `skills` @return [Array<Google::Apis::PeopleV1::Skill>]
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>]
Public Class Methods
# File generated/google/apis/people_v1/classes.rb, line 180 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/people_v1/classes.rb, line 185 def update!(**args) @resource_name = args[:resource_name] if args.key?(:resource_name) @etag = args[:etag] if args.key?(:etag) @metadata = args[:metadata] if args.key?(:metadata) @locales = args[:locales] if args.key?(:locales) @names = args[:names] if args.key?(:names) @nicknames = args[:nicknames] if args.key?(:nicknames) @cover_photos = args[:cover_photos] if args.key?(:cover_photos) @photos = args[:photos] if args.key?(:photos) @genders = args[:genders] if args.key?(:genders) @age_range = args[:age_range] if args.key?(:age_range) @birthdays = args[:birthdays] if args.key?(:birthdays) @events = args[:events] if args.key?(:events) @addresses = args[:addresses] if args.key?(:addresses) @residences = args[:residences] if args.key?(:residences) @email_addresses = args[:email_addresses] if args.key?(:email_addresses) @phone_numbers = args[:phone_numbers] if args.key?(:phone_numbers) @im_clients = args[:im_clients] if args.key?(:im_clients) @taglines = args[:taglines] if args.key?(:taglines) @biographies = args[:biographies] if args.key?(:biographies) @urls = args[:urls] if args.key?(:urls) @organizations = args[:organizations] if args.key?(:organizations) @occupations = args[:occupations] if args.key?(:occupations) @interests = args[:interests] if args.key?(:interests) @skills = args[:skills] if args.key?(:skills) @bragging_rights = args[:bragging_rights] if args.key?(:bragging_rights) @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) @memberships = args[:memberships] if args.key?(:memberships) end