proto.api.GetBatteryInfoRes
*/
class GetBatteryInfoRes extends \Google\Protobuf\Internal\Message
{
/**
* soc
*
* Generated from protobuf field string soc = 1;
*/
protected $soc = '';
/**
* 电流
*
* Generated from protobuf field float electric_current = 2;
*/
protected $electric_current = 0.0;
/**
* 电压
*
* Generated from protobuf field float voltage = 3;
*/
protected $voltage = 0.0;
/**
* 当前充电状态 充电状态 0:静止 1:充电+ 2:放电-
*
* Generated from protobuf field int32 charge_status = 4;
*/
protected $charge_status = 0;
/**
* Generated from protobuf field repeated .proto.api.GetBatteryInfoRes.Alarm alarm_list = 5;
*/
private $alarm_list;
/**
* 累计充电次数
*
* Generated from protobuf field int32 charge_count = 6;
*/
protected $charge_count = 0;
/**
* 累计行驶里程
*
* Generated from protobuf field int32 mileage = 7;
*/
protected $mileage = 0;
/**
* 累计碳排放
*
* Generated from protobuf field int32 emission = 8;
*/
protected $emission = 0;
/**
* 健康评分
*
* Generated from protobuf field int32 health_score = 9;
*/
protected $health_score = 0;
/**
* 电池编号
*
* Generated from protobuf field string battery_sn = 10;
*/
protected $battery_sn = '';
/**
* 电池类型
*
* Generated from protobuf field string battery_type = 11;
*/
protected $battery_type = '';
/**
* 电池品牌
*
* Generated from protobuf field string battery_brand = 12;
*/
protected $battery_brand = '';
/**
* 电池健康状态
*
* Generated from protobuf field string battery_status = 13;
*/
protected $battery_status = '';
/**
* 电池生产日期 时间戳 秒
*
* Generated from protobuf field string battery_date = 14;
*/
protected $battery_date = '';
/**
* 剩余容量
*
* Generated from protobuf field int32 remaining_capacity = 15;
*/
protected $remaining_capacity = 0;
/**
* 连接状态 0:未连接 1:已连接
*
* Generated from protobuf field int32 connect_status = 16;
*/
protected $connect_status = 0;
/**
* 充电继电器/mos是否开启 1-开启 0-关闭
*
* Generated from protobuf field int32 mos_status = 17;
*/
protected $mos_status = 0;
/**
* 放点继电器/mos 1-开启 0-关闭
*
* Generated from protobuf field int32 bms_status = 18;
*/
protected $bms_status = 0;
/**
* 电池均衡是否开启 1-开启 0-关闭
*
* Generated from protobuf field int32 equilibrium = 19;
*/
protected $equilibrium = 0;
/**
* 电池串数
*
* Generated from protobuf field int32 battery_count = 20;
*/
protected $battery_count = 0;
/**
* 循环次数
*
* Generated from protobuf field int32 cycle_count = 21;
*/
protected $cycle_count = 0;
/**
* 电池温度
*
* Generated from protobuf field int32 battery_temp = 22;
*/
protected $battery_temp = 0;
/**
* 功率管温度
*
* Generated from protobuf field int32 power_temp = 23;
*/
protected $power_temp = 0;
/**
* 电池箱内温度
*
* Generated from protobuf field int32 box_temp = 24;
*/
protected $box_temp = 0;
/**
* 经度
*
* Generated from protobuf field float longitude = 25;
*/
protected $longitude = 0.0;
/**
* 纬度
*
* Generated from protobuf field float latitude = 26;
*/
protected $latitude = 0.0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $soc
* soc
* @type float $electric_current
* 电流
* @type float $voltage
* 电压
* @type int $charge_status
* 当前充电状态 充电状态 0:静止 1:充电+ 2:放电-
* @type array<\Proto\Api\GetBatteryInfoRes\Alarm>|\Google\Protobuf\Internal\RepeatedField $alarm_list
* @type int $charge_count
* 累计充电次数
* @type int $mileage
* 累计行驶里程
* @type int $emission
* 累计碳排放
* @type int $health_score
* 健康评分
* @type string $battery_sn
* 电池编号
* @type string $battery_type
* 电池类型
* @type string $battery_brand
* 电池品牌
* @type string $battery_status
* 电池健康状态
* @type string $battery_date
* 电池生产日期 时间戳 秒
* @type int $remaining_capacity
* 剩余容量
* @type int $connect_status
* 连接状态 0:未连接 1:已连接
* @type int $mos_status
* 充电继电器/mos是否开启 1-开启 0-关闭
* @type int $bms_status
* 放点继电器/mos 1-开启 0-关闭
* @type int $equilibrium
* 电池均衡是否开启 1-开启 0-关闭
* @type int $battery_count
* 电池串数
* @type int $cycle_count
* 循环次数
* @type int $battery_temp
* 电池温度
* @type int $power_temp
* 功率管温度
* @type int $box_temp
* 电池箱内温度
* @type float $longitude
* 经度
* @type float $latitude
* 纬度
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Api\LargeScreenData::initOnce();
parent::__construct($data);
}
/**
* soc
*
* Generated from protobuf field string soc = 1;
* @return string
*/
public function getSoc()
{
return $this->soc;
}
/**
* soc
*
* Generated from protobuf field string soc = 1;
* @param string $var
* @return $this
*/
public function setSoc($var)
{
GPBUtil::checkString($var, True);
$this->soc = $var;
return $this;
}
/**
* 电流
*
* Generated from protobuf field float electric_current = 2;
* @return float
*/
public function getElectricCurrent()
{
return $this->electric_current;
}
/**
* 电流
*
* Generated from protobuf field float electric_current = 2;
* @param float $var
* @return $this
*/
public function setElectricCurrent($var)
{
GPBUtil::checkFloat($var);
$this->electric_current = $var;
return $this;
}
/**
* 电压
*
* Generated from protobuf field float voltage = 3;
* @return float
*/
public function getVoltage()
{
return $this->voltage;
}
/**
* 电压
*
* Generated from protobuf field float voltage = 3;
* @param float $var
* @return $this
*/
public function setVoltage($var)
{
GPBUtil::checkFloat($var);
$this->voltage = $var;
return $this;
}
/**
* 当前充电状态 充电状态 0:静止 1:充电+ 2:放电-
*
* Generated from protobuf field int32 charge_status = 4;
* @return int
*/
public function getChargeStatus()
{
return $this->charge_status;
}
/**
* 当前充电状态 充电状态 0:静止 1:充电+ 2:放电-
*
* Generated from protobuf field int32 charge_status = 4;
* @param int $var
* @return $this
*/
public function setChargeStatus($var)
{
GPBUtil::checkInt32($var);
$this->charge_status = $var;
return $this;
}
/**
* Generated from protobuf field repeated .proto.api.GetBatteryInfoRes.Alarm alarm_list = 5;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getAlarmList()
{
return $this->alarm_list;
}
/**
* Generated from protobuf field repeated .proto.api.GetBatteryInfoRes.Alarm alarm_list = 5;
* @param array<\Proto\Api\GetBatteryInfoRes\Alarm>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setAlarmList($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\Api\GetBatteryInfoRes\Alarm::class);
$this->alarm_list = $arr;
return $this;
}
/**
* 累计充电次数
*
* Generated from protobuf field int32 charge_count = 6;
* @return int
*/
public function getChargeCount()
{
return $this->charge_count;
}
/**
* 累计充电次数
*
* Generated from protobuf field int32 charge_count = 6;
* @param int $var
* @return $this
*/
public function setChargeCount($var)
{
GPBUtil::checkInt32($var);
$this->charge_count = $var;
return $this;
}
/**
* 累计行驶里程
*
* Generated from protobuf field int32 mileage = 7;
* @return int
*/
public function getMileage()
{
return $this->mileage;
}
/**
* 累计行驶里程
*
* Generated from protobuf field int32 mileage = 7;
* @param int $var
* @return $this
*/
public function setMileage($var)
{
GPBUtil::checkInt32($var);
$this->mileage = $var;
return $this;
}
/**
* 累计碳排放
*
* Generated from protobuf field int32 emission = 8;
* @return int
*/
public function getEmission()
{
return $this->emission;
}
/**
* 累计碳排放
*
* Generated from protobuf field int32 emission = 8;
* @param int $var
* @return $this
*/
public function setEmission($var)
{
GPBUtil::checkInt32($var);
$this->emission = $var;
return $this;
}
/**
* 健康评分
*
* Generated from protobuf field int32 health_score = 9;
* @return int
*/
public function getHealthScore()
{
return $this->health_score;
}
/**
* 健康评分
*
* Generated from protobuf field int32 health_score = 9;
* @param int $var
* @return $this
*/
public function setHealthScore($var)
{
GPBUtil::checkInt32($var);
$this->health_score = $var;
return $this;
}
/**
* 电池编号
*
* Generated from protobuf field string battery_sn = 10;
* @return string
*/
public function getBatterySn()
{
return $this->battery_sn;
}
/**
* 电池编号
*
* Generated from protobuf field string battery_sn = 10;
* @param string $var
* @return $this
*/
public function setBatterySn($var)
{
GPBUtil::checkString($var, True);
$this->battery_sn = $var;
return $this;
}
/**
* 电池类型
*
* Generated from protobuf field string battery_type = 11;
* @return string
*/
public function getBatteryType()
{
return $this->battery_type;
}
/**
* 电池类型
*
* Generated from protobuf field string battery_type = 11;
* @param string $var
* @return $this
*/
public function setBatteryType($var)
{
GPBUtil::checkString($var, True);
$this->battery_type = $var;
return $this;
}
/**
* 电池品牌
*
* Generated from protobuf field string battery_brand = 12;
* @return string
*/
public function getBatteryBrand()
{
return $this->battery_brand;
}
/**
* 电池品牌
*
* Generated from protobuf field string battery_brand = 12;
* @param string $var
* @return $this
*/
public function setBatteryBrand($var)
{
GPBUtil::checkString($var, True);
$this->battery_brand = $var;
return $this;
}
/**
* 电池健康状态
*
* Generated from protobuf field string battery_status = 13;
* @return string
*/
public function getBatteryStatus()
{
return $this->battery_status;
}
/**
* 电池健康状态
*
* Generated from protobuf field string battery_status = 13;
* @param string $var
* @return $this
*/
public function setBatteryStatus($var)
{
GPBUtil::checkString($var, True);
$this->battery_status = $var;
return $this;
}
/**
* 电池生产日期 时间戳 秒
*
* Generated from protobuf field string battery_date = 14;
* @return string
*/
public function getBatteryDate()
{
return $this->battery_date;
}
/**
* 电池生产日期 时间戳 秒
*
* Generated from protobuf field string battery_date = 14;
* @param string $var
* @return $this
*/
public function setBatteryDate($var)
{
GPBUtil::checkString($var, True);
$this->battery_date = $var;
return $this;
}
/**
* 剩余容量
*
* Generated from protobuf field int32 remaining_capacity = 15;
* @return int
*/
public function getRemainingCapacity()
{
return $this->remaining_capacity;
}
/**
* 剩余容量
*
* Generated from protobuf field int32 remaining_capacity = 15;
* @param int $var
* @return $this
*/
public function setRemainingCapacity($var)
{
GPBUtil::checkInt32($var);
$this->remaining_capacity = $var;
return $this;
}
/**
* 连接状态 0:未连接 1:已连接
*
* Generated from protobuf field int32 connect_status = 16;
* @return int
*/
public function getConnectStatus()
{
return $this->connect_status;
}
/**
* 连接状态 0:未连接 1:已连接
*
* Generated from protobuf field int32 connect_status = 16;
* @param int $var
* @return $this
*/
public function setConnectStatus($var)
{
GPBUtil::checkInt32($var);
$this->connect_status = $var;
return $this;
}
/**
* 充电继电器/mos是否开启 1-开启 0-关闭
*
* Generated from protobuf field int32 mos_status = 17;
* @return int
*/
public function getMosStatus()
{
return $this->mos_status;
}
/**
* 充电继电器/mos是否开启 1-开启 0-关闭
*
* Generated from protobuf field int32 mos_status = 17;
* @param int $var
* @return $this
*/
public function setMosStatus($var)
{
GPBUtil::checkInt32($var);
$this->mos_status = $var;
return $this;
}
/**
* 放点继电器/mos 1-开启 0-关闭
*
* Generated from protobuf field int32 bms_status = 18;
* @return int
*/
public function getBmsStatus()
{
return $this->bms_status;
}
/**
* 放点继电器/mos 1-开启 0-关闭
*
* Generated from protobuf field int32 bms_status = 18;
* @param int $var
* @return $this
*/
public function setBmsStatus($var)
{
GPBUtil::checkInt32($var);
$this->bms_status = $var;
return $this;
}
/**
* 电池均衡是否开启 1-开启 0-关闭
*
* Generated from protobuf field int32 equilibrium = 19;
* @return int
*/
public function getEquilibrium()
{
return $this->equilibrium;
}
/**
* 电池均衡是否开启 1-开启 0-关闭
*
* Generated from protobuf field int32 equilibrium = 19;
* @param int $var
* @return $this
*/
public function setEquilibrium($var)
{
GPBUtil::checkInt32($var);
$this->equilibrium = $var;
return $this;
}
/**
* 电池串数
*
* Generated from protobuf field int32 battery_count = 20;
* @return int
*/
public function getBatteryCount()
{
return $this->battery_count;
}
/**
* 电池串数
*
* Generated from protobuf field int32 battery_count = 20;
* @param int $var
* @return $this
*/
public function setBatteryCount($var)
{
GPBUtil::checkInt32($var);
$this->battery_count = $var;
return $this;
}
/**
* 循环次数
*
* Generated from protobuf field int32 cycle_count = 21;
* @return int
*/
public function getCycleCount()
{
return $this->cycle_count;
}
/**
* 循环次数
*
* Generated from protobuf field int32 cycle_count = 21;
* @param int $var
* @return $this
*/
public function setCycleCount($var)
{
GPBUtil::checkInt32($var);
$this->cycle_count = $var;
return $this;
}
/**
* 电池温度
*
* Generated from protobuf field int32 battery_temp = 22;
* @return int
*/
public function getBatteryTemp()
{
return $this->battery_temp;
}
/**
* 电池温度
*
* Generated from protobuf field int32 battery_temp = 22;
* @param int $var
* @return $this
*/
public function setBatteryTemp($var)
{
GPBUtil::checkInt32($var);
$this->battery_temp = $var;
return $this;
}
/**
* 功率管温度
*
* Generated from protobuf field int32 power_temp = 23;
* @return int
*/
public function getPowerTemp()
{
return $this->power_temp;
}
/**
* 功率管温度
*
* Generated from protobuf field int32 power_temp = 23;
* @param int $var
* @return $this
*/
public function setPowerTemp($var)
{
GPBUtil::checkInt32($var);
$this->power_temp = $var;
return $this;
}
/**
* 电池箱内温度
*
* Generated from protobuf field int32 box_temp = 24;
* @return int
*/
public function getBoxTemp()
{
return $this->box_temp;
}
/**
* 电池箱内温度
*
* Generated from protobuf field int32 box_temp = 24;
* @param int $var
* @return $this
*/
public function setBoxTemp($var)
{
GPBUtil::checkInt32($var);
$this->box_temp = $var;
return $this;
}
/**
* 经度
*
* Generated from protobuf field float longitude = 25;
* @return float
*/
public function getLongitude()
{
return $this->longitude;
}
/**
* 经度
*
* Generated from protobuf field float longitude = 25;
* @param float $var
* @return $this
*/
public function setLongitude($var)
{
GPBUtil::checkFloat($var);
$this->longitude = $var;
return $this;
}
/**
* 纬度
*
* Generated from protobuf field float latitude = 26;
* @return float
*/
public function getLatitude()
{
return $this->latitude;
}
/**
* 纬度
*
* Generated from protobuf field float latitude = 26;
* @param float $var
* @return $this
*/
public function setLatitude($var)
{
GPBUtil::checkFloat($var);
$this->latitude = $var;
return $this;
}
}