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

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.ChatLockSettings</code>
 */
class ChatLockSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional bool hideLockedChats = 1;</code>
     */
    protected $hideLockedChats = null;
    /**
     * Generated from protobuf field <code>optional .proto.UserPassword secretCode = 2;</code>
     */
    protected $secretCode = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $hideLockedChats
     *     @type \PhpWA\Protocol\Proto\UserPassword $secretCode
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasHideLockedChats()
    {
        return isset($this->hideLockedChats);
    }

    public function clearHideLockedChats()
    {
        unset($this->hideLockedChats);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.UserPassword secretCode = 2;</code>
     * @return \PhpWA\Protocol\Proto\UserPassword|null
     */
    public function getSecretCode()
    {
        return $this->secretCode;
    }

    public function hasSecretCode()
    {
        return isset($this->secretCode);
    }

    public function clearSecretCode()
    {
        unset($this->secretCode);
    }

    /**
     * Generated from protobuf field <code>optional .proto.UserPassword secretCode = 2;</code>
     * @param \PhpWA\Protocol\Proto\UserPassword $var
     * @return $this
     */
    public function setSecretCode($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\UserPassword::class);
        $this->secretCode = $var;

        return $this;
    }

}

