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

namespace apache {
namespace thrift {
namespace detail {

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

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

template <>
struct ForEachField<::apache::thrift::protocol::MaskedProtocolData> {
  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).data_ref()...);
    f(2, static_cast<T&&>(t).values_ref()...);
    f(3, static_cast<T&&>(t).keys_ref()...);
  }
};
} // namespace detail
} // namespace thrift
} // namespace apache
