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

namespace Google\Ads\GoogleAds\V21\Services;

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

/**
 * Brand Guidelines campaign enablement response.
 *
 * Generated from protobuf message <code>google.ads.googleads.v21.services.EnablePMaxBrandGuidelinesResponse</code>
 */
class EnablePMaxBrandGuidelinesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Campaign enablement results per campaign.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v21.services.EnablementResult results = 1;</code>
     */
    private $results;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Ads\GoogleAds\V21\Services\EnablementResult>|\Google\Protobuf\Internal\RepeatedField $results
     *           Campaign enablement results per campaign.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V21\Services\CampaignService::initOnce();
        parent::__construct($data);
    }

    /**
     * Campaign enablement results per campaign.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v21.services.EnablementResult results = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getResults()
    {
        return $this->results;
    }

    /**
     * Campaign enablement results per campaign.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v21.services.EnablementResult results = 1;</code>
     * @param array<\Google\Ads\GoogleAds\V21\Services\EnablementResult>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setResults($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V21\Services\EnablementResult::class);
        $this->results = $arr;

        return $this;
    }

}

