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