Ydb.Import.ImportFromS3Metadata
*/
class ImportFromS3Metadata extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .Ydb.Import.ImportFromS3Settings settings = 1;
*/
protected $settings = null;
/**
* Generated from protobuf field .Ydb.Import.ImportProgress.Progress progress = 2;
*/
protected $progress = 0;
/**
* Generated from protobuf field repeated .Ydb.Import.ImportItemProgress items_progress = 3;
*/
private $items_progress;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Ydb\Import\ImportFromS3Settings $settings
* @type int $progress
* @type array<\Ydb\Import\ImportItemProgress>|\Google\Protobuf\Internal\RepeatedField $items_progress
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Protos\YdbImport::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .Ydb.Import.ImportFromS3Settings settings = 1;
* @return \Ydb\Import\ImportFromS3Settings|null
*/
public function getSettings()
{
return $this->settings;
}
public function hasSettings()
{
return isset($this->settings);
}
public function clearSettings()
{
unset($this->settings);
}
/**
* Generated from protobuf field .Ydb.Import.ImportFromS3Settings settings = 1;
* @param \Ydb\Import\ImportFromS3Settings $var
* @return $this
*/
public function setSettings($var)
{
GPBUtil::checkMessage($var, \Ydb\Import\ImportFromS3Settings::class);
$this->settings = $var;
return $this;
}
/**
* Generated from protobuf field .Ydb.Import.ImportProgress.Progress progress = 2;
* @return int
*/
public function getProgress()
{
return $this->progress;
}
/**
* Generated from protobuf field .Ydb.Import.ImportProgress.Progress progress = 2;
* @param int $var
* @return $this
*/
public function setProgress($var)
{
GPBUtil::checkEnum($var, \Ydb\Import\ImportProgress\Progress::class);
$this->progress = $var;
return $this;
}
/**
* Generated from protobuf field repeated .Ydb.Import.ImportItemProgress items_progress = 3;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getItemsProgress()
{
return $this->items_progress;
}
/**
* Generated from protobuf field repeated .Ydb.Import.ImportItemProgress items_progress = 3;
* @param array<\Ydb\Import\ImportItemProgress>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setItemsProgress($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Import\ImportItemProgress::class);
$this->items_progress = $arr;
return $this;
}
}