<?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.GCDrivingPermit</code>
 */
class GCDrivingPermit extends \Google\Protobuf\Internal\Message
{
    /**
     *竞速车使用次数
     *
     * Generated from protobuf field <code>int32 CarUseNumRace = 1;</code>
     */
    protected $CarUseNumRace = 0;
    /**
     *干扰车使用次数
     *
     * Generated from protobuf field <code>int32 CarUseNumJam = 2;</code>
     */
    protected $CarUseNumJam = 0;
    /**
     *辅助车使用次数
     *
     * Generated from protobuf field <code>int32 CarUseNumHelp = 3;</code>
     */
    protected $CarUseNumHelp = 0;
    /**
     *车辆组完成度
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.DrivingPermitCarGroup Group = 4;</code>
     */
    private $Group;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $CarUseNumRace
     *          竞速车使用次数
     *     @type int $CarUseNumJam
     *          干扰车使用次数
     *     @type int $CarUseNumHelp
     *          辅助车使用次数
     *     @type \Game\Protobuf\DrivingPermitCarGroup[]|\Google\Protobuf\Internal\RepeatedField $Group
     *          车辆组完成度
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *竞速车使用次数
     *
     * Generated from protobuf field <code>int32 CarUseNumRace = 1;</code>
     * @return int
     */
    public function getCarUseNumRace()
    {
        return $this->CarUseNumRace;
    }

    /**
     *竞速车使用次数
     *
     * Generated from protobuf field <code>int32 CarUseNumRace = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setCarUseNumRace($var)
    {
        GPBUtil::checkInt32($var);
        $this->CarUseNumRace = $var;

        return $this;
    }

    /**
     *干扰车使用次数
     *
     * Generated from protobuf field <code>int32 CarUseNumJam = 2;</code>
     * @return int
     */
    public function getCarUseNumJam()
    {
        return $this->CarUseNumJam;
    }

    /**
     *干扰车使用次数
     *
     * Generated from protobuf field <code>int32 CarUseNumJam = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setCarUseNumJam($var)
    {
        GPBUtil::checkInt32($var);
        $this->CarUseNumJam = $var;

        return $this;
    }

    /**
     *辅助车使用次数
     *
     * Generated from protobuf field <code>int32 CarUseNumHelp = 3;</code>
     * @return int
     */
    public function getCarUseNumHelp()
    {
        return $this->CarUseNumHelp;
    }

    /**
     *辅助车使用次数
     *
     * Generated from protobuf field <code>int32 CarUseNumHelp = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setCarUseNumHelp($var)
    {
        GPBUtil::checkInt32($var);
        $this->CarUseNumHelp = $var;

        return $this;
    }

    /**
     *车辆组完成度
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.DrivingPermitCarGroup Group = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getGroup()
    {
        return $this->Group;
    }

    /**
     *车辆组完成度
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.DrivingPermitCarGroup Group = 4;</code>
     * @param \Game\Protobuf\DrivingPermitCarGroup[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setGroup($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Game\Protobuf\DrivingPermitCarGroup::class);
        $this->Group = $arr;

        return $this;
    }

}

