SessionRequest.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_coordination.proto
  4. namespace Ydb\Coordination;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. **
  10. * Session request message sent from client to server
  11. *
  12. * Generated from protobuf message <code>Ydb.Coordination.SessionRequest</code>
  13. */
  14. class SessionRequest extends \Google\Protobuf\Internal\Message
  15. {
  16. protected $request;
  17. /**
  18. * Constructor.
  19. *
  20. * @param array $data {
  21. * Optional. Data for populating the Message object.
  22. *
  23. * @type \Ydb\Coordination\SessionRequest\PingPong $ping
  24. * @type \Ydb\Coordination\SessionRequest\PingPong $pong
  25. * @type \Ydb\Coordination\SessionRequest\SessionStart $session_start
  26. * @type \Ydb\Coordination\SessionRequest\SessionStop $session_stop
  27. * @type \Ydb\Coordination\Unsupported $unsupported_5
  28. * @type \Ydb\Coordination\Unsupported $unsupported_6
  29. * @type \Ydb\Coordination\SessionRequest\AcquireSemaphore $acquire_semaphore
  30. * @type \Ydb\Coordination\SessionRequest\ReleaseSemaphore $release_semaphore
  31. * @type \Ydb\Coordination\SessionRequest\DescribeSemaphore $describe_semaphore
  32. * @type \Ydb\Coordination\SessionRequest\CreateSemaphore $create_semaphore
  33. * @type \Ydb\Coordination\SessionRequest\UpdateSemaphore $update_semaphore
  34. * @type \Ydb\Coordination\SessionRequest\DeleteSemaphore $delete_semaphore
  35. * @type \Ydb\Coordination\Unsupported $unsupported_13
  36. * @type \Ydb\Coordination\Unsupported $unsupported_14
  37. * @type \Ydb\Coordination\Unsupported $unsupported_15
  38. * }
  39. */
  40. public function __construct($data = NULL) {
  41. \GPBMetadata\Protos\YdbCoordination::initOnce();
  42. parent::__construct($data);
  43. }
  44. /**
  45. * Generated from protobuf field <code>.Ydb.Coordination.SessionRequest.PingPong ping = 1;</code>
  46. * @return \Ydb\Coordination\SessionRequest\PingPong|null
  47. */
  48. public function getPing()
  49. {
  50. return $this->readOneof(1);
  51. }
  52. public function hasPing()
  53. {
  54. return $this->hasOneof(1);
  55. }
  56. /**
  57. * Generated from protobuf field <code>.Ydb.Coordination.SessionRequest.PingPong ping = 1;</code>
  58. * @param \Ydb\Coordination\SessionRequest\PingPong $var
  59. * @return $this
  60. */
  61. public function setPing($var)
  62. {
  63. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionRequest\PingPong::class);
  64. $this->writeOneof(1, $var);
  65. return $this;
  66. }
  67. /**
  68. * Generated from protobuf field <code>.Ydb.Coordination.SessionRequest.PingPong pong = 2;</code>
  69. * @return \Ydb\Coordination\SessionRequest\PingPong|null
  70. */
  71. public function getPong()
  72. {
  73. return $this->readOneof(2);
  74. }
  75. public function hasPong()
  76. {
  77. return $this->hasOneof(2);
  78. }
  79. /**
  80. * Generated from protobuf field <code>.Ydb.Coordination.SessionRequest.PingPong pong = 2;</code>
  81. * @param \Ydb\Coordination\SessionRequest\PingPong $var
  82. * @return $this
  83. */
  84. public function setPong($var)
  85. {
  86. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionRequest\PingPong::class);
  87. $this->writeOneof(2, $var);
  88. return $this;
  89. }
  90. /**
  91. * Generated from protobuf field <code>.Ydb.Coordination.SessionRequest.SessionStart session_start = 3;</code>
  92. * @return \Ydb\Coordination\SessionRequest\SessionStart|null
  93. */
  94. public function getSessionStart()
  95. {
  96. return $this->readOneof(3);
  97. }
  98. public function hasSessionStart()
  99. {
  100. return $this->hasOneof(3);
  101. }
  102. /**
  103. * Generated from protobuf field <code>.Ydb.Coordination.SessionRequest.SessionStart session_start = 3;</code>
  104. * @param \Ydb\Coordination\SessionRequest\SessionStart $var
  105. * @return $this
  106. */
  107. public function setSessionStart($var)
  108. {
  109. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionRequest\SessionStart::class);
  110. $this->writeOneof(3, $var);
  111. return $this;
  112. }
  113. /**
  114. * Generated from protobuf field <code>.Ydb.Coordination.SessionRequest.SessionStop session_stop = 4;</code>
  115. * @return \Ydb\Coordination\SessionRequest\SessionStop|null
  116. */
  117. public function getSessionStop()
  118. {
  119. return $this->readOneof(4);
  120. }
  121. public function hasSessionStop()
  122. {
  123. return $this->hasOneof(4);
  124. }
  125. /**
  126. * Generated from protobuf field <code>.Ydb.Coordination.SessionRequest.SessionStop session_stop = 4;</code>
  127. * @param \Ydb\Coordination\SessionRequest\SessionStop $var
  128. * @return $this
  129. */
  130. public function setSessionStop($var)
  131. {
  132. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionRequest\SessionStop::class);
  133. $this->writeOneof(4, $var);
  134. return $this;
  135. }
  136. /**
  137. * Generated from protobuf field <code>.Ydb.Coordination.Unsupported unsupported_5 = 5;</code>
  138. * @return \Ydb\Coordination\Unsupported|null
  139. */
  140. public function getUnsupported5()
  141. {
  142. return $this->readOneof(5);
  143. }
  144. public function hasUnsupported5()
  145. {
  146. return $this->hasOneof(5);
  147. }
  148. /**
  149. * Generated from protobuf field <code>.Ydb.Coordination.Unsupported unsupported_5 = 5;</code>
  150. * @param \Ydb\Coordination\Unsupported $var
  151. * @return $this
  152. */
  153. public function setUnsupported5($var)
  154. {
  155. GPBUtil::checkMessage($var, \Ydb\Coordination\Unsupported::class);
  156. $this->writeOneof(5, $var);
  157. return $this;
  158. }
  159. /**
  160. * Generated from protobuf field <code>.Ydb.Coordination.Unsupported unsupported_6 = 6;</code>
  161. * @return \Ydb\Coordination\Unsupported|null
  162. */
  163. public function getUnsupported6()
  164. {
  165. return $this->readOneof(6);
  166. }
  167. public function hasUnsupported6()
  168. {
  169. return $this->hasOneof(6);
  170. }
  171. /**
  172. * Generated from protobuf field <code>.Ydb.Coordination.Unsupported unsupported_6 = 6;</code>
  173. * @param \Ydb\Coordination\Unsupported $var
  174. * @return $this
  175. */
  176. public function setUnsupported6($var)
  177. {
  178. GPBUtil::checkMessage($var, \Ydb\Coordination\Unsupported::class);
  179. $this->writeOneof(6, $var);
  180. return $this;
  181. }
  182. /**
  183. * Generated from protobuf field <code>.Ydb.Coordination.SessionRequest.AcquireSemaphore acquire_semaphore = 7;</code>
  184. * @return \Ydb\Coordination\SessionRequest\AcquireSemaphore|null
  185. */
  186. public function getAcquireSemaphore()
  187. {
  188. return $this->readOneof(7);
  189. }
  190. public function hasAcquireSemaphore()
  191. {
  192. return $this->hasOneof(7);
  193. }
  194. /**
  195. * Generated from protobuf field <code>.Ydb.Coordination.SessionRequest.AcquireSemaphore acquire_semaphore = 7;</code>
  196. * @param \Ydb\Coordination\SessionRequest\AcquireSemaphore $var
  197. * @return $this
  198. */
  199. public function setAcquireSemaphore($var)
  200. {
  201. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionRequest\AcquireSemaphore::class);
  202. $this->writeOneof(7, $var);
  203. return $this;
  204. }
  205. /**
  206. * Generated from protobuf field <code>.Ydb.Coordination.SessionRequest.ReleaseSemaphore release_semaphore = 8;</code>
  207. * @return \Ydb\Coordination\SessionRequest\ReleaseSemaphore|null
  208. */
  209. public function getReleaseSemaphore()
  210. {
  211. return $this->readOneof(8);
  212. }
  213. public function hasReleaseSemaphore()
  214. {
  215. return $this->hasOneof(8);
  216. }
  217. /**
  218. * Generated from protobuf field <code>.Ydb.Coordination.SessionRequest.ReleaseSemaphore release_semaphore = 8;</code>
  219. * @param \Ydb\Coordination\SessionRequest\ReleaseSemaphore $var
  220. * @return $this
  221. */
  222. public function setReleaseSemaphore($var)
  223. {
  224. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionRequest\ReleaseSemaphore::class);
  225. $this->writeOneof(8, $var);
  226. return $this;
  227. }
  228. /**
  229. * Generated from protobuf field <code>.Ydb.Coordination.SessionRequest.DescribeSemaphore describe_semaphore = 9;</code>
  230. * @return \Ydb\Coordination\SessionRequest\DescribeSemaphore|null
  231. */
  232. public function getDescribeSemaphore()
  233. {
  234. return $this->readOneof(9);
  235. }
  236. public function hasDescribeSemaphore()
  237. {
  238. return $this->hasOneof(9);
  239. }
  240. /**
  241. * Generated from protobuf field <code>.Ydb.Coordination.SessionRequest.DescribeSemaphore describe_semaphore = 9;</code>
  242. * @param \Ydb\Coordination\SessionRequest\DescribeSemaphore $var
  243. * @return $this
  244. */
  245. public function setDescribeSemaphore($var)
  246. {
  247. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionRequest\DescribeSemaphore::class);
  248. $this->writeOneof(9, $var);
  249. return $this;
  250. }
  251. /**
  252. * Generated from protobuf field <code>.Ydb.Coordination.SessionRequest.CreateSemaphore create_semaphore = 10;</code>
  253. * @return \Ydb\Coordination\SessionRequest\CreateSemaphore|null
  254. */
  255. public function getCreateSemaphore()
  256. {
  257. return $this->readOneof(10);
  258. }
  259. public function hasCreateSemaphore()
  260. {
  261. return $this->hasOneof(10);
  262. }
  263. /**
  264. * Generated from protobuf field <code>.Ydb.Coordination.SessionRequest.CreateSemaphore create_semaphore = 10;</code>
  265. * @param \Ydb\Coordination\SessionRequest\CreateSemaphore $var
  266. * @return $this
  267. */
  268. public function setCreateSemaphore($var)
  269. {
  270. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionRequest\CreateSemaphore::class);
  271. $this->writeOneof(10, $var);
  272. return $this;
  273. }
  274. /**
  275. * Generated from protobuf field <code>.Ydb.Coordination.SessionRequest.UpdateSemaphore update_semaphore = 11;</code>
  276. * @return \Ydb\Coordination\SessionRequest\UpdateSemaphore|null
  277. */
  278. public function getUpdateSemaphore()
  279. {
  280. return $this->readOneof(11);
  281. }
  282. public function hasUpdateSemaphore()
  283. {
  284. return $this->hasOneof(11);
  285. }
  286. /**
  287. * Generated from protobuf field <code>.Ydb.Coordination.SessionRequest.UpdateSemaphore update_semaphore = 11;</code>
  288. * @param \Ydb\Coordination\SessionRequest\UpdateSemaphore $var
  289. * @return $this
  290. */
  291. public function setUpdateSemaphore($var)
  292. {
  293. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionRequest\UpdateSemaphore::class);
  294. $this->writeOneof(11, $var);
  295. return $this;
  296. }
  297. /**
  298. * Generated from protobuf field <code>.Ydb.Coordination.SessionRequest.DeleteSemaphore delete_semaphore = 12;</code>
  299. * @return \Ydb\Coordination\SessionRequest\DeleteSemaphore|null
  300. */
  301. public function getDeleteSemaphore()
  302. {
  303. return $this->readOneof(12);
  304. }
  305. public function hasDeleteSemaphore()
  306. {
  307. return $this->hasOneof(12);
  308. }
  309. /**
  310. * Generated from protobuf field <code>.Ydb.Coordination.SessionRequest.DeleteSemaphore delete_semaphore = 12;</code>
  311. * @param \Ydb\Coordination\SessionRequest\DeleteSemaphore $var
  312. * @return $this
  313. */
  314. public function setDeleteSemaphore($var)
  315. {
  316. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionRequest\DeleteSemaphore::class);
  317. $this->writeOneof(12, $var);
  318. return $this;
  319. }
  320. /**
  321. * Generated from protobuf field <code>.Ydb.Coordination.Unsupported unsupported_13 = 13;</code>
  322. * @return \Ydb\Coordination\Unsupported|null
  323. */
  324. public function getUnsupported13()
  325. {
  326. return $this->readOneof(13);
  327. }
  328. public function hasUnsupported13()
  329. {
  330. return $this->hasOneof(13);
  331. }
  332. /**
  333. * Generated from protobuf field <code>.Ydb.Coordination.Unsupported unsupported_13 = 13;</code>
  334. * @param \Ydb\Coordination\Unsupported $var
  335. * @return $this
  336. */
  337. public function setUnsupported13($var)
  338. {
  339. GPBUtil::checkMessage($var, \Ydb\Coordination\Unsupported::class);
  340. $this->writeOneof(13, $var);
  341. return $this;
  342. }
  343. /**
  344. * Generated from protobuf field <code>.Ydb.Coordination.Unsupported unsupported_14 = 14;</code>
  345. * @return \Ydb\Coordination\Unsupported|null
  346. */
  347. public function getUnsupported14()
  348. {
  349. return $this->readOneof(14);
  350. }
  351. public function hasUnsupported14()
  352. {
  353. return $this->hasOneof(14);
  354. }
  355. /**
  356. * Generated from protobuf field <code>.Ydb.Coordination.Unsupported unsupported_14 = 14;</code>
  357. * @param \Ydb\Coordination\Unsupported $var
  358. * @return $this
  359. */
  360. public function setUnsupported14($var)
  361. {
  362. GPBUtil::checkMessage($var, \Ydb\Coordination\Unsupported::class);
  363. $this->writeOneof(14, $var);
  364. return $this;
  365. }
  366. /**
  367. * Generated from protobuf field <code>.Ydb.Coordination.Unsupported unsupported_15 = 15;</code>
  368. * @return \Ydb\Coordination\Unsupported|null
  369. */
  370. public function getUnsupported15()
  371. {
  372. return $this->readOneof(15);
  373. }
  374. public function hasUnsupported15()
  375. {
  376. return $this->hasOneof(15);
  377. }
  378. /**
  379. * Generated from protobuf field <code>.Ydb.Coordination.Unsupported unsupported_15 = 15;</code>
  380. * @param \Ydb\Coordination\Unsupported $var
  381. * @return $this
  382. */
  383. public function setUnsupported15($var)
  384. {
  385. GPBUtil::checkMessage($var, \Ydb\Coordination\Unsupported::class);
  386. $this->writeOneof(15, $var);
  387. return $this;
  388. }
  389. /**
  390. * @return string
  391. */
  392. public function getRequest()
  393. {
  394. return $this->whichOneof("request");
  395. }
  396. }