ChangefeedDescription.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_table.proto
  4. namespace Ydb\Table;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Generated from protobuf message <code>Ydb.Table.ChangefeedDescription</code>
  10. */
  11. class ChangefeedDescription extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Name of the feed
  15. *
  16. * Generated from protobuf field <code>string name = 1;</code>
  17. */
  18. protected $name = '';
  19. /**
  20. * Mode specifies the information that will be written to the feed
  21. *
  22. * Generated from protobuf field <code>.Ydb.Table.ChangefeedMode.Mode mode = 2;</code>
  23. */
  24. protected $mode = 0;
  25. /**
  26. * Format of the data
  27. *
  28. * Generated from protobuf field <code>.Ydb.Table.ChangefeedFormat.Format format = 3;</code>
  29. */
  30. protected $format = 0;
  31. /**
  32. * State of the feed
  33. *
  34. * Generated from protobuf field <code>.Ydb.Table.ChangefeedDescription.State state = 4;</code>
  35. */
  36. protected $state = 0;
  37. /**
  38. * State of emitting of virtual timestamps along with data
  39. *
  40. * Generated from protobuf field <code>bool virtual_timestamps = 5;</code>
  41. */
  42. protected $virtual_timestamps = false;
  43. /**
  44. * Constructor.
  45. *
  46. * @param array $data {
  47. * Optional. Data for populating the Message object.
  48. *
  49. * @type string $name
  50. * Name of the feed
  51. * @type int $mode
  52. * Mode specifies the information that will be written to the feed
  53. * @type int $format
  54. * Format of the data
  55. * @type int $state
  56. * State of the feed
  57. * @type bool $virtual_timestamps
  58. * State of emitting of virtual timestamps along with data
  59. * }
  60. */
  61. public function __construct($data = NULL) {
  62. \GPBMetadata\Protos\YdbTable::initOnce();
  63. parent::__construct($data);
  64. }
  65. /**
  66. * Name of the feed
  67. *
  68. * Generated from protobuf field <code>string name = 1;</code>
  69. * @return string
  70. */
  71. public function getName()
  72. {
  73. return $this->name;
  74. }
  75. /**
  76. * Name of the feed
  77. *
  78. * Generated from protobuf field <code>string name = 1;</code>
  79. * @param string $var
  80. * @return $this
  81. */
  82. public function setName($var)
  83. {
  84. GPBUtil::checkString($var, True);
  85. $this->name = $var;
  86. return $this;
  87. }
  88. /**
  89. * Mode specifies the information that will be written to the feed
  90. *
  91. * Generated from protobuf field <code>.Ydb.Table.ChangefeedMode.Mode mode = 2;</code>
  92. * @return int
  93. */
  94. public function getMode()
  95. {
  96. return $this->mode;
  97. }
  98. /**
  99. * Mode specifies the information that will be written to the feed
  100. *
  101. * Generated from protobuf field <code>.Ydb.Table.ChangefeedMode.Mode mode = 2;</code>
  102. * @param int $var
  103. * @return $this
  104. */
  105. public function setMode($var)
  106. {
  107. GPBUtil::checkEnum($var, \Ydb\Table\ChangefeedMode\Mode::class);
  108. $this->mode = $var;
  109. return $this;
  110. }
  111. /**
  112. * Format of the data
  113. *
  114. * Generated from protobuf field <code>.Ydb.Table.ChangefeedFormat.Format format = 3;</code>
  115. * @return int
  116. */
  117. public function getFormat()
  118. {
  119. return $this->format;
  120. }
  121. /**
  122. * Format of the data
  123. *
  124. * Generated from protobuf field <code>.Ydb.Table.ChangefeedFormat.Format format = 3;</code>
  125. * @param int $var
  126. * @return $this
  127. */
  128. public function setFormat($var)
  129. {
  130. GPBUtil::checkEnum($var, \Ydb\Table\ChangefeedFormat\Format::class);
  131. $this->format = $var;
  132. return $this;
  133. }
  134. /**
  135. * State of the feed
  136. *
  137. * Generated from protobuf field <code>.Ydb.Table.ChangefeedDescription.State state = 4;</code>
  138. * @return int
  139. */
  140. public function getState()
  141. {
  142. return $this->state;
  143. }
  144. /**
  145. * State of the feed
  146. *
  147. * Generated from protobuf field <code>.Ydb.Table.ChangefeedDescription.State state = 4;</code>
  148. * @param int $var
  149. * @return $this
  150. */
  151. public function setState($var)
  152. {
  153. GPBUtil::checkEnum($var, \Ydb\Table\ChangefeedDescription\State::class);
  154. $this->state = $var;
  155. return $this;
  156. }
  157. /**
  158. * State of emitting of virtual timestamps along with data
  159. *
  160. * Generated from protobuf field <code>bool virtual_timestamps = 5;</code>
  161. * @return bool
  162. */
  163. public function getVirtualTimestamps()
  164. {
  165. return $this->virtual_timestamps;
  166. }
  167. /**
  168. * State of emitting of virtual timestamps along with data
  169. *
  170. * Generated from protobuf field <code>bool virtual_timestamps = 5;</code>
  171. * @param bool $var
  172. * @return $this
  173. */
  174. public function setVirtualTimestamps($var)
  175. {
  176. GPBUtil::checkBool($var);
  177. $this->virtual_timestamps = $var;
  178. return $this;
  179. }
  180. }