<?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.GCChangeCRoomPlayerCar</code>
 */
class GCChangeCRoomPlayerCar extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 Code = 1;</code>
     */
    protected $Code = 0;
    /**
     * Generated from protobuf field <code>uint64 PlayerID = 2;</code>
     */
    protected $PlayerID = 0;
    /**
     * Generated from protobuf field <code>int32 CarTplID = 3;</code>
     */
    protected $CarTplID = 0;
    /**
     * Generated from protobuf field <code>string ExteriorRefit = 4;</code>
     */
    protected $ExteriorRefit = '';
    /**
     * 熟练度等级
     *
     * Generated from protobuf field <code>int32 ProficiencyLv = 5;</code>
     */
    protected $ProficiencyLv = 0;
    /**
     * 熟练度经验
     *
     * Generated from protobuf field <code>int32 Proficiency = 6;</code>
     */
    protected $Proficiency = 0;
    /**
     * 车等级
     *
     * Generated from protobuf field <code>int32 CarLv = 7;</code>
     */
    protected $CarLv = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $Code
     *     @type int|string $PlayerID
     *     @type int $CarTplID
     *     @type string $ExteriorRefit
     *     @type int $ProficiencyLv
     *           熟练度等级
     *     @type int $Proficiency
     *           熟练度经验
     *     @type int $CarLv
     *           车等级
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>uint64 PlayerID = 2;</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 CarTplID = 3;</code>
     * @return int
     */
    public function getCarTplID()
    {
        return $this->CarTplID;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string ExteriorRefit = 4;</code>
     * @return string
     */
    public function getExteriorRefit()
    {
        return $this->ExteriorRefit;
    }

    /**
     * Generated from protobuf field <code>string ExteriorRefit = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setExteriorRefit($var)
    {
        GPBUtil::checkString($var, True);
        $this->ExteriorRefit = $var;

        return $this;
    }

    /**
     * 熟练度等级
     *
     * Generated from protobuf field <code>int32 ProficiencyLv = 5;</code>
     * @return int
     */
    public function getProficiencyLv()
    {
        return $this->ProficiencyLv;
    }

    /**
     * 熟练度等级
     *
     * Generated from protobuf field <code>int32 ProficiencyLv = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setProficiencyLv($var)
    {
        GPBUtil::checkInt32($var);
        $this->ProficiencyLv = $var;

        return $this;
    }

    /**
     * 熟练度经验
     *
     * Generated from protobuf field <code>int32 Proficiency = 6;</code>
     * @return int
     */
    public function getProficiency()
    {
        return $this->Proficiency;
    }

    /**
     * 熟练度经验
     *
     * Generated from protobuf field <code>int32 Proficiency = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setProficiency($var)
    {
        GPBUtil::checkInt32($var);
        $this->Proficiency = $var;

        return $this;
    }

    /**
     * 车等级
     *
     * Generated from protobuf field <code>int32 CarLv = 7;</code>
     * @return int
     */
    public function getCarLv()
    {
        return $this->CarLv;
    }

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

        return $this;
    }

}

