Class: Google::Apis::CloudsearchV1::PeopleSuggestion

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

This field contains information about the person being suggested.

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) ⇒ PeopleSuggestion

Returns a new instance of PeopleSuggestion.



2713
2714
2715
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2713

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

Instance Attribute Details

#personGoogle::Apis::CloudsearchV1::Person

Object to represent a person. Corresponds to the JSON property person



2711
2712
2713
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2711

def person
  @person
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2718
2719
2720
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2718

def update!(**args)
  @person = args[:person] if args.key?(:person)
end