Class: Google::Apis::CloudsearchV1::SuggestResult
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::SuggestResult
- 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
One suggestion result.
Instance Attribute Summary collapse
-
#people_suggestion ⇒ Google::Apis::CloudsearchV1::PeopleSuggestion
This field contains information about the person being suggested.
-
#query_suggestion ⇒ Google::Apis::CloudsearchV1::QuerySuggestion
This field does not contain anything as of now and is just used as an indicator that the suggest result was a phrase completion.
-
#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.
Constructor Details
#initialize(**args) ⇒ SuggestResult
Returns a new instance of SuggestResult.
18927 18928 18929 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18927 def initialize(**args) update!(**args) end |
Instance Attribute Details
#people_suggestion ⇒ Google::Apis::CloudsearchV1::PeopleSuggestion
This field contains information about the person being suggested.
Corresponds to the JSON property peopleSuggestion
18908 18909 18910 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18908 def people_suggestion @people_suggestion end |
#query_suggestion ⇒ Google::Apis::CloudsearchV1::QuerySuggestion
This field does not contain anything as of now and is just used as an
indicator that the suggest result was a phrase completion.
Corresponds to the JSON property querySuggestion
18914 18915 18916 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18914 def query_suggestion @query_suggestion end |
#source ⇒ Google::Apis::CloudsearchV1::Source
Defines sources for the suggest/search APIs.
Corresponds to the JSON property source
18919 18920 18921 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18919 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
18925 18926 18927 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18925 def suggested_query @suggested_query end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
18932 18933 18934 18935 18936 18937 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18932 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 |