<?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.StickerMessage</code>
 */
class StickerMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string url = 1;</code>
     */
    protected $url = null;
    /**
     * Generated from protobuf field <code>optional bytes fileSha256 = 2;</code>
     */
    protected $fileSha256 = null;
    /**
     * Generated from protobuf field <code>optional bytes fileEncSha256 = 3;</code>
     */
    protected $fileEncSha256 = null;
    /**
     * Generated from protobuf field <code>optional bytes mediaKey = 4;</code>
     */
    protected $mediaKey = null;
    /**
     * Generated from protobuf field <code>optional string mimetype = 5;</code>
     */
    protected $mimetype = null;
    /**
     * Generated from protobuf field <code>optional uint32 height = 6;</code>
     */
    protected $height = null;
    /**
     * Generated from protobuf field <code>optional uint32 width = 7;</code>
     */
    protected $width = null;
    /**
     * Generated from protobuf field <code>optional string directPath = 8;</code>
     */
    protected $directPath = null;
    /**
     * Generated from protobuf field <code>optional uint64 fileLength = 9;</code>
     */
    protected $fileLength = null;
    /**
     * Generated from protobuf field <code>optional int64 mediaKeyTimestamp = 10;</code>
     */
    protected $mediaKeyTimestamp = null;
    /**
     * Generated from protobuf field <code>optional uint32 firstFrameLength = 11;</code>
     */
    protected $firstFrameLength = null;
    /**
     * Generated from protobuf field <code>optional bytes firstFrameSidecar = 12;</code>
     */
    protected $firstFrameSidecar = null;
    /**
     * Generated from protobuf field <code>optional bool isAnimated = 13;</code>
     */
    protected $isAnimated = null;
    /**
     * Generated from protobuf field <code>optional bytes pngThumbnail = 16;</code>
     */
    protected $pngThumbnail = null;
    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 17;</code>
     */
    protected $contextInfo = null;
    /**
     * Generated from protobuf field <code>optional int64 stickerSentTs = 18;</code>
     */
    protected $stickerSentTs = null;
    /**
     * Generated from protobuf field <code>optional bool isAvatar = 19;</code>
     */
    protected $isAvatar = null;
    /**
     * Generated from protobuf field <code>optional bool isAiSticker = 20;</code>
     */
    protected $isAiSticker = null;
    /**
     * Generated from protobuf field <code>optional bool isLottie = 21;</code>
     */
    protected $isLottie = null;
    /**
     * Generated from protobuf field <code>optional string accessibilityLabel = 22;</code>
     */
    protected $accessibilityLabel = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.MediaKeyDomain mediaKeyDomain = 23;</code>
     */
    protected $mediaKeyDomain = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $url
     *     @type string $fileSha256
     *     @type string $fileEncSha256
     *     @type string $mediaKey
     *     @type string $mimetype
     *     @type int $height
     *     @type int $width
     *     @type string $directPath
     *     @type int|string $fileLength
     *     @type int|string $mediaKeyTimestamp
     *     @type int $firstFrameLength
     *     @type string $firstFrameSidecar
     *     @type bool $isAnimated
     *     @type string $pngThumbnail
     *     @type \PhpWA\Protocol\Proto\ContextInfo $contextInfo
     *     @type int|string $stickerSentTs
     *     @type bool $isAvatar
     *     @type bool $isAiSticker
     *     @type bool $isLottie
     *     @type string $accessibilityLabel
     *     @type int $mediaKeyDomain
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

    /**
     * Generated from protobuf field <code>optional bytes mediaKey = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setMediaKey($var)
    {
        GPBUtil::checkString($var, False);
        $this->mediaKey = $var;

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint64 fileLength = 9;</code>
     * @return int|string
     */
    public function getFileLength()
    {
        return isset($this->fileLength) ? $this->fileLength : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional uint64 fileLength = 9;</code>
     * @param int|string $var
     * @return $this
     */
    public function setFileLength($var)
    {
        GPBUtil::checkUint64($var);
        $this->fileLength = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int64 mediaKeyTimestamp = 10;</code>
     * @return int|string
     */
    public function getMediaKeyTimestamp()
    {
        return isset($this->mediaKeyTimestamp) ? $this->mediaKeyTimestamp : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional int64 mediaKeyTimestamp = 10;</code>
     * @param int|string $var
     * @return $this
     */
    public function setMediaKeyTimestamp($var)
    {
        GPBUtil::checkInt64($var);
        $this->mediaKeyTimestamp = $var;

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

    /**
     * Generated from protobuf field <code>optional bytes firstFrameSidecar = 12;</code>
     * @param string $var
     * @return $this
     */
    public function setFirstFrameSidecar($var)
    {
        GPBUtil::checkString($var, False);
        $this->firstFrameSidecar = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool isAnimated = 13;</code>
     * @return bool
     */
    public function getIsAnimated()
    {
        return isset($this->isAnimated) ? $this->isAnimated : false;
    }

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

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

    /**
     * Generated from protobuf field <code>optional bool isAnimated = 13;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsAnimated($var)
    {
        GPBUtil::checkBool($var);
        $this->isAnimated = $var;

        return $this;
    }

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

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

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

    /**
     * Generated from protobuf field <code>optional bytes pngThumbnail = 16;</code>
     * @param string $var
     * @return $this
     */
    public function setPngThumbnail($var)
    {
        GPBUtil::checkString($var, False);
        $this->pngThumbnail = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 17;</code>
     * @return \PhpWA\Protocol\Proto\ContextInfo|null
     */
    public function getContextInfo()
    {
        return $this->contextInfo;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 17;</code>
     * @param \PhpWA\Protocol\Proto\ContextInfo $var
     * @return $this
     */
    public function setContextInfo($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\ContextInfo::class);
        $this->contextInfo = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int64 stickerSentTs = 18;</code>
     * @return int|string
     */
    public function getStickerSentTs()
    {
        return isset($this->stickerSentTs) ? $this->stickerSentTs : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional int64 stickerSentTs = 18;</code>
     * @param int|string $var
     * @return $this
     */
    public function setStickerSentTs($var)
    {
        GPBUtil::checkInt64($var);
        $this->stickerSentTs = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool isAvatar = 19;</code>
     * @return bool
     */
    public function getIsAvatar()
    {
        return isset($this->isAvatar) ? $this->isAvatar : false;
    }

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

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

    /**
     * Generated from protobuf field <code>optional bool isAvatar = 19;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsAvatar($var)
    {
        GPBUtil::checkBool($var);
        $this->isAvatar = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool isAiSticker = 20;</code>
     * @return bool
     */
    public function getIsAiSticker()
    {
        return isset($this->isAiSticker) ? $this->isAiSticker : false;
    }

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

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

    /**
     * Generated from protobuf field <code>optional bool isAiSticker = 20;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsAiSticker($var)
    {
        GPBUtil::checkBool($var);
        $this->isAiSticker = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool isLottie = 21;</code>
     * @return bool
     */
    public function getIsLottie()
    {
        return isset($this->isLottie) ? $this->isLottie : false;
    }

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

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

    /**
     * Generated from protobuf field <code>optional bool isLottie = 21;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsLottie($var)
    {
        GPBUtil::checkBool($var);
        $this->isLottie = $var;

        return $this;
    }

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

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.MediaKeyDomain mediaKeyDomain = 23;</code>
     * @return int
     */
    public function getMediaKeyDomain()
    {
        return isset($this->mediaKeyDomain) ? $this->mediaKeyDomain : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.Message.MediaKeyDomain mediaKeyDomain = 23;</code>
     * @param int $var
     * @return $this
     */
    public function setMediaKeyDomain($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\MediaKeyDomain::class);
        $this->mediaKeyDomain = $var;

        return $this;
    }

}

