Written.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_topic.proto
  4. namespace Ydb\Topic\StreamWriteMessage\WriteResponse\WriteAck;
  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.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written</code>
  10. */
  11. class Written extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Assigned partition offset.
  15. *
  16. * Generated from protobuf field <code>int64 offset = 1;</code>
  17. */
  18. protected $offset = 0;
  19. /**
  20. * Constructor.
  21. *
  22. * @param array $data {
  23. * Optional. Data for populating the Message object.
  24. *
  25. * @type int|string $offset
  26. * Assigned partition offset.
  27. * }
  28. */
  29. public function __construct($data = NULL) {
  30. \GPBMetadata\Protos\YdbTopic::initOnce();
  31. parent::__construct($data);
  32. }
  33. /**
  34. * Assigned partition offset.
  35. *
  36. * Generated from protobuf field <code>int64 offset = 1;</code>
  37. * @return int|string
  38. */
  39. public function getOffset()
  40. {
  41. return $this->offset;
  42. }
  43. /**
  44. * Assigned partition offset.
  45. *
  46. * Generated from protobuf field <code>int64 offset = 1;</code>
  47. * @param int|string $var
  48. * @return $this
  49. */
  50. public function setOffset($var)
  51. {
  52. GPBUtil::checkInt64($var);
  53. $this->offset = $var;
  54. return $this;
  55. }
  56. }
  57. // Adding a class alias for backwards compatibility with the previous class name.
  58. class_alias(Written::class, \Ydb\Topic\StreamWriteMessage_WriteResponse_WriteAck_Written::class);