Google Cloud Dialogflow Cx V3 Client - Class ControlPoint (0.5.0)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class ControlPoint.

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).

Generated from protobuf message google.cloud.dialogflow.cx.v3.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ BoostSpec \ ConditionBoostSpec \ BoostControlSpec

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ 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: [nD]<xref uid="\N\M">T[nH</xref>[nS]].

↳ 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.

getAttributeValue

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: [nD]<xref uid="\N\M">T[nH</xref>[nS]].

Returns
Type Description
string

setAttributeValue

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: [nD]<xref uid="\N\M">T[nH</xref>[nS]].

Parameter
Name Description
var string
Returns
Type Description
$this

getBoostAmount

Optional. The value between -1 to 1 by which to boost the score if the attribute_value evaluates to the value specified above.

Returns
Type Description
float

setBoostAmount

Optional. The value between -1 to 1 by which to boost the score if the attribute_value evaluates to the value specified above.

Parameter
Name Description
var float
Returns
Type Description
$this