123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_import.proto
- namespace Ydb\Import;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Generated from protobuf message <code>Ydb.Import.ImportItemProgress</code>
- */
- class ImportItemProgress extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>uint32 parts_total = 1;</code>
- */
- protected $parts_total = 0;
- /**
- * Generated from protobuf field <code>uint32 parts_completed = 2;</code>
- */
- protected $parts_completed = 0;
- /**
- * Generated from protobuf field <code>.google.protobuf.Timestamp start_time = 3;</code>
- */
- protected $start_time = null;
- /**
- * Generated from protobuf field <code>.google.protobuf.Timestamp end_time = 4;</code>
- */
- 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 <code>uint32 parts_total = 1;</code>
- * @return int
- */
- public function getPartsTotal()
- {
- return $this->parts_total;
- }
- /**
- * Generated from protobuf field <code>uint32 parts_total = 1;</code>
- * @param int $var
- * @return $this
- */
- public function setPartsTotal($var)
- {
- GPBUtil::checkUint32($var);
- $this->parts_total = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>uint32 parts_completed = 2;</code>
- * @return int
- */
- public function getPartsCompleted()
- {
- return $this->parts_completed;
- }
- /**
- * Generated from protobuf field <code>uint32 parts_completed = 2;</code>
- * @param int $var
- * @return $this
- */
- public function setPartsCompleted($var)
- {
- GPBUtil::checkUint32($var);
- $this->parts_completed = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>.google.protobuf.Timestamp start_time = 3;</code>
- * @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 <code>.google.protobuf.Timestamp start_time = 3;</code>
- * @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 <code>.google.protobuf.Timestamp end_time = 4;</code>
- * @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 <code>.google.protobuf.Timestamp end_time = 4;</code>
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setEndTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->end_time = $var;
- return $this;
- }
- }
|