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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.SharedNotePadFeatures</code>
 */
class SharedNotePadFeatures extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional bool allowed_shared_note_pad = 1 [deprecated = true];</code>
     * @deprecated
     */
    protected $allowed_shared_note_pad = null;
    /**
     * Generated from protobuf field <code>bool is_allow = 8;</code>
     */
    protected $is_allow = false;
    /**
     * Generated from protobuf field <code>bool is_active = 2 [(.buf.validate.field) = {</code>
     */
    protected $is_active = false;
    /**
     * Generated from protobuf field <code>bool visible = 3 [(.buf.validate.field) = {</code>
     */
    protected $visible = false;
    /**
     * Generated from protobuf field <code>string node_id = 4 [(.buf.validate.field) = {</code>
     */
    protected $node_id = '';
    /**
     * Generated from protobuf field <code>string host = 5 [(.buf.validate.field) = {</code>
     */
    protected $host = '';
    /**
     * Generated from protobuf field <code>string note_pad_id = 6 [(.buf.validate.field) = {</code>
     */
    protected $note_pad_id = '';
    /**
     * Generated from protobuf field <code>string read_only_pad_id = 7 [(.buf.validate.field) = {</code>
     */
    protected $read_only_pad_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $allowed_shared_note_pad
     *     @type bool $is_allow
     *     @type bool $is_active
     *     @type bool $visible
     *     @type string $node_id
     *     @type string $host
     *     @type string $note_pad_id
     *     @type string $read_only_pad_id
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetCreateRoom::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional bool allowed_shared_note_pad = 1 [deprecated = true];</code>
     * @return bool
     * @deprecated
     */
    public function getAllowedSharedNotePad()
    {
        if (isset($this->allowed_shared_note_pad)) {
            @trigger_error('allowed_shared_note_pad is deprecated.', E_USER_DEPRECATED);
        }
        return isset($this->allowed_shared_note_pad) ? $this->allowed_shared_note_pad : false;
    }

    public function hasAllowedSharedNotePad()
    {
        if (isset($this->allowed_shared_note_pad)) {
            @trigger_error('allowed_shared_note_pad is deprecated.', E_USER_DEPRECATED);
        }
        return isset($this->allowed_shared_note_pad);
    }

    public function clearAllowedSharedNotePad()
    {
        @trigger_error('allowed_shared_note_pad is deprecated.', E_USER_DEPRECATED);
        unset($this->allowed_shared_note_pad);
    }

    /**
     * Generated from protobuf field <code>optional bool allowed_shared_note_pad = 1 [deprecated = true];</code>
     * @param bool $var
     * @return $this
     * @deprecated
     */
    public function setAllowedSharedNotePad($var)
    {
        @trigger_error('allowed_shared_note_pad is deprecated.', E_USER_DEPRECATED);
        GPBUtil::checkBool($var);
        $this->allowed_shared_note_pad = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool is_allow = 8;</code>
     * @return bool
     */
    public function getIsAllow()
    {
        return $this->is_allow;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

}

