<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: Client_Game_Packet.proto

namespace Game\Protobuf;

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

/**
 * Generated from protobuf message <code>Game.Protobuf.CGCreateCRoom</code>
 */
class CGCreateCRoom extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 MapID = 1;</code>
     */
    protected $MapID = 0;
    /**
     * Generated from protobuf field <code>int32 ModeType = 2;</code>
     */
    protected $ModeType = 0;
    /**
     * Generated from protobuf field <code>string RoomName = 3;</code>
     */
    protected $RoomName = '';
    /**
     * Generated from protobuf field <code>string Password = 4;</code>
     */
    protected $Password = '';
    /**
     * Generated from protobuf field <code>bool PwdIsShow = 5;</code>
     */
    protected $PwdIsShow = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $MapID
     *     @type int $ModeType
     *     @type string $RoomName
     *     @type string $Password
     *     @type bool $PwdIsShow
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>int32 MapID = 1;</code>
     * @return int
     */
    public function getMapID()
    {
        return $this->MapID;
    }

    /**
     * Generated from protobuf field <code>int32 MapID = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setMapID($var)
    {
        GPBUtil::checkInt32($var);
        $this->MapID = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 ModeType = 2;</code>
     * @return int
     */
    public function getModeType()
    {
        return $this->ModeType;
    }

    /**
     * Generated from protobuf field <code>int32 ModeType = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setModeType($var)
    {
        GPBUtil::checkInt32($var);
        $this->ModeType = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string RoomName = 3;</code>
     * @return string
     */
    public function getRoomName()
    {
        return $this->RoomName;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string Password = 4;</code>
     * @return string
     */
    public function getPassword()
    {
        return $this->Password;
    }

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

        return $this;
    }

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

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

        return $this;
    }

}

