/**
 * Autogenerated by Thrift for /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_fbthrift/fbthrift/work/fbthrift-2024.09.23.00/thrift/annotation/java.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/java_metadata.h"

namespace apache {
namespace thrift {
namespace detail {

template <>
struct VisitByFieldId<::facebook::thrift::annotation::java::Mutable> {
  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::java::Mutable");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::java::Annotation> {
  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).java_annotation_ref());
    default:
      throwInvalidThriftId(fieldId, "::facebook::thrift::annotation::java::Annotation");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::java::BinaryString> {
  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::java::BinaryString");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::java::Adapter> {
  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).adapterClassName_ref());
    case 2:
      return f(1, static_cast<T&&>(t).typeClassName_ref());
    default:
      throwInvalidThriftId(fieldId, "::facebook::thrift::annotation::java::Adapter");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::java::Wrapper> {
  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).wrapperClassName_ref());
    case 2:
      return f(1, static_cast<T&&>(t).typeClassName_ref());
    default:
      throwInvalidThriftId(fieldId, "::facebook::thrift::annotation::java::Wrapper");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::java::Recursive> {
  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::java::Recursive");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::java::FieldUseUnmangledName> {
  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::java::FieldUseUnmangledName");
    }
  }
};

template <>
struct VisitByFieldId<::facebook::thrift::annotation::java::UseIntrinsicDefault> {
  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::java::UseIntrinsicDefault");
    }
  }
};
} // namespace detail
} // namespace thrift
} // namespace apache
