<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: couchbase/admin/collection/v1/collection.proto

namespace Couchbase\Protostellar\Generated\Admin\Collection\V1;

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

/**
 * Generated from protobuf message <code>couchbase.admin.collection.v1.ListCollectionsResponse</code>
 */
class ListCollectionsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated .couchbase.admin.collection.v1.ListCollectionsResponse.Scope scopes = 1;</code>
     */
    private $scopes;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Couchbase\Protostellar\Generated\Admin\Collection\V1\ListCollectionsResponse\Scope>|\Google\Protobuf\Internal\RepeatedField $scopes
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Couchbase\Admin\Collection\V1\Collection::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>repeated .couchbase.admin.collection.v1.ListCollectionsResponse.Scope scopes = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getScopes()
    {
        return $this->scopes;
    }

    /**
     * Generated from protobuf field <code>repeated .couchbase.admin.collection.v1.ListCollectionsResponse.Scope scopes = 1;</code>
     * @param array<\Couchbase\Protostellar\Generated\Admin\Collection\V1\ListCollectionsResponse\Scope>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setScopes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Couchbase\Protostellar\Generated\Admin\Collection\V1\ListCollectionsResponse\Scope::class);
        $this->scopes = $arr;

        return $this;
    }

}

