<?php
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v24/common/goal_common.proto

namespace Google\Ads\GoogleAds\V24\Common;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Lifecycle goal optimization value settings.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.common.CustomerLifecycleOptimizationValueSettings</code>
 */
class CustomerLifecycleOptimizationValueSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Value of the lifecycle goal. For example, for retention goals, value is the
     * incremental conversion value for lapsed customers who are not of high
     * value.
     *
     * Generated from protobuf field <code>optional double additional_value = 1;</code>
     */
    protected $additional_value = null;
    /**
     * High lifetime value of the lifecycle goal. For example, for customer
     * acquisition goals, high lifetime value is the incremental conversion value
     * for lapsed customers who are of high value. High lifetime value should be
     * greater than value, if set.
     *
     * Generated from protobuf field <code>optional double additional_high_lifetime_value = 2;</code>
     */
    protected $additional_high_lifetime_value = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type float $additional_value
     *           Value of the lifecycle goal. For example, for retention goals, value is the
     *           incremental conversion value for lapsed customers who are not of high
     *           value.
     * @type float $additional_high_lifetime_value
     *           High lifetime value of the lifecycle goal. For example, for customer
     *           acquisition goals, high lifetime value is the incremental conversion value
     *           for lapsed customers who are of high value. High lifetime value should be
     *           greater than value, if set.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Common\GoalCommon::initOnce();
        parent::__construct($data);
    }

    /**
     * Value of the lifecycle goal. For example, for retention goals, value is the
     * incremental conversion value for lapsed customers who are not of high
     * value.
     *
     * Generated from protobuf field <code>optional double additional_value = 1;</code>
     *
     * @return float
     */
    public function getAdditionalValue()
    {
        return isset($this->additional_value) ? $this->additional_value : 0.0;
    }

    public function hasAdditionalValue()
    {
        return isset($this->additional_value);
    }

    public function clearAdditionalValue()
    {
        unset($this->additional_value);
    }

    /**
     * Value of the lifecycle goal. For example, for retention goals, value is the
     * incremental conversion value for lapsed customers who are not of high
     * value.
     *
     * Generated from protobuf field <code>optional double additional_value = 1;</code>
     *
     * @param  float $var
     * @return $this
     */
    public function setAdditionalValue($var)
    {
        GPBUtil::checkDouble($var);
        $this->additional_value = $var;

        return $this;
    }

    /**
     * High lifetime value of the lifecycle goal. For example, for customer
     * acquisition goals, high lifetime value is the incremental conversion value
     * for lapsed customers who are of high value. High lifetime value should be
     * greater than value, if set.
     *
     * Generated from protobuf field <code>optional double additional_high_lifetime_value = 2;</code>
     *
     * @return float
     */
    public function getAdditionalHighLifetimeValue()
    {
        return isset($this->additional_high_lifetime_value) ? $this->additional_high_lifetime_value : 0.0;
    }

    public function hasAdditionalHighLifetimeValue()
    {
        return isset($this->additional_high_lifetime_value);
    }

    public function clearAdditionalHighLifetimeValue()
    {
        unset($this->additional_high_lifetime_value);
    }

    /**
     * High lifetime value of the lifecycle goal. For example, for customer
     * acquisition goals, high lifetime value is the incremental conversion value
     * for lapsed customers who are of high value. High lifetime value should be
     * greater than value, if set.
     *
     * Generated from protobuf field <code>optional double additional_high_lifetime_value = 2;</code>
     *
     * @param  float $var
     * @return $this
     */
    public function setAdditionalHighLifetimeValue($var)
    {
        GPBUtil::checkDouble($var);
        $this->additional_high_lifetime_value = $var;

        return $this;
    }

}

