Ydb.Export.ExportToS3Metadata
*/
class ExportToS3Metadata extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .Ydb.Export.ExportToS3Settings settings = 1;
*/
protected $settings = null;
/**
* Generated from protobuf field .Ydb.Export.ExportProgress.Progress progress = 2;
*/
protected $progress = 0;
/**
* Generated from protobuf field repeated .Ydb.Export.ExportItemProgress items_progress = 3;
*/
private $items_progress;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Ydb\Export\ExportToS3Settings $settings
* @type int $progress
* @type array<\Ydb\Export\ExportItemProgress>|\Google\Protobuf\Internal\RepeatedField $items_progress
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Protos\YdbExport::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .Ydb.Export.ExportToS3Settings settings = 1;
* @return \Ydb\Export\ExportToS3Settings|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.Export.ExportToS3Settings settings = 1;
* @param \Ydb\Export\ExportToS3Settings $var
* @return $this
*/
public function setSettings($var)
{
GPBUtil::checkMessage($var, \Ydb\Export\ExportToS3Settings::class);
$this->settings = $var;
return $this;
}
/**
* Generated from protobuf field .Ydb.Export.ExportProgress.Progress progress = 2;
* @return int
*/
public function getProgress()
{
return $this->progress;
}
/**
* Generated from protobuf field .Ydb.Export.ExportProgress.Progress progress = 2;
* @param int $var
* @return $this
*/
public function setProgress($var)
{
GPBUtil::checkEnum($var, \Ydb\Export\ExportProgress\Progress::class);
$this->progress = $var;
return $this;
}
/**
* Generated from protobuf field repeated .Ydb.Export.ExportItemProgress items_progress = 3;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getItemsProgress()
{
return $this->items_progress;
}
/**
* Generated from protobuf field repeated .Ydb.Export.ExportItemProgress items_progress = 3;
* @param array<\Ydb\Export\ExportItemProgress>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setItemsProgress($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Export\ExportItemProgress::class);
$this->items_progress = $arr;
return $this;
}
}