<?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.LastGamePlayer</code>
 */
class LastGamePlayer extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 Ranking = 1;</code>
     */
    protected $Ranking = 0;
    /**
     * Generated from protobuf field <code>string NickName = 2;</code>
     */
    protected $NickName = '';
    /**
     * Generated from protobuf field <code>int32 Head = 3;</code>
     */
    protected $Head = 0;
    /**
     * Generated from protobuf field <code>int32 Level = 4;</code>
     */
    protected $Level = 0;
    /**
     * Generated from protobuf field <code>int32 Gender = 5;</code>
     */
    protected $Gender = 0;
    /**
     * Generated from protobuf field <code>int32 Dan = 6;</code>
     */
    protected $Dan = 0;
    /**
     * Generated from protobuf field <code>bool IsFriend = 7;</code>
     */
    protected $IsFriend = false;
    /**
     * Generated from protobuf field <code>uint64 PlayerId = 8;</code>
     */
    protected $PlayerId = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $Ranking
     *     @type string $NickName
     *     @type int $Head
     *     @type int $Level
     *     @type int $Gender
     *     @type int $Dan
     *     @type bool $IsFriend
     *     @type int|string $PlayerId
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Generated from protobuf field <code>int32 Ranking = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setRanking($var)
    {
        GPBUtil::checkInt32($var);
        $this->Ranking = $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 Head = 3;</code>
     * @return int
     */
    public function getHead()
    {
        return $this->Head;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool IsFriend = 7;</code>
     * @return bool
     */
    public function getIsFriend()
    {
        return $this->IsFriend;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 PlayerId = 8;</code>
     * @return int|string
     */
    public function getPlayerId()
    {
        return $this->PlayerId;
    }

    /**
     * Generated from protobuf field <code>uint64 PlayerId = 8;</code>
     * @param int|string $var
     * @return $this
     */
    public function setPlayerId($var)
    {
        GPBUtil::checkUint64($var);
        $this->PlayerId = $var;

        return $this;
    }

}

