/**
 * Autogenerated by Thrift for /opt/local/var/macports/build/fbthrift-07c1dc61/work/fbthrift-2025.12.15.00/thrift/lib/thrift/record.thrift
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated @nocommit
 */
#pragma once

#include "thrift/lib/thrift/gen-cpp2/record_metadata.h"
#include <thrift/lib/cpp2/visitation/for_each.h>

namespace apache {
namespace thrift {
namespace detail {

template <>
struct ForEachField<::apache::thrift::type_system::SerializableRecordUnion> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).boolDatum_ref()...);
    f(1, static_cast<T&&>(t).int8Datum_ref()...);
    f(2, static_cast<T&&>(t).int16Datum_ref()...);
    f(3, static_cast<T&&>(t).int32Datum_ref()...);
    f(4, static_cast<T&&>(t).int64Datum_ref()...);
    f(5, static_cast<T&&>(t).float32Datum_ref()...);
    f(6, static_cast<T&&>(t).float64Datum_ref()...);
    f(7, static_cast<T&&>(t).textDatum_ref()...);
    f(8, static_cast<T&&>(t).byteArrayDatum_ref()...);
    f(9, static_cast<T&&>(t).fieldSetDatum_ref()...);
    f(10, static_cast<T&&>(t).listDatum_ref()...);
    f(11, static_cast<T&&>(t).setDatum_ref()...);
    f(12, static_cast<T&&>(t).mapDatum_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::type_system::SerializableRecordMapEntry> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).key_ref()...);
    f(1, static_cast<T&&>(t).value_ref()...);
  }
};
} // namespace detail
} // namespace thrift
} // namespace apache
