Enum SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType (0.38.0)

public enum SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType extends Enum<SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType> implements ProtocolMessageEnum

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

Protobuf enum google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType

Implements

ProtocolMessageEnum

Static Fields

Name Description
ATTRIBUTE_TYPE_UNSPECIFIED

Unspecified AttributeType.

ATTRIBUTE_TYPE_UNSPECIFIED = 0;

ATTRIBUTE_TYPE_UNSPECIFIED_VALUE

Unspecified AttributeType.

ATTRIBUTE_TYPE_UNSPECIFIED = 0;

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: nDnM]. E.g. 5D, 3DT12H30M, T24H.

FRESHNESS = 2;

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: nDnM]. E.g. 5D, 3DT12H30M, T24H.

FRESHNESS = 2;

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;

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;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()