google.protobuf.FileDescriptorSet
 */
class FileDescriptorSet extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field repeated .google.protobuf.FileDescriptorProto file = 1;
     */
    private $file;
    private $has_file = false;
    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Protobuf\Internal\FileDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $file
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
        parent::__construct($data);
    }
    /**
     * Generated from protobuf field repeated .google.protobuf.FileDescriptorProto file = 1;
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getFile()
    {
        return $this->file;
    }
    /**
     * Generated from protobuf field repeated .google.protobuf.FileDescriptorProto file = 1;
     * @param \Google\Protobuf\Internal\FileDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setFile($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\FileDescriptorProto::class);
        $this->file = $arr;
        $this->has_file = true;
        return $this;
    }
    public function hasFile()
    {
        return $this->has_file;
    }
}