proto.api.GetDeviceCountAreaRes */ class GetDeviceCountAreaRes extends \Google\Protobuf\Internal\Message { /** * 所有电池的经纬度 * * Generated from protobuf field repeated .proto.api.GetDeviceCountAreaRes.GPS battery_gps = 1; */ private $battery_gps; /** * 省份地区分布数组 * * Generated from protobuf field repeated .proto.api.GetDeviceCountRes.AreaCount battery_province_areas = 2; */ private $battery_province_areas; /** * 所有充电桩的经纬度 * * Generated from protobuf field repeated .proto.api.GetDeviceCountAreaRes.GPS charge_pile_gps = 3; */ private $charge_pile_gps; /** * 充电桩的省份地区分布数组 * * Generated from protobuf field repeated .proto.api.GetDeviceCountRes.AreaCount charge_pile_province_areas = 4; */ private $charge_pile_province_areas; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type array<\Proto\Api\GetDeviceCountAreaRes\GPS>|\Google\Protobuf\Internal\RepeatedField $battery_gps * 所有电池的经纬度 * @type array<\Proto\Api\GetDeviceCountRes\AreaCount>|\Google\Protobuf\Internal\RepeatedField $battery_province_areas * 省份地区分布数组 * @type array<\Proto\Api\GetDeviceCountAreaRes\GPS>|\Google\Protobuf\Internal\RepeatedField $charge_pile_gps * 所有充电桩的经纬度 * @type array<\Proto\Api\GetDeviceCountRes\AreaCount>|\Google\Protobuf\Internal\RepeatedField $charge_pile_province_areas * 充电桩的省份地区分布数组 * } */ public function __construct($data = NULL) { \GPBMetadata\Api\LargeScreenData::initOnce(); parent::__construct($data); } /** * 所有电池的经纬度 * * Generated from protobuf field repeated .proto.api.GetDeviceCountAreaRes.GPS battery_gps = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getBatteryGps() { return $this->battery_gps; } /** * 所有电池的经纬度 * * Generated from protobuf field repeated .proto.api.GetDeviceCountAreaRes.GPS battery_gps = 1; * @param array<\Proto\Api\GetDeviceCountAreaRes\GPS>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setBatteryGps($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\Api\GetDeviceCountAreaRes\GPS::class); $this->battery_gps = $arr; return $this; } /** * 省份地区分布数组 * * Generated from protobuf field repeated .proto.api.GetDeviceCountRes.AreaCount battery_province_areas = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getBatteryProvinceAreas() { return $this->battery_province_areas; } /** * 省份地区分布数组 * * Generated from protobuf field repeated .proto.api.GetDeviceCountRes.AreaCount battery_province_areas = 2; * @param array<\Proto\Api\GetDeviceCountRes\AreaCount>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setBatteryProvinceAreas($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\Api\GetDeviceCountRes\AreaCount::class); $this->battery_province_areas = $arr; return $this; } /** * 所有充电桩的经纬度 * * Generated from protobuf field repeated .proto.api.GetDeviceCountAreaRes.GPS charge_pile_gps = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getChargePileGps() { return $this->charge_pile_gps; } /** * 所有充电桩的经纬度 * * Generated from protobuf field repeated .proto.api.GetDeviceCountAreaRes.GPS charge_pile_gps = 3; * @param array<\Proto\Api\GetDeviceCountAreaRes\GPS>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setChargePileGps($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\Api\GetDeviceCountAreaRes\GPS::class); $this->charge_pile_gps = $arr; return $this; } /** * 充电桩的省份地区分布数组 * * Generated from protobuf field repeated .proto.api.GetDeviceCountRes.AreaCount charge_pile_province_areas = 4; * @return \Google\Protobuf\Internal\RepeatedField */ public function getChargePileProvinceAreas() { return $this->charge_pile_province_areas; } /** * 充电桩的省份地区分布数组 * * Generated from protobuf field repeated .proto.api.GetDeviceCountRes.AreaCount charge_pile_province_areas = 4; * @param array<\Proto\Api\GetDeviceCountRes\AreaCount>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setChargePileProvinceAreas($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\Api\GetDeviceCountRes\AreaCount::class); $this->charge_pile_province_areas = $arr; return $this; } }