/**
 * Autogenerated by Thrift for /opt/local/var/macports/build/fbthrift-07c1dc61/work/fbthrift-2025.08.25.00/thrift/lib/thrift/type_rep.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/type_rep_metadata.h"
#include <thrift/lib/cpp2/visitation/for_each.h>

namespace apache {
namespace thrift {
namespace detail {

template <>
struct ForEachField<::apache::thrift::type::ProtocolUnion> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).standard_ref()...);
    f(1, static_cast<T&&>(t).custom_ref()...);
    f(2, static_cast<T&&>(t).id_ref()...);
    f(3, static_cast<T&&>(t).compressed_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::type::TypeStruct> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).name_ref()...);
    f(1, static_cast<T&&>(t).params_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::type::CompressedProtocolStruct> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).protocol_ref()...);
    f(1, static_cast<T&&>(t).compression_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::type::CompressionSpecStruct> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).id_ref()...);
    f(1, static_cast<T&&>(t).uncompressed_data_size_bytes_ref()...);
    f(2, static_cast<T&&>(t).compression_parameters_ref()...);
  }
};
} // namespace detail
} // namespace thrift
} // namespace apache
