<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message;

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




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


    protected $stickerPackId = null;
    


    protected $name = null;
    


    protected $publisher = null;
    


    private $stickers;
    


    protected $fileLength = null;
    


    protected $fileSha256 = null;
    


    protected $fileEncSha256 = null;
    


    protected $mediaKey = null;
    


    protected $directPath = null;
    


    protected $caption = null;
    


    protected $contextInfo = null;
    


    protected $packDescription = null;
    


    protected $mediaKeyTimestamp = null;
    


    protected $trayIconFileName = null;
    


    protected $thumbnailDirectPath = null;
    


    protected $thumbnailSha256 = null;
    


    protected $thumbnailEncSha256 = null;
    


    protected $thumbnailHeight = null;
    


    protected $thumbnailWidth = null;
    


    protected $imageDataHash = null;
    


    protected $stickerPackSize = null;
    


    protected $stickerPackOrigin = null;

    





























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

    



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

    public function hasStickerPackId()
    {
        return isset($this->stickerPackId);
    }

    public function clearStickerPackId()
    {
        unset($this->stickerPackId);
    }

    




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

        return $this;
    }

    



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

    public function hasName()
    {
        return isset($this->name);
    }

    public function clearName()
    {
        unset($this->name);
    }

    




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

        return $this;
    }

    



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

    public function hasPublisher()
    {
        return isset($this->publisher);
    }

    public function clearPublisher()
    {
        unset($this->publisher);
    }

    




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

        return $this;
    }

    



    public function getStickers()
    {
        return $this->stickers;
    }

    




    public function setStickers($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\Message\StickerPackMessage\Sticker::class);
        $this->stickers = $arr;

        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 getFileSha256()
    {
        return isset($this->fileSha256) ? $this->fileSha256 : '';
    }

    public function hasFileSha256()
    {
        return isset($this->fileSha256);
    }

    public function clearFileSha256()
    {
        unset($this->fileSha256);
    }

    




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

        return $this;
    }

    



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

    public function hasFileEncSha256()
    {
        return isset($this->fileEncSha256);
    }

    public function clearFileEncSha256()
    {
        unset($this->fileEncSha256);
    }

    




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

        return $this;
    }

    



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

    public function hasMediaKey()
    {
        return isset($this->mediaKey);
    }

    public function clearMediaKey()
    {
        unset($this->mediaKey);
    }

    




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

        return $this;
    }

    



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

    public function hasDirectPath()
    {
        return isset($this->directPath);
    }

    public function clearDirectPath()
    {
        unset($this->directPath);
    }

    




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

        return $this;
    }

    



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

    public function hasCaption()
    {
        return isset($this->caption);
    }

    public function clearCaption()
    {
        unset($this->caption);
    }

    




    public function setCaption($var)
    {
        GPBUtil::checkString($var, True);
        $this->caption = $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 getPackDescription()
    {
        return isset($this->packDescription) ? $this->packDescription : '';
    }

    public function hasPackDescription()
    {
        return isset($this->packDescription);
    }

    public function clearPackDescription()
    {
        unset($this->packDescription);
    }

    




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

        return $this;
    }

    



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

    public function hasMediaKeyTimestamp()
    {
        return isset($this->mediaKeyTimestamp);
    }

    public function clearMediaKeyTimestamp()
    {
        unset($this->mediaKeyTimestamp);
    }

    




    public function setMediaKeyTimestamp($var)
    {
        GPBUtil::checkInt64($var);
        $this->mediaKeyTimestamp = $var;

        return $this;
    }

    



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

    public function hasTrayIconFileName()
    {
        return isset($this->trayIconFileName);
    }

    public function clearTrayIconFileName()
    {
        unset($this->trayIconFileName);
    }

    




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

        return $this;
    }

    



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

    public function hasThumbnailDirectPath()
    {
        return isset($this->thumbnailDirectPath);
    }

    public function clearThumbnailDirectPath()
    {
        unset($this->thumbnailDirectPath);
    }

    




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

        return $this;
    }

    



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

    public function hasThumbnailSha256()
    {
        return isset($this->thumbnailSha256);
    }

    public function clearThumbnailSha256()
    {
        unset($this->thumbnailSha256);
    }

    




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

        return $this;
    }

    



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

    public function hasThumbnailEncSha256()
    {
        return isset($this->thumbnailEncSha256);
    }

    public function clearThumbnailEncSha256()
    {
        unset($this->thumbnailEncSha256);
    }

    




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

        return $this;
    }

    



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

    public function hasThumbnailHeight()
    {
        return isset($this->thumbnailHeight);
    }

    public function clearThumbnailHeight()
    {
        unset($this->thumbnailHeight);
    }

    




    public function setThumbnailHeight($var)
    {
        GPBUtil::checkUint32($var);
        $this->thumbnailHeight = $var;

        return $this;
    }

    



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

    public function hasThumbnailWidth()
    {
        return isset($this->thumbnailWidth);
    }

    public function clearThumbnailWidth()
    {
        unset($this->thumbnailWidth);
    }

    




    public function setThumbnailWidth($var)
    {
        GPBUtil::checkUint32($var);
        $this->thumbnailWidth = $var;

        return $this;
    }

    



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

    public function hasImageDataHash()
    {
        return isset($this->imageDataHash);
    }

    public function clearImageDataHash()
    {
        unset($this->imageDataHash);
    }

    




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

        return $this;
    }

    



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

    public function hasStickerPackSize()
    {
        return isset($this->stickerPackSize);
    }

    public function clearStickerPackSize()
    {
        unset($this->stickerPackSize);
    }

    




    public function setStickerPackSize($var)
    {
        GPBUtil::checkUint64($var);
        $this->stickerPackSize = $var;

        return $this;
    }

    



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

    public function hasStickerPackOrigin()
    {
        return isset($this->stickerPackOrigin);
    }

    public function clearStickerPackOrigin()
    {
        unset($this->stickerPackOrigin);
    }

    




    public function setStickerPackOrigin($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\StickerPackMessage\StickerPackOrigin::class);
        $this->stickerPackOrigin = $var;

        return $this;
    }

}

