123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # NO CHECKED-IN PROTOBUF GENCODE
- # source: api/EntCityPackage.proto
- namespace Proto\Api;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * 套餐开通的地区
- *
- * Generated from protobuf message <code>proto.api.PackageAreaEnt</code>
- */
- class PackageAreaEnt extends \Google\Protobuf\Internal\Message
- {
- /**
- * 基本区县信息
- *
- * Generated from protobuf field <code>.proto.api.AreaEnt area_info = 1;</code>
- */
- protected $area_info = null;
- /**
- * 开通状态
- *
- * Generated from protobuf field <code>.proto.api.YES_NO open_status = 2;</code>
- */
- protected $open_status = 0;
- /**
- * 是否可以选中
- *
- * Generated from protobuf field <code>bool is_can_select = 3;</code>
- */
- protected $is_can_select = false;
- /**
- * 是否已经选中
- *
- * Generated from protobuf field <code>bool is_selected = 4;</code>
- */
- protected $is_selected = false;
- /**
- * 子级门店
- *
- * Generated from protobuf field <code>repeated .proto.api.PackageAreaEnt children = 5;</code>
- */
- private $children;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Proto\Api\AreaEnt $area_info
- * 基本区县信息
- * @type int $open_status
- * 开通状态
- * @type bool $is_can_select
- * 是否可以选中
- * @type bool $is_selected
- * 是否已经选中
- * @type array<\Proto\Api\PackageAreaEnt>|\Google\Protobuf\Internal\RepeatedField $children
- * 子级门店
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Api\EntCityPackage::initOnce();
- parent::__construct($data);
- }
- /**
- * 基本区县信息
- *
- * Generated from protobuf field <code>.proto.api.AreaEnt area_info = 1;</code>
- * @return \Proto\Api\AreaEnt|null
- */
- public function getAreaInfo()
- {
- return $this->area_info;
- }
- public function hasAreaInfo()
- {
- return isset($this->area_info);
- }
- public function clearAreaInfo()
- {
- unset($this->area_info);
- }
- /**
- * 基本区县信息
- *
- * Generated from protobuf field <code>.proto.api.AreaEnt area_info = 1;</code>
- * @param \Proto\Api\AreaEnt $var
- * @return $this
- */
- public function setAreaInfo($var)
- {
- GPBUtil::checkMessage($var, \Proto\Api\AreaEnt::class);
- $this->area_info = $var;
- return $this;
- }
- /**
- * 开通状态
- *
- * Generated from protobuf field <code>.proto.api.YES_NO open_status = 2;</code>
- * @return int
- */
- public function getOpenStatus()
- {
- return $this->open_status;
- }
- /**
- * 开通状态
- *
- * Generated from protobuf field <code>.proto.api.YES_NO open_status = 2;</code>
- * @param int $var
- * @return $this
- */
- public function setOpenStatus($var)
- {
- GPBUtil::checkEnum($var, \Proto\Api\YES_NO::class);
- $this->open_status = $var;
- return $this;
- }
- /**
- * 是否可以选中
- *
- * Generated from protobuf field <code>bool is_can_select = 3;</code>
- * @return bool
- */
- public function getIsCanSelect()
- {
- return $this->is_can_select;
- }
- /**
- * 是否可以选中
- *
- * Generated from protobuf field <code>bool is_can_select = 3;</code>
- * @param bool $var
- * @return $this
- */
- public function setIsCanSelect($var)
- {
- GPBUtil::checkBool($var);
- $this->is_can_select = $var;
- return $this;
- }
- /**
- * 是否已经选中
- *
- * Generated from protobuf field <code>bool is_selected = 4;</code>
- * @return bool
- */
- public function getIsSelected()
- {
- return $this->is_selected;
- }
- /**
- * 是否已经选中
- *
- * Generated from protobuf field <code>bool is_selected = 4;</code>
- * @param bool $var
- * @return $this
- */
- public function setIsSelected($var)
- {
- GPBUtil::checkBool($var);
- $this->is_selected = $var;
- return $this;
- }
- /**
- * 子级门店
- *
- * Generated from protobuf field <code>repeated .proto.api.PackageAreaEnt children = 5;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getChildren()
- {
- return $this->children;
- }
- /**
- * 子级门店
- *
- * Generated from protobuf field <code>repeated .proto.api.PackageAreaEnt children = 5;</code>
- * @param array<\Proto\Api\PackageAreaEnt>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setChildren($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\Api\PackageAreaEnt::class);
- $this->children = $arr;
- return $this;
- }
- }
|