<?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;

/**
 *-------------------------赛车商城start-----------------------------//
 *购买赛车商城道具
 *
 * Generated from protobuf message <code>Game.Protobuf.CGBuyShopCar</code>
 */
class CGBuyShopCar extends \Google\Protobuf\Internal\Message
{
    /**
     *shopCar表Id
     *
     * Generated from protobuf field <code>int32 Id = 1;</code>
     */
    protected $Id = 0;
    /**
     *优惠券TplId
     *
     * Generated from protobuf field <code>int32 CouponId = 2;</code>
     */
    protected $CouponId = 0;
    /**
     *改装参数,购买改装道具使用,参考CGGetCarExteriorRefit
     *
     * Generated from protobuf field <code>string Params = 3;</code>
     */
    protected $Params = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $Id
     *          shopCar表Id
     *     @type int $CouponId
     *          优惠券TplId
     *     @type string $Params
     *          改装参数,购买改装道具使用,参考CGGetCarExteriorRefit
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *shopCar表Id
     *
     * Generated from protobuf field <code>int32 Id = 1;</code>
     * @return int
     */
    public function getId()
    {
        return $this->Id;
    }

    /**
     *shopCar表Id
     *
     * Generated from protobuf field <code>int32 Id = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setId($var)
    {
        GPBUtil::checkInt32($var);
        $this->Id = $var;

        return $this;
    }

    /**
     *优惠券TplId
     *
     * Generated from protobuf field <code>int32 CouponId = 2;</code>
     * @return int
     */
    public function getCouponId()
    {
        return $this->CouponId;
    }

    /**
     *优惠券TplId
     *
     * Generated from protobuf field <code>int32 CouponId = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setCouponId($var)
    {
        GPBUtil::checkInt32($var);
        $this->CouponId = $var;

        return $this;
    }

    /**
     *改装参数,购买改装道具使用,参考CGGetCarExteriorRefit
     *
     * Generated from protobuf field <code>string Params = 3;</code>
     * @return string
     */
    public function getParams()
    {
        return $this->Params;
    }

    /**
     *改装参数,购买改装道具使用,参考CGGetCarExteriorRefit
     *
     * Generated from protobuf field <code>string Params = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setParams($var)
    {
        GPBUtil::checkString($var, True);
        $this->Params = $var;

        return $this;
    }

}

