registration.core.DownloadProgress */ class DownloadProgress extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .registration.core.Status status = 1; */ protected $status = 0; /** * Generated from protobuf field bool complete = 2; */ protected $complete = false; /** * Generated from protobuf field float progress = 3; */ protected $progress = 0.0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $status * @type bool $complete * @type float $progress * } */ public function __construct($data = NULL) { \GPBMetadata\Registration::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .registration.core.Status status = 1; * @return int */ public function getStatus() { return $this->status; } /** * Generated from protobuf field .registration.core.Status status = 1; * @param int $var * @return $this */ public function setStatus($var) { GPBUtil::checkEnum($var, \Registration\Core\Status::class); $this->status = $var; return $this; } /** * Generated from protobuf field bool complete = 2; * @return bool */ public function getComplete() { return $this->complete; } /** * Generated from protobuf field bool complete = 2; * @param bool $var * @return $this */ public function setComplete($var) { GPBUtil::checkBool($var); $this->complete = $var; return $this; } /** * Generated from protobuf field float progress = 3; * @return float */ public function getProgress() { return $this->progress; } /** * Generated from protobuf field float progress = 3; * @param float $var * @return $this */ public function setProgress($var) { GPBUtil::checkFloat($var); $this->progress = $var; return $this; } }