/**
 * Autogenerated by Thrift for thrift/compiler/test/fixtures/serialization_field_order/src/module.thrift
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */

#pragma once

#include <functional>
#include <folly/Range.h>

#include "thrift/compiler/test/fixtures/serialization_field_order/gen-cpp2/module_data.h"
#include "thrift/compiler/test/fixtures/serialization_field_order/gen-cpp2/module_types.h"
#include "thrift/compiler/test/fixtures/serialization_field_order/gen-cpp2/module_metadata.h"
namespace thrift {
namespace py3 {



template<>
inline void reset_field<::cpp2::Foo>(
    ::cpp2::Foo& obj, uint16_t index) {
  switch (index) {
    case 0:
      obj.field1_ref().copy_from(default_inst<::cpp2::Foo>().field1_ref());
      return;
    case 1:
      obj.field2_ref().copy_from(default_inst<::cpp2::Foo>().field2_ref());
      return;
    case 2:
      obj.field3_ref().copy_from(default_inst<::cpp2::Foo>().field3_ref());
      return;
  }
}

template<>
inline void reset_field<::cpp2::Foo2>(
    ::cpp2::Foo2& obj, uint16_t index) {
  switch (index) {
    case 0:
      obj.field1_ref().copy_from(default_inst<::cpp2::Foo2>().field1_ref());
      return;
    case 1:
      obj.field2_ref().copy_from(default_inst<::cpp2::Foo2>().field2_ref());
      return;
    case 2:
      obj.field3_ref().copy_from(default_inst<::cpp2::Foo2>().field3_ref());
      return;
  }
}

template<>
inline const std::unordered_map<std::string_view, std::string_view>& PyStructTraits<
    ::cpp2::Foo>::namesmap() {
  static const folly::Indestructible<NamesMap> map {
    {
    }
  };
  return *map;
}

template<>
inline const std::unordered_map<std::string_view, std::string_view>& PyStructTraits<
    ::cpp2::Foo2>::namesmap() {
  static const folly::Indestructible<NamesMap> map {
    {
    }
  };
  return *map;
}
} // namespace py3
} // namespace thrift
