Class: Google::Apis::CloudsearchV1::Person
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Person
- 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
-
#email_addresses ⇒ Array<Google::Apis::CloudsearchV1::EmailAddress>
The person's email addresses Corresponds to the JSON property
emailAddresses
. -
#name ⇒ String
The resource name of the person to provide information about.
-
#obfuscated_id ⇒ String
Obfuscated ID of a person.
-
#person_names ⇒ Array<Google::Apis::CloudsearchV1::Name>
The person's name Corresponds to the JSON property
personNames
. -
#photos ⇒ Array<Google::Apis::CloudsearchV1::Photo>
A person's read-only photo.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Person
constructor
A new instance of Person.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Person
Returns a new instance of Person
2636 2637 2638 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2636 def initialize(**args) update!(**args) end |
Instance Attribute Details
#email_addresses ⇒ Array<Google::Apis::CloudsearchV1::EmailAddress>
The person's email addresses
Corresponds to the JSON property emailAddresses
2611 2612 2613 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2611 def email_addresses @email_addresses end |
#name ⇒ String
The resource name of the person to provide information about.
See
People.get from Google People API.
Corresponds to the JSON property name
2618 2619 2620 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2618 def name @name end |
#obfuscated_id ⇒ String
Obfuscated ID of a person.
Corresponds to the JSON property obfuscatedId
2623 2624 2625 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2623 def @obfuscated_id end |
#person_names ⇒ Array<Google::Apis::CloudsearchV1::Name>
The person's name
Corresponds to the JSON property personNames
2628 2629 2630 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2628 def person_names @person_names end |
#photos ⇒ Array<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
2634 2635 2636 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2634 def photos @photos end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2641 2642 2643 2644 2645 2646 2647 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2641 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 |