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

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

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

/**
 * The budget recommendation for budget constrained campaigns.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.resources.Recommendation.CampaignBudgetRecommendation</code>
 */
class CampaignBudgetRecommendation extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The current budget amount in micros.
     *
     * Generated from protobuf field <code>optional int64 current_budget_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $current_budget_amount_micros = null;
    /**
     * Output only. The recommended budget amount in micros.
     *
     * Generated from protobuf field <code>optional int64 recommended_budget_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $recommended_budget_amount_micros = null;
    /**
     * Output only. The budget amounts and associated impact estimates for some
     * values of possible budget amounts.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $budget_options;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $current_budget_amount_micros
     *           Output only. The current budget amount in micros.
     *     @type int|string $recommended_budget_amount_micros
     *           Output only. The recommended budget amount in micros.
     *     @type \Google\Ads\GoogleAds\V25\Resources\Recommendation\CampaignBudgetRecommendation\CampaignBudgetRecommendationOption[] $budget_options
     *           Output only. The budget amounts and associated impact estimates for some
     *           values of possible budget amounts.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Resources\Recommendation::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The current budget amount in micros.
     *
     * Generated from protobuf field <code>optional int64 current_budget_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int|string
     */
    public function getCurrentBudgetAmountMicros()
    {
        return isset($this->current_budget_amount_micros) ? $this->current_budget_amount_micros : 0;
    }

    public function hasCurrentBudgetAmountMicros()
    {
        return isset($this->current_budget_amount_micros);
    }

    public function clearCurrentBudgetAmountMicros()
    {
        unset($this->current_budget_amount_micros);
    }

    /**
     * Output only. The current budget amount in micros.
     *
     * Generated from protobuf field <code>optional int64 current_budget_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int|string $var
     * @return $this
     */
    public function setCurrentBudgetAmountMicros($var)
    {
        GPBUtil::checkInt64($var);
        $this->current_budget_amount_micros = $var;

        return $this;
    }

    /**
     * Output only. The recommended budget amount in micros.
     *
     * Generated from protobuf field <code>optional int64 recommended_budget_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int|string
     */
    public function getRecommendedBudgetAmountMicros()
    {
        return isset($this->recommended_budget_amount_micros) ? $this->recommended_budget_amount_micros : 0;
    }

    public function hasRecommendedBudgetAmountMicros()
    {
        return isset($this->recommended_budget_amount_micros);
    }

    public function clearRecommendedBudgetAmountMicros()
    {
        unset($this->recommended_budget_amount_micros);
    }

    /**
     * Output only. The recommended budget amount in micros.
     *
     * Generated from protobuf field <code>optional int64 recommended_budget_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int|string $var
     * @return $this
     */
    public function setRecommendedBudgetAmountMicros($var)
    {
        GPBUtil::checkInt64($var);
        $this->recommended_budget_amount_micros = $var;

        return $this;
    }

    /**
     * Output only. The budget amounts and associated impact estimates for some
     * values of possible budget amounts.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return RepeatedField<\Google\Ads\GoogleAds\V25\Resources\Recommendation\CampaignBudgetRecommendation\CampaignBudgetRecommendationOption>
     */
    public function getBudgetOptions()
    {
        return $this->budget_options;
    }

    /**
     * Output only. The budget amounts and associated impact estimates for some
     * values of possible budget amounts.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Ads\GoogleAds\V25\Resources\Recommendation\CampaignBudgetRecommendation\CampaignBudgetRecommendationOption[] $var
     * @return $this
     */
    public function setBudgetOptions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V25\Resources\Recommendation\CampaignBudgetRecommendation\CampaignBudgetRecommendationOption::class);
        $this->budget_options = $arr;

        return $this;
    }

}

