public static final class SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder> 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.BoostControlSpecgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder>public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder>public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder>public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder>public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder>public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder>public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder>public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder>public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder>public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder mergeFrom(SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder>public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder>IOExceptionpublic 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 SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder setFieldName(String value)
The name of the field whose value will be used to determine the boost amount.
string field_name = 1;value - The fieldName to set.public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder clearFieldName()
The name of the field whose value will be used to determine the boost amount.
string field_name = 1;public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder setFieldNameBytes(com.google.protobuf.ByteString value)
The name of the field whose value will be used to determine the boost amount.
string field_name = 1;value - The bytes for fieldName to set.public 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.Builder setAttributeTypeValue(int value)
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;
value - The enum numeric value on the wire for attributeType to set.public 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 SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder setAttributeType(SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType value)
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;
value - The attributeType to set.public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder clearAttributeType()
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;
public 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.Builder setInterpolationTypeValue(int value)
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;
value - The enum numeric value on the wire for interpolationType to set.public 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 SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder setInterpolationType(SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType value)
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;
value - The interpolationType to set.public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder clearInterpolationType()
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;
public 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 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.Builder setControlPoints(int index, SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint value)
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;
public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder setControlPoints(int index, SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint.Builder builderForValue)
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;
public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder addControlPoints(SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint value)
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;
public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder addControlPoints(int index, SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint value)
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;
public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder addControlPoints(SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint.Builder builderForValue)
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;
public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder addControlPoints(int index, SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint.Builder builderForValue)
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;
public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder addAllControlPoints(Iterable<? extends SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint> values)
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;
public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder clearControlPoints()
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;
public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder removeControlPoints(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;
public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint.Builder getControlPointsBuilder(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;
public 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 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 SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint.Builder addControlPointsBuilder()
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;
public SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint.Builder addControlPointsBuilder(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;
public List<SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint.Builder> getControlPointsBuilderList()
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;
public final SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder>public final SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder>Copyright © 2025 Google LLC. All rights reserved.