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

namespace Google\Ads\GoogleAds\V25\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.v25.common.CustomerLifecycleOptimizationValueSettings</code>
 */
class CustomerLifecycleOptimizationValueSettings extends \Google\Protobuf\Internal\Message
{
    protected $value_adjustment;
    protected $high_lifetime_value_adjustment;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $additional_value
     *           Incremental conversion value.
     *     @type float $value_multiplier
     *           Conversion value multiplier.
     *     @type float $additional_high_lifetime_value
     *           Incremental high lifetime conversion value.
     *     @type float $high_lifetime_value_multiplier
     *           High lifetime conversion value multiplier.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Common\GoalCommon::initOnce();
        parent::__construct($data);
    }

    /**
     * Incremental conversion value.
     *
     * Generated from protobuf field <code>double additional_value = 3;</code>
     * @return float
     */
    public function getAdditionalValue()
    {
        return $this->readOneof(3);
    }

    public function hasAdditionalValue()
    {
        return $this->hasOneof(3);
    }

    /**
     * Incremental conversion value.
     *
     * Generated from protobuf field <code>double additional_value = 3;</code>
     * @param float $var
     * @return $this
     */
    public function setAdditionalValue($var)
    {
        GPBUtil::checkDouble($var);
        $this->writeOneof(3, $var);

        return $this;
    }

    /**
     * Conversion value multiplier.
     *
     * Generated from protobuf field <code>double value_multiplier = 4;</code>
     * @return float
     */
    public function getValueMultiplier()
    {
        return $this->readOneof(4);
    }

    public function hasValueMultiplier()
    {
        return $this->hasOneof(4);
    }

    /**
     * Conversion value multiplier.
     *
     * Generated from protobuf field <code>double value_multiplier = 4;</code>
     * @param float $var
     * @return $this
     */
    public function setValueMultiplier($var)
    {
        GPBUtil::checkDouble($var);
        $this->writeOneof(4, $var);

        return $this;
    }

    /**
     * Incremental high lifetime conversion value.
     *
     * Generated from protobuf field <code>double additional_high_lifetime_value = 5;</code>
     * @return float
     */
    public function getAdditionalHighLifetimeValue()
    {
        return $this->readOneof(5);
    }

    public function hasAdditionalHighLifetimeValue()
    {
        return $this->hasOneof(5);
    }

    /**
     * Incremental high lifetime conversion value.
     *
     * Generated from protobuf field <code>double additional_high_lifetime_value = 5;</code>
     * @param float $var
     * @return $this
     */
    public function setAdditionalHighLifetimeValue($var)
    {
        GPBUtil::checkDouble($var);
        $this->writeOneof(5, $var);

        return $this;
    }

    /**
     * High lifetime conversion value multiplier.
     *
     * Generated from protobuf field <code>double high_lifetime_value_multiplier = 6;</code>
     * @return float
     */
    public function getHighLifetimeValueMultiplier()
    {
        return $this->readOneof(6);
    }

    public function hasHighLifetimeValueMultiplier()
    {
        return $this->hasOneof(6);
    }

    /**
     * High lifetime conversion value multiplier.
     *
     * Generated from protobuf field <code>double high_lifetime_value_multiplier = 6;</code>
     * @param float $var
     * @return $this
     */
    public function setHighLifetimeValueMultiplier($var)
    {
        GPBUtil::checkDouble($var);
        $this->writeOneof(6, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getValueAdjustment()
    {
        return $this->whichOneof("value_adjustment");
    }

    /**
     * @return string
     */
    public function getHighLifetimeValueAdjustment()
    {
        return $this->whichOneof("high_lifetime_value_adjustment");
    }

}

