Class: Google::Apis::CloudsearchV1::QueryItem

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

Overview

Information relevant only to a query entry.

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

Returns a new instance of QueryItem



3032
3033
3034
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3032

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

Instance Attribute Details

#is_syntheticBoolean Also known as: is_synthetic?

True if the text was generated by means other than a previous user search. Corresponds to the JSON property isSynthetic

Returns:

  • (Boolean)


3029
3030
3031
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3029

def is_synthetic
  @is_synthetic
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3037
3038
3039
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3037

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