<?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\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * 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 array<\Google\Cloud\DiscoveryEngine\V1\Document\AclInfo\AccessRestriction>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField
     */
    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 array<\Google\Cloud\DiscoveryEngine\V1\Document\AclInfo\AccessRestriction>|\Google\Protobuf\Internal\RepeatedField $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;
    }

}


