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

namespace Google\Ads\GoogleAds\V20\Services;

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

/**
 * Response message for
 * [BrandSuggestionService.SuggestBrands][google.ads.googleads.v20.services.BrandSuggestionService.SuggestBrands].
 *
 * Generated from protobuf message <code>google.ads.googleads.v20.services.SuggestBrandsResponse</code>
 */
class SuggestBrandsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated brand suggestions of verified brands for the given prefix.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v20.services.BrandSuggestion brands = 1;</code>
     */
    private $brands;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Ads\GoogleAds\V20\Services\BrandSuggestion>|\Google\Protobuf\Internal\RepeatedField $brands
     *           Generated brand suggestions of verified brands for the given prefix.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V20\Services\BrandSuggestionService::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated brand suggestions of verified brands for the given prefix.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v20.services.BrandSuggestion brands = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getBrands()
    {
        return $this->brands;
    }

    /**
     * Generated brand suggestions of verified brands for the given prefix.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v20.services.BrandSuggestion brands = 1;</code>
     * @param array<\Google\Ads\GoogleAds\V20\Services\BrandSuggestion>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setBrands($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V20\Services\BrandSuggestion::class);
        $this->brands = $arr;

        return $this;
    }

}

