<?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.RecorderToPlugNmeet</code>
 */
class RecorderToPlugNmeet 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>bool status = 3;</code>
     */
    protected $status = false;
    /**
     * Generated from protobuf field <code>string msg = 4;</code>
     */
    protected $msg = '';
    /**
     * Generated from protobuf field <code>string recording_id = 5;</code>
     */
    protected $recording_id = '';
    /**
     * Generated from protobuf field <code>int64 room_table_id = 11;</code>
     */
    protected $room_table_id = 0;
    /**
     * Generated from protobuf field <code>string room_id = 6;</code>
     */
    protected $room_id = '';
    /**
     * Generated from protobuf field <code>string room_sid = 7;</code>
     */
    protected $room_sid = '';
    /**
     * Generated from protobuf field <code>string recorder_id = 8;</code>
     */
    protected $recorder_id = '';
    /**
     * Generated from protobuf field <code>string file_path = 9;</code>
     */
    protected $file_path = '';
    /**
     * Generated from protobuf field <code>float file_size = 10;</code>
     */
    protected $file_size = 0.0;
    /**
     * next key 13
     *
     * Generated from protobuf field <code>optional .plugnmeet.CloudRecordingVariants recording_variant = 12;</code>
     */
    protected $recording_variant = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $from
     *     @type int $task
     *     @type bool $status
     *     @type string $msg
     *     @type string $recording_id
     *     @type int|string $room_table_id
     *     @type string $room_id
     *     @type string $room_sid
     *     @type string $recorder_id
     *     @type string $file_path
     *     @type float $file_size
     *     @type int $recording_variant
     *           next key 13
     * }
     */
    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>bool status = 3;</code>
     * @return bool
     */
    public function getStatus()
    {
        return $this->status;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>string recording_id = 5;</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>int64 room_table_id = 11;</code>
     * @return int|string
     */
    public function getRoomTableId()
    {
        return $this->room_table_id;
    }

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

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

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

    /**
     * Generated from protobuf field <code>string recorder_id = 8;</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 file_path = 9;</code>
     * @return string
     */
    public function getFilePath()
    {
        return $this->file_path;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>float file_size = 10;</code>
     * @return float
     */
    public function getFileSize()
    {
        return $this->file_size;
    }

    /**
     * Generated from protobuf field <code>float file_size = 10;</code>
     * @param float $var
     * @return $this
     */
    public function setFileSize($var)
    {
        GPBUtil::checkFloat($var);
        $this->file_size = $var;

        return $this;
    }

    /**
     * next key 13
     *
     * Generated from protobuf field <code>optional .plugnmeet.CloudRecordingVariants recording_variant = 12;</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);
    }

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

        return $this;
    }

}

