<?php
 
 
 

namespace PhpWA\Protocol\Proto\MsgOpaqueData;

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




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


    protected $option = null;
    


    protected $optionVoteCount = null;

    









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

    



    public function getOption()
    {
        return $this->option;
    }

    public function hasOption()
    {
        return isset($this->option);
    }

    public function clearOption()
    {
        unset($this->option);
    }

    




    public function setOption($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\MsgOpaqueData\PollOption::class);
        $this->option = $var;

        return $this;
    }

    



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

    public function hasOptionVoteCount()
    {
        return isset($this->optionVoteCount);
    }

    public function clearOptionVoteCount()
    {
        unset($this->optionVoteCount);
    }

    




    public function setOptionVoteCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->optionVoteCount = $var;

        return $this;
    }

}

