<?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.LIDMigrationMappingSyncPayload</code>
 */
class LIDMigrationMappingSyncPayload extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated .proto.LIDMigrationMapping pnToLidMappings = 1;</code>
     */
    private $pnToLidMappings;
    /**
     * Generated from protobuf field <code>optional uint64 chatDbMigrationTimestamp = 2;</code>
     */
    protected $chatDbMigrationTimestamp = null;

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

    /**
     * Generated from protobuf field <code>repeated .proto.LIDMigrationMapping pnToLidMappings = 1;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\LIDMigrationMapping>
     */
    public function getPnToLidMappings()
    {
        return $this->pnToLidMappings;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.LIDMigrationMapping pnToLidMappings = 1;</code>
     * @param \PhpWA\Protocol\Proto\LIDMigrationMapping[] $var
     * @return $this
     */
    public function setPnToLidMappings($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\LIDMigrationMapping::class);
        $this->pnToLidMappings = $arr;

        return $this;
    }

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

    public function hasChatDbMigrationTimestamp()
    {
        return isset($this->chatDbMigrationTimestamp);
    }

    public function clearChatDbMigrationTimestamp()
    {
        unset($this->chatDbMigrationTimestamp);
    }

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

        return $this;
    }

}

