Class: Google::Apis::CloudsearchV1::RetrievalImportance

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

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

Returns a new instance of RetrievalImportance.



3773
3774
3775
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3773

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

Instance Attribute Details

#importanceString

Indicates the ranking importance given to property when it is matched during retrieval. Once set, the token importance of a property cannot be changed. Corresponds to the JSON property importance

Returns:

  • (String)


3771
3772
3773
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3771

def importance
  @importance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3778
3779
3780
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3778

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