Class BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder>
com.google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder
- All Implemented Interfaces:
BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BoostSpec.ConditionBoostSpec.BoostControlSpec
public static final class BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder>
implements 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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec-
Method Summary
Modifier and TypeMethodDescriptionaddAllControlPoints(Iterable<? extends BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint> values) Optional.addControlPoints(int index, BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint value) Optional.addControlPoints(int index, BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint.Builder builderForValue) Optional.Optional.addControlPoints(BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint.Builder builderForValue) 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, BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint value) Optional.setControlPoints(int index, BoostSpec.ConditionBoostSpec.BoostControlSpec.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<BoostSpec.ConditionBoostSpec.BoostControlSpec.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<BoostSpec.ConditionBoostSpec.BoostControlSpec.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<BoostSpec.ConditionBoostSpec.BoostControlSpec.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 BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder>
-
mergeFrom
public BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder mergeFrom(BoostSpec.ConditionBoostSpec.BoostControlSpec other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder>
-
mergeFrom
public BoostSpec.ConditionBoostSpec.BoostControlSpec.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<BoostSpec.ConditionBoostSpec.BoostControlSpec.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 interfaceBoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder- 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 interfaceBoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder- 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 BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAttributeTypeValuein interfaceBoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder- 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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAttributeTypein interfaceBoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder- Returns:
- The attributeType.
-
setAttributeType
public BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder setAttributeType(BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInterpolationTypeValuein interfaceBoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder- 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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInterpolationTypein interfaceBoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder- Returns:
- The interpolationType.
-
setInterpolationType
public BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder setInterpolationType(BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType value) Optional. The interpolation type to be applied to connect the control points listed below.
.google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getControlPointsListin interfaceBoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder
-
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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getControlPointsCountin interfaceBoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder
-
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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getControlPointsin interfaceBoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder
-
setControlPoints
public BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder setControlPoints(int index, BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setControlPoints
public BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder setControlPoints(int index, BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addControlPoints
public BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder addControlPoints(BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addControlPoints
public BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder addControlPoints(int index, BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addControlPoints
public BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder addControlPoints(BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addControlPoints
public BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder addControlPoints(int index, BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addAllControlPoints
public BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder addAllControlPoints(Iterable<? extends BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getControlPointsBuilder
public BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getControlPointsOrBuilder
public BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getControlPointsOrBuilderin interfaceBoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder
-
getControlPointsOrBuilderList
public List<? extends BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getControlPointsOrBuilderListin interfaceBoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder
-
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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addControlPointsBuilder
public BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getControlPointsBuilderList
public List<BoostSpec.ConditionBoostSpec.BoostControlSpec.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.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];
-