Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaControlBoostActionInterpolationBoostSpecControlPoint
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaControlBoostActionInterpolationBoostSpecControlPoint
- 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
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
Optional.
-
#boost_amount ⇒ Float
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaControlBoostActionInterpolationBoostSpecControlPoint
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaControlBoostActionInterpolationBoostSpecControlPoint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaControlBoostActionInterpolationBoostSpecControlPoint
Returns a new instance of GoogleCloudDiscoveryengineV1alphaControlBoostActionInterpolationBoostSpecControlPoint.
10127 10128 10129 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10127 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attribute_value ⇒ String
Optional. 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
10119 10120 10121 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10119 def attribute_value @attribute_value end |
#boost_amount ⇒ Float
Optional. 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
10125 10126 10127 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10125 def boost_amount @boost_amount end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10132 10133 10134 10135 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10132 def update!(**args) @attribute_value = args[:attribute_value] if args.key?(:attribute_value) @boost_amount = args[:boost_amount] if args.key?(:boost_amount) end |