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.



6702
6703
6704
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6702

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

Instance Attribute Details

#rewritten_queryString

Corresponds to the JSON property rewrittenQuery

Returns:

  • (String)


6690
6691
6692
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6690

def rewritten_query
  @rewritten_query
end

#scoreFloat

Corresponds to the JSON property score

Returns:

  • (Float)


6695
6696
6697
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6695

def score
  @score
end

#sort_byString

Corresponds to the JSON property sortBy

Returns:

  • (String)


6700
6701
6702
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6700

def sort_by
  @sort_by
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6707
6708
6709
6710
6711
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6707

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