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

namespace PhpWA\Protocol\Proto\Message\StickerPackMessage;

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

/**
 * Generated from protobuf message <code>proto.Message.StickerPackMessage.Sticker</code>
 */
class Sticker extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string fileName = 1;</code>
     */
    protected $fileName = null;
    /**
     * Generated from protobuf field <code>optional bool isAnimated = 2;</code>
     */
    protected $isAnimated = null;
    /**
     * Generated from protobuf field <code>repeated string emojis = 3;</code>
     */
    private $emojis;
    /**
     * Generated from protobuf field <code>optional string accessibilityLabel = 4;</code>
     */
    protected $accessibilityLabel = null;
    /**
     * Generated from protobuf field <code>optional bool isLottie = 5;</code>
     */
    protected $isLottie = null;
    /**
     * Generated from protobuf field <code>optional string mimetype = 6;</code>
     */
    protected $mimetype = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $fileName
     *     @type bool $isAnimated
     *     @type string[] $emojis
     *     @type string $accessibilityLabel
     *     @type bool $isLottie
     *     @type string $mimetype
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasFileName()
    {
        return isset($this->fileName);
    }

    public function clearFileName()
    {
        unset($this->fileName);
    }

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

        return $this;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated string emojis = 3;</code>
     * @return RepeatedField<string>
     */
    public function getEmojis()
    {
        return $this->emojis;
    }

    /**
     * Generated from protobuf field <code>repeated string emojis = 3;</code>
     * @param string[] $var
     * @return $this
     */
    public function setEmojis($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->emojis = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string accessibilityLabel = 4;</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 = 4;</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 bool isLottie = 5;</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 = 5;</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 mimetype = 6;</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 = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setMimetype($var)
    {
        GPBUtil::checkString($var, True);
        $this->mimetype = $var;

        return $this;
    }

}

