public static enum BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType extends Enum<BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType> implements com.google.protobuf.ProtocolMessageEnum
The attribute(or function) for which the custom ranking is to be applied.Protobuf enum
google.cloud.dialogflow.cx.v3.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType| Enum Constant and Description |
|---|
ATTRIBUTE_TYPE_UNSPECIFIED
Unspecified AttributeType.
|
FRESHNESS
For the freshness use case the attribute value will be the duration
between the current time and the date in the datetime field
specified.
|
NUMERICAL
The value of the numerical field will be used to dynamically update
the boost amount.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ATTRIBUTE_TYPE_UNSPECIFIED_VALUE
Unspecified AttributeType.
|
static int |
FRESHNESS_VALUE
For the freshness use case the attribute value will be the duration
between the current time and the date in the datetime field
specified.
|
static int |
NUMERICAL_VALUE
The value of the numerical field will be used to dynamically update
the boost amount.
|
| Modifier and Type | Method and Description |
|---|---|
static BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType> |
internalGetValueMap() |
static BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType ATTRIBUTE_TYPE_UNSPECIFIED
Unspecified AttributeType.
ATTRIBUTE_TYPE_UNSPECIFIED = 0;public static final BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType NUMERICAL
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.
NUMERICAL = 1;public static final BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType FRESHNESS
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][T[nH][nM][nS]]`. E.g. `5D`, `3DT12H30M`, `T24H`.
FRESHNESS = 2;public static final BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType UNRECOGNIZED
public static final int ATTRIBUTE_TYPE_UNSPECIFIED_VALUE
Unspecified AttributeType.
ATTRIBUTE_TYPE_UNSPECIFIED = 0;public static final int NUMERICAL_VALUE
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.
NUMERICAL = 1;public static final int FRESHNESS_VALUE
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][T[nH][nM][nS]]`. E.g. `5D`, `3DT12H30M`, `T24H`.
FRESHNESS = 2;public static BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType[] values()
for (BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType c : BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType.values()) System.out.println(c);
public static BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.