<?php
 
 
 

namespace PhpWA\Protocol\Proto;

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




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


    protected $id = null;
    


    protected $fileLength = null;
    


    protected $width = null;
    


    protected $height = null;
    


    protected $mimetype = null;
    


    protected $placeholderArgb = null;
    


    protected $textArgb = null;
    


    protected $subtextArgb = null;
    


    protected $mediaData = null;
    


    protected $type = null;

    

















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

    



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

    public function hasId()
    {
        return isset($this->id);
    }

    public function clearId()
    {
        unset($this->id);
    }

    




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

        return $this;
    }

    



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

    public function hasFileLength()
    {
        return isset($this->fileLength);
    }

    public function clearFileLength()
    {
        unset($this->fileLength);
    }

    




    public function setFileLength($var)
    {
        GPBUtil::checkUint64($var);
        $this->fileLength = $var;

        return $this;
    }

    



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

    public function hasWidth()
    {
        return isset($this->width);
    }

    public function clearWidth()
    {
        unset($this->width);
    }

    




    public function setWidth($var)
    {
        GPBUtil::checkUint32($var);
        $this->width = $var;

        return $this;
    }

    



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

    public function hasHeight()
    {
        return isset($this->height);
    }

    public function clearHeight()
    {
        unset($this->height);
    }

    




    public function setHeight($var)
    {
        GPBUtil::checkUint32($var);
        $this->height = $var;

        return $this;
    }

    



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

    public function hasMimetype()
    {
        return isset($this->mimetype);
    }

    public function clearMimetype()
    {
        unset($this->mimetype);
    }

    




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

        return $this;
    }

    



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

    public function hasPlaceholderArgb()
    {
        return isset($this->placeholderArgb);
    }

    public function clearPlaceholderArgb()
    {
        unset($this->placeholderArgb);
    }

    




    public function setPlaceholderArgb($var)
    {
        GPBUtil::checkUint32($var);
        $this->placeholderArgb = $var;

        return $this;
    }

    



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

    public function hasTextArgb()
    {
        return isset($this->textArgb);
    }

    public function clearTextArgb()
    {
        unset($this->textArgb);
    }

    




    public function setTextArgb($var)
    {
        GPBUtil::checkUint32($var);
        $this->textArgb = $var;

        return $this;
    }

    



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

    public function hasSubtextArgb()
    {
        return isset($this->subtextArgb);
    }

    public function clearSubtextArgb()
    {
        unset($this->subtextArgb);
    }

    




    public function setSubtextArgb($var)
    {
        GPBUtil::checkUint32($var);
        $this->subtextArgb = $var;

        return $this;
    }

    



    public function getMediaData()
    {
        return $this->mediaData;
    }

    public function hasMediaData()
    {
        return isset($this->mediaData);
    }

    public function clearMediaData()
    {
        unset($this->mediaData);
    }

    




    public function setMediaData($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\PaymentBackground\MediaData::class);
        $this->mediaData = $var;

        return $this;
    }

    



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

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

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

    




    public function setType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\PaymentBackground\Type::class);
        $this->type = $var;

        return $this;
    }

}

