PackageAreaEnt.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # NO CHECKED-IN PROTOBUF GENCODE
  4. # source: api/EntCityPackage.proto
  5. namespace Proto\Api;
  6. use Google\Protobuf\Internal\GPBType;
  7. use Google\Protobuf\Internal\RepeatedField;
  8. use Google\Protobuf\Internal\GPBUtil;
  9. /**
  10. * 套餐开通的地区
  11. *
  12. * Generated from protobuf message <code>proto.api.PackageAreaEnt</code>
  13. */
  14. class PackageAreaEnt extends \Google\Protobuf\Internal\Message
  15. {
  16. /**
  17. * 基本区县信息
  18. *
  19. * Generated from protobuf field <code>.proto.api.AreaEnt area_info = 1;</code>
  20. */
  21. protected $area_info = null;
  22. /**
  23. * 开通状态
  24. *
  25. * Generated from protobuf field <code>.proto.api.YES_NO open_status = 2;</code>
  26. */
  27. protected $open_status = 0;
  28. /**
  29. * 是否可以选中
  30. *
  31. * Generated from protobuf field <code>bool is_can_select = 3;</code>
  32. */
  33. protected $is_can_select = false;
  34. /**
  35. * 是否已经选中
  36. *
  37. * Generated from protobuf field <code>bool is_selected = 4;</code>
  38. */
  39. protected $is_selected = false;
  40. /**
  41. * 子级门店
  42. *
  43. * Generated from protobuf field <code>repeated .proto.api.PackageAreaEnt children = 5;</code>
  44. */
  45. private $children;
  46. /**
  47. * Constructor.
  48. *
  49. * @param array $data {
  50. * Optional. Data for populating the Message object.
  51. *
  52. * @type \Proto\Api\AreaEnt $area_info
  53. * 基本区县信息
  54. * @type int $open_status
  55. * 开通状态
  56. * @type bool $is_can_select
  57. * 是否可以选中
  58. * @type bool $is_selected
  59. * 是否已经选中
  60. * @type array<\Proto\Api\PackageAreaEnt>|\Google\Protobuf\Internal\RepeatedField $children
  61. * 子级门店
  62. * }
  63. */
  64. public function __construct($data = NULL) {
  65. \GPBMetadata\Api\EntCityPackage::initOnce();
  66. parent::__construct($data);
  67. }
  68. /**
  69. * 基本区县信息
  70. *
  71. * Generated from protobuf field <code>.proto.api.AreaEnt area_info = 1;</code>
  72. * @return \Proto\Api\AreaEnt|null
  73. */
  74. public function getAreaInfo()
  75. {
  76. return $this->area_info;
  77. }
  78. public function hasAreaInfo()
  79. {
  80. return isset($this->area_info);
  81. }
  82. public function clearAreaInfo()
  83. {
  84. unset($this->area_info);
  85. }
  86. /**
  87. * 基本区县信息
  88. *
  89. * Generated from protobuf field <code>.proto.api.AreaEnt area_info = 1;</code>
  90. * @param \Proto\Api\AreaEnt $var
  91. * @return $this
  92. */
  93. public function setAreaInfo($var)
  94. {
  95. GPBUtil::checkMessage($var, \Proto\Api\AreaEnt::class);
  96. $this->area_info = $var;
  97. return $this;
  98. }
  99. /**
  100. * 开通状态
  101. *
  102. * Generated from protobuf field <code>.proto.api.YES_NO open_status = 2;</code>
  103. * @return int
  104. */
  105. public function getOpenStatus()
  106. {
  107. return $this->open_status;
  108. }
  109. /**
  110. * 开通状态
  111. *
  112. * Generated from protobuf field <code>.proto.api.YES_NO open_status = 2;</code>
  113. * @param int $var
  114. * @return $this
  115. */
  116. public function setOpenStatus($var)
  117. {
  118. GPBUtil::checkEnum($var, \Proto\Api\YES_NO::class);
  119. $this->open_status = $var;
  120. return $this;
  121. }
  122. /**
  123. * 是否可以选中
  124. *
  125. * Generated from protobuf field <code>bool is_can_select = 3;</code>
  126. * @return bool
  127. */
  128. public function getIsCanSelect()
  129. {
  130. return $this->is_can_select;
  131. }
  132. /**
  133. * 是否可以选中
  134. *
  135. * Generated from protobuf field <code>bool is_can_select = 3;</code>
  136. * @param bool $var
  137. * @return $this
  138. */
  139. public function setIsCanSelect($var)
  140. {
  141. GPBUtil::checkBool($var);
  142. $this->is_can_select = $var;
  143. return $this;
  144. }
  145. /**
  146. * 是否已经选中
  147. *
  148. * Generated from protobuf field <code>bool is_selected = 4;</code>
  149. * @return bool
  150. */
  151. public function getIsSelected()
  152. {
  153. return $this->is_selected;
  154. }
  155. /**
  156. * 是否已经选中
  157. *
  158. * Generated from protobuf field <code>bool is_selected = 4;</code>
  159. * @param bool $var
  160. * @return $this
  161. */
  162. public function setIsSelected($var)
  163. {
  164. GPBUtil::checkBool($var);
  165. $this->is_selected = $var;
  166. return $this;
  167. }
  168. /**
  169. * 子级门店
  170. *
  171. * Generated from protobuf field <code>repeated .proto.api.PackageAreaEnt children = 5;</code>
  172. * @return \Google\Protobuf\Internal\RepeatedField
  173. */
  174. public function getChildren()
  175. {
  176. return $this->children;
  177. }
  178. /**
  179. * 子级门店
  180. *
  181. * Generated from protobuf field <code>repeated .proto.api.PackageAreaEnt children = 5;</code>
  182. * @param array<\Proto\Api\PackageAreaEnt>|\Google\Protobuf\Internal\RepeatedField $var
  183. * @return $this
  184. */
  185. public function setChildren($var)
  186. {
  187. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\Api\PackageAreaEnt::class);
  188. $this->children = $arr;
  189. return $this;
  190. }
  191. }