Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestBoostSpec
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestBoostSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb
Overview
Boost specification to boost certain items.
Instance Attribute Summary collapse
-
#condition_boost_specs ⇒ Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestBoostSpecConditionBoostSpec>
Condition boost specifications.
-
#skip_boost_spec_validation ⇒ Boolean
(also: #skip_boost_spec_validation?)
Whether to skip boostspec validation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaSearchRequestBoostSpec
constructor
A new instance of GoogleCloudRetailV2alphaSearchRequestBoostSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaSearchRequestBoostSpec
Returns a new instance of GoogleCloudRetailV2alphaSearchRequestBoostSpec.
6711 6712 6713 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6711 def initialize(**args) update!(**args) end |
Instance Attribute Details
#condition_boost_specs ⇒ Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestBoostSpecConditionBoostSpec>
Condition boost specifications. If a product matches multiple conditions in
the specifictions, boost scores from these specifications are all applied and
combined in a non-linear way. Maximum number of specifications is 20.
Corresponds to the JSON property conditionBoostSpecs
6701 6702 6703 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6701 def condition_boost_specs @condition_boost_specs end |
#skip_boost_spec_validation ⇒ Boolean Also known as: skip_boost_spec_validation?
Whether to skip boostspec validation. If this field is set to true, invalid
BoostSpec.condition_boost_specs will be ignored and valid BoostSpec.
condition_boost_specs will still be applied.
Corresponds to the JSON property skipBoostSpecValidation
6708 6709 6710 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6708 def skip_boost_spec_validation @skip_boost_spec_validation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6716 6717 6718 6719 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6716 def update!(**args) @condition_boost_specs = args[:condition_boost_specs] if args.key?(:condition_boost_specs) @skip_boost_spec_validation = args[:skip_boost_spec_validation] if args.key?(:skip_boost_spec_validation) end |