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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.BroadcastToRoomNotificationMsg</code>
 */
class BroadcastToRoomNotificationMsg extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string text = 1 [(.buf.validate.field) = {</code>
     */
    protected $text = '';
    /**
     * Generated from protobuf field <code>.plugnmeet.NatsSystemNotificationTypes type = 2;</code>
     */
    protected $type = 0;
    /**
     * Generated from protobuf field <code>bool with_sound = 3;</code>
     */
    protected $with_sound = false;

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

    /**
     * Generated from protobuf field <code>string text = 1 [(.buf.validate.field) = {</code>
     * @return string
     */
    public function getText()
    {
        return $this->text;
    }

    /**
     * Generated from protobuf field <code>string text = 1 [(.buf.validate.field) = {</code>
     * @param string $var
     * @return $this
     */
    public function setText($var)
    {
        GPBUtil::checkString($var, True);
        $this->text = $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>bool with_sound = 3;</code>
     * @return bool
     */
    public function getWithSound()
    {
        return $this->with_sound;
    }

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

        return $this;
    }

}

