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

namespace PhpWA\Protocol\Proto\Message\HighlyStructuredMessage;

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

/**
 * Generated from protobuf message <code>proto.Message.HighlyStructuredMessage.HSMLocalizableParameter</code>
 */
class HSMLocalizableParameter extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string default = 1;</code>
     */
    protected $default = null;
    protected $paramOneof;

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

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

    public function hasDefault()
    {
        return isset($this->default);
    }

    public function clearDefault()
    {
        unset($this->default);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.proto.Message.HighlyStructuredMessage.HSMLocalizableParameter.HSMCurrency currency = 2;</code>
     * @return \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage\HSMLocalizableParameter\HSMCurrency|null
     */
    public function getCurrency()
    {
        return $this->readOneof(2);
    }

    public function hasCurrency()
    {
        return $this->hasOneof(2);
    }

    /**
     * Generated from protobuf field <code>.proto.Message.HighlyStructuredMessage.HSMLocalizableParameter.HSMCurrency currency = 2;</code>
     * @param \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage\HSMLocalizableParameter\HSMCurrency $var
     * @return $this
     */
    public function setCurrency($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage\HSMLocalizableParameter\HSMCurrency::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.proto.Message.HighlyStructuredMessage.HSMLocalizableParameter.HSMDateTime dateTime = 3;</code>
     * @return \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage\HSMLocalizableParameter\HSMDateTime|null
     */
    public function getDateTime()
    {
        return $this->readOneof(3);
    }

    public function hasDateTime()
    {
        return $this->hasOneof(3);
    }

    /**
     * Generated from protobuf field <code>.proto.Message.HighlyStructuredMessage.HSMLocalizableParameter.HSMDateTime dateTime = 3;</code>
     * @param \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage\HSMLocalizableParameter\HSMDateTime $var
     * @return $this
     */
    public function setDateTime($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message\HighlyStructuredMessage\HSMLocalizableParameter\HSMDateTime::class);
        $this->writeOneof(3, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getParamOneof()
    {
        return $this->whichOneof("paramOneof");
    }

}

