Class: Google::Apis::CloudsearchV1::SuggestResponse

Inherits:
Object
  • Object
show all
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

Response of the suggest API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SuggestResponse

Returns a new instance of SuggestResponse.



7624
7625
7626
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7624

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

Instance Attribute Details

#suggest_resultsArray<Google::Apis::CloudsearchV1::SuggestResult>

List of suggestions. Corresponds to the JSON property suggestResults



7622
7623
7624
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7622

def suggest_results
  @suggest_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7629
7630
7631
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7629

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