Limit.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/annotations/validation.proto
  4. namespace Ydb;
  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.Limit</code>
  10. */
  11. class Limit extends \Google\Protobuf\Internal\Message
  12. {
  13. protected $kind;
  14. /**
  15. * Constructor.
  16. *
  17. * @param array $data {
  18. * Optional. Data for populating the Message object.
  19. *
  20. * @type \Ydb\Limit\Range $range
  21. * @type int $lt
  22. * @type int $le
  23. * @type int $eq
  24. * @type int $ge
  25. * @type int $gt
  26. * }
  27. */
  28. public function __construct($data = NULL) {
  29. \GPBMetadata\Protos\Annotations\Validation::initOnce();
  30. parent::__construct($data);
  31. }
  32. /**
  33. * Generated from protobuf field <code>.Ydb.Limit.Range range = 1;</code>
  34. * @return \Ydb\Limit\Range|null
  35. */
  36. public function getRange()
  37. {
  38. return $this->readOneof(1);
  39. }
  40. public function hasRange()
  41. {
  42. return $this->hasOneof(1);
  43. }
  44. /**
  45. * Generated from protobuf field <code>.Ydb.Limit.Range range = 1;</code>
  46. * @param \Ydb\Limit\Range $var
  47. * @return $this
  48. */
  49. public function setRange($var)
  50. {
  51. GPBUtil::checkMessage($var, \Ydb\Limit\Range::class);
  52. $this->writeOneof(1, $var);
  53. return $this;
  54. }
  55. /**
  56. * Generated from protobuf field <code>uint32 lt = 2;</code>
  57. * @return int
  58. */
  59. public function getLt()
  60. {
  61. return $this->readOneof(2);
  62. }
  63. public function hasLt()
  64. {
  65. return $this->hasOneof(2);
  66. }
  67. /**
  68. * Generated from protobuf field <code>uint32 lt = 2;</code>
  69. * @param int $var
  70. * @return $this
  71. */
  72. public function setLt($var)
  73. {
  74. GPBUtil::checkUint32($var);
  75. $this->writeOneof(2, $var);
  76. return $this;
  77. }
  78. /**
  79. * Generated from protobuf field <code>uint32 le = 3;</code>
  80. * @return int
  81. */
  82. public function getLe()
  83. {
  84. return $this->readOneof(3);
  85. }
  86. public function hasLe()
  87. {
  88. return $this->hasOneof(3);
  89. }
  90. /**
  91. * Generated from protobuf field <code>uint32 le = 3;</code>
  92. * @param int $var
  93. * @return $this
  94. */
  95. public function setLe($var)
  96. {
  97. GPBUtil::checkUint32($var);
  98. $this->writeOneof(3, $var);
  99. return $this;
  100. }
  101. /**
  102. * Generated from protobuf field <code>uint32 eq = 4;</code>
  103. * @return int
  104. */
  105. public function getEq()
  106. {
  107. return $this->readOneof(4);
  108. }
  109. public function hasEq()
  110. {
  111. return $this->hasOneof(4);
  112. }
  113. /**
  114. * Generated from protobuf field <code>uint32 eq = 4;</code>
  115. * @param int $var
  116. * @return $this
  117. */
  118. public function setEq($var)
  119. {
  120. GPBUtil::checkUint32($var);
  121. $this->writeOneof(4, $var);
  122. return $this;
  123. }
  124. /**
  125. * Generated from protobuf field <code>uint32 ge = 5;</code>
  126. * @return int
  127. */
  128. public function getGe()
  129. {
  130. return $this->readOneof(5);
  131. }
  132. public function hasGe()
  133. {
  134. return $this->hasOneof(5);
  135. }
  136. /**
  137. * Generated from protobuf field <code>uint32 ge = 5;</code>
  138. * @param int $var
  139. * @return $this
  140. */
  141. public function setGe($var)
  142. {
  143. GPBUtil::checkUint32($var);
  144. $this->writeOneof(5, $var);
  145. return $this;
  146. }
  147. /**
  148. * Generated from protobuf field <code>uint32 gt = 6;</code>
  149. * @return int
  150. */
  151. public function getGt()
  152. {
  153. return $this->readOneof(6);
  154. }
  155. public function hasGt()
  156. {
  157. return $this->hasOneof(6);
  158. }
  159. /**
  160. * Generated from protobuf field <code>uint32 gt = 6;</code>
  161. * @param int $var
  162. * @return $this
  163. */
  164. public function setGt($var)
  165. {
  166. GPBUtil::checkUint32($var);
  167. $this->writeOneof(6, $var);
  168. return $this;
  169. }
  170. /**
  171. * @return string
  172. */
  173. public function getKind()
  174. {
  175. return $this->whichOneof("kind");
  176. }
  177. }