<?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.NatsInitialData</code>
 */
class NatsInitialData extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.plugnmeet.NatsKvRoomInfo room = 1;</code>
     */
    protected $room = null;
    /**
     * Generated from protobuf field <code>.plugnmeet.NatsKvUserInfo local_user = 2;</code>
     */
    protected $local_user = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Mynaparrot\PlugnmeetProto\NatsKvRoomInfo $room
     *     @type \Mynaparrot\PlugnmeetProto\NatsKvUserInfo $local_user
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetNatsMsg::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.NatsKvRoomInfo room = 1;</code>
     * @return \Mynaparrot\PlugnmeetProto\NatsKvRoomInfo|null
     */
    public function getRoom()
    {
        return $this->room;
    }

    public function hasRoom()
    {
        return isset($this->room);
    }

    public function clearRoom()
    {
        unset($this->room);
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.NatsKvRoomInfo room = 1;</code>
     * @param \Mynaparrot\PlugnmeetProto\NatsKvRoomInfo $var
     * @return $this
     */
    public function setRoom($var)
    {
        GPBUtil::checkMessage($var, \Mynaparrot\PlugnmeetProto\NatsKvRoomInfo::class);
        $this->room = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.NatsKvUserInfo local_user = 2;</code>
     * @return \Mynaparrot\PlugnmeetProto\NatsKvUserInfo|null
     */
    public function getLocalUser()
    {
        return $this->local_user;
    }

    public function hasLocalUser()
    {
        return isset($this->local_user);
    }

    public function clearLocalUser()
    {
        unset($this->local_user);
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.NatsKvUserInfo local_user = 2;</code>
     * @param \Mynaparrot\PlugnmeetProto\NatsKvUserInfo $var
     * @return $this
     */
    public function setLocalUser($var)
    {
        GPBUtil::checkMessage($var, \Mynaparrot\PlugnmeetProto\NatsKvUserInfo::class);
        $this->local_user = $var;

        return $this;
    }

}

