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

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

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

/**
 * The set target CPA recommendations.
 *
 * Generated from protobuf message <code>google.ads.googleads.v21.resources.Recommendation.ForecastingSetTargetCpaRecommendation</code>
 */
class ForecastingSetTargetCpaRecommendation extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The recommended target CPA.
     *
     * Generated from protobuf field <code>int64 recommended_target_cpa_micros = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $recommended_target_cpa_micros = 0;
    /**
     * Output only. The campaign budget.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v21.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $campaign_budget = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $recommended_target_cpa_micros
     *           Output only. The recommended target CPA.
     *     @type \Google\Ads\GoogleAds\V21\Resources\Recommendation\CampaignBudget $campaign_budget
     *           Output only. The campaign budget.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V21\Resources\Recommendation::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The recommended target CPA.
     *
     * Generated from protobuf field <code>int64 recommended_target_cpa_micros = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int|string
     */
    public function getRecommendedTargetCpaMicros()
    {
        return $this->recommended_target_cpa_micros;
    }

    /**
     * Output only. The recommended target CPA.
     *
     * Generated from protobuf field <code>int64 recommended_target_cpa_micros = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int|string $var
     * @return $this
     */
    public function setRecommendedTargetCpaMicros($var)
    {
        GPBUtil::checkInt64($var);
        $this->recommended_target_cpa_micros = $var;

        return $this;
    }

    /**
     * Output only. The campaign budget.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v21.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Ads\GoogleAds\V21\Resources\Recommendation\CampaignBudget|null
     */
    public function getCampaignBudget()
    {
        return $this->campaign_budget;
    }

    public function hasCampaignBudget()
    {
        return isset($this->campaign_budget);
    }

    public function clearCampaignBudget()
    {
        unset($this->campaign_budget);
    }

    /**
     * Output only. The campaign budget.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v21.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Ads\GoogleAds\V21\Resources\Recommendation\CampaignBudget $var
     * @return $this
     */
    public function setCampaignBudget($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V21\Resources\Recommendation\CampaignBudget::class);
        $this->campaign_budget = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ForecastingSetTargetCpaRecommendation::class, \Google\Ads\GoogleAds\V21\Resources\Recommendation_ForecastingSetTargetCpaRecommendation::class);

