proto.api.CityPackageEnt
*/
class CityPackageEnt extends \Google\Protobuf\Internal\Message
{
/**
* 套餐信息
*
* Generated from protobuf field .proto.api.EntPackage package_info = 1;
*/
protected $package_info = null;
/**
* 套餐分类 1租电套餐 2车电一体 3租车套餐
*
* Generated from protobuf field .proto.api.DEVICE_USE_TYPE package_category = 2;
*/
protected $package_category = 0;
/**
* 支持的区县ID列表
*
* Generated from protobuf field repeated .proto.api.AreaEnt area_list = 3;
*/
private $area_list;
/**
* 电池标签信息
*
* Generated from protobuf field .proto.api.EntTag battery_tag_info = 4;
*/
protected $battery_tag_info = null;
/**
* 车型信息
*
* Generated from protobuf field .proto.api.CarModelEnt car_model_info = 5;
*/
protected $car_model_info = null;
/**
* 门店信息
*
* Generated from protobuf field .proto.api.EntAdmin shop_info = 6;
*/
protected $shop_info = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Proto\Api\EntPackage $package_info
* 套餐信息
* @type int $package_category
* 套餐分类 1租电套餐 2车电一体 3租车套餐
* @type array<\Proto\Api\AreaEnt>|\Google\Protobuf\Internal\RepeatedField $area_list
* 支持的区县ID列表
* @type \Proto\Api\EntTag $battery_tag_info
* 电池标签信息
* @type \Proto\Api\CarModelEnt $car_model_info
* 车型信息
* @type \Proto\Api\EntAdmin $shop_info
* 门店信息
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Api\EntCityPackage::initOnce();
parent::__construct($data);
}
/**
* 套餐信息
*
* Generated from protobuf field .proto.api.EntPackage package_info = 1;
* @return \Proto\Api\EntPackage|null
*/
public function getPackageInfo()
{
return $this->package_info;
}
public function hasPackageInfo()
{
return isset($this->package_info);
}
public function clearPackageInfo()
{
unset($this->package_info);
}
/**
* 套餐信息
*
* Generated from protobuf field .proto.api.EntPackage package_info = 1;
* @param \Proto\Api\EntPackage $var
* @return $this
*/
public function setPackageInfo($var)
{
GPBUtil::checkMessage($var, \Proto\Api\EntPackage::class);
$this->package_info = $var;
return $this;
}
/**
* 套餐分类 1租电套餐 2车电一体 3租车套餐
*
* Generated from protobuf field .proto.api.DEVICE_USE_TYPE package_category = 2;
* @return int
*/
public function getPackageCategory()
{
return $this->package_category;
}
/**
* 套餐分类 1租电套餐 2车电一体 3租车套餐
*
* Generated from protobuf field .proto.api.DEVICE_USE_TYPE package_category = 2;
* @param int $var
* @return $this
*/
public function setPackageCategory($var)
{
GPBUtil::checkEnum($var, \Proto\Api\DEVICE_USE_TYPE::class);
$this->package_category = $var;
return $this;
}
/**
* 支持的区县ID列表
*
* Generated from protobuf field repeated .proto.api.AreaEnt area_list = 3;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getAreaList()
{
return $this->area_list;
}
/**
* 支持的区县ID列表
*
* Generated from protobuf field repeated .proto.api.AreaEnt area_list = 3;
* @param array<\Proto\Api\AreaEnt>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setAreaList($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\Api\AreaEnt::class);
$this->area_list = $arr;
return $this;
}
/**
* 电池标签信息
*
* Generated from protobuf field .proto.api.EntTag battery_tag_info = 4;
* @return \Proto\Api\EntTag|null
*/
public function getBatteryTagInfo()
{
return $this->battery_tag_info;
}
public function hasBatteryTagInfo()
{
return isset($this->battery_tag_info);
}
public function clearBatteryTagInfo()
{
unset($this->battery_tag_info);
}
/**
* 电池标签信息
*
* Generated from protobuf field .proto.api.EntTag battery_tag_info = 4;
* @param \Proto\Api\EntTag $var
* @return $this
*/
public function setBatteryTagInfo($var)
{
GPBUtil::checkMessage($var, \Proto\Api\EntTag::class);
$this->battery_tag_info = $var;
return $this;
}
/**
* 车型信息
*
* Generated from protobuf field .proto.api.CarModelEnt car_model_info = 5;
* @return \Proto\Api\CarModelEnt|null
*/
public function getCarModelInfo()
{
return $this->car_model_info;
}
public function hasCarModelInfo()
{
return isset($this->car_model_info);
}
public function clearCarModelInfo()
{
unset($this->car_model_info);
}
/**
* 车型信息
*
* Generated from protobuf field .proto.api.CarModelEnt car_model_info = 5;
* @param \Proto\Api\CarModelEnt $var
* @return $this
*/
public function setCarModelInfo($var)
{
GPBUtil::checkMessage($var, \Proto\Api\CarModelEnt::class);
$this->car_model_info = $var;
return $this;
}
/**
* 门店信息
*
* Generated from protobuf field .proto.api.EntAdmin shop_info = 6;
* @return \Proto\Api\EntAdmin|null
*/
public function getShopInfo()
{
return $this->shop_info;
}
public function hasShopInfo()
{
return isset($this->shop_info);
}
public function clearShopInfo()
{
unset($this->shop_info);
}
/**
* 门店信息
*
* Generated from protobuf field .proto.api.EntAdmin shop_info = 6;
* @param \Proto\Api\EntAdmin $var
* @return $this
*/
public function setShopInfo($var)
{
GPBUtil::checkMessage($var, \Proto\Api\EntAdmin::class);
$this->shop_info = $var;
return $this;
}
}