Class: Google::Apis::CloudsearchV1::QueryInterpretation
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::QueryInterpretation
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueryInterpretation
constructor
A new instance of QueryInterpretation.
-
#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) ⇒ QueryInterpretation
Returns a new instance of QueryInterpretation
2989 2990 2991 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2989 def initialize(**args) update!(**args) end |
Instance Attribute Details
#interpretation_type ⇒ String
Corresponds to the JSON property interpretationType
2981 2982 2983 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2981 def interpretation_type @interpretation_type end |
#interpreted_query ⇒ String
The interpretation of the query used in search. For example, query "email
from john" will be interpreted as "from:john source:mail"
Corresponds to the JSON property interpretedQuery
2987 2988 2989 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2987 def interpreted_query @interpreted_query end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2994 2995 2996 2997 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2994 def update!(**args) @interpretation_type = args[:interpretation_type] if args.key?(:interpretation_type) @interpreted_query = args[:interpreted_query] if args.key?(:interpreted_query) end |