<?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.CarStatisticsInfo</code>
 */
class CarStatisticsInfo extends \Google\Protobuf\Internal\Message
{
    /**
     *比赛次数
     *
     * Generated from protobuf field <code>int32 MatchNum = 1;</code>
     */
    protected $MatchNum = 0;
    /**
     *获胜次数
     *
     * Generated from protobuf field <code>int32 WinNum = 2;</code>
     */
    protected $WinNum = 0;
    /**
     *获得MVP次数
     *
     * Generated from protobuf field <code>int32 MvpNum = 3;</code>
     */
    protected $MvpNum = 0;
    /**
     *获得徽章次数--对应车型为竞速干扰辅助
     *
     * Generated from protobuf field <code>int32 IconNum = 4;</code>
     */
    protected $IconNum = 0;
    /**
     *最大连胜次数
     *
     * Generated from protobuf field <code>int32 MaxWinNum = 5;</code>
     */
    protected $MaxWinNum = 0;
    /**
     *上次获得MVP标志 0否1是
     *
     * Generated from protobuf field <code>int32 LastMvpFlag = 6;</code>
     */
    protected $LastMvpFlag = 0;
    /**
     *车TplId
     *
     * Generated from protobuf field <code>int32 CarId = 7;</code>
     */
    protected $CarId = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $MatchNum
     *          比赛次数
     *     @type int $WinNum
     *          获胜次数
     *     @type int $MvpNum
     *          获得MVP次数
     *     @type int $IconNum
     *          获得徽章次数--对应车型为竞速干扰辅助
     *     @type int $MaxWinNum
     *          最大连胜次数
     *     @type int $LastMvpFlag
     *          上次获得MVP标志 0否1是
     *     @type int $CarId
     *          车TplId
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *比赛次数
     *
     * Generated from protobuf field <code>int32 MatchNum = 1;</code>
     * @return int
     */
    public function getMatchNum()
    {
        return $this->MatchNum;
    }

    /**
     *比赛次数
     *
     * Generated from protobuf field <code>int32 MatchNum = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setMatchNum($var)
    {
        GPBUtil::checkInt32($var);
        $this->MatchNum = $var;

        return $this;
    }

    /**
     *获胜次数
     *
     * Generated from protobuf field <code>int32 WinNum = 2;</code>
     * @return int
     */
    public function getWinNum()
    {
        return $this->WinNum;
    }

    /**
     *获胜次数
     *
     * Generated from protobuf field <code>int32 WinNum = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setWinNum($var)
    {
        GPBUtil::checkInt32($var);
        $this->WinNum = $var;

        return $this;
    }

    /**
     *获得MVP次数
     *
     * Generated from protobuf field <code>int32 MvpNum = 3;</code>
     * @return int
     */
    public function getMvpNum()
    {
        return $this->MvpNum;
    }

    /**
     *获得MVP次数
     *
     * Generated from protobuf field <code>int32 MvpNum = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setMvpNum($var)
    {
        GPBUtil::checkInt32($var);
        $this->MvpNum = $var;

        return $this;
    }

    /**
     *获得徽章次数--对应车型为竞速干扰辅助
     *
     * Generated from protobuf field <code>int32 IconNum = 4;</code>
     * @return int
     */
    public function getIconNum()
    {
        return $this->IconNum;
    }

    /**
     *获得徽章次数--对应车型为竞速干扰辅助
     *
     * Generated from protobuf field <code>int32 IconNum = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setIconNum($var)
    {
        GPBUtil::checkInt32($var);
        $this->IconNum = $var;

        return $this;
    }

    /**
     *最大连胜次数
     *
     * Generated from protobuf field <code>int32 MaxWinNum = 5;</code>
     * @return int
     */
    public function getMaxWinNum()
    {
        return $this->MaxWinNum;
    }

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

        return $this;
    }

    /**
     *上次获得MVP标志 0否1是
     *
     * Generated from protobuf field <code>int32 LastMvpFlag = 6;</code>
     * @return int
     */
    public function getLastMvpFlag()
    {
        return $this->LastMvpFlag;
    }

    /**
     *上次获得MVP标志 0否1是
     *
     * Generated from protobuf field <code>int32 LastMvpFlag = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setLastMvpFlag($var)
    {
        GPBUtil::checkInt32($var);
        $this->LastMvpFlag = $var;

        return $this;
    }

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

    /**
     *车TplId
     *
     * Generated from protobuf field <code>int32 CarId = 7;</code>
     * @param int $var
     * @return $this
     */
    public function setCarId($var)
    {
        GPBUtil::checkInt32($var);
        $this->CarId = $var;

        return $this;
    }

}

