<?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.PaymentExtendedMetadata</code>
 */
class PaymentExtendedMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional uint32 type = 1;</code>
     */
    protected $type = null;
    /**
     * Generated from protobuf field <code>optional string platform = 2;</code>
     */
    protected $platform = null;
    /**
     * Generated from protobuf field <code>optional string messageParamsJson = 3;</code>
     */
    protected $messageParamsJson = null;

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

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

    public function hasType()
    {
        return isset($this->type);
    }

    public function clearType()
    {
        unset($this->type);
    }

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

        return $this;
    }

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

    public function hasPlatform()
    {
        return isset($this->platform);
    }

    public function clearPlatform()
    {
        unset($this->platform);
    }

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

        return $this;
    }

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

    public function hasMessageParamsJson()
    {
        return isset($this->messageParamsJson);
    }

    public function clearMessageParamsJson()
    {
        unset($this->messageParamsJson);
    }

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

        return $this;
    }

}

