<?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.EndToEndEncryptionFeatures</code>
 */
class EndToEndEncryptionFeatures extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>bool is_enabled = 1;</code>
     */
    protected $is_enabled = false;
    /**
     * Generated from protobuf field <code>bool included_chat_messages = 2;</code>
     */
    protected $included_chat_messages = false;
    /**
     * Generated from protobuf field <code>bool included_whiteboard = 3;</code>
     */
    protected $included_whiteboard = false;
    /**
     * Generated from protobuf field <code>bool enabled_self_insert_encryption_key = 5;</code>
     */
    protected $enabled_self_insert_encryption_key = false;
    /**
     * internal fields
     *
     * Generated from protobuf field <code>optional string encryption_key = 4 [(.buf.validate.field) = {</code>
     */
    protected $encryption_key = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $is_enabled
     *     @type bool $included_chat_messages
     *     @type bool $included_whiteboard
     *     @type bool $enabled_self_insert_encryption_key
     *     @type string $encryption_key
     *           internal fields
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetCreateRoom::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>bool is_enabled = 1;</code>
     * @return bool
     */
    public function getIsEnabled()
    {
        return $this->is_enabled;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool enabled_self_insert_encryption_key = 5;</code>
     * @return bool
     */
    public function getEnabledSelfInsertEncryptionKey()
    {
        return $this->enabled_self_insert_encryption_key;
    }

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

        return $this;
    }

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

    public function hasEncryptionKey()
    {
        return isset($this->encryption_key);
    }

    public function clearEncryptionKey()
    {
        unset($this->encryption_key);
    }

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

        return $this;
    }

}

