<?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.PastRoomInfo</code>
 */
class PastRoomInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string room_title = 1;</code>
     */
    protected $room_title = '';
    /**
     * Generated from protobuf field <code>string room_id = 2;</code>
     */
    protected $room_id = '';
    /**
     * Generated from protobuf field <code>string room_sid = 3;</code>
     */
    protected $room_sid = '';
    /**
     * Generated from protobuf field <code>int64 joined_participants = 4;</code>
     */
    protected $joined_participants = 0;
    /**
     * Generated from protobuf field <code>string webhook_url = 5;</code>
     */
    protected $webhook_url = '';
    /**
     * Generated from protobuf field <code>string created = 6;</code>
     */
    protected $created = '';
    /**
     * Generated from protobuf field <code>string ended = 7;</code>
     */
    protected $ended = '';
    /**
     * Generated from protobuf field <code>optional string analytics_file_id = 8;</code>
     */
    protected $analytics_file_id = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $room_title
     *     @type string $room_id
     *     @type string $room_sid
     *     @type int|string $joined_participants
     *     @type string $webhook_url
     *     @type string $created
     *     @type string $ended
     *     @type string $analytics_file_id
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetAuthRoom::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Generated from protobuf field <code>string room_title = 1;</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>string room_id = 2;</code>
     * @return string
     */
    public function getRoomId()
    {
        return $this->room_id;
    }

    /**
     * Generated from protobuf field <code>string room_id = 2;</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_sid = 3;</code>
     * @return string
     */
    public function getRoomSid()
    {
        return $this->room_sid;
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string webhook_url = 5;</code>
     * @return string
     */
    public function getWebhookUrl()
    {
        return $this->webhook_url;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string created = 6;</code>
     * @return string
     */
    public function getCreated()
    {
        return $this->created;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string ended = 7;</code>
     * @return string
     */
    public function getEnded()
    {
        return $this->ended;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string analytics_file_id = 8;</code>
     * @return string
     */
    public function getAnalyticsFileId()
    {
        return isset($this->analytics_file_id) ? $this->analytics_file_id : '';
    }

    public function hasAnalyticsFileId()
    {
        return isset($this->analytics_file_id);
    }

    public function clearAnalyticsFileId()
    {
        unset($this->analytics_file_id);
    }

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

        return $this;
    }

}

