Ydb.Table.IndexBuildMetadata */ class IndexBuildMetadata extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .Ydb.Table.IndexBuildDescription description = 1; */ protected $description = null; /** * Generated from protobuf field .Ydb.Table.IndexBuildState.State state = 2; */ protected $state = 0; /** * Generated from protobuf field float progress = 3; */ protected $progress = 0.0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Ydb\Table\IndexBuildDescription $description * @type int $state * @type float $progress * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbTable::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .Ydb.Table.IndexBuildDescription description = 1; * @return \Ydb\Table\IndexBuildDescription|null */ public function getDescription() { return $this->description; } public function hasDescription() { return isset($this->description); } public function clearDescription() { unset($this->description); } /** * Generated from protobuf field .Ydb.Table.IndexBuildDescription description = 1; * @param \Ydb\Table\IndexBuildDescription $var * @return $this */ public function setDescription($var) { GPBUtil::checkMessage($var, \Ydb\Table\IndexBuildDescription::class); $this->description = $var; return $this; } /** * Generated from protobuf field .Ydb.Table.IndexBuildState.State state = 2; * @return int */ public function getState() { return $this->state; } /** * Generated from protobuf field .Ydb.Table.IndexBuildState.State state = 2; * @param int $var * @return $this */ public function setState($var) { GPBUtil::checkEnum($var, \Ydb\Table\IndexBuildState\State::class); $this->state = $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; } }