<?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.File</code>
 */
class File extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string name = 1;</code>
     */
    protected $name = '';
    /**
     * Generated from protobuf field <code>bytes payload = 2;</code>
     */
    protected $payload = '';
    /**
     * Generated from protobuf field <code>bool is_local = 3;</code>
     */
    protected $is_local = false;
    /**
     * Generated from protobuf field <code>bool is_exported = 4;</code>
     */
    protected $is_exported = false;
    /**
     *reserved
     *
     * Generated from protobuf field <code>uint64 time_created = 10;</code>
     */
    protected $time_created = 0;
    /**
     * Generated from protobuf field <code>uint64 time_modified = 11;</code>
     */
    protected $time_modified = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *     @type string $payload
     *     @type bool $is_local
     *     @type bool $is_exported
     *     @type int|string $time_created
     *          reserved
     *     @type int|string $time_modified
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Vector::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool is_local = 3;</code>
     * @return bool
     */
    public function getIsLocal()
    {
        return $this->is_local;
    }

    /**
     * Generated from protobuf field <code>bool is_local = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsLocal($var)
    {
        GPBUtil::checkBool($var);
        $this->is_local = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool is_exported = 4;</code>
     * @return bool
     */
    public function getIsExported()
    {
        return $this->is_exported;
    }

    /**
     * Generated from protobuf field <code>bool is_exported = 4;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsExported($var)
    {
        GPBUtil::checkBool($var);
        $this->is_exported = $var;

        return $this;
    }

    /**
     *reserved
     *
     * Generated from protobuf field <code>uint64 time_created = 10;</code>
     * @return int|string
     */
    public function getTimeCreated()
    {
        return $this->time_created;
    }

    /**
     *reserved
     *
     * Generated from protobuf field <code>uint64 time_created = 10;</code>
     * @param int|string $var
     * @return $this
     */
    public function setTimeCreated($var)
    {
        GPBUtil::checkUint64($var);
        $this->time_created = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 time_modified = 11;</code>
     * @return int|string
     */
    public function getTimeModified()
    {
        return $this->time_modified;
    }

    /**
     * Generated from protobuf field <code>uint64 time_modified = 11;</code>
     * @param int|string $var
     * @return $this
     */
    public function setTimeModified($var)
    {
        GPBUtil::checkUint64($var);
        $this->time_modified = $var;

        return $this;
    }

}

