<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message\PollResultSnapshotMessage;

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




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


    protected $optionName = null;
    


    protected $optionVoteCount = null;

    









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

    



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

    public function hasOptionName()
    {
        return isset($this->optionName);
    }

    public function clearOptionName()
    {
        unset($this->optionName);
    }

    




    public function setOptionName($var)
    {
        GPBUtil::checkString($var, True);
        $this->optionName = $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::checkInt64($var);
        $this->optionVoteCount = $var;

        return $this;
    }

}

