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

namespace PhpWA\Protocol\Proto\InThreadSurveyMetadata;

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

/**
 * Generated from protobuf message <code>proto.InThreadSurveyMetadata.InThreadSurveyOption</code>
 */
class InThreadSurveyOption extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string stringValue = 1;</code>
     */
    protected $stringValue = null;
    /**
     * Generated from protobuf field <code>optional uint32 numericValue = 2;</code>
     */
    protected $numericValue = null;
    /**
     * Generated from protobuf field <code>optional string textTranslated = 3;</code>
     */
    protected $textTranslated = null;

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

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

    public function hasStringValue()
    {
        return isset($this->stringValue);
    }

    public function clearStringValue()
    {
        unset($this->stringValue);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 numericValue = 2;</code>
     * @return int
     */
    public function getNumericValue()
    {
        return isset($this->numericValue) ? $this->numericValue : 0;
    }

    public function hasNumericValue()
    {
        return isset($this->numericValue);
    }

    public function clearNumericValue()
    {
        unset($this->numericValue);
    }

    /**
     * Generated from protobuf field <code>optional uint32 numericValue = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setNumericValue($var)
    {
        GPBUtil::checkUint32($var);
        $this->numericValue = $var;

        return $this;
    }

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

    public function hasTextTranslated()
    {
        return isset($this->textTranslated);
    }

    public function clearTextTranslated()
    {
        unset($this->textTranslated);
    }

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

        return $this;
    }

}

