<?php
 
 
 

namespace PhpWA\Protocol\Proto;

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




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


    protected $eventResponseMessageKey = null;
    


    protected $timestampMs = null;
    


    protected $eventResponseMessage = null;
    


    protected $unread = null;

    











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

    



    public function getEventResponseMessageKey()
    {
        return $this->eventResponseMessageKey;
    }

    public function hasEventResponseMessageKey()
    {
        return isset($this->eventResponseMessageKey);
    }

    public function clearEventResponseMessageKey()
    {
        unset($this->eventResponseMessageKey);
    }

    




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

        return $this;
    }

    



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

    public function hasTimestampMs()
    {
        return isset($this->timestampMs);
    }

    public function clearTimestampMs()
    {
        unset($this->timestampMs);
    }

    




    public function setTimestampMs($var)
    {
        GPBUtil::checkInt64($var);
        $this->timestampMs = $var;

        return $this;
    }

    



    public function getEventResponseMessage()
    {
        return $this->eventResponseMessage;
    }

    public function hasEventResponseMessage()
    {
        return isset($this->eventResponseMessage);
    }

    public function clearEventResponseMessage()
    {
        unset($this->eventResponseMessage);
    }

    




    public function setEventResponseMessage($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\EventResponseMessage::class);
        $this->eventResponseMessage = $var;

        return $this;
    }

    



    public function getUnread()
    {
        return isset($this->unread) ? $this->unread : false;
    }

    public function hasUnread()
    {
        return isset($this->unread);
    }

    public function clearUnread()
    {
        unset($this->unread);
    }

    




    public function setUnread($var)
    {
        GPBUtil::checkBool($var);
        $this->unread = $var;

        return $this;
    }

}

