<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.LIDMigrationMapping</code>
 */
class LIDMigrationMapping extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional uint64 pn = 1;</code>
     */
    protected $pn = null;
    /**
     * Generated from protobuf field <code>optional uint64 assignedLid = 2;</code>
     */
    protected $assignedLid = null;
    /**
     * Generated from protobuf field <code>optional uint64 latestLid = 3;</code>
     */
    protected $latestLid = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $pn
     *     @type int|string $assignedLid
     *     @type int|string $latestLid
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional uint64 pn = 1;</code>
     * @return int|string
     */
    public function getPn()
    {
        return isset($this->pn) ? $this->pn : 0;
    }

    public function hasPn()
    {
        return isset($this->pn);
    }

    public function clearPn()
    {
        unset($this->pn);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint64 assignedLid = 2;</code>
     * @return int|string
     */
    public function getAssignedLid()
    {
        return isset($this->assignedLid) ? $this->assignedLid : 0;
    }

    public function hasAssignedLid()
    {
        return isset($this->assignedLid);
    }

    public function clearAssignedLid()
    {
        unset($this->assignedLid);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint64 latestLid = 3;</code>
     * @return int|string
     */
    public function getLatestLid()
    {
        return isset($this->latestLid) ? $this->latestLid : 0;
    }

    public function hasLatestLid()
    {
        return isset($this->latestLid);
    }

    public function clearLatestLid()
    {
        unset($this->latestLid);
    }

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

        return $this;
    }

}

