OffsetsRange.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_topic.proto
  4. namespace Ydb\Topic;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Represents range [start, end).
  10. * I.e. (end - 1) is the greatest of offsets, included in non-empty range.
  11. *
  12. * Generated from protobuf message <code>Ydb.Topic.OffsetsRange</code>
  13. */
  14. class OffsetsRange extends \Google\Protobuf\Internal\Message
  15. {
  16. /**
  17. * Generated from protobuf field <code>int64 start = 1;</code>
  18. */
  19. protected $start = 0;
  20. /**
  21. * Generated from protobuf field <code>int64 end = 2;</code>
  22. */
  23. protected $end = 0;
  24. /**
  25. * Constructor.
  26. *
  27. * @param array $data {
  28. * Optional. Data for populating the Message object.
  29. *
  30. * @type int|string $start
  31. * @type int|string $end
  32. * }
  33. */
  34. public function __construct($data = NULL) {
  35. \GPBMetadata\Protos\YdbTopic::initOnce();
  36. parent::__construct($data);
  37. }
  38. /**
  39. * Generated from protobuf field <code>int64 start = 1;</code>
  40. * @return int|string
  41. */
  42. public function getStart()
  43. {
  44. return $this->start;
  45. }
  46. /**
  47. * Generated from protobuf field <code>int64 start = 1;</code>
  48. * @param int|string $var
  49. * @return $this
  50. */
  51. public function setStart($var)
  52. {
  53. GPBUtil::checkInt64($var);
  54. $this->start = $var;
  55. return $this;
  56. }
  57. /**
  58. * Generated from protobuf field <code>int64 end = 2;</code>
  59. * @return int|string
  60. */
  61. public function getEnd()
  62. {
  63. return $this->end;
  64. }
  65. /**
  66. * Generated from protobuf field <code>int64 end = 2;</code>
  67. * @param int|string $var
  68. * @return $this
  69. */
  70. public function setEnd($var)
  71. {
  72. GPBUtil::checkInt64($var);
  73. $this->end = $var;
  74. return $this;
  75. }
  76. }