6#include <userver/utils/fast_pimpl.hpp>
7#include <userver/utils/span.hpp>
23 using DataStorage = utils::FastPimpl<Data, 16 + 32 + 16, 8>;
28 Message(Message&&) =
default;
30 const std::string& GetTopic()
const;
31 std::string_view GetKey()
const;
32 std::string_view GetPayload()
const;
33 std::optional<std::chrono::milliseconds> GetTimestamp()
const;
34 int GetPartition()
const;
35 std::int64_t GetOffset()
const;
38 friend class impl::ConsumerImpl;
40 explicit Message(DataStorage data);
45using MessageBatchView = utils::span<
const Message>;