proto.api.GetAbnormalDataRes
*/
class GetAbnormalDataRes extends \Google\Protobuf\Internal\Message
{
/**
* 当天的异常数据
*
* Generated from protobuf field .proto.api.GetAbnormalDataRes.AbnormalData today_abnormal_data = 1;
*/
protected $today_abnormal_data = null;
/**
* 电池环比数据
*
* Generated from protobuf field .proto.api.GetAbnormalDataRes.CompareData battery_compare_data = 2;
*/
protected $battery_compare_data = null;
/**
* 充电桩的环比数据
*
* Generated from protobuf field .proto.api.GetAbnormalDataRes.CompareData chrpannel_compare_data = 3;
*/
protected $chrpannel_compare_data = null;
/**
* 前十天的异常数据
*
* Generated from protobuf field repeated .proto.api.GetAbnormalDataRes.AbnormalData abnormal_data = 4;
*/
private $abnormal_data;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Proto\Api\GetAbnormalDataRes\AbnormalData $today_abnormal_data
* 当天的异常数据
* @type \Proto\Api\GetAbnormalDataRes\CompareData $battery_compare_data
* 电池环比数据
* @type \Proto\Api\GetAbnormalDataRes\CompareData $chrpannel_compare_data
* 充电桩的环比数据
* @type array<\Proto\Api\GetAbnormalDataRes\AbnormalData>|\Google\Protobuf\Internal\RepeatedField $abnormal_data
* 前十天的异常数据
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Api\LargeScreenData::initOnce();
parent::__construct($data);
}
/**
* 当天的异常数据
*
* Generated from protobuf field .proto.api.GetAbnormalDataRes.AbnormalData today_abnormal_data = 1;
* @return \Proto\Api\GetAbnormalDataRes\AbnormalData|null
*/
public function getTodayAbnormalData()
{
return $this->today_abnormal_data;
}
public function hasTodayAbnormalData()
{
return isset($this->today_abnormal_data);
}
public function clearTodayAbnormalData()
{
unset($this->today_abnormal_data);
}
/**
* 当天的异常数据
*
* Generated from protobuf field .proto.api.GetAbnormalDataRes.AbnormalData today_abnormal_data = 1;
* @param \Proto\Api\GetAbnormalDataRes\AbnormalData $var
* @return $this
*/
public function setTodayAbnormalData($var)
{
GPBUtil::checkMessage($var, \Proto\Api\GetAbnormalDataRes\AbnormalData::class);
$this->today_abnormal_data = $var;
return $this;
}
/**
* 电池环比数据
*
* Generated from protobuf field .proto.api.GetAbnormalDataRes.CompareData battery_compare_data = 2;
* @return \Proto\Api\GetAbnormalDataRes\CompareData|null
*/
public function getBatteryCompareData()
{
return $this->battery_compare_data;
}
public function hasBatteryCompareData()
{
return isset($this->battery_compare_data);
}
public function clearBatteryCompareData()
{
unset($this->battery_compare_data);
}
/**
* 电池环比数据
*
* Generated from protobuf field .proto.api.GetAbnormalDataRes.CompareData battery_compare_data = 2;
* @param \Proto\Api\GetAbnormalDataRes\CompareData $var
* @return $this
*/
public function setBatteryCompareData($var)
{
GPBUtil::checkMessage($var, \Proto\Api\GetAbnormalDataRes\CompareData::class);
$this->battery_compare_data = $var;
return $this;
}
/**
* 充电桩的环比数据
*
* Generated from protobuf field .proto.api.GetAbnormalDataRes.CompareData chrpannel_compare_data = 3;
* @return \Proto\Api\GetAbnormalDataRes\CompareData|null
*/
public function getChrpannelCompareData()
{
return $this->chrpannel_compare_data;
}
public function hasChrpannelCompareData()
{
return isset($this->chrpannel_compare_data);
}
public function clearChrpannelCompareData()
{
unset($this->chrpannel_compare_data);
}
/**
* 充电桩的环比数据
*
* Generated from protobuf field .proto.api.GetAbnormalDataRes.CompareData chrpannel_compare_data = 3;
* @param \Proto\Api\GetAbnormalDataRes\CompareData $var
* @return $this
*/
public function setChrpannelCompareData($var)
{
GPBUtil::checkMessage($var, \Proto\Api\GetAbnormalDataRes\CompareData::class);
$this->chrpannel_compare_data = $var;
return $this;
}
/**
* 前十天的异常数据
*
* Generated from protobuf field repeated .proto.api.GetAbnormalDataRes.AbnormalData abnormal_data = 4;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getAbnormalData()
{
return $this->abnormal_data;
}
/**
* 前十天的异常数据
*
* Generated from protobuf field repeated .proto.api.GetAbnormalDataRes.AbnormalData abnormal_data = 4;
* @param array<\Proto\Api\GetAbnormalDataRes\AbnormalData>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setAbnormalData($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\Api\GetAbnormalDataRes\AbnormalData::class);
$this->abnormal_data = $arr;
return $this;
}
}