Class: Google::Apis::CloudsearchV1::SpellResult
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::SpellResult
- 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
Instance Attribute Summary collapse
-
#suggested_query ⇒ String
The suggested spelling of the query.
-
#suggested_query_html ⇒ Google::Apis::CloudsearchV1::SafeHtmlProto
IMPORTANT: It is unsafe to accept this message from an untrusted source, since it's trivial for an attacker to forge serialized messages that don't fulfill the type's safety contract -- for example, it could contain attacker controlled script.
-
#suggestion_type ⇒ String
Suggestion triggered for the current query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SpellResult
constructor
A new instance of SpellResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SpellResult
Returns a new instance of SpellResult.
7464 7465 7466 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7464 def initialize(**args) update!(**args) end |
Instance Attribute Details
#suggested_query ⇒ String
The suggested spelling of the query.
Corresponds to the JSON property suggestedQuery
7447 7448 7449 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7447 def suggested_query @suggested_query end |
#suggested_query_html ⇒ Google::Apis::CloudsearchV1::SafeHtmlProto
IMPORTANT: It is unsafe to accept this message from an untrusted source, since
it's trivial for an attacker to forge serialized messages that don't fulfill
the type's safety contract -- for example, it could contain attacker
controlled script. A system which receives a SafeHtmlProto implicitly trusts
the producer of the SafeHtmlProto. So, it's generally safe to return this
message in RPC responses, but generally unsafe to accept it in RPC requests.
Corresponds to the JSON property suggestedQueryHtml
7457 7458 7459 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7457 def suggested_query_html @suggested_query_html end |
#suggestion_type ⇒ String
Suggestion triggered for the current query.
Corresponds to the JSON property suggestionType
7462 7463 7464 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7462 def suggestion_type @suggestion_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7469 7470 7471 7472 7473 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7469 def update!(**args) @suggested_query = args[:suggested_query] if args.key?(:suggested_query) @suggested_query_html = args[:suggested_query_html] if args.key?(:suggested_query_html) @suggestion_type = args[:suggestion_type] if args.key?(:suggestion_type) end |