Ydb.Table.ChangefeedDescription */ class ChangefeedDescription 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; /** * State of the feed * * Generated from protobuf field .Ydb.Table.ChangefeedDescription.State state = 4; */ protected $state = 0; /** * State of emitting of virtual timestamps along with data * * 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 int $state * State of the feed * @type bool $virtual_timestamps * State of emitting of virtual timestamps along with data * } */ 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; } /** * State of the feed * * Generated from protobuf field .Ydb.Table.ChangefeedDescription.State state = 4; * @return int */ public function getState() { return $this->state; } /** * State of the feed * * Generated from protobuf field .Ydb.Table.ChangefeedDescription.State state = 4; * @param int $var * @return $this */ public function setState($var) { GPBUtil::checkEnum($var, \Ydb\Table\ChangefeedDescription\State::class); $this->state = $var; return $this; } /** * State of emitting of virtual timestamps along with data * * Generated from protobuf field bool virtual_timestamps = 5; * @return bool */ public function getVirtualTimestamps() { return $this->virtual_timestamps; } /** * State of emitting of virtual timestamps along with data * * 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; } }