<?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.RecentEmojiWeight</code>
 */
class RecentEmojiWeight extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string emoji = 1;</code>
     */
    protected $emoji = null;
    /**
     * Generated from protobuf field <code>optional float weight = 2;</code>
     */
    protected $weight = null;

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

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

    public function hasEmoji()
    {
        return isset($this->emoji);
    }

    public function clearEmoji()
    {
        unset($this->emoji);
    }

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

        return $this;
    }

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

        return $this;
    }

}

