PetLifeSkill.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: proto/game.proto
  4. namespace Uraus\Kku\Common;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * 生活技能
  10. *
  11. * Generated from protobuf message <code>uraus.kku.Common.PetLifeSkill</code>
  12. */
  13. class PetLifeSkill extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * 技能ID
  17. *
  18. * Generated from protobuf field <code>int32 skill_id = 1;</code>
  19. */
  20. protected $skill_id = 0;
  21. /**
  22. *是否可以使用
  23. *
  24. * Generated from protobuf field <code>bool canuse = 2;</code>
  25. */
  26. protected $canuse = false;
  27. /**
  28. *剩余时间
  29. *
  30. * Generated from protobuf field <code>int64 curnum = 3;</code>
  31. */
  32. protected $curnum = 0;
  33. /**
  34. *技能最大时间
  35. *
  36. * Generated from protobuf field <code>int64 maxnum = 4;</code>
  37. */
  38. protected $maxnum = 0;
  39. /**
  40. * 技能到期 时间戳
  41. *
  42. * Generated from protobuf field <code>int64 end_times = 5;</code>
  43. */
  44. protected $end_times = 0;
  45. /**
  46. * Constructor.
  47. *
  48. * @param array $data {
  49. * Optional. Data for populating the Message object.
  50. *
  51. * @type int $skill_id
  52. * 技能ID
  53. * @type bool $canuse
  54. * 是否可以使用
  55. * @type int|string $curnum
  56. * 剩余时间
  57. * @type int|string $maxnum
  58. * 技能最大时间
  59. * @type int|string $end_times
  60. * 技能到期 时间戳
  61. * }
  62. */
  63. public function __construct($data = NULL) {
  64. \GPBMetadata\Proto\Game::initOnce();
  65. parent::__construct($data);
  66. }
  67. /**
  68. * 技能ID
  69. *
  70. * Generated from protobuf field <code>int32 skill_id = 1;</code>
  71. * @return int
  72. */
  73. public function getSkillId()
  74. {
  75. return $this->skill_id;
  76. }
  77. /**
  78. * 技能ID
  79. *
  80. * Generated from protobuf field <code>int32 skill_id = 1;</code>
  81. * @param int $var
  82. * @return $this
  83. */
  84. public function setSkillId($var)
  85. {
  86. GPBUtil::checkInt32($var);
  87. $this->skill_id = $var;
  88. return $this;
  89. }
  90. /**
  91. *是否可以使用
  92. *
  93. * Generated from protobuf field <code>bool canuse = 2;</code>
  94. * @return bool
  95. */
  96. public function getCanuse()
  97. {
  98. return $this->canuse;
  99. }
  100. /**
  101. *是否可以使用
  102. *
  103. * Generated from protobuf field <code>bool canuse = 2;</code>
  104. * @param bool $var
  105. * @return $this
  106. */
  107. public function setCanuse($var)
  108. {
  109. GPBUtil::checkBool($var);
  110. $this->canuse = $var;
  111. return $this;
  112. }
  113. /**
  114. *剩余时间
  115. *
  116. * Generated from protobuf field <code>int64 curnum = 3;</code>
  117. * @return int|string
  118. */
  119. public function getCurnum()
  120. {
  121. return $this->curnum;
  122. }
  123. /**
  124. *剩余时间
  125. *
  126. * Generated from protobuf field <code>int64 curnum = 3;</code>
  127. * @param int|string $var
  128. * @return $this
  129. */
  130. public function setCurnum($var)
  131. {
  132. GPBUtil::checkInt64($var);
  133. $this->curnum = $var;
  134. return $this;
  135. }
  136. /**
  137. *技能最大时间
  138. *
  139. * Generated from protobuf field <code>int64 maxnum = 4;</code>
  140. * @return int|string
  141. */
  142. public function getMaxnum()
  143. {
  144. return $this->maxnum;
  145. }
  146. /**
  147. *技能最大时间
  148. *
  149. * Generated from protobuf field <code>int64 maxnum = 4;</code>
  150. * @param int|string $var
  151. * @return $this
  152. */
  153. public function setMaxnum($var)
  154. {
  155. GPBUtil::checkInt64($var);
  156. $this->maxnum = $var;
  157. return $this;
  158. }
  159. /**
  160. * 技能到期 时间戳
  161. *
  162. * Generated from protobuf field <code>int64 end_times = 5;</code>
  163. * @return int|string
  164. */
  165. public function getEndTimes()
  166. {
  167. return $this->end_times;
  168. }
  169. /**
  170. * 技能到期 时间戳
  171. *
  172. * Generated from protobuf field <code>int64 end_times = 5;</code>
  173. * @param int|string $var
  174. * @return $this
  175. */
  176. public function setEndTimes($var)
  177. {
  178. GPBUtil::checkInt64($var);
  179. $this->end_times = $var;
  180. return $this;
  181. }
  182. }
  183. // Adding a class alias for backwards compatibility with the previous class name.
  184. class_alias(PetLifeSkill::class, \Uraus\Kku\Common_PetLifeSkill::class);