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

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

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

/**
 * Generated from protobuf message <code>couchbase.admin.query.v1.BuildDeferredIndexesResponse</code>
 */
class BuildDeferredIndexesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated .couchbase.admin.query.v1.BuildDeferredIndexesResponse.Index indexes = 1;</code>
     */
    private $indexes;

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

    /**
     * Generated from protobuf field <code>repeated .couchbase.admin.query.v1.BuildDeferredIndexesResponse.Index indexes = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getIndexes()
    {
        return $this->indexes;
    }

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

        return $this;
    }

}

