<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message;

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




class AppStateSyncKeyData extends \Google\Protobuf\Internal\Message
{
    


    protected $keyData = null;
    


    protected $fingerprint = null;
    


    protected $timestamp = null;

    










    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    



    public function getKeyData()
    {
        return isset($this->keyData) ? $this->keyData : '';
    }

    public function hasKeyData()
    {
        return isset($this->keyData);
    }

    public function clearKeyData()
    {
        unset($this->keyData);
    }

    




    public function setKeyData($var)
    {
        GPBUtil::checkString($var, False);
        $this->keyData = $var;

        return $this;
    }

    



    public function getFingerprint()
    {
        return $this->fingerprint;
    }

    public function hasFingerprint()
    {
        return isset($this->fingerprint);
    }

    public function clearFingerprint()
    {
        unset($this->fingerprint);
    }

    




    public function setFingerprint($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\AppStateSyncKeyFingerprint::class);
        $this->fingerprint = $var;

        return $this;
    }

    



    public function getTimestamp()
    {
        return isset($this->timestamp) ? $this->timestamp : 0;
    }

    public function hasTimestamp()
    {
        return isset($this->timestamp);
    }

    public function clearTimestamp()
    {
        unset($this->timestamp);
    }

    




    public function setTimestamp($var)
    {
        GPBUtil::checkInt64($var);
        $this->timestamp = $var;

        return $this;
    }

}

