12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_topic.proto
- namespace Ydb\Topic\StreamWriteMessage\WriteResponse\WriteAck;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Generated from protobuf message <code>Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped</code>
- */
- class Skipped extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>.Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason reason = 1;</code>
- */
- protected $reason = 0;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $reason
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbTopic::initOnce();
- parent::__construct($data);
- }
- /**
- * Generated from protobuf field <code>.Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason reason = 1;</code>
- * @return int
- */
- public function getReason()
- {
- return $this->reason;
- }
- /**
- * Generated from protobuf field <code>.Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason reason = 1;</code>
- * @param int $var
- * @return $this
- */
- public function setReason($var)
- {
- GPBUtil::checkEnum($var, \Ydb\Topic\StreamWriteMessage\WriteResponse\WriteAck\Skipped\Reason::class);
- $this->reason = $var;
- return $this;
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(Skipped::class, \Ydb\Topic\StreamWriteMessage_WriteResponse_WriteAck_Skipped::class);
|