Ydb.Table.Changefeed */ class Changefeed extends \Google\Protobuf\Internal\Message { /** * Name of the feed * * Generated from protobuf field string name = 1; */ protected $name = ''; /** * Mode specifies the information that will be written to the feed * * Generated from protobuf field .Ydb.Table.ChangefeedMode.Mode mode = 2; */ protected $mode = 0; /** * Format of the data * * Generated from protobuf field .Ydb.Table.ChangefeedFormat.Format format = 3; */ protected $format = 0; /** * How long data in changefeed's underlying topic should be stored * * Generated from protobuf field .google.protobuf.Duration retention_period = 4; */ protected $retention_period = null; /** * Emit virtual timestamps of changes along with data or not * * Generated from protobuf field bool virtual_timestamps = 5; */ protected $virtual_timestamps = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * Name of the feed * @type int $mode * Mode specifies the information that will be written to the feed * @type int $format * Format of the data * @type \Google\Protobuf\Duration $retention_period * How long data in changefeed's underlying topic should be stored * @type bool $virtual_timestamps * Emit virtual timestamps of changes along with data or not * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbTable::initOnce(); parent::__construct($data); } /** * Name of the feed * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * Name of the feed * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Mode specifies the information that will be written to the feed * * Generated from protobuf field .Ydb.Table.ChangefeedMode.Mode mode = 2; * @return int */ public function getMode() { return $this->mode; } /** * Mode specifies the information that will be written to the feed * * Generated from protobuf field .Ydb.Table.ChangefeedMode.Mode mode = 2; * @param int $var * @return $this */ public function setMode($var) { GPBUtil::checkEnum($var, \Ydb\Table\ChangefeedMode\Mode::class); $this->mode = $var; return $this; } /** * Format of the data * * Generated from protobuf field .Ydb.Table.ChangefeedFormat.Format format = 3; * @return int */ public function getFormat() { return $this->format; } /** * Format of the data * * Generated from protobuf field .Ydb.Table.ChangefeedFormat.Format format = 3; * @param int $var * @return $this */ public function setFormat($var) { GPBUtil::checkEnum($var, \Ydb\Table\ChangefeedFormat\Format::class); $this->format = $var; return $this; } /** * How long data in changefeed's underlying topic should be stored * * Generated from protobuf field .google.protobuf.Duration retention_period = 4; * @return \Google\Protobuf\Duration|null */ public function getRetentionPeriod() { return $this->retention_period; } public function hasRetentionPeriod() { return isset($this->retention_period); } public function clearRetentionPeriod() { unset($this->retention_period); } /** * How long data in changefeed's underlying topic should be stored * * Generated from protobuf field .google.protobuf.Duration retention_period = 4; * @param \Google\Protobuf\Duration $var * @return $this */ public function setRetentionPeriod($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); $this->retention_period = $var; return $this; } /** * Emit virtual timestamps of changes along with data or not * * Generated from protobuf field bool virtual_timestamps = 5; * @return bool */ public function getVirtualTimestamps() { return $this->virtual_timestamps; } /** * Emit virtual timestamps of changes along with data or not * * Generated from protobuf field bool virtual_timestamps = 5; * @param bool $var * @return $this */ public function setVirtualTimestamps($var) { GPBUtil::checkBool($var); $this->virtual_timestamps = $var; return $this; } }