/**
 * Autogenerated by Thrift for /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_fbthrift/fbthrift/work/fbthrift-2025.01.13.00/thrift/lib/thrift/protocol_detail.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/protocol_detail_metadata.h"
#include <thrift/lib/cpp2/visitation/for_each.h>

namespace apache {
namespace thrift {
namespace detail {

template <>
struct ForEachField<::apache::thrift::protocol::detail::detail::Object> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).type_ref()...);
    f(1, static_cast<T&&>(t).members_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::protocol::detail::detail::Value> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).boolValue_ref()...);
    f(1, static_cast<T&&>(t).byteValue_ref()...);
    f(2, static_cast<T&&>(t).i16Value_ref()...);
    f(3, static_cast<T&&>(t).i32Value_ref()...);
    f(4, static_cast<T&&>(t).i64Value_ref()...);
    f(5, static_cast<T&&>(t).floatValue_ref()...);
    f(6, static_cast<T&&>(t).doubleValue_ref()...);
    f(7, static_cast<T&&>(t).stringValue_ref()...);
    f(8, static_cast<T&&>(t).binaryValue_ref()...);
    f(9, static_cast<T&&>(t).objectValue_ref()...);
    f(10, static_cast<T&&>(t).listValue_ref()...);
    f(11, static_cast<T&&>(t).setValue_ref()...);
    f(12, static_cast<T&&>(t).mapValue_ref()...);
  }
};
} // namespace detail
} // namespace thrift
} // namespace apache
