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

namespace Proto;

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

/**
 * Generated from protobuf message <code>proto.FileInfo</code>
 */
class FileInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * the verbose file name and the relative path with regard to repo root
     *
     * Generated from protobuf field <code>string filename = 1;</code>
     */
    private $filename = '';
    /**
     * Generated from protobuf field <code>string relpath = 2;</code>
     */
    private $relpath = '';
    /**
     * the file and directory specified in compile_commands
     *
     * Generated from protobuf field <code>string file = 3;</code>
     */
    private $file = '';
    /**
     * Generated from protobuf field <code>string directory = 4;</code>
     */
    private $directory = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $filename
     *           the verbose file name and the relative path with regard to repo root
     *     @type string $relpath
     *     @type string $file
     *           the file and directory specified in compile_commands
     *     @type string $directory
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Ast::initOnce();
        parent::__construct($data);
    }

    /**
     * the verbose file name and the relative path with regard to repo root
     *
     * Generated from protobuf field <code>string filename = 1;</code>
     * @return string
     */
    public function getFilename()
    {
        return $this->filename;
    }

    /**
     * the verbose file name and the relative path with regard to repo root
     *
     * Generated from protobuf field <code>string filename = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setFilename($var)
    {
        GPBUtil::checkString($var, True);
        $this->filename = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string relpath = 2;</code>
     * @return string
     */
    public function getRelpath()
    {
        return $this->relpath;
    }

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

        return $this;
    }

    /**
     * the file and directory specified in compile_commands
     *
     * Generated from protobuf field <code>string file = 3;</code>
     * @return string
     */
    public function getFile()
    {
        return $this->file;
    }

    /**
     * the file and directory specified in compile_commands
     *
     * Generated from protobuf field <code>string file = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setFile($var)
    {
        GPBUtil::checkString($var, True);
        $this->file = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string directory = 4;</code>
     * @return string
     */
    public function getDirectory()
    {
        return $this->directory;
    }

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

        return $this;
    }

}

