<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: Gm_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.MGBanPlayer</code>
 */
class MGBanPlayer extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int64 RoleID = 1;</code>
     */
    protected $RoleID = 0;
    /**
     * Generated from protobuf field <code>string NickName = 2;</code>
     */
    protected $NickName = '';
    /**
     * Generated from protobuf field <code>int32 BanTime = 3;</code>
     */
    protected $BanTime = 0;
    /**
     * 自定义时间戳
     *
     * Generated from protobuf field <code>int64 CTime = 4;</code>
     */
    protected $CTime = 0;
    /**
     * Generated from protobuf field <code>int32 Option = 5;</code>
     */
    protected $Option = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $RoleID
     *     @type string $NickName
     *     @type int $BanTime
     *     @type int|string $CTime
     *           自定义时间戳
     *     @type int $Option
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\GmGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>int64 RoleID = 1;</code>
     * @return int|string
     */
    public function getRoleID()
    {
        return $this->RoleID;
    }

    /**
     * Generated from protobuf field <code>int64 RoleID = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setRoleID($var)
    {
        GPBUtil::checkInt64($var);
        $this->RoleID = $var;

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * 自定义时间戳
     *
     * Generated from protobuf field <code>int64 CTime = 4;</code>
     * @return int|string
     */
    public function getCTime()
    {
        return $this->CTime;
    }

    /**
     * 自定义时间戳
     *
     * Generated from protobuf field <code>int64 CTime = 4;</code>
     * @param int|string $var
     * @return $this
     */
    public function setCTime($var)
    {
        GPBUtil::checkInt64($var);
        $this->CTime = $var;

        return $this;
    }

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

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

        return $this;
    }

}

