Class: Google::Apis::CloudsearchV1::Person
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Person
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/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
. -
#phone_numbers ⇒ Array<Google::Apis::CloudsearchV1::PhoneNumber>
The person's phone numbers Corresponds to the JSON property
phoneNumbers
. -
#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.
Constructor Details
#initialize(**args) ⇒ Person
Returns a new instance of Person.
15211 15212 15213 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15211 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
15181 15182 15183 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15181 def email_addresses @email_addresses end |
#name ⇒ String
The resource name of the person to provide information about. See People.get
from the Google
People API.
Corresponds to the JSON property name
15188 15189 15190 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15188 def name @name end |
#obfuscated_id ⇒ String
Obfuscated ID of a person.
Corresponds to the JSON property obfuscatedId
15193 15194 15195 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15193 def @obfuscated_id end |
#person_names ⇒ Array<Google::Apis::CloudsearchV1::Name>
The person's name
Corresponds to the JSON property personNames
15198 15199 15200 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15198 def person_names @person_names end |
#phone_numbers ⇒ Array<Google::Apis::CloudsearchV1::PhoneNumber>
The person's phone numbers
Corresponds to the JSON property phoneNumbers
15203 15204 15205 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15203 def phone_numbers @phone_numbers 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
15209 15210 15211 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15209 def photos @photos end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15216 15217 15218 15219 15220 15221 15222 15223 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15216 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) @phone_numbers = args[:phone_numbers] if args.key?(:phone_numbers) @photos = args[:photos] if args.key?(:photos) end |