123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_table.proto
- namespace Ydb\Table;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Generated from protobuf message <code>Ydb.Table.ChangefeedDescription</code>
- */
- class ChangefeedDescription extends \Google\Protobuf\Internal\Message
- {
- /**
- * Name of the feed
- *
- * Generated from protobuf field <code>string name = 1;</code>
- */
- protected $name = '';
- /**
- * Mode specifies the information that will be written to the feed
- *
- * Generated from protobuf field <code>.Ydb.Table.ChangefeedMode.Mode mode = 2;</code>
- */
- protected $mode = 0;
- /**
- * Format of the data
- *
- * Generated from protobuf field <code>.Ydb.Table.ChangefeedFormat.Format format = 3;</code>
- */
- protected $format = 0;
- /**
- * State of the feed
- *
- * Generated from protobuf field <code>.Ydb.Table.ChangefeedDescription.State state = 4;</code>
- */
- protected $state = 0;
- /**
- * State of emitting of virtual timestamps along with data
- *
- * Generated from protobuf field <code>bool virtual_timestamps = 5;</code>
- */
- 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 <code>string name = 1;</code>
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * Name of the feed
- *
- * Generated from protobuf field <code>string name = 1;</code>
- * @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 <code>.Ydb.Table.ChangefeedMode.Mode mode = 2;</code>
- * @return int
- */
- public function getMode()
- {
- return $this->mode;
- }
- /**
- * Mode specifies the information that will be written to the feed
- *
- * Generated from protobuf field <code>.Ydb.Table.ChangefeedMode.Mode mode = 2;</code>
- * @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 <code>.Ydb.Table.ChangefeedFormat.Format format = 3;</code>
- * @return int
- */
- public function getFormat()
- {
- return $this->format;
- }
- /**
- * Format of the data
- *
- * Generated from protobuf field <code>.Ydb.Table.ChangefeedFormat.Format format = 3;</code>
- * @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 <code>.Ydb.Table.ChangefeedDescription.State state = 4;</code>
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
- /**
- * State of the feed
- *
- * Generated from protobuf field <code>.Ydb.Table.ChangefeedDescription.State state = 4;</code>
- * @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 <code>bool virtual_timestamps = 5;</code>
- * @return bool
- */
- public function getVirtualTimestamps()
- {
- return $this->virtual_timestamps;
- }
- /**
- * State of emitting of virtual timestamps along with data
- *
- * Generated from protobuf field <code>bool virtual_timestamps = 5;</code>
- * @param bool $var
- * @return $this
- */
- public function setVirtualTimestamps($var)
- {
- GPBUtil::checkBool($var);
- $this->virtual_timestamps = $var;
- return $this;
- }
- }
|