<?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;

/**
 * 通过roomID进入房间
 *
 * Generated from protobuf message <code>Game.Protobuf.CGJoinByCRoomID</code>
 */
class CGJoinByCRoomID extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 RoomID = 1;</code>
     */
    protected $RoomID = 0;
    /**
     * Generated from protobuf field <code>string Password = 2;</code>
     */
    protected $Password = '';
    /**
     * 发送邀请人id,没有为0
     *
     * Generated from protobuf field <code>uint64 InviterPlayerId = 3;</code>
     */
    protected $InviterPlayerId = 0;
    /**
     * 好友... 加入不需要判定房间状态使用  0 需要判定 1 不需要判定
     *
     * Generated from protobuf field <code>int32 IsJoin = 4;</code>
     */
    protected $IsJoin = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $RoomID
     *     @type string $Password
     *     @type int|string $InviterPlayerId
     *           发送邀请人id,没有为0
     *     @type int $IsJoin
     *           好友... 加入不需要判定房间状态使用  0 需要判定 1 不需要判定
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * 发送邀请人id,没有为0
     *
     * Generated from protobuf field <code>uint64 InviterPlayerId = 3;</code>
     * @return int|string
     */
    public function getInviterPlayerId()
    {
        return $this->InviterPlayerId;
    }

    /**
     * 发送邀请人id,没有为0
     *
     * Generated from protobuf field <code>uint64 InviterPlayerId = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setInviterPlayerId($var)
    {
        GPBUtil::checkUint64($var);
        $this->InviterPlayerId = $var;

        return $this;
    }

    /**
     * 好友... 加入不需要判定房间状态使用  0 需要判定 1 不需要判定
     *
     * Generated from protobuf field <code>int32 IsJoin = 4;</code>
     * @return int
     */
    public function getIsJoin()
    {
        return $this->IsJoin;
    }

    /**
     * 好友... 加入不需要判定房间状态使用  0 需要判定 1 不需要判定
     *
     * Generated from protobuf field <code>int32 IsJoin = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setIsJoin($var)
    {
        GPBUtil::checkInt32($var);
        $this->IsJoin = $var;

        return $this;
    }

}

