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

namespace Google\Ads\GoogleAds\V23\Common\GoalSetting;

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

/**
 * Retention goal settings.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.common.GoalSetting.RetentionGoal</code>
 */
class RetentionGoal extends \Google\Protobuf\Internal\Message
{
    /**
     * Retention goal value settings.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.CustomerLifecycleOptimizationValueSettings value_settings = 1;</code>
     */
    protected $value_settings = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V23\Common\CustomerLifecycleOptimizationValueSettings $value_settings
     *           Retention goal value settings.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Common\GoalSetting::initOnce();
        parent::__construct($data);
    }

    /**
     * Retention goal value settings.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.CustomerLifecycleOptimizationValueSettings value_settings = 1;</code>
     * @return \Google\Ads\GoogleAds\V23\Common\CustomerLifecycleOptimizationValueSettings|null
     */
    public function getValueSettings()
    {
        return $this->value_settings;
    }

    public function hasValueSettings()
    {
        return isset($this->value_settings);
    }

    public function clearValueSettings()
    {
        unset($this->value_settings);
    }

    /**
     * Retention goal value settings.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.CustomerLifecycleOptimizationValueSettings value_settings = 1;</code>
     * @param \Google\Ads\GoogleAds\V23\Common\CustomerLifecycleOptimizationValueSettings $var
     * @return $this
     */
    public function setValueSettings($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Common\CustomerLifecycleOptimizationValueSettings::class);
        $this->value_settings = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RetentionGoal::class, \Google\Ads\GoogleAds\V23\Common\GoalSetting_RetentionGoal::class);

