<?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.GCReplyRefitData</code>
 */
class GCReplyRefitData extends \Google\Protobuf\Internal\Message
{
    /**
     *改装错误码 0成功
     *
     * Generated from protobuf field <code>int32 Code = 1;</code>
     */
    protected $Code = 0;
    /**
     *Car Uid
     *
     * Generated from protobuf field <code>uint64 Uid = 2;</code>
     */
    protected $Uid = 0;
    /**
     *改装数据 id-val|id-val
     *
     * Generated from protobuf field <code>string Attr = 3;</code>
     */
    protected $Attr = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $Code
     *          改装错误码 0成功
     *     @type int|string $Uid
     *          Car Uid
     *     @type string $Attr
     *          改装数据 id-val|id-val
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *改装错误码 0成功
     *
     * Generated from protobuf field <code>int32 Code = 1;</code>
     * @return int
     */
    public function getCode()
    {
        return $this->Code;
    }

    /**
     *改装错误码 0成功
     *
     * Generated from protobuf field <code>int32 Code = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setCode($var)
    {
        GPBUtil::checkInt32($var);
        $this->Code = $var;

        return $this;
    }

    /**
     *Car Uid
     *
     * Generated from protobuf field <code>uint64 Uid = 2;</code>
     * @return int|string
     */
    public function getUid()
    {
        return $this->Uid;
    }

    /**
     *Car Uid
     *
     * Generated from protobuf field <code>uint64 Uid = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setUid($var)
    {
        GPBUtil::checkUint64($var);
        $this->Uid = $var;

        return $this;
    }

    /**
     *改装数据 id-val|id-val
     *
     * Generated from protobuf field <code>string Attr = 3;</code>
     * @return string
     */
    public function getAttr()
    {
        return $this->Attr;
    }

    /**
     *改装数据 id-val|id-val
     *
     * Generated from protobuf field <code>string Attr = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setAttr($var)
    {
        GPBUtil::checkString($var, True);
        $this->Attr = $var;

        return $this;
    }

}

