<?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.UpdateRecordingMetadataReq</code>
 */
class UpdateRecordingMetadataReq extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string record_id = 1 [(.buf.validate.field) = {</code>
     */
    protected $record_id = '';
    /**
     * Generated from protobuf field <code>.plugnmeet.RecordingMetadata metadata = 2;</code>
     */
    protected $metadata = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $record_id
     *     @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 [(.buf.validate.field) = {</code>
     * @return string
     */
    public function getRecordId()
    {
        return $this->record_id;
    }

    /**
     * Generated from protobuf field <code>string record_id = 1 [(.buf.validate.field) = {</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>.plugnmeet.RecordingMetadata metadata = 2;</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>.plugnmeet.RecordingMetadata metadata = 2;</code>
     * @param \Mynaparrot\PlugnmeetProto\RecordingMetadata $var
     * @return $this
     */
    public function setMetadata($var)
    {
        GPBUtil::checkMessage($var, \Mynaparrot\PlugnmeetProto\RecordingMetadata::class);
        $this->metadata = $var;

        return $this;
    }

}

