Class Control.BoostAction.InterpolationBoostSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Control.BoostAction.InterpolationBoostSpec.Builder>
com.google.cloud.discoveryengine.v1.Control.BoostAction.InterpolationBoostSpec.Builder
- All Implemented Interfaces:
Control.BoostAction.InterpolationBoostSpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Control.BoostAction.InterpolationBoostSpec
public static final class Control.BoostAction.InterpolationBoostSpec.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Control.BoostAction.InterpolationBoostSpec.Builder>
implements Control.BoostAction.InterpolationBoostSpecOrBuilder
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.v1.Control.BoostAction.InterpolationBoostSpec-
Method Summary
Modifier and TypeMethodDescriptionaddAllControlPoints(Iterable<? extends Control.BoostAction.InterpolationBoostSpec.ControlPoint> values) Optional.addControlPoints(int index, Control.BoostAction.InterpolationBoostSpec.ControlPoint value) Optional.addControlPoints(int index, Control.BoostAction.InterpolationBoostSpec.ControlPoint.Builder builderForValue) Optional.Optional.Optional.Optional.addControlPointsBuilder(int index) Optional.build()clear()Optional.Optional.Optional.Optional.Optional.intOptional.getControlPoints(int index) Optional.getControlPointsBuilder(int index) Optional.Optional.intOptional.Optional.getControlPointsOrBuilder(int index) Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.intOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeControlPoints(int index) Optional.Optional.setAttributeTypeValue(int value) Optional.setControlPoints(int index, Control.BoostAction.InterpolationBoostSpec.ControlPoint value) Optional.setControlPoints(int index, Control.BoostAction.InterpolationBoostSpec.ControlPoint.Builder builderForValue) Optional.setFieldName(String value) Optional.setFieldNameBytes(com.google.protobuf.ByteString value) Optional.Optional.setInterpolationTypeValue(int value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Control.BoostAction.InterpolationBoostSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Control.BoostAction.InterpolationBoostSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Control.BoostAction.InterpolationBoostSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public Control.BoostAction.InterpolationBoostSpec.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Control.BoostAction.InterpolationBoostSpec.Builder>
-
mergeFrom
public Control.BoostAction.InterpolationBoostSpec.Builder mergeFrom(Control.BoostAction.InterpolationBoostSpec other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Control.BoostAction.InterpolationBoostSpec.Builder>
-
mergeFrom
public Control.BoostAction.InterpolationBoostSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Control.BoostAction.InterpolationBoostSpec.Builder>- Throws:
IOException
-
getFieldName
Optional. The name of the field whose value will be used to determine the boost amount.
string field_name = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFieldNamein interfaceControl.BoostAction.InterpolationBoostSpecOrBuilder- Returns:
- The fieldName.
-
getFieldNameBytes
public com.google.protobuf.ByteString getFieldNameBytes()Optional. The name of the field whose value will be used to determine the boost amount.
string field_name = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFieldNameBytesin interfaceControl.BoostAction.InterpolationBoostSpecOrBuilder- Returns:
- The bytes for fieldName.
-
setFieldName
Optional. The name of the field whose value will be used to determine the boost amount.
string field_name = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The fieldName to set.- Returns:
- This builder for chaining.
-
clearFieldName
Optional. The name of the field whose value will be used to determine the boost amount.
string field_name = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setFieldNameBytes
public Control.BoostAction.InterpolationBoostSpec.Builder setFieldNameBytes(com.google.protobuf.ByteString value) Optional. The name of the field whose value will be used to determine the boost amount.
string field_name = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for fieldName to set.- Returns:
- This builder for chaining.
-
getAttributeTypeValue
public int getAttributeTypeValue()Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAttributeTypeValuein interfaceControl.BoostAction.InterpolationBoostSpecOrBuilder- Returns:
- The enum numeric value on the wire for attributeType.
-
setAttributeTypeValue
Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for attributeType to set.- Returns:
- This builder for chaining.
-
getAttributeType
Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAttributeTypein interfaceControl.BoostAction.InterpolationBoostSpecOrBuilder- Returns:
- The attributeType.
-
setAttributeType
public Control.BoostAction.InterpolationBoostSpec.Builder setAttributeType(Control.BoostAction.InterpolationBoostSpec.AttributeType value) Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The attributeType to set.- Returns:
- This builder for chaining.
-
clearAttributeType
Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getInterpolationTypeValue
public int getInterpolationTypeValue()Optional. The interpolation type to be applied to connect the control points listed below.
.google.cloud.discoveryengine.v1.Control.BoostAction.InterpolationBoostSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInterpolationTypeValuein interfaceControl.BoostAction.InterpolationBoostSpecOrBuilder- Returns:
- The enum numeric value on the wire for interpolationType.
-
setInterpolationTypeValue
Optional. The interpolation type to be applied to connect the control points listed below.
.google.cloud.discoveryengine.v1.Control.BoostAction.InterpolationBoostSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for interpolationType to set.- Returns:
- This builder for chaining.
-
getInterpolationType
Optional. The interpolation type to be applied to connect the control points listed below.
.google.cloud.discoveryengine.v1.Control.BoostAction.InterpolationBoostSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInterpolationTypein interfaceControl.BoostAction.InterpolationBoostSpecOrBuilder- Returns:
- The interpolationType.
-
setInterpolationType
public Control.BoostAction.InterpolationBoostSpec.Builder setInterpolationType(Control.BoostAction.InterpolationBoostSpec.InterpolationType value) Optional. The interpolation type to be applied to connect the control points listed below.
.google.cloud.discoveryengine.v1.Control.BoostAction.InterpolationBoostSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The interpolationType to set.- Returns:
- This builder for chaining.
-
clearInterpolationType
Optional. The interpolation type to be applied to connect the control points listed below.
.google.cloud.discoveryengine.v1.Control.BoostAction.InterpolationBoostSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getControlPointsList
Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getControlPointsListin interfaceControl.BoostAction.InterpolationBoostSpecOrBuilder
-
getControlPointsCount
public int getControlPointsCount()Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getControlPointsCountin interfaceControl.BoostAction.InterpolationBoostSpecOrBuilder
-
getControlPoints
Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getControlPointsin interfaceControl.BoostAction.InterpolationBoostSpecOrBuilder
-
setControlPoints
public Control.BoostAction.InterpolationBoostSpec.Builder setControlPoints(int index, Control.BoostAction.InterpolationBoostSpec.ControlPoint value) Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setControlPoints
public Control.BoostAction.InterpolationBoostSpec.Builder setControlPoints(int index, Control.BoostAction.InterpolationBoostSpec.ControlPoint.Builder builderForValue) Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addControlPoints
public Control.BoostAction.InterpolationBoostSpec.Builder addControlPoints(Control.BoostAction.InterpolationBoostSpec.ControlPoint value) Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addControlPoints
public Control.BoostAction.InterpolationBoostSpec.Builder addControlPoints(int index, Control.BoostAction.InterpolationBoostSpec.ControlPoint value) Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addControlPoints
public Control.BoostAction.InterpolationBoostSpec.Builder addControlPoints(Control.BoostAction.InterpolationBoostSpec.ControlPoint.Builder builderForValue) Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addControlPoints
public Control.BoostAction.InterpolationBoostSpec.Builder addControlPoints(int index, Control.BoostAction.InterpolationBoostSpec.ControlPoint.Builder builderForValue) Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addAllControlPoints
public Control.BoostAction.InterpolationBoostSpec.Builder addAllControlPoints(Iterable<? extends Control.BoostAction.InterpolationBoostSpec.ControlPoint> values) Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
clearControlPoints
Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
removeControlPoints
Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getControlPointsBuilder
public Control.BoostAction.InterpolationBoostSpec.ControlPoint.Builder getControlPointsBuilder(int index) Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getControlPointsOrBuilder
public Control.BoostAction.InterpolationBoostSpec.ControlPointOrBuilder getControlPointsOrBuilder(int index) Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getControlPointsOrBuilderin interfaceControl.BoostAction.InterpolationBoostSpecOrBuilder
-
getControlPointsOrBuilderList
public List<? extends Control.BoostAction.InterpolationBoostSpec.ControlPointOrBuilder> getControlPointsOrBuilderList()Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getControlPointsOrBuilderListin interfaceControl.BoostAction.InterpolationBoostSpecOrBuilder
-
addControlPointsBuilder
Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addControlPointsBuilder
public Control.BoostAction.InterpolationBoostSpec.ControlPoint.Builder addControlPointsBuilder(int index) Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getControlPointsBuilderList
public List<Control.BoostAction.InterpolationBoostSpec.ControlPoint.Builder> getControlPointsBuilderList()Optional. 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.v1.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];
-