Skipped.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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.Skipped</code>
  10. */
  11. class Skipped extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>.Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason reason = 1;</code>
  15. */
  16. protected $reason = 0;
  17. /**
  18. * Constructor.
  19. *
  20. * @param array $data {
  21. * Optional. Data for populating the Message object.
  22. *
  23. * @type int $reason
  24. * }
  25. */
  26. public function __construct($data = NULL) {
  27. \GPBMetadata\Protos\YdbTopic::initOnce();
  28. parent::__construct($data);
  29. }
  30. /**
  31. * Generated from protobuf field <code>.Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason reason = 1;</code>
  32. * @return int
  33. */
  34. public function getReason()
  35. {
  36. return $this->reason;
  37. }
  38. /**
  39. * Generated from protobuf field <code>.Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason reason = 1;</code>
  40. * @param int $var
  41. * @return $this
  42. */
  43. public function setReason($var)
  44. {
  45. GPBUtil::checkEnum($var, \Ydb\Topic\StreamWriteMessage\WriteResponse\WriteAck\Skipped\Reason::class);
  46. $this->reason = $var;
  47. return $this;
  48. }
  49. }
  50. // Adding a class alias for backwards compatibility with the previous class name.
  51. class_alias(Skipped::class, \Ydb\Topic\StreamWriteMessage_WriteResponse_WriteAck_Skipped::class);