proto.api.CityPackageOrderEnt.OrderInfoItem */ class OrderInfoItem extends \Google\Protobuf\Internal\Message { /** * 基础信息 * * Generated from protobuf field .proto.api.EntOrder base_info = 1; */ protected $base_info = null; /** * 当前电池 * * Generated from protobuf field string current_battery_sn = 2; */ protected $current_battery_sn = ''; /** * 购买绑定的电池 * * Generated from protobuf field string battery_sn = 3; */ protected $battery_sn = ''; /** * 剩余用量 * * Generated from protobuf field string remain_capacity = 4; */ protected $remain_capacity = ''; /** * 押金状态 0待支付,1已支付,2免押,3无需支付 4 押金已退 * * Generated from protobuf field int32 pledge_status = 5; */ protected $pledge_status = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Proto\Api\EntOrder $base_info * 基础信息 * @type string $current_battery_sn * 当前电池 * @type string $battery_sn * 购买绑定的电池 * @type string $remain_capacity * 剩余用量 * @type int $pledge_status * 押金状态 0待支付,1已支付,2免押,3无需支付 4 押金已退 * } */ public function __construct($data = NULL) { \GPBMetadata\Api\EntCityPackage::initOnce(); parent::__construct($data); } /** * 基础信息 * * Generated from protobuf field .proto.api.EntOrder base_info = 1; * @return \Proto\Api\EntOrder|null */ public function getBaseInfo() { return $this->base_info; } public function hasBaseInfo() { return isset($this->base_info); } public function clearBaseInfo() { unset($this->base_info); } /** * 基础信息 * * Generated from protobuf field .proto.api.EntOrder base_info = 1; * @param \Proto\Api\EntOrder $var * @return $this */ public function setBaseInfo($var) { GPBUtil::checkMessage($var, \Proto\Api\EntOrder::class); $this->base_info = $var; return $this; } /** * 当前电池 * * Generated from protobuf field string current_battery_sn = 2; * @return string */ public function getCurrentBatterySn() { return $this->current_battery_sn; } /** * 当前电池 * * Generated from protobuf field string current_battery_sn = 2; * @param string $var * @return $this */ public function setCurrentBatterySn($var) { GPBUtil::checkString($var, True); $this->current_battery_sn = $var; return $this; } /** * 购买绑定的电池 * * Generated from protobuf field string battery_sn = 3; * @return string */ public function getBatterySn() { return $this->battery_sn; } /** * 购买绑定的电池 * * Generated from protobuf field string battery_sn = 3; * @param string $var * @return $this */ public function setBatterySn($var) { GPBUtil::checkString($var, True); $this->battery_sn = $var; return $this; } /** * 剩余用量 * * Generated from protobuf field string remain_capacity = 4; * @return string */ public function getRemainCapacity() { return $this->remain_capacity; } /** * 剩余用量 * * Generated from protobuf field string remain_capacity = 4; * @param string $var * @return $this */ public function setRemainCapacity($var) { GPBUtil::checkString($var, True); $this->remain_capacity = $var; return $this; } /** * 押金状态 0待支付,1已支付,2免押,3无需支付 4 押金已退 * * Generated from protobuf field int32 pledge_status = 5; * @return int */ public function getPledgeStatus() { return $this->pledge_status; } /** * 押金状态 0待支付,1已支付,2免押,3无需支付 4 押金已退 * * Generated from protobuf field int32 pledge_status = 5; * @param int $var * @return $this */ public function setPledgeStatus($var) { GPBUtil::checkInt32($var); $this->pledge_status = $var; return $this; } }