<?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.ActiveRoomWithParticipant</code>
 */
class ActiveRoomWithParticipant extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .plugnmeet.ActiveRoomInfo room_info = 3;</code>
     */
    protected $room_info = null;
    /**
     * Generated from protobuf field <code>repeated .livekit.ParticipantInfo participants_info = 4;</code>
     */
    private $participants_info;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Mynaparrot\PlugnmeetProto\ActiveRoomInfo $room_info
     *     @type \Livekit\ParticipantInfo[] $participants_info
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetAuthRoom::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .plugnmeet.ActiveRoomInfo room_info = 3;</code>
     * @return \Mynaparrot\PlugnmeetProto\ActiveRoomInfo|null
     */
    public function getRoomInfo()
    {
        return $this->room_info;
    }

    public function hasRoomInfo()
    {
        return isset($this->room_info);
    }

    public function clearRoomInfo()
    {
        unset($this->room_info);
    }

    /**
     * Generated from protobuf field <code>optional .plugnmeet.ActiveRoomInfo room_info = 3;</code>
     * @param \Mynaparrot\PlugnmeetProto\ActiveRoomInfo $var
     * @return $this
     */
    public function setRoomInfo($var)
    {
        GPBUtil::checkMessage($var, \Mynaparrot\PlugnmeetProto\ActiveRoomInfo::class);
        $this->room_info = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .livekit.ParticipantInfo participants_info = 4;</code>
     * @return RepeatedField<\Livekit\ParticipantInfo>
     */
    public function getParticipantsInfo()
    {
        return $this->participants_info;
    }

    /**
     * Generated from protobuf field <code>repeated .livekit.ParticipantInfo participants_info = 4;</code>
     * @param \Livekit\ParticipantInfo[] $var
     * @return $this
     */
    public function setParticipantsInfo($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Livekit\ParticipantInfo::class);
        $this->participants_info = $arr;

        return $this;
    }

}

