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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.AnalyticsResult</code>
 */
class AnalyticsResult extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.plugnmeet.AnalyticsRoomInfo room = 1;</code>
     */
    protected $room = null;
    /**
     * Generated from protobuf field <code>repeated .plugnmeet.AnalyticsUserInfo users = 2;</code>
     */
    private $users;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Mynaparrot\PlugnmeetProto\AnalyticsRoomInfo $room
     *     @type \Mynaparrot\PlugnmeetProto\AnalyticsUserInfo[] $users
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetAnalytics::initOnce();
        parent::__construct($data);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .plugnmeet.AnalyticsUserInfo users = 2;</code>
     * @return RepeatedField<\Mynaparrot\PlugnmeetProto\AnalyticsUserInfo>
     */
    public function getUsers()
    {
        return $this->users;
    }

    /**
     * Generated from protobuf field <code>repeated .plugnmeet.AnalyticsUserInfo users = 2;</code>
     * @param \Mynaparrot\PlugnmeetProto\AnalyticsUserInfo[] $var
     * @return $this
     */
    public function setUsers($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Mynaparrot\PlugnmeetProto\AnalyticsUserInfo::class);
        $this->users = $arr;

        return $this;
    }

}

