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

namespace PhpWA\Protocol\Proto\Message;

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

/**
 * Generated from protobuf message <code>proto.Message.RequestPaymentMessage</code>
 */
class RequestPaymentMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.Message noteMessage = 4;</code>
     */
    protected $noteMessage = null;
    /**
     * Generated from protobuf field <code>optional string currencyCodeIso4217 = 1;</code>
     */
    protected $currencyCodeIso4217 = null;
    /**
     * Generated from protobuf field <code>optional uint64 amount1000 = 2;</code>
     */
    protected $amount1000 = null;
    /**
     * Generated from protobuf field <code>optional string requestFrom = 3;</code>
     */
    protected $requestFrom = null;
    /**
     * Generated from protobuf field <code>optional int64 expiryTimestamp = 5;</code>
     */
    protected $expiryTimestamp = null;
    /**
     * Generated from protobuf field <code>optional .proto.Money amount = 6;</code>
     */
    protected $amount = null;
    /**
     * Generated from protobuf field <code>optional .proto.PaymentBackground background = 7;</code>
     */
    protected $background = null;

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

    /**
     * Generated from protobuf field <code>optional .proto.Message noteMessage = 4;</code>
     * @return \PhpWA\Protocol\Proto\Message|null
     */
    public function getNoteMessage()
    {
        return $this->noteMessage;
    }

    public function hasNoteMessage()
    {
        return isset($this->noteMessage);
    }

    public function clearNoteMessage()
    {
        unset($this->noteMessage);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message noteMessage = 4;</code>
     * @param \PhpWA\Protocol\Proto\Message $var
     * @return $this
     */
    public function setNoteMessage($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Message::class);
        $this->noteMessage = $var;

        return $this;
    }

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

    public function hasCurrencyCodeIso4217()
    {
        return isset($this->currencyCodeIso4217);
    }

    public function clearCurrencyCodeIso4217()
    {
        unset($this->currencyCodeIso4217);
    }

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

        return $this;
    }

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

        return $this;
    }

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

    public function hasRequestFrom()
    {
        return isset($this->requestFrom);
    }

    public function clearRequestFrom()
    {
        unset($this->requestFrom);
    }

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

        return $this;
    }

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

    public function hasExpiryTimestamp()
    {
        return isset($this->expiryTimestamp);
    }

    public function clearExpiryTimestamp()
    {
        unset($this->expiryTimestamp);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Money amount = 6;</code>
     * @return \PhpWA\Protocol\Proto\Money|null
     */
    public function getAmount()
    {
        return $this->amount;
    }

    public function hasAmount()
    {
        return isset($this->amount);
    }

    public function clearAmount()
    {
        unset($this->amount);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Money amount = 6;</code>
     * @param \PhpWA\Protocol\Proto\Money $var
     * @return $this
     */
    public function setAmount($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Money::class);
        $this->amount = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.PaymentBackground background = 7;</code>
     * @return \PhpWA\Protocol\Proto\PaymentBackground|null
     */
    public function getBackground()
    {
        return $this->background;
    }

    public function hasBackground()
    {
        return isset($this->background);
    }

    public function clearBackground()
    {
        unset($this->background);
    }

    /**
     * Generated from protobuf field <code>optional .proto.PaymentBackground background = 7;</code>
     * @param \PhpWA\Protocol\Proto\PaymentBackground $var
     * @return $this
     */
    public function setBackground($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\PaymentBackground::class);
        $this->background = $var;

        return $this;
    }

}

