public static final class SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec extends com.google.protobuf.GeneratedMessageV3 implements SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder
Specification for custom ranking based on customer specified attribute value. It provides more controls for customized ranking than the simple (condition, boost) combination above.Protobuf type
google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec| Modifier and Type | Class and Description |
|---|---|
static class |
SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType
The attribute(or function) for which the custom ranking is to be
applied.
|
static class |
SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder
Specification for custom ranking based on customer specified attribute
value.
|
static class |
SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint
The control points used to define the curve.
|
static interface |
SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPointOrBuilder |
static class |
SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType
The interpolation type to be applied.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ATTRIBUTE_TYPE_FIELD_NUMBER |
static int |
CONTROL_POINTS_FIELD_NUMBER |
static int |
FIELD_NAME_FIELD_NUMBER |
static int |
INTERPOLATION_TYPE_FIELD_NUMBER |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int FIELD_NAME_FIELD_NUMBER
public static final int ATTRIBUTE_TYPE_FIELD_NUMBER
public static final int INTERPOLATION_TYPE_FIELD_NUMBER
public static final int CONTROL_POINTS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getFieldName()
The name of the field whose value will be used to determine the boost amount.
string field_name = 1;getFieldName in interface SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilderpublic com.google.protobuf.ByteString getFieldNameBytes()
The name of the field whose value will be used to determine the boost amount.
string field_name = 1;getFieldNameBytes in interface SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilderpublic int getAttributeTypeValue()
The attribute type to be used to determine the boost amount. The attribute value can be derived from the field value of the specified field_name. In the case of numerical it is straightforward i.e. attribute_value = numerical_field_value. In the case of freshness however, attribute_value = (time.now() - datetime_field_value).
.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2;
getAttributeTypeValue in interface SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilderpublic SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType getAttributeType()
The attribute type to be used to determine the boost amount. The attribute value can be derived from the field value of the specified field_name. In the case of numerical it is straightforward i.e. attribute_value = numerical_field_value. In the case of freshness however, attribute_value = (time.now() - datetime_field_value).
.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2;
getAttributeType in interface SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilderpublic int getInterpolationTypeValue()
The interpolation type to be applied to connect the control points listed below.
.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3;
getInterpolationTypeValue in interface SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilderpublic SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType getInterpolationType()
The interpolation type to be applied to connect the control points listed below.
.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3;
getInterpolationType in interface SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilderpublic List<SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint> getControlPointsList()
The control points used to define the curve. The monotonic function (defined through the interpolation_type above) passes through the control points listed here.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4;
getControlPointsList in interface SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilderpublic List<? extends SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPointOrBuilder> getControlPointsOrBuilderList()
The control points used to define the curve. The monotonic function (defined through the interpolation_type above) passes through the control points listed here.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4;
getControlPointsOrBuilderList in interface SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilderpublic int getControlPointsCount()
The control points used to define the curve. The monotonic function (defined through the interpolation_type above) passes through the control points listed here.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4;
getControlPointsCount in interface SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilderpublic SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint getControlPoints(int index)
The control points used to define the curve. The monotonic function (defined through the interpolation_type above) passes through the control points listed here.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4;
getControlPoints in interface SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilderpublic SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPointOrBuilder getControlPointsOrBuilder(int index)
The control points used to define the curve. The monotonic function (defined through the interpolation_type above) passes through the control points listed here.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4;
getControlPointsOrBuilder in interface SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec parseFrom(InputStream input) throws IOException
IOExceptionpublic static SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder newBuilder()
public static SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder newBuilder(SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec prototype)
public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec getDefaultInstance()
public static com.google.protobuf.Parser<SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec> parser()
public com.google.protobuf.Parser<SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.