<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message;

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




class OrderMessage extends \Google\Protobuf\Internal\Message
{
    


    protected $orderId = null;
    


    protected $thumbnail = null;
    


    protected $itemCount = null;
    


    protected $status = null;
    


    protected $surface = null;
    


    protected $message = null;
    


    protected $orderTitle = null;
    


    protected $sellerJid = null;
    


    protected $token = null;
    


    protected $totalAmount1000 = null;
    


    protected $totalCurrencyCode = null;
    


    protected $contextInfo = null;
    


    protected $messageVersion = null;
    


    protected $orderRequestMessageId = null;
    


    protected $catalogType = null;

    






















    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    



    public function getOrderId()
    {
        return isset($this->orderId) ? $this->orderId : '';
    }

    public function hasOrderId()
    {
        return isset($this->orderId);
    }

    public function clearOrderId()
    {
        unset($this->orderId);
    }

    




    public function setOrderId($var)
    {
        GPBUtil::checkString($var, True);
        $this->orderId = $var;

        return $this;
    }

    



    public function getThumbnail()
    {
        return isset($this->thumbnail) ? $this->thumbnail : '';
    }

    public function hasThumbnail()
    {
        return isset($this->thumbnail);
    }

    public function clearThumbnail()
    {
        unset($this->thumbnail);
    }

    




    public function setThumbnail($var)
    {
        GPBUtil::checkString($var, False);
        $this->thumbnail = $var;

        return $this;
    }

    



    public function getItemCount()
    {
        return isset($this->itemCount) ? $this->itemCount : 0;
    }

    public function hasItemCount()
    {
        return isset($this->itemCount);
    }

    public function clearItemCount()
    {
        unset($this->itemCount);
    }

    




    public function setItemCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->itemCount = $var;

        return $this;
    }

    



    public function getStatus()
    {
        return isset($this->status) ? $this->status : 0;
    }

    public function hasStatus()
    {
        return isset($this->status);
    }

    public function clearStatus()
    {
        unset($this->status);
    }

    




    public function setStatus($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\OrderMessage\OrderStatus::class);
        $this->status = $var;

        return $this;
    }

    



    public function getSurface()
    {
        return isset($this->surface) ? $this->surface : 0;
    }

    public function hasSurface()
    {
        return isset($this->surface);
    }

    public function clearSurface()
    {
        unset($this->surface);
    }

    




    public function setSurface($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\OrderMessage\OrderSurface::class);
        $this->surface = $var;

        return $this;
    }

    



    public function getMessage()
    {
        return isset($this->message) ? $this->message : '';
    }

    public function hasMessage()
    {
        return isset($this->message);
    }

    public function clearMessage()
    {
        unset($this->message);
    }

    




    public function setMessage($var)
    {
        GPBUtil::checkString($var, True);
        $this->message = $var;

        return $this;
    }

    



    public function getOrderTitle()
    {
        return isset($this->orderTitle) ? $this->orderTitle : '';
    }

    public function hasOrderTitle()
    {
        return isset($this->orderTitle);
    }

    public function clearOrderTitle()
    {
        unset($this->orderTitle);
    }

    




    public function setOrderTitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->orderTitle = $var;

        return $this;
    }

    



    public function getSellerJid()
    {
        return isset($this->sellerJid) ? $this->sellerJid : '';
    }

    public function hasSellerJid()
    {
        return isset($this->sellerJid);
    }

    public function clearSellerJid()
    {
        unset($this->sellerJid);
    }

    




    public function setSellerJid($var)
    {
        GPBUtil::checkString($var, True);
        $this->sellerJid = $var;

        return $this;
    }

    



    public function getToken()
    {
        return isset($this->token) ? $this->token : '';
    }

    public function hasToken()
    {
        return isset($this->token);
    }

    public function clearToken()
    {
        unset($this->token);
    }

    




    public function setToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->token = $var;

        return $this;
    }

    



    public function getTotalAmount1000()
    {
        return isset($this->totalAmount1000) ? $this->totalAmount1000 : 0;
    }

    public function hasTotalAmount1000()
    {
        return isset($this->totalAmount1000);
    }

    public function clearTotalAmount1000()
    {
        unset($this->totalAmount1000);
    }

    




    public function setTotalAmount1000($var)
    {
        GPBUtil::checkInt64($var);
        $this->totalAmount1000 = $var;

        return $this;
    }

    



    public function getTotalCurrencyCode()
    {
        return isset($this->totalCurrencyCode) ? $this->totalCurrencyCode : '';
    }

    public function hasTotalCurrencyCode()
    {
        return isset($this->totalCurrencyCode);
    }

    public function clearTotalCurrencyCode()
    {
        unset($this->totalCurrencyCode);
    }

    




    public function setTotalCurrencyCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->totalCurrencyCode = $var;

        return $this;
    }

    



    public function getContextInfo()
    {
        return $this->contextInfo;
    }

    public function hasContextInfo()
    {
        return isset($this->contextInfo);
    }

    public function clearContextInfo()
    {
        unset($this->contextInfo);
    }

    




    public function setContextInfo($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\ContextInfo::class);
        $this->contextInfo = $var;

        return $this;
    }

    



    public function getMessageVersion()
    {
        return isset($this->messageVersion) ? $this->messageVersion : 0;
    }

    public function hasMessageVersion()
    {
        return isset($this->messageVersion);
    }

    public function clearMessageVersion()
    {
        unset($this->messageVersion);
    }

    




    public function setMessageVersion($var)
    {
        GPBUtil::checkInt32($var);
        $this->messageVersion = $var;

        return $this;
    }

    



    public function getOrderRequestMessageId()
    {
        return $this->orderRequestMessageId;
    }

    public function hasOrderRequestMessageId()
    {
        return isset($this->orderRequestMessageId);
    }

    public function clearOrderRequestMessageId()
    {
        unset($this->orderRequestMessageId);
    }

    




    public function setOrderRequestMessageId($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\MessageKey::class);
        $this->orderRequestMessageId = $var;

        return $this;
    }

    



    public function getCatalogType()
    {
        return isset($this->catalogType) ? $this->catalogType : '';
    }

    public function hasCatalogType()
    {
        return isset($this->catalogType);
    }

    public function clearCatalogType()
    {
        unset($this->catalogType);
    }

    




    public function setCatalogType($var)
    {
        GPBUtil::checkString($var, True);
        $this->catalogType = $var;

        return $this;
    }

}

