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

namespace Google\Ads\GoogleAds\V24\Resources\Recommendation;

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

/**
 * The impact of making the change as described in the recommendation.
 * Some types of recommendations may not have impact information.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.resources.Recommendation.RecommendationImpact</code>
 */
class RecommendationImpact extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Base metrics at the time the recommendation was generated.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $base_metrics = null;
    /**
     * Output only. Estimated metrics if the recommendation is applied.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $potential_metrics = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type \Google\Ads\GoogleAds\V24\Resources\Recommendation\RecommendationMetrics $base_metrics
     *           Output only. Base metrics at the time the recommendation was generated.
     * @type \Google\Ads\GoogleAds\V24\Resources\Recommendation\RecommendationMetrics $potential_metrics
     *           Output only. Estimated metrics if the recommendation is applied.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Resources\Recommendation::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Base metrics at the time the recommendation was generated.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return \Google\Ads\GoogleAds\V24\Resources\Recommendation\RecommendationMetrics|null
     */
    public function getBaseMetrics()
    {
        return $this->base_metrics;
    }

    public function hasBaseMetrics()
    {
        return isset($this->base_metrics);
    }

    public function clearBaseMetrics()
    {
        unset($this->base_metrics);
    }

    /**
     * Output only. Base metrics at the time the recommendation was generated.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Resources\Recommendation\RecommendationMetrics $var
     * @return $this
     */
    public function setBaseMetrics($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V24\Resources\Recommendation\RecommendationMetrics::class);
        $this->base_metrics = $var;

        return $this;
    }

    /**
     * Output only. Estimated metrics if the recommendation is applied.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return \Google\Ads\GoogleAds\V24\Resources\Recommendation\RecommendationMetrics|null
     */
    public function getPotentialMetrics()
    {
        return $this->potential_metrics;
    }

    public function hasPotentialMetrics()
    {
        return isset($this->potential_metrics);
    }

    public function clearPotentialMetrics()
    {
        unset($this->potential_metrics);
    }

    /**
     * Output only. Estimated metrics if the recommendation is applied.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Resources\Recommendation\RecommendationMetrics $var
     * @return $this
     */
    public function setPotentialMetrics($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V24\Resources\Recommendation\RecommendationMetrics::class);
        $this->potential_metrics = $var;

        return $this;
    }

}

