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

/**
 *pvp比赛名次
 *
 * Generated from protobuf message <code>Game.Protobuf.RaceResult</code>
 */
class RaceResult extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>uint64 PlayerId = 1;</code>
     */
    protected $PlayerId = 0;
    /**
     * Generated from protobuf field <code>int32 Rank = 2;</code>
     */
    protected $Rank = 0;
    /**
     * Generated from protobuf field <code>int32 Time = 3;</code>
     */
    protected $Time = 0;
    /**
     *车TplId
     *
     * Generated from protobuf field <code>uint64 CarId = 4;</code>
     */
    protected $CarId = 0;
    /**
     *辅助次数
     *
     * Generated from protobuf field <code>int32 HelpNum = 5;</code>
     */
    protected $HelpNum = 0;
    /**
     *干扰次数
     *
     * Generated from protobuf field <code>int32 JamNum = 6;</code>
     */
    protected $JamNum = 0;
    /**
     *辅助徽章获得
     *
     * Generated from protobuf field <code>bool HelpIcon = 7;</code>
     */
    protected $HelpIcon = false;
    /**
     *干扰徽章
     *
     * Generated from protobuf field <code>bool JamIcon = 8;</code>
     */
    protected $JamIcon = false;
    /**
     *竞速徽章
     *
     * Generated from protobuf field <code>bool RaceIcon = 9;</code>
     */
    protected $RaceIcon = false;
    /**
     *mvp
     *
     * Generated from protobuf field <code>bool Mvp = 10;</code>
     */
    protected $Mvp = false;
    /**
     *胜负标志,团队模式为对位胜负
     *
     * Generated from protobuf field <code>bool IsWin = 11;</code>
     */
    protected $IsWin = false;
    /**
     * Generated from protobuf field <code>bool SVP = 12;</code>
     */
    protected $SVP = false;
    /**
     *连胜次数
     *
     * Generated from protobuf field <code>int32 ContinuityWin = 13;</code>
     */
    protected $ContinuityWin = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $PlayerId
     *     @type int $Rank
     *     @type int $Time
     *     @type int|string $CarId
     *          车TplId
     *     @type int $HelpNum
     *          辅助次数
     *     @type int $JamNum
     *          干扰次数
     *     @type bool $HelpIcon
     *          辅助徽章获得
     *     @type bool $JamIcon
     *          干扰徽章
     *     @type bool $RaceIcon
     *          竞速徽章
     *     @type bool $Mvp
     *          mvp
     *     @type bool $IsWin
     *          胜负标志,团队模式为对位胜负
     *     @type bool $SVP
     *     @type int $ContinuityWin
     *          连胜次数
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Generated from protobuf field <code>uint64 PlayerId = 1;</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 Rank = 2;</code>
     * @return int
     */
    public function getRank()
    {
        return $this->Rank;
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     *车TplId
     *
     * Generated from protobuf field <code>uint64 CarId = 4;</code>
     * @return int|string
     */
    public function getCarId()
    {
        return $this->CarId;
    }

    /**
     *车TplId
     *
     * Generated from protobuf field <code>uint64 CarId = 4;</code>
     * @param int|string $var
     * @return $this
     */
    public function setCarId($var)
    {
        GPBUtil::checkUint64($var);
        $this->CarId = $var;

        return $this;
    }

    /**
     *辅助次数
     *
     * Generated from protobuf field <code>int32 HelpNum = 5;</code>
     * @return int
     */
    public function getHelpNum()
    {
        return $this->HelpNum;
    }

    /**
     *辅助次数
     *
     * Generated from protobuf field <code>int32 HelpNum = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setHelpNum($var)
    {
        GPBUtil::checkInt32($var);
        $this->HelpNum = $var;

        return $this;
    }

    /**
     *干扰次数
     *
     * Generated from protobuf field <code>int32 JamNum = 6;</code>
     * @return int
     */
    public function getJamNum()
    {
        return $this->JamNum;
    }

    /**
     *干扰次数
     *
     * Generated from protobuf field <code>int32 JamNum = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setJamNum($var)
    {
        GPBUtil::checkInt32($var);
        $this->JamNum = $var;

        return $this;
    }

    /**
     *辅助徽章获得
     *
     * Generated from protobuf field <code>bool HelpIcon = 7;</code>
     * @return bool
     */
    public function getHelpIcon()
    {
        return $this->HelpIcon;
    }

    /**
     *辅助徽章获得
     *
     * Generated from protobuf field <code>bool HelpIcon = 7;</code>
     * @param bool $var
     * @return $this
     */
    public function setHelpIcon($var)
    {
        GPBUtil::checkBool($var);
        $this->HelpIcon = $var;

        return $this;
    }

    /**
     *干扰徽章
     *
     * Generated from protobuf field <code>bool JamIcon = 8;</code>
     * @return bool
     */
    public function getJamIcon()
    {
        return $this->JamIcon;
    }

    /**
     *干扰徽章
     *
     * Generated from protobuf field <code>bool JamIcon = 8;</code>
     * @param bool $var
     * @return $this
     */
    public function setJamIcon($var)
    {
        GPBUtil::checkBool($var);
        $this->JamIcon = $var;

        return $this;
    }

    /**
     *竞速徽章
     *
     * Generated from protobuf field <code>bool RaceIcon = 9;</code>
     * @return bool
     */
    public function getRaceIcon()
    {
        return $this->RaceIcon;
    }

    /**
     *竞速徽章
     *
     * Generated from protobuf field <code>bool RaceIcon = 9;</code>
     * @param bool $var
     * @return $this
     */
    public function setRaceIcon($var)
    {
        GPBUtil::checkBool($var);
        $this->RaceIcon = $var;

        return $this;
    }

    /**
     *mvp
     *
     * Generated from protobuf field <code>bool Mvp = 10;</code>
     * @return bool
     */
    public function getMvp()
    {
        return $this->Mvp;
    }

    /**
     *mvp
     *
     * Generated from protobuf field <code>bool Mvp = 10;</code>
     * @param bool $var
     * @return $this
     */
    public function setMvp($var)
    {
        GPBUtil::checkBool($var);
        $this->Mvp = $var;

        return $this;
    }

    /**
     *胜负标志,团队模式为对位胜负
     *
     * Generated from protobuf field <code>bool IsWin = 11;</code>
     * @return bool
     */
    public function getIsWin()
    {
        return $this->IsWin;
    }

    /**
     *胜负标志,团队模式为对位胜负
     *
     * Generated from protobuf field <code>bool IsWin = 11;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsWin($var)
    {
        GPBUtil::checkBool($var);
        $this->IsWin = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool SVP = 12;</code>
     * @return bool
     */
    public function getSVP()
    {
        return $this->SVP;
    }

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

        return $this;
    }

    /**
     *连胜次数
     *
     * Generated from protobuf field <code>int32 ContinuityWin = 13;</code>
     * @return int
     */
    public function getContinuityWin()
    {
        return $this->ContinuityWin;
    }

    /**
     *连胜次数
     *
     * Generated from protobuf field <code>int32 ContinuityWin = 13;</code>
     * @param int $var
     * @return $this
     */
    public function setContinuityWin($var)
    {
        GPBUtil::checkInt32($var);
        $this->ContinuityWin = $var;

        return $this;
    }

}

