# Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::Control::BoostAction::InterpolationBoostSpec (v0.28.0)

0.28.0 (latest) 0.27.0 0.26.0 0.25.0 0.24.0 0.23.1 0.22.0 0.21.0 0.20.1 0.19.1 0.18.0 0.17.0 0.16.0 0.15.0 0.14.2 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.2 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::Control::BoostAction::InterpolationBoostSpec.

Specification for custom ranking based on customer specified attribute
value. It provides more controls for customized ranking than the simple
(condition, boost) combination above.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #attribute_type

    def attribute_type() -> ::Google::Cloud::DiscoveryEngine::V1beta::Control::BoostAction::InterpolationBoostSpec::AttributeType

**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1beta::Control::BoostAction::InterpolationBoostSpec::AttributeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-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_type=

    def attribute_type=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::Control::BoostAction::InterpolationBoostSpec::AttributeType

**Parameter**

- **value** ([::Google::Cloud::DiscoveryEngine::V1beta::Control::BoostAction::InterpolationBoostSpec::AttributeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-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).
**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1beta::Control::BoostAction::InterpolationBoostSpec::AttributeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-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).

### #control_points

    def control_points() -> ::Array<::Google::Cloud::DiscoveryEngine::V1beta::Control::BoostAction::InterpolationBoostSpec::ControlPoint>

**Returns**

- (::Array\<[::Google::Cloud::DiscoveryEngine::V1beta::Control::BoostAction::InterpolationBoostSpec::ControlPoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-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.

### #control_points=

    def control_points=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1beta::Control::BoostAction::InterpolationBoostSpec::ControlPoint>

**Parameter**

- **value** (::Array\<[::Google::Cloud::DiscoveryEngine::V1beta::Control::BoostAction::InterpolationBoostSpec::ControlPoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-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.
**Returns**

- (::Array\<[::Google::Cloud::DiscoveryEngine::V1beta::Control::BoostAction::InterpolationBoostSpec::ControlPoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-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.

### #field_name

    def field_name() -> ::String

**Returns**

- (::String) --- Optional. The name of the field whose value will be used to determine the boost amount.

### #field_name=

    def field_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The name of the field whose value will be used to determine the boost amount.
**Returns**

- (::String) --- Optional. The name of the field whose value will be used to determine the boost amount.

### #interpolation_type

    def interpolation_type() -> ::Google::Cloud::DiscoveryEngine::V1beta::Control::BoostAction::InterpolationBoostSpec::InterpolationType

**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1beta::Control::BoostAction::InterpolationBoostSpec::InterpolationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Control-BoostAction-InterpolationBoostSpec-InterpolationType)) --- Optional. The interpolation type to be applied to connect the control points listed below.

### #interpolation_type=

    def interpolation_type=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::Control::BoostAction::InterpolationBoostSpec::InterpolationType

**Parameter**

- **value** ([::Google::Cloud::DiscoveryEngine::V1beta::Control::BoostAction::InterpolationBoostSpec::InterpolationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Control-BoostAction-InterpolationBoostSpec-InterpolationType)) --- Optional. The interpolation type to be applied to connect the control points listed below.
**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1beta::Control::BoostAction::InterpolationBoostSpec::InterpolationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Control-BoostAction-InterpolationBoostSpec-InterpolationType)) --- Optional. The interpolation type to be applied to connect the control points listed below.