<?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.CGGetCarProficiencyReward</code>
 */
class CGGetCarProficiencyReward extends \Google\Protobuf\Internal\Message
{
    /**
     *car TplID
     *
     * Generated from protobuf field <code>int32 CarId = 1;</code>
     */
    protected $CarId = 0;
    /**
     *是否一键领取 true为一键领取,如果为一键领取,不检查下面参数
     *
     * Generated from protobuf field <code>bool OneKey = 2;</code>
     */
    protected $OneKey = false;
    /**
     *ProficientCar表Level          
     *
     * Generated from protobuf field <code>int32 LevelId = 3;</code>
     */
    protected $LevelId = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $CarId
     *          car TplID
     *     @type bool $OneKey
     *          是否一键领取 true为一键领取,如果为一键领取,不检查下面参数
     *     @type int $LevelId
     *          ProficientCar表Level          
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     *是否一键领取 true为一键领取,如果为一键领取,不检查下面参数
     *
     * Generated from protobuf field <code>bool OneKey = 2;</code>
     * @return bool
     */
    public function getOneKey()
    {
        return $this->OneKey;
    }

    /**
     *是否一键领取 true为一键领取,如果为一键领取,不检查下面参数
     *
     * Generated from protobuf field <code>bool OneKey = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setOneKey($var)
    {
        GPBUtil::checkBool($var);
        $this->OneKey = $var;

        return $this;
    }

    /**
     *ProficientCar表Level          
     *
     * Generated from protobuf field <code>int32 LevelId = 3;</code>
     * @return int
     */
    public function getLevelId()
    {
        return $this->LevelId;
    }

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

        return $this;
    }

}

