/**
 * Autogenerated by Thrift for /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_fbthrift/fbthrift/work/fbthrift-2024.09.23.00/thrift/annotation/thrift.thrift
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated @nocommit
 */
#pragma once

#include <thrift/lib/cpp2/visitation/visit_by_thrift_field_metadata.h>
#include "thrift/annotation/gen-cpp2/thrift_metadata.h"

namespace apache {
namespace thrift {
namespace detail {

template <>
struct VisitByFieldId<::facebook::thrift::annotation::Experimental> {
  template <typename F, typename T>
  void operator()([[maybe_unused]] F&& f, int32_t fieldId, [[maybe_unused]] T&& t) const {
    switch (fieldId) {
    default:
      throwInvalidThriftId(fieldId, "::facebook::thrift::annotation::Experimental");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::ReserveIds> {
  template <typename F, typename T>
  void operator()([[maybe_unused]] F&& f, int32_t fieldId, [[maybe_unused]] T&& t) const {
    switch (fieldId) {
    case 1:
      return f(0, static_cast<T&&>(t).ids_ref());
    case 2:
      return f(1, static_cast<T&&>(t).id_ranges_ref());
    default:
      throwInvalidThriftId(fieldId, "::facebook::thrift::annotation::ReserveIds");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::RequiresBackwardCompatibility> {
  template <typename F, typename T>
  void operator()([[maybe_unused]] F&& f, int32_t fieldId, [[maybe_unused]] T&& t) const {
    switch (fieldId) {
    case 1:
      return f(0, static_cast<T&&>(t).field_name_ref());
    default:
      throwInvalidThriftId(fieldId, "::facebook::thrift::annotation::RequiresBackwardCompatibility");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::TerseWrite> {
  template <typename F, typename T>
  void operator()([[maybe_unused]] F&& f, int32_t fieldId, [[maybe_unused]] T&& t) const {
    switch (fieldId) {
    default:
      throwInvalidThriftId(fieldId, "::facebook::thrift::annotation::TerseWrite");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::Box> {
  template <typename F, typename T>
  void operator()([[maybe_unused]] F&& f, int32_t fieldId, [[maybe_unused]] T&& t) const {
    switch (fieldId) {
    default:
      throwInvalidThriftId(fieldId, "::facebook::thrift::annotation::Box");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::Mixin> {
  template <typename F, typename T>
  void operator()([[maybe_unused]] F&& f, int32_t fieldId, [[maybe_unused]] T&& t) const {
    switch (fieldId) {
    default:
      throwInvalidThriftId(fieldId, "::facebook::thrift::annotation::Mixin");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::SerializeInFieldIdOrder> {
  template <typename F, typename T>
  void operator()([[maybe_unused]] F&& f, int32_t fieldId, [[maybe_unused]] T&& t) const {
    switch (fieldId) {
    default:
      throwInvalidThriftId(fieldId, "::facebook::thrift::annotation::SerializeInFieldIdOrder");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::BitmaskEnum> {
  template <typename F, typename T>
  void operator()([[maybe_unused]] F&& f, int32_t fieldId, [[maybe_unused]] T&& t) const {
    switch (fieldId) {
    default:
      throwInvalidThriftId(fieldId, "::facebook::thrift::annotation::BitmaskEnum");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::ExceptionMessage> {
  template <typename F, typename T>
  void operator()([[maybe_unused]] F&& f, int32_t fieldId, [[maybe_unused]] T&& t) const {
    switch (fieldId) {
    default:
      throwInvalidThriftId(fieldId, "::facebook::thrift::annotation::ExceptionMessage");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::InternBox> {
  template <typename F, typename T>
  void operator()([[maybe_unused]] F&& f, int32_t fieldId, [[maybe_unused]] T&& t) const {
    switch (fieldId) {
    default:
      throwInvalidThriftId(fieldId, "::facebook::thrift::annotation::InternBox");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::Serial> {
  template <typename F, typename T>
  void operator()([[maybe_unused]] F&& f, int32_t fieldId, [[maybe_unused]] T&& t) const {
    switch (fieldId) {
    default:
      throwInvalidThriftId(fieldId, "::facebook::thrift::annotation::Serial");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::Uri> {
  template <typename F, typename T>
  void operator()([[maybe_unused]] F&& f, int32_t fieldId, [[maybe_unused]] T&& t) const {
    switch (fieldId) {
    case 1:
      return f(0, static_cast<T&&>(t).value_ref());
    default:
      throwInvalidThriftId(fieldId, "::facebook::thrift::annotation::Uri");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::Priority> {
  template <typename F, typename T>
  void operator()([[maybe_unused]] F&& f, int32_t fieldId, [[maybe_unused]] T&& t) const {
    switch (fieldId) {
    case 1:
      return f(0, static_cast<T&&>(t).level_ref());
    default:
      throwInvalidThriftId(fieldId, "::facebook::thrift::annotation::Priority");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::DeprecatedUnvalidatedAnnotations> {
  template <typename F, typename T>
  void operator()([[maybe_unused]] F&& f, int32_t fieldId, [[maybe_unused]] T&& t) const {
    switch (fieldId) {
    case 1:
      return f(0, static_cast<T&&>(t).items_ref());
    default:
      throwInvalidThriftId(fieldId, "::facebook::thrift::annotation::DeprecatedUnvalidatedAnnotations");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::AllowReservedIdentifier> {
  template <typename F, typename T>
  void operator()([[maybe_unused]] F&& f, int32_t fieldId, [[maybe_unused]] T&& t) const {
    switch (fieldId) {
    default:
      throwInvalidThriftId(fieldId, "::facebook::thrift::annotation::AllowReservedIdentifier");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::AllowReservedFilename> {
  template <typename F, typename T>
  void operator()([[maybe_unused]] F&& f, int32_t fieldId, [[maybe_unused]] T&& t) const {
    switch (fieldId) {
    default:
      throwInvalidThriftId(fieldId, "::facebook::thrift::annotation::AllowReservedFilename");
    }
  }
};
} // namespace detail
} // namespace thrift
} // namespace apache
