<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message;

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




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


    protected $keyId = null;
    


    protected $keyData = null;

    









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

    



    public function getKeyId()
    {
        return $this->keyId;
    }

    public function hasKeyId()
    {
        return isset($this->keyId);
    }

    public function clearKeyId()
    {
        unset($this->keyId);
    }

    




    public function setKeyId($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\AppStateSyncKeyId::class);
        $this->keyId = $var;

        return $this;
    }

    



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

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

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

    




    public function setKeyData($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\AppStateSyncKeyData::class);
        $this->keyData = $var;

        return $this;
    }

}

