# Google Cloud Dialogflow V2 Client - Class AttributeType (2.4.0)

2.4.0 (latest) 2.3.1 2.2.1 2.1.2 2.0.1 1.17.2 1.16.0 1.15.1 1.14.0 1.13.0 1.12.3 1.11.0 1.10.2 1.9.0 1.8.0 1.7.2 1.6.0 1.5.0 1.4.0 1.3.2 1.2.0 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class AttributeType.

The attribute(or function) for which the custom ranking is to be
applied.

Protobuf type `google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType`

## Namespace

Google \\ Cloud \\ Dialogflow \\ V2 \\ SearchKnowledgeRequest \\ SearchConfig \\ BoostSpecs \\ BoostSpec \\ ConditionBoostSpec \\ BoostControlSpec

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### ATTRIBUTE_TYPE_UNSPECIFIED

    Value: 0

Unspecified AttributeType.

Generated from protobuf enum `ATTRIBUTE_TYPE_UNSPECIFIED = 0;`

### NUMERICAL

    Value: 1

The value of the numerical field will be used to dynamically
update the boost amount. In this case, the attribute_value (the
x value) of the control point will be the actual value of the
numerical field for which the boost_amount is specified.

Generated from protobuf enum `NUMERICAL = 1;`

### FRESHNESS

    Value: 2

For the freshness use case the attribute value will be the
duration between the current time and the date in the datetime
field specified. 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]]`. E.g. `5D`, `3DT12H30M`, `T24H`.

Generated from protobuf enum `FRESHNESS = 2;`