<?php
 
 
 

namespace PhpWA\Protocol\Proto;

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




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


    protected $eventResponseMessage = null;
    


    protected $pollVote = null;

    









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

    



    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 getPollVote()
    {
        return $this->pollVote;
    }

    public function hasPollVote()
    {
        return isset($this->pollVote);
    }

    public function clearPollVote()
    {
        unset($this->pollVote);
    }

    




    public function setPollVote($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\PollVoteMessage::class);
        $this->pollVote = $var;

        return $this;
    }

}

