Ydb.Table.TtlSettings */ class TtlSettings extends \Google\Protobuf\Internal\Message { /** * How often to run BRO on the same partition. * BRO will not be started more often, but may be started less often. * * Generated from protobuf field uint32 run_interval_seconds = 3; */ protected $run_interval_seconds = 0; protected $mode; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Ydb\Table\DateTypeColumnModeSettings $date_type_column * @type \Ydb\Table\ValueSinceUnixEpochModeSettings $value_since_unix_epoch * @type int $run_interval_seconds * How often to run BRO on the same partition. * BRO will not be started more often, but may be started less often. * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbTable::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1; * @return \Ydb\Table\DateTypeColumnModeSettings|null */ public function getDateTypeColumn() { return $this->readOneof(1); } public function hasDateTypeColumn() { return $this->hasOneof(1); } /** * Generated from protobuf field .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1; * @param \Ydb\Table\DateTypeColumnModeSettings $var * @return $this */ public function setDateTypeColumn($var) { GPBUtil::checkMessage($var, \Ydb\Table\DateTypeColumnModeSettings::class); $this->writeOneof(1, $var); return $this; } /** * Generated from protobuf field .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2; * @return \Ydb\Table\ValueSinceUnixEpochModeSettings|null */ public function getValueSinceUnixEpoch() { return $this->readOneof(2); } public function hasValueSinceUnixEpoch() { return $this->hasOneof(2); } /** * Generated from protobuf field .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2; * @param \Ydb\Table\ValueSinceUnixEpochModeSettings $var * @return $this */ public function setValueSinceUnixEpoch($var) { GPBUtil::checkMessage($var, \Ydb\Table\ValueSinceUnixEpochModeSettings::class); $this->writeOneof(2, $var); return $this; } /** * How often to run BRO on the same partition. * BRO will not be started more often, but may be started less often. * * Generated from protobuf field uint32 run_interval_seconds = 3; * @return int */ public function getRunIntervalSeconds() { return $this->run_interval_seconds; } /** * How often to run BRO on the same partition. * BRO will not be started more often, but may be started less often. * * Generated from protobuf field uint32 run_interval_seconds = 3; * @param int $var * @return $this */ public function setRunIntervalSeconds($var) { GPBUtil::checkUint32($var); $this->run_interval_seconds = $var; return $this; } /** * @return string */ public function getMode() { return $this->whichOneof("mode"); } }