<?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.GCNewCarNotice</code>
 */
class GCNewCarNotice extends \Google\Protobuf\Internal\Message
{
    /**
     *CarTplID
     *
     * Generated from protobuf field <code>repeated int32 NewCarId = 1;</code>
     */
    private $NewCarId;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int[]|\Google\Protobuf\Internal\RepeatedField $NewCarId
     *          CarTplID
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *CarTplID
     *
     * Generated from protobuf field <code>repeated int32 NewCarId = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getNewCarId()
    {
        return $this->NewCarId;
    }

    /**
     *CarTplID
     *
     * Generated from protobuf field <code>repeated int32 NewCarId = 1;</code>
     * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setNewCarId($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->NewCarId = $arr;

        return $this;
    }

}

