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

namespace apache {
namespace thrift {
namespace detail {

template <>
struct ForEachField<::apache::thrift::type_system::FieldIdentityStruct> {
  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).name_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::type_system::SerializableFieldDefinition> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).identity_ref()...);
    f(1, static_cast<T&&>(t).presence_ref()...);
    f(2, static_cast<T&&>(t).type_ref()...);
    f(3, static_cast<T&&>(t).customDefaultPartialRecord_ref()...);
    f(4, static_cast<T&&>(t).annotations_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::type_system::SerializableStructDefinition> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).fields_ref()...);
    f(1, static_cast<T&&>(t).isSealed_ref()...);
    f(2, static_cast<T&&>(t).annotations_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::type_system::SerializableUnionDefinition> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).fields_ref()...);
    f(1, static_cast<T&&>(t).isSealed_ref()...);
    f(2, static_cast<T&&>(t).annotations_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::type_system::SerializableEnumValueDefinition> {
  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).datum_ref()...);
    f(2, static_cast<T&&>(t).annotations_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::type_system::SerializableEnumDefinition> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).values_ref()...);
    f(1, static_cast<T&&>(t).annotations_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::type_system::SerializableOpaqueAliasDefinition> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).targetType_ref()...);
    f(1, static_cast<T&&>(t).annotations_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::type_system::SerializableTypeDefinition> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).structDef_ref()...);
    f(1, static_cast<T&&>(t).unionDef_ref()...);
    f(2, static_cast<T&&>(t).enumDef_ref()...);
    f(3, static_cast<T&&>(t).opaqueAliasDef_ref()...);
  }
};

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

template <>
struct ForEachField<::apache::thrift::type_system::SerializableTypeDefinitionEntry> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).definition_ref()...);
    f(1, static_cast<T&&>(t).sourceInfo_ref()...);
  }
};

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