class Google::Apis::CloudsearchV1::QueryInterpretation

Attributes

interpretation_type[RW]

Corresponds to the JSON property `interpretationType` @return [String]

interpreted_query[RW]

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` @return [String]

reason[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudsearch_v1/classes.rb, line 3298
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudsearch_v1/classes.rb, line 3303
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