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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueryInterpretation

Returns a new instance of QueryInterpretation.



3600
3601
3602
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3600

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

Instance Attribute Details

#interpretation_typeString

Corresponds to the JSON property interpretationType

Returns:

  • (String)


3584
3585
3586
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3584

def interpretation_type
  @interpretation_type
end

#interpreted_queryString

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

Returns:

  • (String)


3592
3593
3594
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3592

def interpreted_query
  @interpreted_query
end

#reasonString

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

Returns:

  • (String)


3598
3599
3600
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3598

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3605
3606
3607
3608
3609
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3605

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