StopPartitionSessionResponse.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_topic.proto
  4. namespace Ydb\Topic\StreamReadMessage;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Signal for server that client finished working with this partition.
  10. * Must be sent only after corresponding StopPartitionSessionRequest from server.
  11. * Server will give this partition to other read session only after StopPartitionSessionResponse signal.
  12. *
  13. * Generated from protobuf message <code>Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse</code>
  14. */
  15. class StopPartitionSessionResponse extends \Google\Protobuf\Internal\Message
  16. {
  17. /**
  18. * Partition session identifier of partition session that is released by client.
  19. *
  20. * Generated from protobuf field <code>int64 partition_session_id = 1;</code>
  21. */
  22. protected $partition_session_id = 0;
  23. /**
  24. * Constructor.
  25. *
  26. * @param array $data {
  27. * Optional. Data for populating the Message object.
  28. *
  29. * @type int|string $partition_session_id
  30. * Partition session identifier of partition session that is released by client.
  31. * }
  32. */
  33. public function __construct($data = NULL) {
  34. \GPBMetadata\Protos\YdbTopic::initOnce();
  35. parent::__construct($data);
  36. }
  37. /**
  38. * Partition session identifier of partition session that is released by client.
  39. *
  40. * Generated from protobuf field <code>int64 partition_session_id = 1;</code>
  41. * @return int|string
  42. */
  43. public function getPartitionSessionId()
  44. {
  45. return $this->partition_session_id;
  46. }
  47. /**
  48. * Partition session identifier of partition session that is released by client.
  49. *
  50. * Generated from protobuf field <code>int64 partition_session_id = 1;</code>
  51. * @param int|string $var
  52. * @return $this
  53. */
  54. public function setPartitionSessionId($var)
  55. {
  56. GPBUtil::checkInt64($var);
  57. $this->partition_session_id = $var;
  58. return $this;
  59. }
  60. }
  61. // Adding a class alias for backwards compatibility with the previous class name.
  62. class_alias(StopPartitionSessionResponse::class, \Ydb\Topic\StreamReadMessage_StopPartitionSessionResponse::class);