Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpecControlPoint
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpecControlPoint
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/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) ⇒ GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpecControlPoint
constructor
A new instance of GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpecControlPoint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpecControlPoint
Returns a new instance of GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpecControlPoint.
16768 16769 16770 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16768 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
16760 16761 16762 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16760 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
16766 16767 16768 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16766 def boost_amount @boost_amount end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16773 16774 16775 16776 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16773 def update!(**args) @attribute_value = args[:attribute_value] if args.key?(:attribute_value) @boost_amount = args[:boost_amount] if args.key?(:boost_amount) end |