Ydb.Import.ImportItemProgress */ class ImportItemProgress extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field uint32 parts_total = 1; */ protected $parts_total = 0; /** * Generated from protobuf field uint32 parts_completed = 2; */ protected $parts_completed = 0; /** * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; */ protected $start_time = null; /** * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; */ protected $end_time = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $parts_total * @type int $parts_completed * @type \Google\Protobuf\Timestamp $start_time * @type \Google\Protobuf\Timestamp $end_time * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbImport::initOnce(); parent::__construct($data); } /** * Generated from protobuf field uint32 parts_total = 1; * @return int */ public function getPartsTotal() { return $this->parts_total; } /** * Generated from protobuf field uint32 parts_total = 1; * @param int $var * @return $this */ public function setPartsTotal($var) { GPBUtil::checkUint32($var); $this->parts_total = $var; return $this; } /** * Generated from protobuf field uint32 parts_completed = 2; * @return int */ public function getPartsCompleted() { return $this->parts_completed; } /** * Generated from protobuf field uint32 parts_completed = 2; * @param int $var * @return $this */ public function setPartsCompleted($var) { GPBUtil::checkUint32($var); $this->parts_completed = $var; return $this; } /** * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; * @return \Google\Protobuf\Timestamp|null */ public function getStartTime() { return $this->start_time; } public function hasStartTime() { return isset($this->start_time); } public function clearStartTime() { unset($this->start_time); } /** * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setStartTime($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->start_time = $var; return $this; } /** * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; * @return \Google\Protobuf\Timestamp|null */ public function getEndTime() { return $this->end_time; } public function hasEndTime() { return isset($this->end_time); } public function clearEndTime() { unset($this->end_time); } /** * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setEndTime($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->end_time = $var; return $this; } }