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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.RecordingReq</code>
 */
class RecordingReq extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.plugnmeet.RecordingTasks task = 1;</code>
     */
    protected $task = 0;
    /**
     * Generated from protobuf field <code>string room_id = 2;</code>
     */
    protected $room_id = '';
    /**
     * Generated from protobuf field <code>int64 room_table_id = 3;</code>
     */
    protected $room_table_id = 0;
    /**
     * Generated from protobuf field <code>string sid = 4;</code>
     */
    protected $sid = '';
    /**
     * Generated from protobuf field <code>optional string rtmp_url = 5;</code>
     */
    protected $rtmp_url = null;
    /**
     * Generated from protobuf field <code>optional string custom_design = 6;</code>
     */
    protected $custom_design = null;
    /**
     * Generated from protobuf field <code>optional .plugnmeet.CloudRecordingVariants recording_variant = 7;</code>
     */
    protected $recording_variant = null;
    /**
     * Generated from protobuf field <code>optional .plugnmeet.RecorderBotOptions recorder_bot_options = 8;</code>
     */
    protected $recorder_bot_options = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $task
     *     @type string $room_id
     *     @type int|string $room_table_id
     *     @type string $sid
     *     @type string $rtmp_url
     *     @type string $custom_design
     *     @type int $recording_variant
     *     @type \Mynaparrot\PlugnmeetProto\RecorderBotOptions $recorder_bot_options
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetRecording::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Generated from protobuf field <code>.plugnmeet.RecordingTasks task = 1;</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>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>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 sid = 4;</code>
     * @return string
     */
    public function getSid()
    {
        return $this->sid;
    }

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

        return $this;
    }

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

        return $this;
    }

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

    public function hasCustomDesign()
    {
        return isset($this->custom_design);
    }

    public function clearCustomDesign()
    {
        unset($this->custom_design);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .plugnmeet.CloudRecordingVariants recording_variant = 7;</code>
     * @return int
     */
    public function getRecordingVariant()
    {
        return isset($this->recording_variant) ? $this->recording_variant : 0;
    }

    public function hasRecordingVariant()
    {
        return isset($this->recording_variant);
    }

    public function clearRecordingVariant()
    {
        unset($this->recording_variant);
    }

    /**
     * Generated from protobuf field <code>optional .plugnmeet.CloudRecordingVariants recording_variant = 7;</code>
     * @param int $var
     * @return $this
     */
    public function setRecordingVariant($var)
    {
        GPBUtil::checkEnum($var, \Mynaparrot\PlugnmeetProto\CloudRecordingVariants::class);
        $this->recording_variant = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .plugnmeet.RecorderBotOptions recorder_bot_options = 8;</code>
     * @return \Mynaparrot\PlugnmeetProto\RecorderBotOptions|null
     */
    public function getRecorderBotOptions()
    {
        return $this->recorder_bot_options;
    }

    public function hasRecorderBotOptions()
    {
        return isset($this->recorder_bot_options);
    }

    public function clearRecorderBotOptions()
    {
        unset($this->recorder_bot_options);
    }

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

        return $this;
    }

}

