<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto\Message\PollCreationMessage;

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

/**
 * Generated from protobuf message <code>proto.Message.PollCreationMessage.Option</code>
 */
class Option extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string optionName = 1;</code>
     */
    protected $optionName = null;
    /**
     * Generated from protobuf field <code>optional string optionHash = 2;</code>
     */
    protected $optionHash = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $optionName
     *     @type string $optionHash
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional string optionName = 1;</code>
     * @return string
     */
    public function getOptionName()
    {
        return isset($this->optionName) ? $this->optionName : '';
    }

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

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

    /**
     * Generated from protobuf field <code>optional string optionName = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setOptionName($var)
    {
        GPBUtil::checkString($var, True);
        $this->optionName = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string optionHash = 2;</code>
     * @return string
     */
    public function getOptionHash()
    {
        return isset($this->optionHash) ? $this->optionHash : '';
    }

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

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

    /**
     * Generated from protobuf field <code>optional string optionHash = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setOptionHash($var)
    {
        GPBUtil::checkString($var, True);
        $this->optionHash = $var;

        return $this;
    }

}

