Class: Google::Apis::CloudsearchV1::QueryInterpretation

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ QueryInterpretation

Returns a new instance of QueryInterpretation



2991
2992
2993
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2991

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#interpretation_typeString

Corresponds to the JSON property interpretationType

Returns:

  • (String)


2983
2984
2985
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2983

def interpretation_type
  @interpretation_type
end

#interpreted_queryString

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

Returns:

  • (String)


2989
2990
2991
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2989

def interpreted_query
  @interpreted_query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2996
2997
2998
2999
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2996

def update!(**args)
  @interpretation_type = args[:interpretation_type] if args.key?(:interpretation_type)
  @interpreted_query = args[:interpreted_query] if args.key?(:interpreted_query)
end