// DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/cpp/mod.rs
// Based on "crates/store/re_sdk_types/definitions/rerun/blueprint/datatypes/text_log_column.fbs".

#pragma once

#include "../../result.hpp"

#include <cstdint>
#include <memory>

namespace arrow {
    /// \private
    template <typename T>
    class NumericBuilder;

    class Array;
    class DataType;
    class UInt8Type;
    using UInt8Builder = NumericBuilder<UInt8Type>;
} // namespace arrow

namespace rerun::blueprint::datatypes {
    /// **Datatype**: A text log column kind.
    enum class TextLogColumnKind : uint8_t {

        /// Which entity path this was logged to.
        EntityPath = 1,

        /// The log level, i.e INFO, WARN, ERROR.
        LogLevel = 2,

        /// The text message the log has.
        Body = 3,
    };
} // namespace rerun::blueprint::datatypes

namespace rerun {
    template <typename T>
    struct Loggable;

    /// \private
    template <>
    struct Loggable<blueprint::datatypes::TextLogColumnKind> {
        static constexpr std::string_view ComponentType =
            "rerun.blueprint.datatypes.TextLogColumnKind";

        /// Returns the arrow data type this type corresponds to.
        static const std::shared_ptr<arrow::DataType>& arrow_datatype();

        /// Serializes an array of `rerun::blueprint:: datatypes::TextLogColumnKind` into an arrow array.
        static Result<std::shared_ptr<arrow::Array>> to_arrow(
            const blueprint::datatypes::TextLogColumnKind* instances, size_t num_instances
        );

        /// Fills an arrow array builder with an array of this type.
        static rerun::Error fill_arrow_array_builder(
            arrow::UInt8Builder* builder, const blueprint::datatypes::TextLogColumnKind* elements,
            size_t num_elements
        );
    };
} // namespace rerun
