Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped */ class Skipped extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason reason = 1; */ 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 .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason reason = 1; * @return int */ public function getReason() { return $this->reason; } /** * Generated from protobuf field .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason reason = 1; * @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);