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

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

Response of the suggest API.

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

Returns a new instance of SuggestResponse.



4674
4675
4676
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4674

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

Instance Attribute Details

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

List of suggestions. Corresponds to the JSON property suggestResults



4672
4673
4674
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4672

def suggest_results
  @suggest_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4679
4680
4681
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4679

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