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

addresses[RW]

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

age_range[RW]

The person's age range. Corresponds to the JSON property `ageRange` @return [String]

biographies[RW]

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

birthdays[RW]

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

bragging_rights[RW]

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

cover_photos[RW]

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. 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>]

genders[RW]

The person's genders. 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>]

memberships[RW]

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

metadata[RW]

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

names[RW]

The person's names. 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. Corresponds to the JSON property `phoneNumbers` @return [Array<Google::Apis::PeopleV1::PhoneNumber>]

photos[RW]

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]

The kind of relationship the person is looking for. Corresponds to the JSON property `relationshipInterests` @return [Array<Google::Apis::PeopleV1::RelationshipInterest>]

relationship_statuses[RW]

The person's relationship statuses. Corresponds to the JSON property `relationshipStatuses` @return [Array<Google::Apis::PeopleV1::RelationshipStatus>]

residences[RW]

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. Always starts with `people/`. Corresponds to the JSON property `resourceName` @return [String]

skills[RW]

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

taglines[RW]

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>]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

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