<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: grafeas/v1/common.proto

namespace Grafeas\V1;

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

/**
 * Indicates the location at which a package was found.
 *
 * Generated from protobuf message <code>grafeas.v1.FileLocation</code>
 */
class FileLocation extends \Google\Protobuf\Internal\Message
{
    /**
     * For jars that are contained inside .war files, this filepath
     * can indicate the path to war file combined with the path to jar file.
     *
     * Generated from protobuf field <code>string file_path = 1;</code>
     */
    private $file_path = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $file_path
     *           For jars that are contained inside .war files, this filepath
     *           can indicate the path to war file combined with the path to jar file.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Grafeas\V1\Common::initOnce();
        parent::__construct($data);
    }

    /**
     * For jars that are contained inside .war files, this filepath
     * can indicate the path to war file combined with the path to jar file.
     *
     * Generated from protobuf field <code>string file_path = 1;</code>
     * @return string
     */
    public function getFilePath()
    {
        return $this->file_path;
    }

    /**
     * For jars that are contained inside .war files, this filepath
     * can indicate the path to war file combined with the path to jar file.
     *
     * Generated from protobuf field <code>string file_path = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setFilePath($var)
    {
        GPBUtil::checkString($var, True);
        $this->file_path = $var;

        return $this;
    }

}

