<?php
 
 
 

namespace PhpWA\Protocol\Proto\Message;

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




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


    protected $url = null;
    


    protected $fileSha256 = null;
    


    protected $fileEncSha256 = null;
    


    protected $mediaKey = null;
    


    protected $mimetype = null;
    


    protected $height = null;
    


    protected $width = null;
    


    protected $directPath = null;
    


    protected $fileLength = null;
    


    protected $mediaKeyTimestamp = null;
    


    protected $firstFrameLength = null;
    


    protected $firstFrameSidecar = null;
    


    protected $isAnimated = null;
    


    protected $pngThumbnail = null;
    


    protected $contextInfo = null;
    


    protected $stickerSentTs = null;
    


    protected $isAvatar = null;
    


    protected $isAiSticker = null;
    


    protected $isLottie = null;
    


    protected $accessibilityLabel = null;
    


    protected $mediaKeyDomain = null;

    




























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

    



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

    public function hasUrl()
    {
        return isset($this->url);
    }

    public function clearUrl()
    {
        unset($this->url);
    }

    




    public function setUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->url = $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 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 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 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 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 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 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 getFirstFrameLength()
    {
        return isset($this->firstFrameLength) ? $this->firstFrameLength : 0;
    }

    public function hasFirstFrameLength()
    {
        return isset($this->firstFrameLength);
    }

    public function clearFirstFrameLength()
    {
        unset($this->firstFrameLength);
    }

    




    public function setFirstFrameLength($var)
    {
        GPBUtil::checkUint32($var);
        $this->firstFrameLength = $var;

        return $this;
    }

    



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

    public function hasFirstFrameSidecar()
    {
        return isset($this->firstFrameSidecar);
    }

    public function clearFirstFrameSidecar()
    {
        unset($this->firstFrameSidecar);
    }

    




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

        return $this;
    }

    



    public function getIsAnimated()
    {
        return isset($this->isAnimated) ? $this->isAnimated : false;
    }

    public function hasIsAnimated()
    {
        return isset($this->isAnimated);
    }

    public function clearIsAnimated()
    {
        unset($this->isAnimated);
    }

    




    public function setIsAnimated($var)
    {
        GPBUtil::checkBool($var);
        $this->isAnimated = $var;

        return $this;
    }

    



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

    public function hasPngThumbnail()
    {
        return isset($this->pngThumbnail);
    }

    public function clearPngThumbnail()
    {
        unset($this->pngThumbnail);
    }

    




    public function setPngThumbnail($var)
    {
        GPBUtil::checkString($var, False);
        $this->pngThumbnail = $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 getStickerSentTs()
    {
        return isset($this->stickerSentTs) ? $this->stickerSentTs : 0;
    }

    public function hasStickerSentTs()
    {
        return isset($this->stickerSentTs);
    }

    public function clearStickerSentTs()
    {
        unset($this->stickerSentTs);
    }

    




    public function setStickerSentTs($var)
    {
        GPBUtil::checkInt64($var);
        $this->stickerSentTs = $var;

        return $this;
    }

    



    public function getIsAvatar()
    {
        return isset($this->isAvatar) ? $this->isAvatar : false;
    }

    public function hasIsAvatar()
    {
        return isset($this->isAvatar);
    }

    public function clearIsAvatar()
    {
        unset($this->isAvatar);
    }

    




    public function setIsAvatar($var)
    {
        GPBUtil::checkBool($var);
        $this->isAvatar = $var;

        return $this;
    }

    



    public function getIsAiSticker()
    {
        return isset($this->isAiSticker) ? $this->isAiSticker : false;
    }

    public function hasIsAiSticker()
    {
        return isset($this->isAiSticker);
    }

    public function clearIsAiSticker()
    {
        unset($this->isAiSticker);
    }

    




    public function setIsAiSticker($var)
    {
        GPBUtil::checkBool($var);
        $this->isAiSticker = $var;

        return $this;
    }

    



    public function getIsLottie()
    {
        return isset($this->isLottie) ? $this->isLottie : false;
    }

    public function hasIsLottie()
    {
        return isset($this->isLottie);
    }

    public function clearIsLottie()
    {
        unset($this->isLottie);
    }

    




    public function setIsLottie($var)
    {
        GPBUtil::checkBool($var);
        $this->isLottie = $var;

        return $this;
    }

    



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

    public function hasAccessibilityLabel()
    {
        return isset($this->accessibilityLabel);
    }

    public function clearAccessibilityLabel()
    {
        unset($this->accessibilityLabel);
    }

    




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

        return $this;
    }

    



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

    public function hasMediaKeyDomain()
    {
        return isset($this->mediaKeyDomain);
    }

    public function clearMediaKeyDomain()
    {
        unset($this->mediaKeyDomain);
    }

    




    public function setMediaKeyDomain($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\MediaKeyDomain::class);
        $this->mediaKeyDomain = $var;

        return $this;
    }

}

