SessionResponse.php 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547
  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 response message sent from server to client
  11. *
  12. * Generated from protobuf message <code>Ydb.Coordination.SessionResponse</code>
  13. */
  14. class SessionResponse extends \Google\Protobuf\Internal\Message
  15. {
  16. protected $response;
  17. /**
  18. * Constructor.
  19. *
  20. * @param array $data {
  21. * Optional. Data for populating the Message object.
  22. *
  23. * @type \Ydb\Coordination\SessionResponse\PingPong $ping
  24. * @type \Ydb\Coordination\SessionResponse\PingPong $pong
  25. * @type \Ydb\Coordination\SessionResponse\Failure $failure
  26. * @type \Ydb\Coordination\SessionResponse\SessionStarted $session_started
  27. * @type \Ydb\Coordination\SessionResponse\SessionStopped $session_stopped
  28. * @type \Ydb\Coordination\Unsupported $unsupported_6
  29. * @type \Ydb\Coordination\Unsupported $unsupported_7
  30. * @type \Ydb\Coordination\SessionResponse\AcquireSemaphorePending $acquire_semaphore_pending
  31. * @type \Ydb\Coordination\SessionResponse\AcquireSemaphoreResult $acquire_semaphore_result
  32. * @type \Ydb\Coordination\SessionResponse\ReleaseSemaphoreResult $release_semaphore_result
  33. * @type \Ydb\Coordination\SessionResponse\DescribeSemaphoreResult $describe_semaphore_result
  34. * @type \Ydb\Coordination\SessionResponse\DescribeSemaphoreChanged $describe_semaphore_changed
  35. * @type \Ydb\Coordination\SessionResponse\CreateSemaphoreResult $create_semaphore_result
  36. * @type \Ydb\Coordination\SessionResponse\UpdateSemaphoreResult $update_semaphore_result
  37. * @type \Ydb\Coordination\SessionResponse\DeleteSemaphoreResult $delete_semaphore_result
  38. * @type \Ydb\Coordination\Unsupported $unsupported_16
  39. * @type \Ydb\Coordination\Unsupported $unsupported_17
  40. * @type \Ydb\Coordination\Unsupported $unsupported_18
  41. * }
  42. */
  43. public function __construct($data = NULL) {
  44. \GPBMetadata\Protos\YdbCoordination::initOnce();
  45. parent::__construct($data);
  46. }
  47. /**
  48. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.PingPong ping = 1;</code>
  49. * @return \Ydb\Coordination\SessionResponse\PingPong|null
  50. */
  51. public function getPing()
  52. {
  53. return $this->readOneof(1);
  54. }
  55. public function hasPing()
  56. {
  57. return $this->hasOneof(1);
  58. }
  59. /**
  60. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.PingPong ping = 1;</code>
  61. * @param \Ydb\Coordination\SessionResponse\PingPong $var
  62. * @return $this
  63. */
  64. public function setPing($var)
  65. {
  66. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionResponse\PingPong::class);
  67. $this->writeOneof(1, $var);
  68. return $this;
  69. }
  70. /**
  71. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.PingPong pong = 2;</code>
  72. * @return \Ydb\Coordination\SessionResponse\PingPong|null
  73. */
  74. public function getPong()
  75. {
  76. return $this->readOneof(2);
  77. }
  78. public function hasPong()
  79. {
  80. return $this->hasOneof(2);
  81. }
  82. /**
  83. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.PingPong pong = 2;</code>
  84. * @param \Ydb\Coordination\SessionResponse\PingPong $var
  85. * @return $this
  86. */
  87. public function setPong($var)
  88. {
  89. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionResponse\PingPong::class);
  90. $this->writeOneof(2, $var);
  91. return $this;
  92. }
  93. /**
  94. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.Failure failure = 3;</code>
  95. * @return \Ydb\Coordination\SessionResponse\Failure|null
  96. */
  97. public function getFailure()
  98. {
  99. return $this->readOneof(3);
  100. }
  101. public function hasFailure()
  102. {
  103. return $this->hasOneof(3);
  104. }
  105. /**
  106. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.Failure failure = 3;</code>
  107. * @param \Ydb\Coordination\SessionResponse\Failure $var
  108. * @return $this
  109. */
  110. public function setFailure($var)
  111. {
  112. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionResponse\Failure::class);
  113. $this->writeOneof(3, $var);
  114. return $this;
  115. }
  116. /**
  117. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.SessionStarted session_started = 4;</code>
  118. * @return \Ydb\Coordination\SessionResponse\SessionStarted|null
  119. */
  120. public function getSessionStarted()
  121. {
  122. return $this->readOneof(4);
  123. }
  124. public function hasSessionStarted()
  125. {
  126. return $this->hasOneof(4);
  127. }
  128. /**
  129. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.SessionStarted session_started = 4;</code>
  130. * @param \Ydb\Coordination\SessionResponse\SessionStarted $var
  131. * @return $this
  132. */
  133. public function setSessionStarted($var)
  134. {
  135. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionResponse\SessionStarted::class);
  136. $this->writeOneof(4, $var);
  137. return $this;
  138. }
  139. /**
  140. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.SessionStopped session_stopped = 5;</code>
  141. * @return \Ydb\Coordination\SessionResponse\SessionStopped|null
  142. */
  143. public function getSessionStopped()
  144. {
  145. return $this->readOneof(5);
  146. }
  147. public function hasSessionStopped()
  148. {
  149. return $this->hasOneof(5);
  150. }
  151. /**
  152. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.SessionStopped session_stopped = 5;</code>
  153. * @param \Ydb\Coordination\SessionResponse\SessionStopped $var
  154. * @return $this
  155. */
  156. public function setSessionStopped($var)
  157. {
  158. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionResponse\SessionStopped::class);
  159. $this->writeOneof(5, $var);
  160. return $this;
  161. }
  162. /**
  163. * Generated from protobuf field <code>.Ydb.Coordination.Unsupported unsupported_6 = 6;</code>
  164. * @return \Ydb\Coordination\Unsupported|null
  165. */
  166. public function getUnsupported6()
  167. {
  168. return $this->readOneof(6);
  169. }
  170. public function hasUnsupported6()
  171. {
  172. return $this->hasOneof(6);
  173. }
  174. /**
  175. * Generated from protobuf field <code>.Ydb.Coordination.Unsupported unsupported_6 = 6;</code>
  176. * @param \Ydb\Coordination\Unsupported $var
  177. * @return $this
  178. */
  179. public function setUnsupported6($var)
  180. {
  181. GPBUtil::checkMessage($var, \Ydb\Coordination\Unsupported::class);
  182. $this->writeOneof(6, $var);
  183. return $this;
  184. }
  185. /**
  186. * Generated from protobuf field <code>.Ydb.Coordination.Unsupported unsupported_7 = 7;</code>
  187. * @return \Ydb\Coordination\Unsupported|null
  188. */
  189. public function getUnsupported7()
  190. {
  191. return $this->readOneof(7);
  192. }
  193. public function hasUnsupported7()
  194. {
  195. return $this->hasOneof(7);
  196. }
  197. /**
  198. * Generated from protobuf field <code>.Ydb.Coordination.Unsupported unsupported_7 = 7;</code>
  199. * @param \Ydb\Coordination\Unsupported $var
  200. * @return $this
  201. */
  202. public function setUnsupported7($var)
  203. {
  204. GPBUtil::checkMessage($var, \Ydb\Coordination\Unsupported::class);
  205. $this->writeOneof(7, $var);
  206. return $this;
  207. }
  208. /**
  209. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.AcquireSemaphorePending acquire_semaphore_pending = 8;</code>
  210. * @return \Ydb\Coordination\SessionResponse\AcquireSemaphorePending|null
  211. */
  212. public function getAcquireSemaphorePending()
  213. {
  214. return $this->readOneof(8);
  215. }
  216. public function hasAcquireSemaphorePending()
  217. {
  218. return $this->hasOneof(8);
  219. }
  220. /**
  221. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.AcquireSemaphorePending acquire_semaphore_pending = 8;</code>
  222. * @param \Ydb\Coordination\SessionResponse\AcquireSemaphorePending $var
  223. * @return $this
  224. */
  225. public function setAcquireSemaphorePending($var)
  226. {
  227. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionResponse\AcquireSemaphorePending::class);
  228. $this->writeOneof(8, $var);
  229. return $this;
  230. }
  231. /**
  232. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.AcquireSemaphoreResult acquire_semaphore_result = 9;</code>
  233. * @return \Ydb\Coordination\SessionResponse\AcquireSemaphoreResult|null
  234. */
  235. public function getAcquireSemaphoreResult()
  236. {
  237. return $this->readOneof(9);
  238. }
  239. public function hasAcquireSemaphoreResult()
  240. {
  241. return $this->hasOneof(9);
  242. }
  243. /**
  244. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.AcquireSemaphoreResult acquire_semaphore_result = 9;</code>
  245. * @param \Ydb\Coordination\SessionResponse\AcquireSemaphoreResult $var
  246. * @return $this
  247. */
  248. public function setAcquireSemaphoreResult($var)
  249. {
  250. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionResponse\AcquireSemaphoreResult::class);
  251. $this->writeOneof(9, $var);
  252. return $this;
  253. }
  254. /**
  255. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.ReleaseSemaphoreResult release_semaphore_result = 10;</code>
  256. * @return \Ydb\Coordination\SessionResponse\ReleaseSemaphoreResult|null
  257. */
  258. public function getReleaseSemaphoreResult()
  259. {
  260. return $this->readOneof(10);
  261. }
  262. public function hasReleaseSemaphoreResult()
  263. {
  264. return $this->hasOneof(10);
  265. }
  266. /**
  267. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.ReleaseSemaphoreResult release_semaphore_result = 10;</code>
  268. * @param \Ydb\Coordination\SessionResponse\ReleaseSemaphoreResult $var
  269. * @return $this
  270. */
  271. public function setReleaseSemaphoreResult($var)
  272. {
  273. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionResponse\ReleaseSemaphoreResult::class);
  274. $this->writeOneof(10, $var);
  275. return $this;
  276. }
  277. /**
  278. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.DescribeSemaphoreResult describe_semaphore_result = 11;</code>
  279. * @return \Ydb\Coordination\SessionResponse\DescribeSemaphoreResult|null
  280. */
  281. public function getDescribeSemaphoreResult()
  282. {
  283. return $this->readOneof(11);
  284. }
  285. public function hasDescribeSemaphoreResult()
  286. {
  287. return $this->hasOneof(11);
  288. }
  289. /**
  290. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.DescribeSemaphoreResult describe_semaphore_result = 11;</code>
  291. * @param \Ydb\Coordination\SessionResponse\DescribeSemaphoreResult $var
  292. * @return $this
  293. */
  294. public function setDescribeSemaphoreResult($var)
  295. {
  296. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionResponse\DescribeSemaphoreResult::class);
  297. $this->writeOneof(11, $var);
  298. return $this;
  299. }
  300. /**
  301. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.DescribeSemaphoreChanged describe_semaphore_changed = 12;</code>
  302. * @return \Ydb\Coordination\SessionResponse\DescribeSemaphoreChanged|null
  303. */
  304. public function getDescribeSemaphoreChanged()
  305. {
  306. return $this->readOneof(12);
  307. }
  308. public function hasDescribeSemaphoreChanged()
  309. {
  310. return $this->hasOneof(12);
  311. }
  312. /**
  313. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.DescribeSemaphoreChanged describe_semaphore_changed = 12;</code>
  314. * @param \Ydb\Coordination\SessionResponse\DescribeSemaphoreChanged $var
  315. * @return $this
  316. */
  317. public function setDescribeSemaphoreChanged($var)
  318. {
  319. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionResponse\DescribeSemaphoreChanged::class);
  320. $this->writeOneof(12, $var);
  321. return $this;
  322. }
  323. /**
  324. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.CreateSemaphoreResult create_semaphore_result = 13;</code>
  325. * @return \Ydb\Coordination\SessionResponse\CreateSemaphoreResult|null
  326. */
  327. public function getCreateSemaphoreResult()
  328. {
  329. return $this->readOneof(13);
  330. }
  331. public function hasCreateSemaphoreResult()
  332. {
  333. return $this->hasOneof(13);
  334. }
  335. /**
  336. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.CreateSemaphoreResult create_semaphore_result = 13;</code>
  337. * @param \Ydb\Coordination\SessionResponse\CreateSemaphoreResult $var
  338. * @return $this
  339. */
  340. public function setCreateSemaphoreResult($var)
  341. {
  342. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionResponse\CreateSemaphoreResult::class);
  343. $this->writeOneof(13, $var);
  344. return $this;
  345. }
  346. /**
  347. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.UpdateSemaphoreResult update_semaphore_result = 14;</code>
  348. * @return \Ydb\Coordination\SessionResponse\UpdateSemaphoreResult|null
  349. */
  350. public function getUpdateSemaphoreResult()
  351. {
  352. return $this->readOneof(14);
  353. }
  354. public function hasUpdateSemaphoreResult()
  355. {
  356. return $this->hasOneof(14);
  357. }
  358. /**
  359. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.UpdateSemaphoreResult update_semaphore_result = 14;</code>
  360. * @param \Ydb\Coordination\SessionResponse\UpdateSemaphoreResult $var
  361. * @return $this
  362. */
  363. public function setUpdateSemaphoreResult($var)
  364. {
  365. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionResponse\UpdateSemaphoreResult::class);
  366. $this->writeOneof(14, $var);
  367. return $this;
  368. }
  369. /**
  370. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.DeleteSemaphoreResult delete_semaphore_result = 15;</code>
  371. * @return \Ydb\Coordination\SessionResponse\DeleteSemaphoreResult|null
  372. */
  373. public function getDeleteSemaphoreResult()
  374. {
  375. return $this->readOneof(15);
  376. }
  377. public function hasDeleteSemaphoreResult()
  378. {
  379. return $this->hasOneof(15);
  380. }
  381. /**
  382. * Generated from protobuf field <code>.Ydb.Coordination.SessionResponse.DeleteSemaphoreResult delete_semaphore_result = 15;</code>
  383. * @param \Ydb\Coordination\SessionResponse\DeleteSemaphoreResult $var
  384. * @return $this
  385. */
  386. public function setDeleteSemaphoreResult($var)
  387. {
  388. GPBUtil::checkMessage($var, \Ydb\Coordination\SessionResponse\DeleteSemaphoreResult::class);
  389. $this->writeOneof(15, $var);
  390. return $this;
  391. }
  392. /**
  393. * Generated from protobuf field <code>.Ydb.Coordination.Unsupported unsupported_16 = 16;</code>
  394. * @return \Ydb\Coordination\Unsupported|null
  395. */
  396. public function getUnsupported16()
  397. {
  398. return $this->readOneof(16);
  399. }
  400. public function hasUnsupported16()
  401. {
  402. return $this->hasOneof(16);
  403. }
  404. /**
  405. * Generated from protobuf field <code>.Ydb.Coordination.Unsupported unsupported_16 = 16;</code>
  406. * @param \Ydb\Coordination\Unsupported $var
  407. * @return $this
  408. */
  409. public function setUnsupported16($var)
  410. {
  411. GPBUtil::checkMessage($var, \Ydb\Coordination\Unsupported::class);
  412. $this->writeOneof(16, $var);
  413. return $this;
  414. }
  415. /**
  416. * Generated from protobuf field <code>.Ydb.Coordination.Unsupported unsupported_17 = 17;</code>
  417. * @return \Ydb\Coordination\Unsupported|null
  418. */
  419. public function getUnsupported17()
  420. {
  421. return $this->readOneof(17);
  422. }
  423. public function hasUnsupported17()
  424. {
  425. return $this->hasOneof(17);
  426. }
  427. /**
  428. * Generated from protobuf field <code>.Ydb.Coordination.Unsupported unsupported_17 = 17;</code>
  429. * @param \Ydb\Coordination\Unsupported $var
  430. * @return $this
  431. */
  432. public function setUnsupported17($var)
  433. {
  434. GPBUtil::checkMessage($var, \Ydb\Coordination\Unsupported::class);
  435. $this->writeOneof(17, $var);
  436. return $this;
  437. }
  438. /**
  439. * Generated from protobuf field <code>.Ydb.Coordination.Unsupported unsupported_18 = 18;</code>
  440. * @return \Ydb\Coordination\Unsupported|null
  441. */
  442. public function getUnsupported18()
  443. {
  444. return $this->readOneof(18);
  445. }
  446. public function hasUnsupported18()
  447. {
  448. return $this->hasOneof(18);
  449. }
  450. /**
  451. * Generated from protobuf field <code>.Ydb.Coordination.Unsupported unsupported_18 = 18;</code>
  452. * @param \Ydb\Coordination\Unsupported $var
  453. * @return $this
  454. */
  455. public function setUnsupported18($var)
  456. {
  457. GPBUtil::checkMessage($var, \Ydb\Coordination\Unsupported::class);
  458. $this->writeOneof(18, $var);
  459. return $this;
  460. }
  461. /**
  462. * @return string
  463. */
  464. public function getResponse()
  465. {
  466. return $this->whichOneof("response");
  467. }
  468. }