Class: Google::Cloud::DiscoveryEngine::V1::Control::BoostAction
- Inherits:
-
Object
- Object
- Google::Cloud::DiscoveryEngine::V1::Control::BoostAction
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/discoveryengine/v1/control.rb
Overview
Adjusts order of products in returned list.
Defined Under Namespace
Classes: InterpolationBoostSpec
Instance Attribute Summary collapse
-
#boost ⇒ ::Float
deprecated
Deprecated.
This field is deprecated and may be removed in the next major version update.
-
#data_store ⇒ ::String
Required.
-
#filter ⇒ ::String
Required.
-
#fixed_boost ⇒ ::Float
Optional.
-
#interpolation_boost_spec ⇒ ::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec
Optional.
Instance Attribute Details
#boost ⇒ ::Float
This field is deprecated and may be removed in the next major version update.
Returns Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op).
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 |
# File 'proto_docs/google/cloud/discoveryengine/v1/control.rb', line 189 class BoostAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specification for custom ranking based on customer specified attribute # value. It provides more controls for customized ranking than the simple # (condition, boost) combination above. # @!attribute [rw] field_name # @return [::String] # Optional. The name of the field whose value will be used to determine # the boost amount. # @!attribute [rw] attribute_type # @return [::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec::AttributeType] # 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). # @!attribute [rw] interpolation_type # @return [::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec::InterpolationType] # Optional. The interpolation type to be applied to connect the control # points listed below. # @!attribute [rw] control_points # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec::ControlPoint>] # 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. class InterpolationBoostSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The control points used to define the curve. The curve defined # through these control points can only be monotonically increasing # or decreasing(constant values are acceptable). # @!attribute [rw] attribute_value # @return [::String] # Optional. Can be one of: # 1. The numerical field value. # 2. The duration spec for freshness: # The value must be formatted as an XSD `dayTimeDuration` value (a # restricted subset of an ISO 8601 duration value). The pattern for # this is: `[nD][T[nH][nM][nS]]`. # @!attribute [rw] boost_amount # @return [::Float] # Optional. The value between -1 to 1 by which to boost the score if # the attribute_value evaluates to the value specified above. class ControlPoint include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The attribute(or function) for which the custom ranking is to be # applied. module AttributeType # Unspecified AttributeType. ATTRIBUTE_TYPE_UNSPECIFIED = 0 # 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 # 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: `[nD][T[nH][nM][nS]]`. # For example, `5D`, `3DT12H30M`, `T24H`. FRESHNESS = 2 end # The interpolation type to be applied. Default will be linear # (Piecewise Linear). module InterpolationType # Interpolation type is unspecified. In this case, it defaults to # Linear. INTERPOLATION_TYPE_UNSPECIFIED = 0 # Piecewise linear interpolation will be applied. LINEAR = 1 end end end |
#data_store ⇒ ::String
Returns Required. Specifies which data store's documents can be boosted by this control. Full data store name e.g. projects/123/locations/global/collections/default_collection/dataStores/default_data_store.
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 |
# File 'proto_docs/google/cloud/discoveryengine/v1/control.rb', line 189 class BoostAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specification for custom ranking based on customer specified attribute # value. It provides more controls for customized ranking than the simple # (condition, boost) combination above. # @!attribute [rw] field_name # @return [::String] # Optional. The name of the field whose value will be used to determine # the boost amount. # @!attribute [rw] attribute_type # @return [::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec::AttributeType] # 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). # @!attribute [rw] interpolation_type # @return [::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec::InterpolationType] # Optional. The interpolation type to be applied to connect the control # points listed below. # @!attribute [rw] control_points # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec::ControlPoint>] # 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. class InterpolationBoostSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The control points used to define the curve. The curve defined # through these control points can only be monotonically increasing # or decreasing(constant values are acceptable). # @!attribute [rw] attribute_value # @return [::String] # Optional. Can be one of: # 1. The numerical field value. # 2. The duration spec for freshness: # The value must be formatted as an XSD `dayTimeDuration` value (a # restricted subset of an ISO 8601 duration value). The pattern for # this is: `[nD][T[nH][nM][nS]]`. # @!attribute [rw] boost_amount # @return [::Float] # Optional. The value between -1 to 1 by which to boost the score if # the attribute_value evaluates to the value specified above. class ControlPoint include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The attribute(or function) for which the custom ranking is to be # applied. module AttributeType # Unspecified AttributeType. ATTRIBUTE_TYPE_UNSPECIFIED = 0 # 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 # 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: `[nD][T[nH][nM][nS]]`. # For example, `5D`, `3DT12H30M`, `T24H`. FRESHNESS = 2 end # The interpolation type to be applied. Default will be linear # (Piecewise Linear). module InterpolationType # Interpolation type is unspecified. In this case, it defaults to # Linear. INTERPOLATION_TYPE_UNSPECIFIED = 0 # Piecewise linear interpolation will be applied. LINEAR = 1 end end end |
#filter ⇒ ::String
Returns Required. Specifies which products to apply the boost to.
If no filter is provided all products will be boosted (No-op). Syntax documentation: https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown.
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 |
# File 'proto_docs/google/cloud/discoveryengine/v1/control.rb', line 189 class BoostAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specification for custom ranking based on customer specified attribute # value. It provides more controls for customized ranking than the simple # (condition, boost) combination above. # @!attribute [rw] field_name # @return [::String] # Optional. The name of the field whose value will be used to determine # the boost amount. # @!attribute [rw] attribute_type # @return [::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec::AttributeType] # 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). # @!attribute [rw] interpolation_type # @return [::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec::InterpolationType] # Optional. The interpolation type to be applied to connect the control # points listed below. # @!attribute [rw] control_points # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec::ControlPoint>] # 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. class InterpolationBoostSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The control points used to define the curve. The curve defined # through these control points can only be monotonically increasing # or decreasing(constant values are acceptable). # @!attribute [rw] attribute_value # @return [::String] # Optional. Can be one of: # 1. The numerical field value. # 2. The duration spec for freshness: # The value must be formatted as an XSD `dayTimeDuration` value (a # restricted subset of an ISO 8601 duration value). The pattern for # this is: `[nD][T[nH][nM][nS]]`. # @!attribute [rw] boost_amount # @return [::Float] # Optional. The value between -1 to 1 by which to boost the score if # the attribute_value evaluates to the value specified above. class ControlPoint include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The attribute(or function) for which the custom ranking is to be # applied. module AttributeType # Unspecified AttributeType. ATTRIBUTE_TYPE_UNSPECIFIED = 0 # 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 # 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: `[nD][T[nH][nM][nS]]`. # For example, `5D`, `3DT12H30M`, `T24H`. FRESHNESS = 2 end # The interpolation type to be applied. Default will be linear # (Piecewise Linear). module InterpolationType # Interpolation type is unspecified. In this case, it defaults to # Linear. INTERPOLATION_TYPE_UNSPECIFIED = 0 # Piecewise linear interpolation will be applied. LINEAR = 1 end end end |
#fixed_boost ⇒ ::Float
Returns Optional. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op).
Note: The following fields are mutually exclusive: fixed_boost
, interpolation_boost_spec
. If a field in that set is populated, all other fields in the set will automatically be cleared.
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 |
# File 'proto_docs/google/cloud/discoveryengine/v1/control.rb', line 189 class BoostAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specification for custom ranking based on customer specified attribute # value. It provides more controls for customized ranking than the simple # (condition, boost) combination above. # @!attribute [rw] field_name # @return [::String] # Optional. The name of the field whose value will be used to determine # the boost amount. # @!attribute [rw] attribute_type # @return [::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec::AttributeType] # 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). # @!attribute [rw] interpolation_type # @return [::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec::InterpolationType] # Optional. The interpolation type to be applied to connect the control # points listed below. # @!attribute [rw] control_points # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec::ControlPoint>] # 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. class InterpolationBoostSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The control points used to define the curve. The curve defined # through these control points can only be monotonically increasing # or decreasing(constant values are acceptable). # @!attribute [rw] attribute_value # @return [::String] # Optional. Can be one of: # 1. The numerical field value. # 2. The duration spec for freshness: # The value must be formatted as an XSD `dayTimeDuration` value (a # restricted subset of an ISO 8601 duration value). The pattern for # this is: `[nD][T[nH][nM][nS]]`. # @!attribute [rw] boost_amount # @return [::Float] # Optional. The value between -1 to 1 by which to boost the score if # the attribute_value evaluates to the value specified above. class ControlPoint include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The attribute(or function) for which the custom ranking is to be # applied. module AttributeType # Unspecified AttributeType. ATTRIBUTE_TYPE_UNSPECIFIED = 0 # 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 # 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: `[nD][T[nH][nM][nS]]`. # For example, `5D`, `3DT12H30M`, `T24H`. FRESHNESS = 2 end # The interpolation type to be applied. Default will be linear # (Piecewise Linear). module InterpolationType # Interpolation type is unspecified. In this case, it defaults to # Linear. INTERPOLATION_TYPE_UNSPECIFIED = 0 # Piecewise linear interpolation will be applied. LINEAR = 1 end end end |
#interpolation_boost_spec ⇒ ::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec
Returns Optional. Complex specification for custom ranking based on customer defined attribute value.
Note: The following fields are mutually exclusive: interpolation_boost_spec
, fixed_boost
. If a field in that set is populated, all other fields in the set will automatically be cleared.
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 |
# File 'proto_docs/google/cloud/discoveryengine/v1/control.rb', line 189 class BoostAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specification for custom ranking based on customer specified attribute # value. It provides more controls for customized ranking than the simple # (condition, boost) combination above. # @!attribute [rw] field_name # @return [::String] # Optional. The name of the field whose value will be used to determine # the boost amount. # @!attribute [rw] attribute_type # @return [::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec::AttributeType] # 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). # @!attribute [rw] interpolation_type # @return [::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec::InterpolationType] # Optional. The interpolation type to be applied to connect the control # points listed below. # @!attribute [rw] control_points # @return [::Array<::Google::Cloud::DiscoveryEngine::V1::Control::BoostAction::InterpolationBoostSpec::ControlPoint>] # 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. class InterpolationBoostSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The control points used to define the curve. The curve defined # through these control points can only be monotonically increasing # or decreasing(constant values are acceptable). # @!attribute [rw] attribute_value # @return [::String] # Optional. Can be one of: # 1. The numerical field value. # 2. The duration spec for freshness: # The value must be formatted as an XSD `dayTimeDuration` value (a # restricted subset of an ISO 8601 duration value). The pattern for # this is: `[nD][T[nH][nM][nS]]`. # @!attribute [rw] boost_amount # @return [::Float] # Optional. The value between -1 to 1 by which to boost the score if # the attribute_value evaluates to the value specified above. class ControlPoint include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The attribute(or function) for which the custom ranking is to be # applied. module AttributeType # Unspecified AttributeType. ATTRIBUTE_TYPE_UNSPECIFIED = 0 # 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 # 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: `[nD][T[nH][nM][nS]]`. # For example, `5D`, `3DT12H30M`, `T24H`. FRESHNESS = 2 end # The interpolation type to be applied. Default will be linear # (Piecewise Linear). module InterpolationType # Interpolation type is unspecified. In this case, it defaults to # Linear. INTERPOLATION_TYPE_UNSPECIFIED = 0 # Piecewise linear interpolation will be applied. LINEAR = 1 end end end |