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

namespace PhpWA\Protocol\Proto\Message\HighlyStructuredMessage\HSMLocalizableParameter;

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

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

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

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

    public function hasCurrencyCode()
    {
        return isset($this->currencyCode);
    }

    public function clearCurrencyCode()
    {
        unset($this->currencyCode);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int64 amount1000 = 2;</code>
     * @return int|string
     */
    public function getAmount1000()
    {
        return isset($this->amount1000) ? $this->amount1000 : 0;
    }

    public function hasAmount1000()
    {
        return isset($this->amount1000);
    }

    public function clearAmount1000()
    {
        unset($this->amount1000);
    }

    /**
     * Generated from protobuf field <code>optional int64 amount1000 = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setAmount1000($var)
    {
        GPBUtil::checkInt64($var);
        $this->amount1000 = $var;

        return $this;
    }

}

