<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message\PollCreationMessage;

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




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


    protected $optionName = null;
    


    protected $optionHash = 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 getOptionHash()
    {
        return isset($this->optionHash) ? $this->optionHash : '';
    }

    public function hasOptionHash()
    {
        return isset($this->optionHash);
    }

    public function clearOptionHash()
    {
        unset($this->optionHash);
    }

    




    public function setOptionHash($var)
    {
        GPBUtil::checkString($var, True);
        $this->optionHash = $var;

        return $this;
    }

}

