proto.api.GetDeviceCountRes
*/
class GetDeviceCountRes extends \Google\Protobuf\Internal\Message
{
/**
* 电池数量
*
* Generated from protobuf field int32 battery_count = 1;
*/
protected $battery_count = 0;
/**
* 换电柜数量
*
* Generated from protobuf field int32 exchange_cabinet_count = 2;
*/
protected $exchange_cabinet_count = 0;
/**
* 充电桩数量
*
* Generated from protobuf field int32 charge_pile_count = 3;
*/
protected $charge_pile_count = 0;
/**
* 电池数量的地区分布数组
*
* Generated from protobuf field repeated .proto.api.GetDeviceCountRes.AreaCount battery_count_areas = 4;
*/
private $battery_count_areas;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $battery_count
* 电池数量
* @type int $exchange_cabinet_count
* 换电柜数量
* @type int $charge_pile_count
* 充电桩数量
* @type array<\Proto\Api\GetDeviceCountRes\AreaCount>|\Google\Protobuf\Internal\RepeatedField $battery_count_areas
* 电池数量的地区分布数组
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Api\LargeScreenData::initOnce();
parent::__construct($data);
}
/**
* 电池数量
*
* Generated from protobuf field int32 battery_count = 1;
* @return int
*/
public function getBatteryCount()
{
return $this->battery_count;
}
/**
* 电池数量
*
* Generated from protobuf field int32 battery_count = 1;
* @param int $var
* @return $this
*/
public function setBatteryCount($var)
{
GPBUtil::checkInt32($var);
$this->battery_count = $var;
return $this;
}
/**
* 换电柜数量
*
* Generated from protobuf field int32 exchange_cabinet_count = 2;
* @return int
*/
public function getExchangeCabinetCount()
{
return $this->exchange_cabinet_count;
}
/**
* 换电柜数量
*
* Generated from protobuf field int32 exchange_cabinet_count = 2;
* @param int $var
* @return $this
*/
public function setExchangeCabinetCount($var)
{
GPBUtil::checkInt32($var);
$this->exchange_cabinet_count = $var;
return $this;
}
/**
* 充电桩数量
*
* Generated from protobuf field int32 charge_pile_count = 3;
* @return int
*/
public function getChargePileCount()
{
return $this->charge_pile_count;
}
/**
* 充电桩数量
*
* Generated from protobuf field int32 charge_pile_count = 3;
* @param int $var
* @return $this
*/
public function setChargePileCount($var)
{
GPBUtil::checkInt32($var);
$this->charge_pile_count = $var;
return $this;
}
/**
* 电池数量的地区分布数组
*
* Generated from protobuf field repeated .proto.api.GetDeviceCountRes.AreaCount battery_count_areas = 4;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getBatteryCountAreas()
{
return $this->battery_count_areas;
}
/**
* 电池数量的地区分布数组
*
* Generated from protobuf field repeated .proto.api.GetDeviceCountRes.AreaCount battery_count_areas = 4;
* @param array<\Proto\Api\GetDeviceCountRes\AreaCount>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setBatteryCountAreas($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\Api\GetDeviceCountRes\AreaCount::class);
$this->battery_count_areas = $arr;
return $this;
}
}