proto.api.PackageAreaEnt
*/
class PackageAreaEnt extends \Google\Protobuf\Internal\Message
{
/**
* 基本区县信息
*
* Generated from protobuf field .proto.api.AreaEnt area_info = 1;
*/
protected $area_info = null;
/**
* 开通状态
*
* Generated from protobuf field .proto.api.YES_NO open_status = 2;
*/
protected $open_status = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Proto\Api\AreaEnt $area_info
* 基本区县信息
* @type int $open_status
* 开通状态
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Api\EntCityPackage::initOnce();
parent::__construct($data);
}
/**
* 基本区县信息
*
* Generated from protobuf field .proto.api.AreaEnt area_info = 1;
* @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 .proto.api.AreaEnt area_info = 1;
* @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 .proto.api.YES_NO open_status = 2;
* @return int
*/
public function getOpenStatus()
{
return $this->open_status;
}
/**
* 开通状态
*
* Generated from protobuf field .proto.api.YES_NO open_status = 2;
* @param int $var
* @return $this
*/
public function setOpenStatus($var)
{
GPBUtil::checkEnum($var, \Proto\Api\YES_NO::class);
$this->open_status = $var;
return $this;
}
}