Class: Google::Apis::CloudsearchV1::RewrittenQuery

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) ⇒ RewrittenQuery

Returns a new instance of RewrittenQuery.



6735
6736
6737
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6735

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

Instance Attribute Details

#rewritten_queryString

Corresponds to the JSON property rewrittenQuery

Returns:

  • (String)


6723
6724
6725
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6723

def rewritten_query
  @rewritten_query
end

#scoreFloat

Corresponds to the JSON property score

Returns:

  • (Float)


6728
6729
6730
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6728

def score
  @score
end

#sort_byString

Corresponds to the JSON property sortBy

Returns:

  • (String)


6733
6734
6735
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6733

def sort_by
  @sort_by
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6740
6741
6742
6743
6744
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6740

def update!(**args)
  @rewritten_query = args[:rewritten_query] if args.key?(:rewritten_query)
  @score = args[:score] if args.key?(:score)
  @sort_by = args[:sort_by] if args.key?(:sort_by)
end