Class: Google::Apis::CloudsearchV1::SuggestResult
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::SuggestResult
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb
Overview
One suggestion result.
Instance Attribute Summary collapse
-
#people_suggestion ⇒ Google::Apis::CloudsearchV1::PeopleSuggestion
A people suggestion.
-
#query_suggestion ⇒ Google::Apis::CloudsearchV1::QuerySuggestion
A completed query suggestion.
-
#source ⇒ Google::Apis::CloudsearchV1::Source
Defines sources for the suggest/search APIs.
-
#suggested_query ⇒ String
The suggested query that will be used for search, when the user clicks on the suggestion Corresponds to the JSON property
suggestedQuery
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SuggestResult
constructor
A new instance of SuggestResult.
-
#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) ⇒ SuggestResult
Returns a new instance of SuggestResult
4342 4343 4344 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4342 def initialize(**args) update!(**args) end |
Instance Attribute Details
#people_suggestion ⇒ Google::Apis::CloudsearchV1::PeopleSuggestion
A people suggestion.
Corresponds to the JSON property peopleSuggestion
4324 4325 4326 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4324 def people_suggestion @people_suggestion end |
#query_suggestion ⇒ Google::Apis::CloudsearchV1::QuerySuggestion
A completed query suggestion.
Corresponds to the JSON property querySuggestion
4329 4330 4331 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4329 def query_suggestion @query_suggestion end |
#source ⇒ Google::Apis::CloudsearchV1::Source
Defines sources for the suggest/search APIs.
Corresponds to the JSON property source
4334 4335 4336 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4334 def source @source end |
#suggested_query ⇒ String
The suggested query that will be used for search, when the user
clicks on the suggestion
Corresponds to the JSON property suggestedQuery
4340 4341 4342 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4340 def suggested_query @suggested_query end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4347 4348 4349 4350 4351 4352 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4347 def update!(**args) @people_suggestion = args[:people_suggestion] if args.key?(:people_suggestion) @query_suggestion = args[:query_suggestion] if args.key?(:query_suggestion) @source = args[:source] if args.key?(:source) @suggested_query = args[:suggested_query] if args.key?(:suggested_query) end |