<?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.StatusStickerInteractionMessage</code>
 */
class StatusStickerInteractionMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.MessageKey key = 1;</code>
     */
    protected $key = null;
    /**
     * Generated from protobuf field <code>optional string stickerKey = 2;</code>
     */
    protected $stickerKey = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.StatusStickerInteractionMessage.StatusStickerType type = 3;</code>
     */
    protected $type = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \PhpWA\Protocol\Proto\MessageKey $key
     *     @type string $stickerKey
     *     @type int $type
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.MessageKey key = 1;</code>
     * @return \PhpWA\Protocol\Proto\MessageKey|null
     */
    public function getKey()
    {
        return $this->key;
    }

    public function hasKey()
    {
        return isset($this->key);
    }

    public function clearKey()
    {
        unset($this->key);
    }

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

        return $this;
    }

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

    public function hasStickerKey()
    {
        return isset($this->stickerKey);
    }

    public function clearStickerKey()
    {
        unset($this->stickerKey);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.StatusStickerInteractionMessage.StatusStickerType type = 3;</code>
     * @return int
     */
    public function getType()
    {
        return isset($this->type) ? $this->type : 0;
    }

    public function hasType()
    {
        return isset($this->type);
    }

    public function clearType()
    {
        unset($this->type);
    }

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

        return $this;
    }

}

