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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.NatsSystemNotification</code>
 */
class NatsSystemNotification extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string id = 1;</code>
     */
    protected $id = '';
    /**
     * Generated from protobuf field <code>.plugnmeet.NatsSystemNotificationTypes type = 2;</code>
     */
    protected $type = 0;
    /**
     * Generated from protobuf field <code>string msg = 3;</code>
     */
    protected $msg = '';
    /**
     * Generated from protobuf field <code>int64 sent_at = 4;</code>
     */
    protected $sent_at = 0;
    /**
     * Generated from protobuf field <code>bool with_sound = 5;</code>
     */
    protected $with_sound = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $id
     *     @type int $type
     *     @type string $msg
     *     @type int|string $sent_at
     *     @type bool $with_sound
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetNatsMsg::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string id = 1;</code>
     * @return string
     */
    public function getId()
    {
        return $this->id;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.NatsSystemNotificationTypes type = 2;</code>
     * @return int
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.NatsSystemNotificationTypes type = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkEnum($var, \Mynaparrot\PlugnmeetProto\NatsSystemNotificationTypes::class);
        $this->type = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 sent_at = 4;</code>
     * @return int|string
     */
    public function getSentAt()
    {
        return $this->sent_at;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool with_sound = 5;</code>
     * @return bool
     */
    public function getWithSound()
    {
        return $this->with_sound;
    }

    /**
     * Generated from protobuf field <code>bool with_sound = 5;</code>
     * @param bool $var
     * @return $this
     */
    public function setWithSound($var)
    {
        GPBUtil::checkBool($var);
        $this->with_sound = $var;

        return $this;
    }

}

