Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequestBoostSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb

Overview

Specification to boost suggestions based on the condtion of the suggestion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequestBoostSpec

Returns a new instance of GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequestBoostSpec.



10709
10710
10711
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10709

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

Instance Attribute Details

#condition_boost_specsArray<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequestBoostSpecConditionBoostSpec>

Condition boost specifications. If a suggestion matches multiple conditions in the specifictions, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20. Note: Currently only support language condition boost. Corresponds to the JSON property conditionBoostSpecs



10707
10708
10709
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10707

def condition_boost_specs
  @condition_boost_specs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10714
10715
10716
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10714

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