Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequestBoostSpec
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequestBoostSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb
Overview
Specification to boost suggestions based on the condtion of the suggestion.
Instance Attribute Summary collapse
-
#condition_boost_specs ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequestBoostSpecConditionBoostSpec>
Condition boost specifications.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequestBoostSpec
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequestBoostSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequestBoostSpec
Returns a new instance of GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequestBoostSpec.
3884 3885 3886 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3884 def initialize(**args) update!(**args) end |
Instance Attribute Details
#condition_boost_specs ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequestBoostSpecConditionBoostSpec>
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
3882 3883 3884 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3882 def condition_boost_specs @condition_boost_specs end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3889 3890 3891 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3889 def update!(**args) @condition_boost_specs = args[:condition_boost_specs] if args.key?(:condition_boost_specs) end |