UpdateRequest.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: tulip.proto
  4. namespace Mint\Tulip\V1;
  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>mint.tulip.v1.UpdateRequest</code>
  10. */
  11. class UpdateRequest extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>int32 book = 1;</code>
  15. */
  16. protected $book = 0;
  17. /**
  18. * Generated from protobuf field <code>int32 paragraph = 2;</code>
  19. */
  20. protected $paragraph = 0;
  21. /**
  22. * Generated from protobuf field <code>int32 level = 3;</code>
  23. */
  24. protected $level = 0;
  25. /**
  26. * Generated from protobuf field <code>string bold1 = 4;</code>
  27. */
  28. protected $bold1 = '';
  29. /**
  30. * Generated from protobuf field <code>string bold2 = 5;</code>
  31. */
  32. protected $bold2 = '';
  33. /**
  34. * Generated from protobuf field <code>string bold3 = 6;</code>
  35. */
  36. protected $bold3 = '';
  37. /**
  38. * Generated from protobuf field <code>string content = 7;</code>
  39. */
  40. protected $content = '';
  41. /**
  42. * Generated from protobuf field <code>int32 pcd_book_id = 8;</code>
  43. */
  44. protected $pcd_book_id = 0;
  45. /**
  46. * Constructor.
  47. *
  48. * @param array $data {
  49. * Optional. Data for populating the Message object.
  50. *
  51. * @type int $book
  52. * @type int $paragraph
  53. * @type int $level
  54. * @type string $bold1
  55. * @type string $bold2
  56. * @type string $bold3
  57. * @type string $content
  58. * @type int $pcd_book_id
  59. * }
  60. */
  61. public function __construct($data = NULL) {
  62. \GPBMetadata\Tulip::initOnce();
  63. parent::__construct($data);
  64. }
  65. /**
  66. * Generated from protobuf field <code>int32 book = 1;</code>
  67. * @return int
  68. */
  69. public function getBook()
  70. {
  71. return $this->book;
  72. }
  73. /**
  74. * Generated from protobuf field <code>int32 book = 1;</code>
  75. * @param int $var
  76. * @return $this
  77. */
  78. public function setBook($var)
  79. {
  80. GPBUtil::checkInt32($var);
  81. $this->book = $var;
  82. return $this;
  83. }
  84. /**
  85. * Generated from protobuf field <code>int32 paragraph = 2;</code>
  86. * @return int
  87. */
  88. public function getParagraph()
  89. {
  90. return $this->paragraph;
  91. }
  92. /**
  93. * Generated from protobuf field <code>int32 paragraph = 2;</code>
  94. * @param int $var
  95. * @return $this
  96. */
  97. public function setParagraph($var)
  98. {
  99. GPBUtil::checkInt32($var);
  100. $this->paragraph = $var;
  101. return $this;
  102. }
  103. /**
  104. * Generated from protobuf field <code>int32 level = 3;</code>
  105. * @return int
  106. */
  107. public function getLevel()
  108. {
  109. return $this->level;
  110. }
  111. /**
  112. * Generated from protobuf field <code>int32 level = 3;</code>
  113. * @param int $var
  114. * @return $this
  115. */
  116. public function setLevel($var)
  117. {
  118. GPBUtil::checkInt32($var);
  119. $this->level = $var;
  120. return $this;
  121. }
  122. /**
  123. * Generated from protobuf field <code>string bold1 = 4;</code>
  124. * @return string
  125. */
  126. public function getBold1()
  127. {
  128. return $this->bold1;
  129. }
  130. /**
  131. * Generated from protobuf field <code>string bold1 = 4;</code>
  132. * @param string $var
  133. * @return $this
  134. */
  135. public function setBold1($var)
  136. {
  137. GPBUtil::checkString($var, True);
  138. $this->bold1 = $var;
  139. return $this;
  140. }
  141. /**
  142. * Generated from protobuf field <code>string bold2 = 5;</code>
  143. * @return string
  144. */
  145. public function getBold2()
  146. {
  147. return $this->bold2;
  148. }
  149. /**
  150. * Generated from protobuf field <code>string bold2 = 5;</code>
  151. * @param string $var
  152. * @return $this
  153. */
  154. public function setBold2($var)
  155. {
  156. GPBUtil::checkString($var, True);
  157. $this->bold2 = $var;
  158. return $this;
  159. }
  160. /**
  161. * Generated from protobuf field <code>string bold3 = 6;</code>
  162. * @return string
  163. */
  164. public function getBold3()
  165. {
  166. return $this->bold3;
  167. }
  168. /**
  169. * Generated from protobuf field <code>string bold3 = 6;</code>
  170. * @param string $var
  171. * @return $this
  172. */
  173. public function setBold3($var)
  174. {
  175. GPBUtil::checkString($var, True);
  176. $this->bold3 = $var;
  177. return $this;
  178. }
  179. /**
  180. * Generated from protobuf field <code>string content = 7;</code>
  181. * @return string
  182. */
  183. public function getContent()
  184. {
  185. return $this->content;
  186. }
  187. /**
  188. * Generated from protobuf field <code>string content = 7;</code>
  189. * @param string $var
  190. * @return $this
  191. */
  192. public function setContent($var)
  193. {
  194. GPBUtil::checkString($var, True);
  195. $this->content = $var;
  196. return $this;
  197. }
  198. /**
  199. * Generated from protobuf field <code>int32 pcd_book_id = 8;</code>
  200. * @return int
  201. */
  202. public function getPcdBookId()
  203. {
  204. return $this->pcd_book_id;
  205. }
  206. /**
  207. * Generated from protobuf field <code>int32 pcd_book_id = 8;</code>
  208. * @param int $var
  209. * @return $this
  210. */
  211. public function setPcdBookId($var)
  212. {
  213. GPBUtil::checkInt32($var);
  214. $this->pcd_book_id = $var;
  215. return $this;
  216. }
  217. }