<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message;

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




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


    protected $eventCreationMessageKey = null;
    


    protected $encPayload = null;
    


    protected $encIv = null;

    










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

    



    public function getEventCreationMessageKey()
    {
        return $this->eventCreationMessageKey;
    }

    public function hasEventCreationMessageKey()
    {
        return isset($this->eventCreationMessageKey);
    }

    public function clearEventCreationMessageKey()
    {
        unset($this->eventCreationMessageKey);
    }

    




    public function setEventCreationMessageKey($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\MessageKey::class);
        $this->eventCreationMessageKey = $var;

        return $this;
    }

    



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

    public function hasEncPayload()
    {
        return isset($this->encPayload);
    }

    public function clearEncPayload()
    {
        unset($this->encPayload);
    }

    




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

        return $this;
    }

    



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

    public function hasEncIv()
    {
        return isset($this->encIv);
    }

    public function clearEncIv()
    {
        unset($this->encIv);
    }

    




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

        return $this;
    }

}

