class Google::Apis::CloudsearchV1::Person

Object to represent a person.

Attributes

email_addresses[RW]

The person's email addresses Corresponds to the JSON property `emailAddresses` @return [Array<Google::Apis::CloudsearchV1::EmailAddress>]

name[RW]

The resource name of the person to provide information about. See People.get from Google People API. Corresponds to the JSON property `name` @return [String]

obfuscated_id[RW]

Obfuscated ID of a person. Corresponds to the JSON property `obfuscatedId` @return [String]

person_names[RW]

The person's name Corresponds to the JSON property `personNames` @return [Array<Google::Apis::CloudsearchV1::Name>]

photos[RW]

A person's read-only photo. A picture shown next to the person's name to help others recognize the person in search results. Corresponds to the JSON property `photos` @return [Array<Google::Apis::CloudsearchV1::Photo>]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudsearch_v1/classes.rb, line 2812
def update!(**args)
  @email_addresses = args[:email_addresses] if args.key?(:email_addresses)
  @name = args[:name] if args.key?(:name)
  @obfuscated_id = args[:obfuscated_id] if args.key?(:obfuscated_id)
  @person_names = args[:person_names] if args.key?(:person_names)
  @photos = args[:photos] if args.key?(:photos)
end