<?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.RecordingMetadata</code>
 */
class RecordingMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string title = 1;</code>
     */
    protected $title = null;
    /**
     * Generated from protobuf field <code>optional string description = 2;</code>
     */
    protected $description = null;
    /**
     *e.g. map<language, RecordingSubtitle>
     *
     * Generated from protobuf field <code>map<string, .plugnmeet.RecordingSubtitle> subtitles = 3;</code>
     */
    private $subtitles;
    /**
     * Generated from protobuf field <code>map<string, string> extra_data = 4;</code>
     */
    private $extra_data;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $title
     *     @type string $description
     *     @type array|\Google\Protobuf\Internal\MapField $subtitles
     *          e.g. map<language, RecordingSubtitle>
     *     @type array|\Google\Protobuf\Internal\MapField $extra_data
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetRecording::initOnce();
        parent::__construct($data);
    }

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

    public function hasTitle()
    {
        return isset($this->title);
    }

    public function clearTitle()
    {
        unset($this->title);
    }

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

        return $this;
    }

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

    public function hasDescription()
    {
        return isset($this->description);
    }

    public function clearDescription()
    {
        unset($this->description);
    }

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

        return $this;
    }

    /**
     *e.g. map<language, RecordingSubtitle>
     *
     * Generated from protobuf field <code>map<string, .plugnmeet.RecordingSubtitle> subtitles = 3;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getSubtitles()
    {
        return $this->subtitles;
    }

    /**
     *e.g. map<language, RecordingSubtitle>
     *
     * Generated from protobuf field <code>map<string, .plugnmeet.RecordingSubtitle> subtitles = 3;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setSubtitles($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Mynaparrot\PlugnmeetProto\RecordingSubtitle::class);
        $this->subtitles = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>map<string, string> extra_data = 4;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getExtraData()
    {
        return $this->extra_data;
    }

    /**
     * Generated from protobuf field <code>map<string, string> extra_data = 4;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setExtraData($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->extra_data = $arr;

        return $this;
    }

}

