<?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.AnalyticsRoomInfo</code>
 */
class AnalyticsRoomInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string room_id = 1;</code>
     */
    protected $room_id = '';
    /**
     * Generated from protobuf field <code>string room_title = 2;</code>
     */
    protected $room_title = '';
    /**
     * Generated from protobuf field <code>int64 room_total_users = 3;</code>
     */
    protected $room_total_users = 0;
    /**
     * Generated from protobuf field <code>int64 room_creation = 4;</code>
     */
    protected $room_creation = 0;
    /**
     * Generated from protobuf field <code>int64 room_ended = 5;</code>
     */
    protected $room_ended = 0;
    /**
     * Generated from protobuf field <code>int64 room_duration = 6;</code>
     */
    protected $room_duration = 0;
    /**
     * Generated from protobuf field <code>bool enabled_e2ee = 7;</code>
     */
    protected $enabled_e2ee = false;
    /**
     * Generated from protobuf field <code>repeated .plugnmeet.AnalyticsEventData events = 9;</code>
     */
    private $events;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $room_id
     *     @type string $room_title
     *     @type int|string $room_total_users
     *     @type int|string $room_creation
     *     @type int|string $room_ended
     *     @type int|string $room_duration
     *     @type bool $enabled_e2ee
     *     @type \Mynaparrot\PlugnmeetProto\AnalyticsEventData[] $events
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetAnalytics::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string room_title = 2;</code>
     * @return string
     */
    public function getRoomTitle()
    {
        return $this->room_title;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool enabled_e2ee = 7;</code>
     * @return bool
     */
    public function getEnabledE2Ee()
    {
        return $this->enabled_e2ee;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .plugnmeet.AnalyticsEventData events = 9;</code>
     * @return RepeatedField<\Mynaparrot\PlugnmeetProto\AnalyticsEventData>
     */
    public function getEvents()
    {
        return $this->events;
    }

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

        return $this;
    }

}

