<?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.SendPaymentMessage</code>
 */
class SendPaymentMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.Message noteMessage = 2;</code>
     */
    protected $noteMessage = null;
    /**
     * Generated from protobuf field <code>optional .proto.MessageKey requestMessageKey = 3;</code>
     */
    protected $requestMessageKey = null;
    /**
     * Generated from protobuf field <code>optional .proto.PaymentBackground background = 4;</code>
     */
    protected $background = null;
    /**
     * Generated from protobuf field <code>optional string transactionData = 5;</code>
     */
    protected $transactionData = null;

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

    /**
     * Generated from protobuf field <code>optional .proto.Message noteMessage = 2;</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 = 2;</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 .proto.MessageKey requestMessageKey = 3;</code>
     * @return \PhpWA\Protocol\Proto\MessageKey|null
     */
    public function getRequestMessageKey()
    {
        return $this->requestMessageKey;
    }

    public function hasRequestMessageKey()
    {
        return isset($this->requestMessageKey);
    }

    public function clearRequestMessageKey()
    {
        unset($this->requestMessageKey);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.PaymentBackground background = 4;</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 = 4;</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;
    }

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

    public function hasTransactionData()
    {
        return isset($this->transactionData);
    }

    public function clearTransactionData()
    {
        unset($this->transactionData);
    }

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

        return $this;
    }

}

