Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written */ class Written extends \Google\Protobuf\Internal\Message { /** * Assigned partition offset. * * Generated from protobuf field int64 offset = 1; */ protected $offset = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int|string $offset * Assigned partition offset. * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbTopic::initOnce(); parent::__construct($data); } /** * Assigned partition offset. * * Generated from protobuf field int64 offset = 1; * @return int|string */ public function getOffset() { return $this->offset; } /** * Assigned partition offset. * * Generated from protobuf field int64 offset = 1; * @param int|string $var * @return $this */ public function setOffset($var) { GPBUtil::checkInt64($var); $this->offset = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Written::class, \Ydb\Topic\StreamWriteMessage_WriteResponse_WriteAck_Written::class);