<?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.PublicPool</code>
 */
class PublicPool extends \Google\Protobuf\Internal\Message
{
    /**
     *顺序索引
     *
     * Generated from protobuf field <code>int32 Index = 1;</code>
     */
    protected $Index = 0;
    /**
     *车TplId
     *
     * Generated from protobuf field <code>int32 CarTplId = 2;</code>
     */
    protected $CarTplId = 0;
    /**
     * Generated from protobuf field <code>int32 Cd = 3;</code>
     */
    protected $Cd = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $Index
     *          顺序索引
     *     @type int $CarTplId
     *          车TplId
     *     @type int $Cd
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *顺序索引
     *
     * Generated from protobuf field <code>int32 Index = 1;</code>
     * @return int
     */
    public function getIndex()
    {
        return $this->Index;
    }

    /**
     *顺序索引
     *
     * Generated from protobuf field <code>int32 Index = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setIndex($var)
    {
        GPBUtil::checkInt32($var);
        $this->Index = $var;

        return $this;
    }

    /**
     *车TplId
     *
     * Generated from protobuf field <code>int32 CarTplId = 2;</code>
     * @return int
     */
    public function getCarTplId()
    {
        return $this->CarTplId;
    }

    /**
     *车TplId
     *
     * Generated from protobuf field <code>int32 CarTplId = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setCarTplId($var)
    {
        GPBUtil::checkInt32($var);
        $this->CarTplId = $var;

        return $this;
    }

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

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

        return $this;
    }

}

