Class: Google::Apis::CloudsearchV1::QueryInterpretation
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::QueryInterpretation
- 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
-
#interpretation_type ⇒ String
Corresponds to the JSON property
interpretationType
. -
#interpreted_query ⇒ String
The interpretation of the query used in search.
-
#reason ⇒ String
The reason for interpretation of the query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueryInterpretation
constructor
A new instance of QueryInterpretation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QueryInterpretation
Returns a new instance of QueryInterpretation.
3299 3300 3301 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3299 def initialize(**args) update!(**args) end |
Instance Attribute Details
#interpretation_type ⇒ String
Corresponds to the JSON property interpretationType
3283 3284 3285 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3283 def interpretation_type @interpretation_type end |
#interpreted_query ⇒ String
The interpretation of the query used in search. For example, queries with
natural language intent like "email from john" will be interpreted as "from:
john source:mail". This field will not be filled when the reason is
NOT_ENOUGH_RESULTS_FOUND_FOR_USER_QUERY.
Corresponds to the JSON property interpretedQuery
3291 3292 3293 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3291 def interpreted_query @interpreted_query end |
#reason ⇒ String
The reason for interpretation of the query. This field will not be UNSPECIFIED
if the interpretation type is not NONE.
Corresponds to the JSON property reason
3297 3298 3299 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3297 def reason @reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3304 3305 3306 3307 3308 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3304 def update!(**args) @interpretation_type = args[:interpretation_type] if args.key?(:interpretation_type) @interpreted_query = args[:interpreted_query] if args.key?(:interpreted_query) @reason = args[:reason] if args.key?(:reason) end |