public static enum SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType extends Enum<SearchRequest.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.discoveryengine.v1beta.SearchRequest.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.
|
public static final SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType ATTRIBUTE_TYPE_UNSPECIFIED
Unspecified AttributeType.
ATTRIBUTE_TYPE_UNSPECIFIED = 0;public static final SearchRequest.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 SearchRequest.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]]`. For example, `5D`, `3DT12H30M`, `T24H`.
FRESHNESS = 2;public static final SearchRequest.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]]`. For example, `5D`, `3DT12H30M`, `T24H`.
FRESHNESS = 2;public static SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType[] values()
for (SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType c : SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType.values()) System.out.println(c);
public static SearchRequest.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 SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SearchRequest.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 SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.