proto.api.CityPackageAddReq.AddItem
*/
class AddItem extends \Google\Protobuf\Internal\Message
{
/**
* 套餐名称
*
* Generated from protobuf field string name = 1;
*/
protected $name = '';
/**
* 套餐类型
*
* Generated from protobuf field .proto.api.PackageType type = 2;
*/
protected $type = 0;
/**
* 押金
*
* Generated from protobuf field int32 pledge = 3;
*/
protected $pledge = 0;
/**
* 天数
*
* Generated from protobuf field int32 total_day = 4;
*/
protected $total_day = 0;
/**
* 次数
*
* Generated from protobuf field int32 total_num = 5;
*/
protected $total_num = 0;
/**
* 套餐显示价格
*
* Generated from protobuf field int32 show_money = 6;
*/
protected $show_money = 0;
/**
* 套餐实际价格,元
*
* Generated from protobuf field int32 money = 7;
*/
protected $money = 0;
/**
* 单次换电价格,元
*
* Generated from protobuf field int32 exchange_money = 8;
*/
protected $exchange_money = 0;
/**
* 购买限制数量
*
* Generated from protobuf field int32 buy_limit = 9;
*/
protected $buy_limit = 0;
/**
* 上下架状态
*
* Generated from protobuf field .proto.api.LISTED_STATUS listed_status = 10;
*/
protected $listed_status = 0;
/**
* 库存
*
* Generated from protobuf field int32 stock = 12;
*/
protected $stock = 0;
/**
* 套餐分类 1租电套餐 2车电一体 3租车套餐
*
* Generated from protobuf field .proto.api.DEVICE_USE_TYPE package_category = 13;
*/
protected $package_category = 0;
/**
* 支持的区县ID列表
*
* Generated from protobuf field repeated .proto.api.AreaEnt area_list = 14;
*/
private $area_list;
/**
* 电池标签信息
*
* Generated from protobuf field .proto.api.EntTag battery_tag_info = 15;
*/
protected $battery_tag_info = null;
/**
* 车型信息
*
* Generated from protobuf field .proto.api.CarModelEnt car_model_info = 16;
*/
protected $car_model_info = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $name
* 套餐名称
* @type int $type
* 套餐类型
* @type int $pledge
* 押金
* @type int $total_day
* 天数
* @type int $total_num
* 次数
* @type int $show_money
* 套餐显示价格
* @type int $money
* 套餐实际价格,元
* @type int $exchange_money
* 单次换电价格,元
* @type int $buy_limit
* 购买限制数量
* @type int $listed_status
* 上下架状态
* @type int $stock
* 库存
* @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
* 车型信息
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Api\CityPackage::initOnce();
parent::__construct($data);
}
/**
* 套餐名称
*
* Generated from protobuf field string name = 1;
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* 套餐名称
*
* Generated from protobuf field string name = 1;
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* 套餐类型
*
* Generated from protobuf field .proto.api.PackageType type = 2;
* @return int
*/
public function getType()
{
return $this->type;
}
/**
* 套餐类型
*
* Generated from protobuf field .proto.api.PackageType type = 2;
* @param int $var
* @return $this
*/
public function setType($var)
{
GPBUtil::checkEnum($var, \Proto\Api\PackageType::class);
$this->type = $var;
return $this;
}
/**
* 押金
*
* Generated from protobuf field int32 pledge = 3;
* @return int
*/
public function getPledge()
{
return $this->pledge;
}
/**
* 押金
*
* Generated from protobuf field int32 pledge = 3;
* @param int $var
* @return $this
*/
public function setPledge($var)
{
GPBUtil::checkInt32($var);
$this->pledge = $var;
return $this;
}
/**
* 天数
*
* Generated from protobuf field int32 total_day = 4;
* @return int
*/
public function getTotalDay()
{
return $this->total_day;
}
/**
* 天数
*
* Generated from protobuf field int32 total_day = 4;
* @param int $var
* @return $this
*/
public function setTotalDay($var)
{
GPBUtil::checkInt32($var);
$this->total_day = $var;
return $this;
}
/**
* 次数
*
* Generated from protobuf field int32 total_num = 5;
* @return int
*/
public function getTotalNum()
{
return $this->total_num;
}
/**
* 次数
*
* Generated from protobuf field int32 total_num = 5;
* @param int $var
* @return $this
*/
public function setTotalNum($var)
{
GPBUtil::checkInt32($var);
$this->total_num = $var;
return $this;
}
/**
* 套餐显示价格
*
* Generated from protobuf field int32 show_money = 6;
* @return int
*/
public function getShowMoney()
{
return $this->show_money;
}
/**
* 套餐显示价格
*
* Generated from protobuf field int32 show_money = 6;
* @param int $var
* @return $this
*/
public function setShowMoney($var)
{
GPBUtil::checkInt32($var);
$this->show_money = $var;
return $this;
}
/**
* 套餐实际价格,元
*
* Generated from protobuf field int32 money = 7;
* @return int
*/
public function getMoney()
{
return $this->money;
}
/**
* 套餐实际价格,元
*
* Generated from protobuf field int32 money = 7;
* @param int $var
* @return $this
*/
public function setMoney($var)
{
GPBUtil::checkInt32($var);
$this->money = $var;
return $this;
}
/**
* 单次换电价格,元
*
* Generated from protobuf field int32 exchange_money = 8;
* @return int
*/
public function getExchangeMoney()
{
return $this->exchange_money;
}
/**
* 单次换电价格,元
*
* Generated from protobuf field int32 exchange_money = 8;
* @param int $var
* @return $this
*/
public function setExchangeMoney($var)
{
GPBUtil::checkInt32($var);
$this->exchange_money = $var;
return $this;
}
/**
* 购买限制数量
*
* Generated from protobuf field int32 buy_limit = 9;
* @return int
*/
public function getBuyLimit()
{
return $this->buy_limit;
}
/**
* 购买限制数量
*
* Generated from protobuf field int32 buy_limit = 9;
* @param int $var
* @return $this
*/
public function setBuyLimit($var)
{
GPBUtil::checkInt32($var);
$this->buy_limit = $var;
return $this;
}
/**
* 上下架状态
*
* Generated from protobuf field .proto.api.LISTED_STATUS listed_status = 10;
* @return int
*/
public function getListedStatus()
{
return $this->listed_status;
}
/**
* 上下架状态
*
* Generated from protobuf field .proto.api.LISTED_STATUS listed_status = 10;
* @param int $var
* @return $this
*/
public function setListedStatus($var)
{
GPBUtil::checkEnum($var, \Proto\Api\LISTED_STATUS::class);
$this->listed_status = $var;
return $this;
}
/**
* 库存
*
* Generated from protobuf field int32 stock = 12;
* @return int
*/
public function getStock()
{
return $this->stock;
}
/**
* 库存
*
* Generated from protobuf field int32 stock = 12;
* @param int $var
* @return $this
*/
public function setStock($var)
{
GPBUtil::checkInt32($var);
$this->stock = $var;
return $this;
}
/**
* 套餐分类 1租电套餐 2车电一体 3租车套餐
*
* Generated from protobuf field .proto.api.DEVICE_USE_TYPE package_category = 13;
* @return int
*/
public function getPackageCategory()
{
return $this->package_category;
}
/**
* 套餐分类 1租电套餐 2车电一体 3租车套餐
*
* Generated from protobuf field .proto.api.DEVICE_USE_TYPE package_category = 13;
* @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 = 14;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getAreaList()
{
return $this->area_list;
}
/**
* 支持的区县ID列表
*
* Generated from protobuf field repeated .proto.api.AreaEnt area_list = 14;
* @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 = 15;
* @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 = 15;
* @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 = 16;
* @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 = 16;
* @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;
}
}