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

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

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

/**
 * Parameters to use when applying a responsive search ad improve ad strength
 * recommendation.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.services.ApplyRecommendationOperation.ResponsiveSearchAdImproveAdStrengthParameters</code>
 */
class ResponsiveSearchAdImproveAdStrengthParameters extends \Google\Protobuf\Internal\Message
{
    /**
     * Updated ad. The current ad's content will be replaced.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.resources.Ad updated_ad = 1;</code>
     */
    protected $updated_ad = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V25\Resources\Ad $updated_ad
     *           Updated ad. The current ad's content will be replaced.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Services\RecommendationService::initOnce();
        parent::__construct($data);
    }

    /**
     * Updated ad. The current ad's content will be replaced.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.resources.Ad updated_ad = 1;</code>
     * @return \Google\Ads\GoogleAds\V25\Resources\Ad|null
     */
    public function getUpdatedAd()
    {
        return $this->updated_ad;
    }

    public function hasUpdatedAd()
    {
        return isset($this->updated_ad);
    }

    public function clearUpdatedAd()
    {
        unset($this->updated_ad);
    }

    /**
     * Updated ad. The current ad's content will be replaced.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.resources.Ad updated_ad = 1;</code>
     * @param \Google\Ads\GoogleAds\V25\Resources\Ad $var
     * @return $this
     */
    public function setUpdatedAd($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V25\Resources\Ad::class);
        $this->updated_ad = $var;

        return $this;
    }

}

