<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.StickerMetadata</code>
 */
class StickerMetadata 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 float weight = 10;</code>
     */
    protected $weight = null;
    /**
     * Generated from protobuf field <code>optional int64 lastStickerSentTs = 11;</code>
     */
    protected $lastStickerSentTs = null;
    /**
     * Generated from protobuf field <code>optional bool isLottie = 12;</code>
     */
    protected $isLottie = null;
    /**
     * Generated from protobuf field <code>optional string imageHash = 13;</code>
     */
    protected $imageHash = null;
    /**
     * Generated from protobuf field <code>optional bool isAvatarSticker = 14;</code>
     */
    protected $isAvatarSticker = 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 float $weight
     *     @type int|string $lastStickerSentTs
     *     @type bool $isLottie
     *     @type string $imageHash
     *     @type bool $isAvatarSticker
     * }
     */
    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 float weight = 10;</code>
     * @return float
     */
    public function getWeight()
    {
        return isset($this->weight) ? $this->weight : 0.0;
    }

    public function hasWeight()
    {
        return isset($this->weight);
    }

    public function clearWeight()
    {
        unset($this->weight);
    }

    /**
     * Generated from protobuf field <code>optional float weight = 10;</code>
     * @param float $var
     * @return $this
     */
    public function setWeight($var)
    {
        GPBUtil::checkFloat($var);
        $this->weight = $var;

        return $this;
    }

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

    public function hasLastStickerSentTs()
    {
        return isset($this->lastStickerSentTs);
    }

    public function clearLastStickerSentTs()
    {
        unset($this->lastStickerSentTs);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool isLottie = 12;</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 = 12;</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 imageHash = 13;</code>
     * @return string
     */
    public function getImageHash()
    {
        return isset($this->imageHash) ? $this->imageHash : '';
    }

    public function hasImageHash()
    {
        return isset($this->imageHash);
    }

    public function clearImageHash()
    {
        unset($this->imageHash);
    }

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

        return $this;
    }

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

    public function hasIsAvatarSticker()
    {
        return isset($this->isAvatarSticker);
    }

    public function clearIsAvatarSticker()
    {
        unset($this->isAvatarSticker);
    }

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

        return $this;
    }

}

