<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: plugnmeet_auth_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.RecordingInfo</code>
 */
class RecordingInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string record_id = 1;</code>
     */
    protected $record_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>string file_path = 4;</code>
     */
    protected $file_path = '';
    /**
     * Generated from protobuf field <code>float file_size = 5;</code>
     */
    protected $file_size = 0.0;
    /**
     * Generated from protobuf field <code>int64 creation_time = 6;</code>
     */
    protected $creation_time = 0;
    /**
     * Generated from protobuf field <code>int64 room_creation_time = 7;</code>
     */
    protected $room_creation_time = 0;
    /**
     * Generated from protobuf field <code>optional .plugnmeet.RecordingMetadata metadata = 8;</code>
     */
    protected $metadata = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $record_id
     *     @type string $room_id
     *     @type string $room_sid
     *     @type string $file_path
     *     @type float $file_size
     *     @type int|string $creation_time
     *     @type int|string $room_creation_time
     *     @type \Mynaparrot\PlugnmeetProto\RecordingMetadata $metadata
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetAuthRecording::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Generated from protobuf field <code>string record_id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setRecordId($var)
    {
        GPBUtil::checkString($var, True);
        $this->record_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>string file_path = 4;</code>
     * @return string
     */
    public function getFilePath()
    {
        return $this->file_path;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

    public function hasMetadata()
    {
        return isset($this->metadata);
    }

    public function clearMetadata()
    {
        unset($this->metadata);
    }

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

        return $this;
    }

}

