<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/iap/v1/service.proto

namespace Google\Cloud\Iap\V1;

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

/**
 * Response message for ListBrands.
 *
 * Generated from protobuf message <code>google.cloud.iap.v1.ListBrandsResponse</code>
 */
class ListBrandsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Brands existing in the project.
     *
     * Generated from protobuf field <code>repeated .google.cloud.iap.v1.Brand brands = 1;</code>
     */
    private $brands;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Iap\V1\Brand[]|\Google\Protobuf\Internal\RepeatedField $brands
     *           Brands existing in the project.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Iap\V1\Service::initOnce();
        parent::__construct($data);
    }

    /**
     * Brands existing in the project.
     *
     * Generated from protobuf field <code>repeated .google.cloud.iap.v1.Brand brands = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getBrands()
    {
        return $this->brands;
    }

    /**
     * Brands existing in the project.
     *
     * Generated from protobuf field <code>repeated .google.cloud.iap.v1.Brand brands = 1;</code>
     * @param \Google\Cloud\Iap\V1\Brand[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setBrands($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iap\V1\Brand::class);
        $this->brands = $arr;

        return $this;
    }

}

