proto.api.GetAbnormalDataRes.CompareData */ class CompareData extends \Google\Protobuf\Internal\Message { /** * 日环比 % * * Generated from protobuf field float day_compare = 1; */ protected $day_compare = 0.0; /** * 周环比 % * * Generated from protobuf field float week_compare = 2; */ protected $week_compare = 0.0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type float $day_compare * 日环比 % * @type float $week_compare * 周环比 % * } */ public function __construct($data = NULL) { \GPBMetadata\Api\LargeScreenData::initOnce(); parent::__construct($data); } /** * 日环比 % * * Generated from protobuf field float day_compare = 1; * @return float */ public function getDayCompare() { return $this->day_compare; } /** * 日环比 % * * Generated from protobuf field float day_compare = 1; * @param float $var * @return $this */ public function setDayCompare($var) { GPBUtil::checkFloat($var); $this->day_compare = $var; return $this; } /** * 周环比 % * * Generated from protobuf field float week_compare = 2; * @return float */ public function getWeekCompare() { return $this->week_compare; } /** * 周环比 % * * Generated from protobuf field float week_compare = 2; * @param float $var * @return $this */ public function setWeekCompare($var) { GPBUtil::checkFloat($var); $this->week_compare = $var; return $this; } }