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

namespace Google\Cloud\DiscoveryEngine\V1\Document;

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

/**
 * ACL Information of the Document.
 *
 * Generated from protobuf message <code>google.cloud.discoveryengine.v1.Document.AclInfo</code>
 */
class AclInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Readers of the document.
     *
     * Generated from protobuf field <code>repeated .google.cloud.discoveryengine.v1.Document.AclInfo.AccessRestriction readers = 1;</code>
     */
    private $readers;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\DiscoveryEngine\V1\Document\AclInfo\AccessRestriction[] $readers
     *           Readers of the document.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Discoveryengine\V1\Document::initOnce();
        parent::__construct($data);
    }

    /**
     * Readers of the document.
     *
     * Generated from protobuf field <code>repeated .google.cloud.discoveryengine.v1.Document.AclInfo.AccessRestriction readers = 1;</code>
     * @return RepeatedField<\Google\Cloud\DiscoveryEngine\V1\Document\AclInfo\AccessRestriction>
     */
    public function getReaders()
    {
        return $this->readers;
    }

    /**
     * Readers of the document.
     *
     * Generated from protobuf field <code>repeated .google.cloud.discoveryengine.v1.Document.AclInfo.AccessRestriction readers = 1;</code>
     * @param \Google\Cloud\DiscoveryEngine\V1\Document\AclInfo\AccessRestriction[] $var
     * @return $this
     */
    public function setReaders($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Document\AclInfo\AccessRestriction::class);
        $this->readers = $arr;

        return $this;
    }

}

