<?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.DrivingPermitCarGroup</code>
 */
class DrivingPermitCarGroup extends \Google\Protobuf\Internal\Message
{
    /**
     *组id
     *
     * Generated from protobuf field <code>int32 GroupId = 1;</code>
     */
    protected $GroupId = 0;
    /**
     *车辆组完成度
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.CarGroups CarGroup = 2;</code>
     */
    private $CarGroup;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $GroupId
     *          组id
     *     @type \Game\Protobuf\CarGroups[]|\Google\Protobuf\Internal\RepeatedField $CarGroup
     *          车辆组完成度
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

}

