Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint
- 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
The control points used to define the curve. The curve defined through these control points can only be monotonically increasing or decreasing(constant values are acceptable).
Instance Attribute Summary collapse
-
#attribute_value ⇒ String
Can be one of: 1.
-
#boost_amount ⇒ Float
The value between -1 to 1 by which to boost the score if the attribute_value evaluates to the value specified above.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint
Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint.
9756 9757 9758 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9756 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attribute_value ⇒ String
Can be one of: 1. The numerical field value. 2. The duration spec for
freshness: The value must be formatted as an XSD dayTimeDuration
value (a
restricted subset of an ISO 8601 duration value). The pattern for this is:
nDnM]
.
Corresponds to the JSON property attributeValue
9748 9749 9750 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9748 def attribute_value @attribute_value end |
#boost_amount ⇒ Float
The value between -1 to 1 by which to boost the score if the attribute_value
evaluates to the value specified above.
Corresponds to the JSON property boostAmount
9754 9755 9756 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9754 def boost_amount @boost_amount end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9761 9762 9763 9764 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9761 def update!(**args) @attribute_value = args[:attribute_value] if args.key?(:attribute_value) @boost_amount = args[:boost_amount] if args.key?(:boost_amount) end |