<?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.CGSelectCar</code>
 */
class CGSelectCar extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 Step = 1;</code>
     */
    protected $Step = 0;
    /**
     * 车辆模板Id
     *
     * Generated from protobuf field <code>int32 CarTplID = 2;</code>
     */
    protected $CarTplID = 0;
    /**
     * 车辆对应道具表ID
     *
     * Generated from protobuf field <code>int32 ItemID = 3;</code>
     */
    protected $ItemID = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $Step
     *     @type int $CarTplID
     *           车辆模板Id
     *     @type int $ItemID
     *           车辆对应道具表ID
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * 车辆模板Id
     *
     * Generated from protobuf field <code>int32 CarTplID = 2;</code>
     * @return int
     */
    public function getCarTplID()
    {
        return $this->CarTplID;
    }

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

        return $this;
    }

    /**
     * 车辆对应道具表ID
     *
     * Generated from protobuf field <code>int32 ItemID = 3;</code>
     * @return int
     */
    public function getItemID()
    {
        return $this->ItemID;
    }

    /**
     * 车辆对应道具表ID
     *
     * Generated from protobuf field <code>int32 ItemID = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setItemID($var)
    {
        GPBUtil::checkInt32($var);
        $this->ItemID = $var;

        return $this;
    }

}

