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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.PlugNmeetToRecorder</code>
 */
class PlugNmeetToRecorder extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string from = 1;</code>
     */
    protected $from = '';
    /**
     * Generated from protobuf field <code>.plugnmeet.RecordingTasks task = 2;</code>
     */
    protected $task = 0;
    /**
     * Generated from protobuf field <code>int64 room_table_id = 3;</code>
     */
    protected $room_table_id = 0;
    /**
     * Generated from protobuf field <code>string room_id = 4;</code>
     */
    protected $room_id = '';
    /**
     * Generated from protobuf field <code>string room_sid = 5;</code>
     */
    protected $room_sid = '';
    /**
     * Generated from protobuf field <code>string recording_id = 6;</code>
     */
    protected $recording_id = '';
    /**
     * Generated from protobuf field <code>string recorder_id = 7;</code>
     */
    protected $recorder_id = '';
    /**
     * Generated from protobuf field <code>string access_token = 8;</code>
     */
    protected $access_token = '';
    /**
     * Generated from protobuf field <code>optional string rtmp_url = 9;</code>
     */
    protected $rtmp_url = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $from
     *     @type int $task
     *     @type int|string $room_table_id
     *     @type string $room_id
     *     @type string $room_sid
     *     @type string $recording_id
     *     @type string $recorder_id
     *     @type string $access_token
     *     @type string $rtmp_url
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetRecorder::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.RecordingTasks task = 2;</code>
     * @return int
     */
    public function getTask()
    {
        return $this->task;
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.RecordingTasks task = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setTask($var)
    {
        GPBUtil::checkEnum($var, \Mynaparrot\PlugnmeetProto\RecordingTasks::class);
        $this->task = $var;

        return $this;
    }

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

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

        return $this;
    }

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

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

    /**
     * Generated from protobuf field <code>string room_sid = 5;</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>string recording_id = 6;</code>
     * @return string
     */
    public function getRecordingId()
    {
        return $this->recording_id;
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string access_token = 8;</code>
     * @return string
     */
    public function getAccessToken()
    {
        return $this->access_token;
    }

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

        return $this;
    }

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

    public function hasRtmpUrl()
    {
        return isset($this->rtmp_url);
    }

    public function clearRtmpUrl()
    {
        unset($this->rtmp_url);
    }

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

        return $this;
    }

}

