|
|
@@ -1,287 +0,0 @@
|
|
|
-<?php
|
|
|
-# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
-# source: proto/game.proto
|
|
|
-
|
|
|
-namespace Uraus\Kku\Response;
|
|
|
-
|
|
|
-use Google\Protobuf\Internal\GPBType;
|
|
|
-use Google\Protobuf\Internal\RepeatedField;
|
|
|
-use Google\Protobuf\Internal\GPBUtil;
|
|
|
-
|
|
|
-/**
|
|
|
- * 商品元素
|
|
|
- *
|
|
|
- * Generated from protobuf message <code>uraus.kku.Response.ShopGoodItem</code>
|
|
|
- */
|
|
|
-class ShopGoodItem extends \Google\Protobuf\Internal\Message
|
|
|
-{
|
|
|
- /**
|
|
|
- * Generated from protobuf field <code>int64 id = 1;</code>
|
|
|
- */
|
|
|
- protected $id = 0;
|
|
|
- /**
|
|
|
- * 价格
|
|
|
- *
|
|
|
- * Generated from protobuf field <code>.uraus.kku.Common.Deduct coin = 2;</code>
|
|
|
- */
|
|
|
- protected $coin = null;
|
|
|
- /**
|
|
|
- * 商品
|
|
|
- *
|
|
|
- * Generated from protobuf field <code>.uraus.kku.Common.Reward item = 3;</code>
|
|
|
- */
|
|
|
- protected $item = null;
|
|
|
- /**
|
|
|
- * 分类
|
|
|
- *
|
|
|
- * Generated from protobuf field <code>string category = 4;</code>
|
|
|
- */
|
|
|
- protected $category = '';
|
|
|
- /**
|
|
|
- * 单次购买限制
|
|
|
- *
|
|
|
- * Generated from protobuf field <code>int64 limit = 5;</code>
|
|
|
- */
|
|
|
- protected $limit = 0;
|
|
|
- /**
|
|
|
- * 商品名字
|
|
|
- *
|
|
|
- * Generated from protobuf field <code>string name = 6;</code>
|
|
|
- */
|
|
|
- protected $name = '';
|
|
|
- /**
|
|
|
- * 商品描述
|
|
|
- *
|
|
|
- * Generated from protobuf field <code>string desc = 7;</code>
|
|
|
- */
|
|
|
- protected $desc = '';
|
|
|
-
|
|
|
- /**
|
|
|
- * Constructor.
|
|
|
- *
|
|
|
- * @param array $data {
|
|
|
- * Optional. Data for populating the Message object.
|
|
|
- *
|
|
|
- * @type int|string $id
|
|
|
- * @type \Uraus\Kku\Common\Deduct $coin
|
|
|
- * 价格
|
|
|
- * @type \Uraus\Kku\Common\Reward $item
|
|
|
- * 商品
|
|
|
- * @type string $category
|
|
|
- * 分类
|
|
|
- * @type int|string $limit
|
|
|
- * 单次购买限制
|
|
|
- * @type string $name
|
|
|
- * 商品名字
|
|
|
- * @type string $desc
|
|
|
- * 商品描述
|
|
|
- * }
|
|
|
- */
|
|
|
- public function __construct($data = NULL) {
|
|
|
- \GPBMetadata\Proto\Game::initOnce();
|
|
|
- parent::__construct($data);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Generated from protobuf field <code>int64 id = 1;</code>
|
|
|
- * @return int|string
|
|
|
- */
|
|
|
- public function getId()
|
|
|
- {
|
|
|
- return $this->id;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Generated from protobuf field <code>int64 id = 1;</code>
|
|
|
- * @param int|string $var
|
|
|
- * @return $this
|
|
|
- */
|
|
|
- public function setId($var)
|
|
|
- {
|
|
|
- GPBUtil::checkInt64($var);
|
|
|
- $this->id = $var;
|
|
|
-
|
|
|
- return $this;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 价格
|
|
|
- *
|
|
|
- * Generated from protobuf field <code>.uraus.kku.Common.Deduct coin = 2;</code>
|
|
|
- * @return \Uraus\Kku\Common\Deduct
|
|
|
- */
|
|
|
- public function getCoin()
|
|
|
- {
|
|
|
- return isset($this->coin) ? $this->coin : null;
|
|
|
- }
|
|
|
-
|
|
|
- public function hasCoin()
|
|
|
- {
|
|
|
- return isset($this->coin);
|
|
|
- }
|
|
|
-
|
|
|
- public function clearCoin()
|
|
|
- {
|
|
|
- unset($this->coin);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 价格
|
|
|
- *
|
|
|
- * Generated from protobuf field <code>.uraus.kku.Common.Deduct coin = 2;</code>
|
|
|
- * @param \Uraus\Kku\Common\Deduct $var
|
|
|
- * @return $this
|
|
|
- */
|
|
|
- public function setCoin($var)
|
|
|
- {
|
|
|
- GPBUtil::checkMessage($var, \Uraus\Kku\Common\Deduct::class);
|
|
|
- $this->coin = $var;
|
|
|
-
|
|
|
- return $this;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 商品
|
|
|
- *
|
|
|
- * Generated from protobuf field <code>.uraus.kku.Common.Reward item = 3;</code>
|
|
|
- * @return \Uraus\Kku\Common\Reward
|
|
|
- */
|
|
|
- public function getItem()
|
|
|
- {
|
|
|
- return isset($this->item) ? $this->item : null;
|
|
|
- }
|
|
|
-
|
|
|
- public function hasItem()
|
|
|
- {
|
|
|
- return isset($this->item);
|
|
|
- }
|
|
|
-
|
|
|
- public function clearItem()
|
|
|
- {
|
|
|
- unset($this->item);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 商品
|
|
|
- *
|
|
|
- * Generated from protobuf field <code>.uraus.kku.Common.Reward item = 3;</code>
|
|
|
- * @param \Uraus\Kku\Common\Reward $var
|
|
|
- * @return $this
|
|
|
- */
|
|
|
- public function setItem($var)
|
|
|
- {
|
|
|
- GPBUtil::checkMessage($var, \Uraus\Kku\Common\Reward::class);
|
|
|
- $this->item = $var;
|
|
|
-
|
|
|
- return $this;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 分类
|
|
|
- *
|
|
|
- * Generated from protobuf field <code>string category = 4;</code>
|
|
|
- * @return string
|
|
|
- */
|
|
|
- public function getCategory()
|
|
|
- {
|
|
|
- return $this->category;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 分类
|
|
|
- *
|
|
|
- * Generated from protobuf field <code>string category = 4;</code>
|
|
|
- * @param string $var
|
|
|
- * @return $this
|
|
|
- */
|
|
|
- public function setCategory($var)
|
|
|
- {
|
|
|
- GPBUtil::checkString($var, True);
|
|
|
- $this->category = $var;
|
|
|
-
|
|
|
- return $this;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 单次购买限制
|
|
|
- *
|
|
|
- * Generated from protobuf field <code>int64 limit = 5;</code>
|
|
|
- * @return int|string
|
|
|
- */
|
|
|
- public function getLimit()
|
|
|
- {
|
|
|
- return $this->limit;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 单次购买限制
|
|
|
- *
|
|
|
- * Generated from protobuf field <code>int64 limit = 5;</code>
|
|
|
- * @param int|string $var
|
|
|
- * @return $this
|
|
|
- */
|
|
|
- public function setLimit($var)
|
|
|
- {
|
|
|
- GPBUtil::checkInt64($var);
|
|
|
- $this->limit = $var;
|
|
|
-
|
|
|
- return $this;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 商品名字
|
|
|
- *
|
|
|
- * Generated from protobuf field <code>string name = 6;</code>
|
|
|
- * @return string
|
|
|
- */
|
|
|
- public function getName()
|
|
|
- {
|
|
|
- return $this->name;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 商品名字
|
|
|
- *
|
|
|
- * Generated from protobuf field <code>string name = 6;</code>
|
|
|
- * @param string $var
|
|
|
- * @return $this
|
|
|
- */
|
|
|
- public function setName($var)
|
|
|
- {
|
|
|
- GPBUtil::checkString($var, True);
|
|
|
- $this->name = $var;
|
|
|
-
|
|
|
- return $this;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 商品描述
|
|
|
- *
|
|
|
- * Generated from protobuf field <code>string desc = 7;</code>
|
|
|
- * @return string
|
|
|
- */
|
|
|
- public function getDesc()
|
|
|
- {
|
|
|
- return $this->desc;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 商品描述
|
|
|
- *
|
|
|
- * Generated from protobuf field <code>string desc = 7;</code>
|
|
|
- * @param string $var
|
|
|
- * @return $this
|
|
|
- */
|
|
|
- public function setDesc($var)
|
|
|
- {
|
|
|
- GPBUtil::checkString($var, True);
|
|
|
- $this->desc = $var;
|
|
|
-
|
|
|
- return $this;
|
|
|
- }
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
-// Adding a class alias for backwards compatibility with the previous class name.
|
|
|
-class_alias(ShopGoodItem::class, \Uraus\Kku\Response_ShopGoodItem::class);
|
|
|
-
|