/**
 * Autogenerated by Thrift for /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_fbthrift/fbthrift/work/fbthrift-2024.08.26.00/thrift/lib/thrift/RpcMetadata.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/RpcMetadata_metadata.h"
#include <thrift/lib/cpp2/visitation/for_each.h>

namespace apache {
namespace thrift {
namespace detail {

template <>
struct ForEachField<::apache::thrift::ZlibCompressionCodecConfig> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
  }
};

template <>
struct ForEachField<::apache::thrift::ZstdCompressionCodecConfig> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
  }
};

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

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

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

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

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

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

template <>
struct ForEachField<::apache::thrift::LoggingContext> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).logSampleRatio_ref()...);
    f(1, static_cast<T&&>(t).logErrorSampleRatio_ref()...);
    f(2, static_cast<T&&>(t).requestId_ref()...);
    f(3, static_cast<T&&>(t).routingTarget_ref()...);
    f(4, static_cast<T&&>(t).requestAttemptId_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::RequestRpcMetadata> {
  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).name_ref()...);
    f(2, static_cast<T&&>(t).kind_ref()...);
    f(3, static_cast<T&&>(t).clientTimeoutMs_ref()...);
    f(4, static_cast<T&&>(t).queueTimeoutMs_ref()...);
    f(5, static_cast<T&&>(t).priority_ref()...);
    f(6, static_cast<T&&>(t).otherMetadata_ref()...);
    f(7, static_cast<T&&>(t).crc32c_ref()...);
    f(8, static_cast<T&&>(t).loadMetric_ref()...);
    f(9, static_cast<T&&>(t).compression_ref()...);
    f(10, static_cast<T&&>(t).compressionConfig_ref()...);
    f(11, static_cast<T&&>(t).interactionId_ref()...);
    f(12, static_cast<T&&>(t).interactionCreate_ref()...);
    f(13, static_cast<T&&>(t).clientId_ref()...);
    f(14, static_cast<T&&>(t).serviceTraceMeta_ref()...);
    f(15, static_cast<T&&>(t).frameworkMetadata_ref()...);
    f(16, static_cast<T&&>(t).fdMetadata_ref()...);
    f(17, static_cast<T&&>(t).loggingContext_ref()...);
    f(18, static_cast<T&&>(t).tenantId_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::ErrorClassification> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).kind_ref()...);
    f(1, static_cast<T&&>(t).blame_ref()...);
    f(2, static_cast<T&&>(t).safety_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::PayloadResponseMetadata> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
  }
};

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

template <>
struct ForEachField<::apache::thrift::PayloadProxyExceptionMetadata> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
  }
};

template <>
struct ForEachField<::apache::thrift::PayloadProxiedExceptionMetadata> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
  }
};

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

template <>
struct ForEachField<::apache::thrift::PayloadAnyExceptionMetadata> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
  }
};

template <>
struct ForEachField<::apache::thrift::PayloadExceptionMetadata> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).declaredException_ref()...);
    f(1, static_cast<T&&>(t).DEPRECATED_proxyException_ref()...);
    f(2, static_cast<T&&>(t).appUnknownException_ref()...);
    f(3, static_cast<T&&>(t).anyException_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::PayloadExceptionMetadataBase> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).name_utf8_ref()...);
    f(1, static_cast<T&&>(t).what_utf8_ref()...);
    f(2, static_cast<T&&>(t).metadata_ref()...);
  }
};

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

template <>
struct ForEachField<::apache::thrift::ProxiedPayloadMetadata> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
  }
};

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

template <>
struct ForEachField<::apache::thrift::ResponseRpcMetadata> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).otherMetadata_ref()...);
    f(1, static_cast<T&&>(t).load_ref()...);
    f(2, static_cast<T&&>(t).crc32c_ref()...);
    f(3, static_cast<T&&>(t).compression_ref()...);
    f(4, static_cast<T&&>(t).payloadMetadata_ref()...);
    f(5, static_cast<T&&>(t).proxiedPayloadMetadata_ref()...);
    f(6, static_cast<T&&>(t).streamId_ref()...);
    f(7, static_cast<T&&>(t).queueMetadata_ref()...);
    f(8, static_cast<T&&>(t).fdMetadata_ref()...);
    f(9, static_cast<T&&>(t).frameworkMetadata_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::ResponseRpcError> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).name_utf8_ref()...);
    f(1, static_cast<T&&>(t).what_utf8_ref()...);
    f(2, static_cast<T&&>(t).category_ref()...);
    f(3, static_cast<T&&>(t).code_ref()...);
    f(4, static_cast<T&&>(t).load_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::StreamRpcError> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).name_utf8_ref()...);
    f(1, static_cast<T&&>(t).what_utf8_ref()...);
    f(2, static_cast<T&&>(t).code_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::StreamPayloadMetadata> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).compression_ref()...);
    f(1, static_cast<T&&>(t).otherMetadata_ref()...);
    f(2, static_cast<T&&>(t).payloadMetadata_ref()...);
    f(3, static_cast<T&&>(t).fdMetadata_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::ClientMetadata> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).agent_ref()...);
    f(1, static_cast<T&&>(t).hostname_ref()...);
    f(2, static_cast<T&&>(t).otherMetadata_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::RequestSetupMetadata> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).opaque_ref()...);
    f(1, static_cast<T&&>(t).interfaceKind_ref()...);
    f(2, static_cast<T&&>(t).minVersion_ref()...);
    f(3, static_cast<T&&>(t).maxVersion_ref()...);
    f(4, static_cast<T&&>(t).dscpToReflect_ref()...);
    f(5, static_cast<T&&>(t).markToReflect_ref()...);
    f(6, static_cast<T&&>(t).qosUseCaseId_ref()...);
    f(7, static_cast<T&&>(t).qosPolicyId_ref()...);
    f(8, static_cast<T&&>(t).clientMetadata_ref()...);
    f(9, static_cast<T&&>(t).keepAliveTimeoutMs_ref()...);
  }
};

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

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

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

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

template <>
struct ForEachField<::apache::thrift::ServerPushMetadata> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).setupResponse_ref()...);
    f(1, static_cast<T&&>(t).streamHeadersPush_ref()...);
    f(2, static_cast<T&&>(t).drainCompletePush_ref()...);
  }
};

template <>
struct ForEachField<::apache::thrift::ClientPushMetadata> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).interactionTerminate_ref()...);
    f(1, static_cast<T&&>(t).streamHeadersPush_ref()...);
    f(2, static_cast<T&&>(t).transportMetadataPush_ref()...);
  }
};

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

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