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

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

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

/**
 * Parameters to use when applying a use broad match keyword recommendation.
 *
 * Generated from protobuf message <code>google.ads.googleads.v22.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters</code>
 */
class UseBroadMatchKeywordParameters extends \Google\Protobuf\Internal\Message
{
    /**
     * New budget amount to set for target budget resource.
     *
     * Generated from protobuf field <code>optional int64 new_budget_amount_micros = 1;</code>
     */
    protected $new_budget_amount_micros = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $new_budget_amount_micros
     *           New budget amount to set for target budget resource.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V22\Services\RecommendationService::initOnce();
        parent::__construct($data);
    }

    /**
     * New budget amount to set for target budget resource.
     *
     * Generated from protobuf field <code>optional int64 new_budget_amount_micros = 1;</code>
     * @return int|string
     */
    public function getNewBudgetAmountMicros()
    {
        return isset($this->new_budget_amount_micros) ? $this->new_budget_amount_micros : 0;
    }

    public function hasNewBudgetAmountMicros()
    {
        return isset($this->new_budget_amount_micros);
    }

    public function clearNewBudgetAmountMicros()
    {
        unset($this->new_budget_amount_micros);
    }

    /**
     * New budget amount to set for target budget resource.
     *
     * Generated from protobuf field <code>optional int64 new_budget_amount_micros = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setNewBudgetAmountMicros($var)
    {
        GPBUtil::checkInt64($var);
        $this->new_budget_amount_micros = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UseBroadMatchKeywordParameters::class, \Google\Ads\GoogleAds\V22\Services\ApplyRecommendationOperation_UseBroadMatchKeywordParameters::class);

