proto.api.GetBatteryMileageAndCyclesRes.BatteryCycles.BatteryCyclesItem */ class BatteryCyclesItem extends \Google\Protobuf\Internal\Message { /** * 循环次数范围 起始值 0 (0-500) 500 (501-1000) 1000 (1001-1500) 1500 (1501-2000) 2000 (2001-2500) 2500 (2501 - 3000) 3000 (3001 - ∞) * * Generated from protobuf field int32 begin = 1; */ protected $begin = 0; /** * 电池数量 * * Generated from protobuf field int32 data = 2; */ protected $data = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $begin * 循环次数范围 起始值 0 (0-500) 500 (501-1000) 1000 (1001-1500) 1500 (1501-2000) 2000 (2001-2500) 2500 (2501 - 3000) 3000 (3001 - ∞) * @type int $data * 电池数量 * } */ public function __construct($data = NULL) { \GPBMetadata\Api\LargeScreenData::initOnce(); parent::__construct($data); } /** * 循环次数范围 起始值 0 (0-500) 500 (501-1000) 1000 (1001-1500) 1500 (1501-2000) 2000 (2001-2500) 2500 (2501 - 3000) 3000 (3001 - ∞) * * Generated from protobuf field int32 begin = 1; * @return int */ public function getBegin() { return $this->begin; } /** * 循环次数范围 起始值 0 (0-500) 500 (501-1000) 1000 (1001-1500) 1500 (1501-2000) 2000 (2001-2500) 2500 (2501 - 3000) 3000 (3001 - ∞) * * Generated from protobuf field int32 begin = 1; * @param int $var * @return $this */ public function setBegin($var) { GPBUtil::checkInt32($var); $this->begin = $var; return $this; } /** * 电池数量 * * Generated from protobuf field int32 data = 2; * @return int */ public function getData() { return $this->data; } /** * 电池数量 * * Generated from protobuf field int32 data = 2; * @param int $var * @return $this */ public function setData($var) { GPBUtil::checkInt32($var); $this->data = $var; return $this; } }