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

namespace Google\Ads\GoogleAds\V23\Services\ApplyRecommendationOperation;

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

/**
 * Parameters to use when applying move unused budget recommendation.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters</code>
 */
class MoveUnusedBudgetParameters extends \Google\Protobuf\Internal\Message
{
    /**
     * Budget amount to move from excess budget to constrained budget. This is
     * a required field.
     *
     * Generated from protobuf field <code>optional int64 budget_micros_to_move = 2;</code>
     */
    protected $budget_micros_to_move = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type int|string $budget_micros_to_move
     *           Budget amount to move from excess budget to constrained budget. This is
     *           a required field.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\RecommendationService::initOnce();
        parent::__construct($data);
    }

    /**
     * Budget amount to move from excess budget to constrained budget. This is
     * a required field.
     *
     * Generated from protobuf field <code>optional int64 budget_micros_to_move = 2;</code>
     *
     * @return int|string
     */
    public function getBudgetMicrosToMove()
    {
        return isset($this->budget_micros_to_move) ? $this->budget_micros_to_move : 0;
    }

    public function hasBudgetMicrosToMove()
    {
        return isset($this->budget_micros_to_move);
    }

    public function clearBudgetMicrosToMove()
    {
        unset($this->budget_micros_to_move);
    }

    /**
     * Budget amount to move from excess budget to constrained budget. This is
     * a required field.
     *
     * Generated from protobuf field <code>optional int64 budget_micros_to_move = 2;</code>
     *
     * @param  int|string $var
     * @return $this
     */
    public function setBudgetMicrosToMove($var)
    {
        GPBUtil::checkInt64($var);
        $this->budget_micros_to_move = $var;

        return $this;
    }

}

