<?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;

/**
 * TranscodingTask will be the job for the transcoding worker.
 *
 * Generated from protobuf message <code>plugnmeet.TranscodingTask</code>
 */
class TranscodingTask extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string recording_id = 1;</code>
     */
    protected $recording_id = '';
    /**
     * 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 room_table_id = 4;</code>
     */
    protected $room_table_id = 0;
    /**
     * ID of the original recorder that captured the file
     *
     * Generated from protobuf field <code>string recorder_id = 5;</code>
     */
    protected $recorder_id = '';
    protected $task_details;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $recording_id
     *     @type string $room_id
     *     @type string $room_sid
     *     @type int|string $room_table_id
     *     @type string $recorder_id
     *           ID of the original recorder that captured the file
     *     @type \Mynaparrot\PlugnmeetProto\TranscodingTaskPostRecording $post_recording
     *     @type \Mynaparrot\PlugnmeetProto\TranscodingTaskMergeRecordings $merge_recordings
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetRecorder::initOnce();
        parent::__construct($data);
    }

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

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

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

        return $this;
    }

    /**
     * ID of the original recorder that captured the file
     *
     * Generated from protobuf field <code>string recorder_id = 5;</code>
     * @return string
     */
    public function getRecorderId()
    {
        return $this->recorder_id;
    }

    /**
     * ID of the original recorder that captured the file
     *
     * Generated from protobuf field <code>string recorder_id = 5;</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>.plugnmeet.TranscodingTaskPostRecording post_recording = 6;</code>
     * @return \Mynaparrot\PlugnmeetProto\TranscodingTaskPostRecording|null
     */
    public function getPostRecording()
    {
        return $this->readOneof(6);
    }

    public function hasPostRecording()
    {
        return $this->hasOneof(6);
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.TranscodingTaskPostRecording post_recording = 6;</code>
     * @param \Mynaparrot\PlugnmeetProto\TranscodingTaskPostRecording $var
     * @return $this
     */
    public function setPostRecording($var)
    {
        GPBUtil::checkMessage($var, \Mynaparrot\PlugnmeetProto\TranscodingTaskPostRecording::class);
        $this->writeOneof(6, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.TranscodingTaskMergeRecordings merge_recordings = 7;</code>
     * @return \Mynaparrot\PlugnmeetProto\TranscodingTaskMergeRecordings|null
     */
    public function getMergeRecordings()
    {
        return $this->readOneof(7);
    }

    public function hasMergeRecordings()
    {
        return $this->hasOneof(7);
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.TranscodingTaskMergeRecordings merge_recordings = 7;</code>
     * @param \Mynaparrot\PlugnmeetProto\TranscodingTaskMergeRecordings $var
     * @return $this
     */
    public function setMergeRecordings($var)
    {
        GPBUtil::checkMessage($var, \Mynaparrot\PlugnmeetProto\TranscodingTaskMergeRecordings::class);
        $this->writeOneof(7, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getTaskDetails()
    {
        return $this->whichOneof("task_details");
    }

}

