<?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.GCScuffleRaceResult</code>
 */
class GCScuffleRaceResult extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated .Game.Protobuf.RaceResult Result = 1;</code>
     */
    private $Result;
    /**
     *增加的车熟练度
     *
     * Generated from protobuf field <code>int32 AddCarProficiency = 2;</code>
     */
    protected $AddCarProficiency = 0;
    /**
     *增加熟练度明细
     *
     * Generated from protobuf field <code>repeated int32 CarProficiencyArray = 3;</code>
     */
    private $CarProficiencyArray;
    /**
     *变化的大乱斗积分
     *
     * Generated from protobuf field <code>int32 AddScore = 4;</code>
     */
    protected $AddScore = 0;
    /**
     *大乱斗积分获取详细
     *
     * Generated from protobuf field <code>repeated int32 ScoreArray = 5;</code>
     */
    private $ScoreArray;
    /**
     *奖励道具
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.RewardItem Item = 6;</code>
     */
    private $Item;
    /**
     *比赛Id
     *
     * Generated from protobuf field <code>uint64 MatchId = 7;</code>
     */
    protected $MatchId = 0;
    /**
     * Generated from protobuf field <code>int32 ScuffleScore = 8;</code>
     */
    protected $ScuffleScore = 0;
    /**
     * 此局获得的经验
     *
     * Generated from protobuf field <code>int32 AddExp = 9;</code>
     */
    protected $AddExp = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Game\Protobuf\RaceResult[]|\Google\Protobuf\Internal\RepeatedField $Result
     *     @type int $AddCarProficiency
     *          增加的车熟练度
     *     @type int[]|\Google\Protobuf\Internal\RepeatedField $CarProficiencyArray
     *          增加熟练度明细
     *     @type int $AddScore
     *          变化的大乱斗积分
     *     @type int[]|\Google\Protobuf\Internal\RepeatedField $ScoreArray
     *          大乱斗积分获取详细
     *     @type \Game\Protobuf\RewardItem[]|\Google\Protobuf\Internal\RepeatedField $Item
     *          奖励道具
     *     @type int|string $MatchId
     *          比赛Id
     *     @type int $ScuffleScore
     *     @type int $AddExp
     *           此局获得的经验
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>repeated .Game.Protobuf.RaceResult Result = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getResult()
    {
        return $this->Result;
    }

    /**
     * Generated from protobuf field <code>repeated .Game.Protobuf.RaceResult Result = 1;</code>
     * @param \Game\Protobuf\RaceResult[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setResult($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Game\Protobuf\RaceResult::class);
        $this->Result = $arr;

        return $this;
    }

    /**
     *增加的车熟练度
     *
     * Generated from protobuf field <code>int32 AddCarProficiency = 2;</code>
     * @return int
     */
    public function getAddCarProficiency()
    {
        return $this->AddCarProficiency;
    }

    /**
     *增加的车熟练度
     *
     * Generated from protobuf field <code>int32 AddCarProficiency = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setAddCarProficiency($var)
    {
        GPBUtil::checkInt32($var);
        $this->AddCarProficiency = $var;

        return $this;
    }

    /**
     *增加熟练度明细
     *
     * Generated from protobuf field <code>repeated int32 CarProficiencyArray = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getCarProficiencyArray()
    {
        return $this->CarProficiencyArray;
    }

    /**
     *增加熟练度明细
     *
     * Generated from protobuf field <code>repeated int32 CarProficiencyArray = 3;</code>
     * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setCarProficiencyArray($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->CarProficiencyArray = $arr;

        return $this;
    }

    /**
     *变化的大乱斗积分
     *
     * Generated from protobuf field <code>int32 AddScore = 4;</code>
     * @return int
     */
    public function getAddScore()
    {
        return $this->AddScore;
    }

    /**
     *变化的大乱斗积分
     *
     * Generated from protobuf field <code>int32 AddScore = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setAddScore($var)
    {
        GPBUtil::checkInt32($var);
        $this->AddScore = $var;

        return $this;
    }

    /**
     *大乱斗积分获取详细
     *
     * Generated from protobuf field <code>repeated int32 ScoreArray = 5;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getScoreArray()
    {
        return $this->ScoreArray;
    }

    /**
     *大乱斗积分获取详细
     *
     * Generated from protobuf field <code>repeated int32 ScoreArray = 5;</code>
     * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setScoreArray($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->ScoreArray = $arr;

        return $this;
    }

    /**
     *奖励道具
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.RewardItem Item = 6;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getItem()
    {
        return $this->Item;
    }

    /**
     *奖励道具
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.RewardItem Item = 6;</code>
     * @param \Game\Protobuf\RewardItem[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setItem($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Game\Protobuf\RewardItem::class);
        $this->Item = $arr;

        return $this;
    }

    /**
     *比赛Id
     *
     * Generated from protobuf field <code>uint64 MatchId = 7;</code>
     * @return int|string
     */
    public function getMatchId()
    {
        return $this->MatchId;
    }

    /**
     *比赛Id
     *
     * Generated from protobuf field <code>uint64 MatchId = 7;</code>
     * @param int|string $var
     * @return $this
     */
    public function setMatchId($var)
    {
        GPBUtil::checkUint64($var);
        $this->MatchId = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * 此局获得的经验
     *
     * Generated from protobuf field <code>int32 AddExp = 9;</code>
     * @return int
     */
    public function getAddExp()
    {
        return $this->AddExp;
    }

    /**
     * 此局获得的经验
     *
     * Generated from protobuf field <code>int32 AddExp = 9;</code>
     * @param int $var
     * @return $this
     */
    public function setAddExp($var)
    {
        GPBUtil::checkInt32($var);
        $this->AddExp = $var;

        return $this;
    }

}

