<?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.StickerPackMessage</code>
 */
class StickerPackMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string stickerPackId = 1;</code>
     */
    protected $stickerPackId = null;
    /**
     * Generated from protobuf field <code>optional string name = 2;</code>
     */
    protected $name = null;
    /**
     * Generated from protobuf field <code>optional string publisher = 3;</code>
     */
    protected $publisher = null;
    /**
     * Generated from protobuf field <code>repeated .proto.Message.StickerPackMessage.Sticker stickers = 4;</code>
     */
    private $stickers;
    /**
     * Generated from protobuf field <code>optional uint64 fileLength = 5;</code>
     */
    protected $fileLength = null;
    /**
     * Generated from protobuf field <code>optional bytes fileSha256 = 6;</code>
     */
    protected $fileSha256 = null;
    /**
     * Generated from protobuf field <code>optional bytes fileEncSha256 = 7;</code>
     */
    protected $fileEncSha256 = null;
    /**
     * Generated from protobuf field <code>optional bytes mediaKey = 8;</code>
     */
    protected $mediaKey = null;
    /**
     * Generated from protobuf field <code>optional string directPath = 9;</code>
     */
    protected $directPath = null;
    /**
     * Generated from protobuf field <code>optional string caption = 10;</code>
     */
    protected $caption = null;
    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 11;</code>
     */
    protected $contextInfo = null;
    /**
     * Generated from protobuf field <code>optional string packDescription = 12;</code>
     */
    protected $packDescription = null;
    /**
     * Generated from protobuf field <code>optional int64 mediaKeyTimestamp = 13;</code>
     */
    protected $mediaKeyTimestamp = null;
    /**
     * Generated from protobuf field <code>optional string trayIconFileName = 14;</code>
     */
    protected $trayIconFileName = null;
    /**
     * Generated from protobuf field <code>optional string thumbnailDirectPath = 15;</code>
     */
    protected $thumbnailDirectPath = null;
    /**
     * Generated from protobuf field <code>optional bytes thumbnailSha256 = 16;</code>
     */
    protected $thumbnailSha256 = null;
    /**
     * Generated from protobuf field <code>optional bytes thumbnailEncSha256 = 17;</code>
     */
    protected $thumbnailEncSha256 = null;
    /**
     * Generated from protobuf field <code>optional uint32 thumbnailHeight = 18;</code>
     */
    protected $thumbnailHeight = null;
    /**
     * Generated from protobuf field <code>optional uint32 thumbnailWidth = 19;</code>
     */
    protected $thumbnailWidth = null;
    /**
     * Generated from protobuf field <code>optional string imageDataHash = 20;</code>
     */
    protected $imageDataHash = null;
    /**
     * Generated from protobuf field <code>optional uint64 stickerPackSize = 21;</code>
     */
    protected $stickerPackSize = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.StickerPackMessage.StickerPackOrigin stickerPackOrigin = 22;</code>
     */
    protected $stickerPackOrigin = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $stickerPackId
     *     @type string $name
     *     @type string $publisher
     *     @type \PhpWA\Protocol\Proto\Message\StickerPackMessage\Sticker[] $stickers
     *     @type int|string $fileLength
     *     @type string $fileSha256
     *     @type string $fileEncSha256
     *     @type string $mediaKey
     *     @type string $directPath
     *     @type string $caption
     *     @type \PhpWA\Protocol\Proto\ContextInfo $contextInfo
     *     @type string $packDescription
     *     @type int|string $mediaKeyTimestamp
     *     @type string $trayIconFileName
     *     @type string $thumbnailDirectPath
     *     @type string $thumbnailSha256
     *     @type string $thumbnailEncSha256
     *     @type int $thumbnailHeight
     *     @type int $thumbnailWidth
     *     @type string $imageDataHash
     *     @type int|string $stickerPackSize
     *     @type int $stickerPackOrigin
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.Message.StickerPackMessage.Sticker stickers = 4;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\Message\StickerPackMessage\Sticker>
     */
    public function getStickers()
    {
        return $this->stickers;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.Message.StickerPackMessage.Sticker stickers = 4;</code>
     * @param \PhpWA\Protocol\Proto\Message\StickerPackMessage\Sticker[] $var
     * @return $this
     */
    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;
    }

    /**
     * Generated from protobuf field <code>optional uint64 fileLength = 5;</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 = 5;</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 bytes fileSha256 = 6;</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 = 6;</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 = 7;</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 = 7;</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 = 8;</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 = 8;</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 directPath = 9;</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 = 9;</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 string caption = 10;</code>
     * @return string
     */
    public function getCaption()
    {
        return isset($this->caption) ? $this->caption : '';
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 11;</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 = 11;</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 string packDescription = 12;</code>
     * @return string
     */
    public function getPackDescription()
    {
        return isset($this->packDescription) ? $this->packDescription : '';
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int64 mediaKeyTimestamp = 13;</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 = 13;</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 string trayIconFileName = 14;</code>
     * @return string
     */
    public function getTrayIconFileName()
    {
        return isset($this->trayIconFileName) ? $this->trayIconFileName : '';
    }

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.StickerPackMessage.StickerPackOrigin stickerPackOrigin = 22;</code>
     * @return int
     */
    public function getStickerPackOrigin()
    {
        return isset($this->stickerPackOrigin) ? $this->stickerPackOrigin : 0;
    }

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

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

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

        return $this;
    }

}

