<?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.UserInfo</code>
 */
class UserInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string name = 1 [(.buf.validate.field) = {</code>
     */
    protected $name = '';
    /**
     * Generated from protobuf field <code>string user_id = 2;</code>
     */
    protected $user_id = '';
    /**
     * Generated from protobuf field <code>bool is_admin = 3;</code>
     */
    protected $is_admin = false;
    /**
     * Generated from protobuf field <code>bool is_hidden = 4;</code>
     */
    protected $is_hidden = false;
    /**
     * Generated from protobuf field <code>.plugnmeet.UserMetadata user_metadata = 5;</code>
     */
    protected $user_metadata = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *     @type string $user_id
     *     @type bool $is_admin
     *     @type bool $is_hidden
     *     @type \Mynaparrot\PlugnmeetProto\UserMetadata $user_metadata
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetGenToken::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string name = 1 [(.buf.validate.field) = {</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string user_id = 2;</code>
     * @return string
     */
    public function getUserId()
    {
        return $this->user_id;
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool is_hidden = 4;</code>
     * @return bool
     */
    public function getIsHidden()
    {
        return $this->is_hidden;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.UserMetadata user_metadata = 5;</code>
     * @return \Mynaparrot\PlugnmeetProto\UserMetadata|null
     */
    public function getUserMetadata()
    {
        return $this->user_metadata;
    }

    public function hasUserMetadata()
    {
        return isset($this->user_metadata);
    }

    public function clearUserMetadata()
    {
        unset($this->user_metadata);
    }

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

        return $this;
    }

}

