Class: Google::Apis::CloudsearchV1::Person

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb

Overview

Object to represent a person.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Person

Returns a new instance of Person



2526
2527
2528
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2526

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#email_addressesArray<Google::Apis::CloudsearchV1::EmailAddress>

The person's email addresses Corresponds to the JSON property emailAddresses



2501
2502
2503
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2501

def email_addresses
  @email_addresses
end

#nameString

The resource name of the person to provide information about. See People.get from Google People API. Corresponds to the JSON property name

Returns:

  • (String)


2508
2509
2510
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2508

def name
  @name
end

#obfuscated_idString

Obfuscated ID of a person. Corresponds to the JSON property obfuscatedId

Returns:

  • (String)


2513
2514
2515
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2513

def obfuscated_id
  @obfuscated_id
end

#person_namesArray<Google::Apis::CloudsearchV1::Name>

The person's name Corresponds to the JSON property personNames



2518
2519
2520
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2518

def person_names
  @person_names
end

#photosArray<Google::Apis::CloudsearchV1::Photo>

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



2524
2525
2526
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2524

def photos
  @photos
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2531
2532
2533
2534
2535
2536
2537
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2531

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