<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: plugnmeet_gen_token.proto

namespace Mynaparrot\PlugnmeetProto;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Generated from protobuf message <code>plugnmeet.UserMetadata</code>
 */
class UserMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string profile_pic = 1 [(.buf.validate.field) = {</code>
     */
    protected $profile_pic = null;
    /**
     * Generated from protobuf field <code>bool is_admin = 2;</code>
     */
    protected $is_admin = false;
    /**
     * Generated from protobuf field <code>optional bool record_webcam = 3;</code>
     */
    protected $record_webcam = null;
    /**
     * Generated from protobuf field <code>bool is_presenter = 4 [(.buf.validate.field) = {</code>
     */
    protected $is_presenter = false;
    /**
     * Generated from protobuf field <code>bool raised_hand = 5 [(.buf.validate.field) = {</code>
     */
    protected $raised_hand = false;
    /**
     * Generated from protobuf field <code>bool wait_for_approval = 6 [(.buf.validate.field) = {</code>
     */
    protected $wait_for_approval = false;
    /**
     * Generated from protobuf field <code>optional string preferred_lang = 7;</code>
     */
    protected $preferred_lang = null;
    /**
     * Generated from protobuf field <code>.plugnmeet.LockSettings lock_settings = 8;</code>
     */
    protected $lock_settings = null;
    /**
     * we'll use this as version control
     *
     * Generated from protobuf field <code>optional string metadata_id = 9 [(.buf.validate.field) = {</code>
     */
    protected $metadata_id = null;
    /**
     * Generated from protobuf field <code>map<string, string> extra_data = 10;</code>
     */
    private $extra_data;
    /**
     * if remain empty then will use value from user_id
     *
     * Generated from protobuf field <code>optional string ex_user_id = 11;</code>
     */
    protected $ex_user_id = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $profile_pic
     *     @type bool $is_admin
     *     @type bool $record_webcam
     *     @type bool $is_presenter
     *     @type bool $raised_hand
     *     @type bool $wait_for_approval
     *     @type string $preferred_lang
     *     @type \Mynaparrot\PlugnmeetProto\LockSettings $lock_settings
     *     @type string $metadata_id
     *           we'll use this as version control
     *     @type array|\Google\Protobuf\Internal\MapField $extra_data
     *     @type string $ex_user_id
     *           if remain empty then will use value from user_id
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetGenToken::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional string profile_pic = 1 [(.buf.validate.field) = {</code>
     * @return string
     */
    public function getProfilePic()
    {
        return isset($this->profile_pic) ? $this->profile_pic : '';
    }

    public function hasProfilePic()
    {
        return isset($this->profile_pic);
    }

    public function clearProfilePic()
    {
        unset($this->profile_pic);
    }

    /**
     * Generated from protobuf field <code>optional string profile_pic = 1 [(.buf.validate.field) = {</code>
     * @param string $var
     * @return $this
     */
    public function setProfilePic($var)
    {
        GPBUtil::checkString($var, True);
        $this->profile_pic = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool is_admin = 2;</code>
     * @return bool
     */
    public function getIsAdmin()
    {
        return $this->is_admin;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool record_webcam = 3;</code>
     * @return bool
     */
    public function getRecordWebcam()
    {
        return isset($this->record_webcam) ? $this->record_webcam : false;
    }

    public function hasRecordWebcam()
    {
        return isset($this->record_webcam);
    }

    public function clearRecordWebcam()
    {
        unset($this->record_webcam);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool is_presenter = 4 [(.buf.validate.field) = {</code>
     * @return bool
     */
    public function getIsPresenter()
    {
        return $this->is_presenter;
    }

    /**
     * Generated from protobuf field <code>bool is_presenter = 4 [(.buf.validate.field) = {</code>
     * @param bool $var
     * @return $this
     */
    public function setIsPresenter($var)
    {
        GPBUtil::checkBool($var);
        $this->is_presenter = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool raised_hand = 5 [(.buf.validate.field) = {</code>
     * @return bool
     */
    public function getRaisedHand()
    {
        return $this->raised_hand;
    }

    /**
     * Generated from protobuf field <code>bool raised_hand = 5 [(.buf.validate.field) = {</code>
     * @param bool $var
     * @return $this
     */
    public function setRaisedHand($var)
    {
        GPBUtil::checkBool($var);
        $this->raised_hand = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool wait_for_approval = 6 [(.buf.validate.field) = {</code>
     * @return bool
     */
    public function getWaitForApproval()
    {
        return $this->wait_for_approval;
    }

    /**
     * Generated from protobuf field <code>bool wait_for_approval = 6 [(.buf.validate.field) = {</code>
     * @param bool $var
     * @return $this
     */
    public function setWaitForApproval($var)
    {
        GPBUtil::checkBool($var);
        $this->wait_for_approval = $var;

        return $this;
    }

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

    public function hasPreferredLang()
    {
        return isset($this->preferred_lang);
    }

    public function clearPreferredLang()
    {
        unset($this->preferred_lang);
    }

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

        return $this;
    }

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

    public function hasLockSettings()
    {
        return isset($this->lock_settings);
    }

    public function clearLockSettings()
    {
        unset($this->lock_settings);
    }

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

        return $this;
    }

    /**
     * we'll use this as version control
     *
     * Generated from protobuf field <code>optional string metadata_id = 9 [(.buf.validate.field) = {</code>
     * @return string
     */
    public function getMetadataId()
    {
        return isset($this->metadata_id) ? $this->metadata_id : '';
    }

    public function hasMetadataId()
    {
        return isset($this->metadata_id);
    }

    public function clearMetadataId()
    {
        unset($this->metadata_id);
    }

    /**
     * we'll use this as version control
     *
     * Generated from protobuf field <code>optional string metadata_id = 9 [(.buf.validate.field) = {</code>
     * @param string $var
     * @return $this
     */
    public function setMetadataId($var)
    {
        GPBUtil::checkString($var, True);
        $this->metadata_id = $var;

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>map<string, string> extra_data = 10;</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;
    }

    /**
     * if remain empty then will use value from user_id
     *
     * Generated from protobuf field <code>optional string ex_user_id = 11;</code>
     * @return string
     */
    public function getExUserId()
    {
        return isset($this->ex_user_id) ? $this->ex_user_id : '';
    }

    public function hasExUserId()
    {
        return isset($this->ex_user_id);
    }

    public function clearExUserId()
    {
        unset($this->ex_user_id);
    }

    /**
     * if remain empty then will use value from user_id
     *
     * Generated from protobuf field <code>optional string ex_user_id = 11;</code>
     * @param string $var
     * @return $this
     */
    public function setExUserId($var)
    {
        GPBUtil::checkString($var, True);
        $this->ex_user_id = $var;

        return $this;
    }

}

