<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: vector.proto

namespace Messages;

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

/**
 * Generated from protobuf message <code>Messages.DirentNode</code>
 */
class DirentNode extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string dirname = 1;</code>
     */
    protected $dirname = '';
    /**
     * Generated from protobuf field <code>repeated string files = 2;</code>
     */
    private $files;
    /**
     * Generated from protobuf field <code>repeated .Messages.DirentNode subdirs = 3;</code>
     */
    private $subdirs;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $dirname
     *     @type string[]|\Google\Protobuf\Internal\RepeatedField $files
     *     @type \Messages\DirentNode[]|\Google\Protobuf\Internal\RepeatedField $subdirs
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Vector::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string dirname = 1;</code>
     * @return string
     */
    public function getDirname()
    {
        return $this->dirname;
    }

    /**
     * Generated from protobuf field <code>string dirname = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setDirname($var)
    {
        GPBUtil::checkString($var, True);
        $this->dirname = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated string files = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getFiles()
    {
        return $this->files;
    }

    /**
     * Generated from protobuf field <code>repeated string files = 2;</code>
     * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setFiles($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->files = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .Messages.DirentNode subdirs = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSubdirs()
    {
        return $this->subdirs;
    }

    /**
     * Generated from protobuf field <code>repeated .Messages.DirentNode subdirs = 3;</code>
     * @param \Messages\DirentNode[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSubdirs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Messages\DirentNode::class);
        $this->subdirs = $arr;

        return $this;
    }

}

