<?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.GCDrivingLicense</code>
 */
class GCDrivingLicense extends \Google\Protobuf\Internal\Message
{
    /**
     *已获得驾照等级 0为没有 1->C 2->B 3->A 4->S 5->S1星 6->S2星 7->S3星
     *
     * Generated from protobuf field <code>int32 DrivingLicenseLv = 1;</code>
     */
    protected $DrivingLicenseLv = 0;
    /**
     *已获得的每级驾照获得日期
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.DLDate Date = 2;</code>
     */
    private $Date;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $DrivingLicenseLv
     *          已获得驾照等级 0为没有 1->C 2->B 3->A 4->S 5->S1星 6->S2星 7->S3星
     *     @type \Game\Protobuf\DLDate[]|\Google\Protobuf\Internal\RepeatedField $Date
     *          已获得的每级驾照获得日期
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *已获得驾照等级 0为没有 1->C 2->B 3->A 4->S 5->S1星 6->S2星 7->S3星
     *
     * Generated from protobuf field <code>int32 DrivingLicenseLv = 1;</code>
     * @return int
     */
    public function getDrivingLicenseLv()
    {
        return $this->DrivingLicenseLv;
    }

    /**
     *已获得驾照等级 0为没有 1->C 2->B 3->A 4->S 5->S1星 6->S2星 7->S3星
     *
     * Generated from protobuf field <code>int32 DrivingLicenseLv = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setDrivingLicenseLv($var)
    {
        GPBUtil::checkInt32($var);
        $this->DrivingLicenseLv = $var;

        return $this;
    }

    /**
     *已获得的每级驾照获得日期
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.DLDate Date = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDate()
    {
        return $this->Date;
    }

    /**
     *已获得的每级驾照获得日期
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.DLDate Date = 2;</code>
     * @param \Game\Protobuf\DLDate[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDate($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Game\Protobuf\DLDate::class);
        $this->Date = $arr;

        return $this;
    }

}

