<?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.RacingRank</code>
 */
class RacingRank extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 Code = 1;</code>
     */
    protected $Code = 0;
    /**
     * Generated from protobuf field <code>uint64 PlayerID = 2;</code>
     */
    protected $PlayerID = 0;
    /**
     * 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>string NickName = 6;</code>
     */
    protected $NickName = '';
    /**
     * Generated from protobuf field <code>double Score = 7;</code>
     */
    protected $Score = 0.0;
    /**
     * Generated from protobuf field <code>int32 CarTplID = 8;</code>
     */
    protected $CarTplID = 0;
    /**
     * Generated from protobuf field <code>string CarExteriorRefits = 9;</code>
     */
    protected $CarExteriorRefits = '';
    /**
     * Generated from protobuf field <code>string Cloth = 10;</code>
     */
    protected $Cloth = '';
    /**
     * 被点赞数量
     *
     * Generated from protobuf field <code>string BeLiked = 11;</code>
     */
    protected $BeLiked = '';
    /**
     *肤色
     *
     * Generated from protobuf field <code>int32 SkinColor = 12;</code>
     */
    protected $SkinColor = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $Code
     *     @type int|string $PlayerID
     *     @type int $Head
     *     @type int $Level
     *     @type int $Gender
     *     @type string $NickName
     *     @type float $Score
     *     @type int $CarTplID
     *     @type string $CarExteriorRefits
     *     @type string $Cloth
     *     @type string $BeLiked
     *           被点赞数量
     *     @type int $SkinColor
     *          肤色
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>uint64 PlayerID = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setPlayerID($var)
    {
        GPBUtil::checkUint64($var);
        $this->PlayerID = $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>string NickName = 6;</code>
     * @return string
     */
    public function getNickName()
    {
        return $this->NickName;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>double Score = 7;</code>
     * @return float
     */
    public function getScore()
    {
        return $this->Score;
    }

    /**
     * Generated from protobuf field <code>double Score = 7;</code>
     * @param float $var
     * @return $this
     */
    public function setScore($var)
    {
        GPBUtil::checkDouble($var);
        $this->Score = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string CarExteriorRefits = 9;</code>
     * @return string
     */
    public function getCarExteriorRefits()
    {
        return $this->CarExteriorRefits;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string Cloth = 10;</code>
     * @return string
     */
    public function getCloth()
    {
        return $this->Cloth;
    }

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

        return $this;
    }

    /**
     * 被点赞数量
     *
     * Generated from protobuf field <code>string BeLiked = 11;</code>
     * @return string
     */
    public function getBeLiked()
    {
        return $this->BeLiked;
    }

    /**
     * 被点赞数量
     *
     * Generated from protobuf field <code>string BeLiked = 11;</code>
     * @param string $var
     * @return $this
     */
    public function setBeLiked($var)
    {
        GPBUtil::checkString($var, True);
        $this->BeLiked = $var;

        return $this;
    }

    /**
     *肤色
     *
     * Generated from protobuf field <code>int32 SkinColor = 12;</code>
     * @return int
     */
    public function getSkinColor()
    {
        return $this->SkinColor;
    }

    /**
     *肤色
     *
     * Generated from protobuf field <code>int32 SkinColor = 12;</code>
     * @param int $var
     * @return $this
     */
    public function setSkinColor($var)
    {
        GPBUtil::checkInt32($var);
        $this->SkinColor = $var;

        return $this;
    }

}

