// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/document.proto
// Protobuf C++ Version: 6.33.2

#include "proto/document.pb.h"

#include <algorithm>
#include <type_traits>
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/generated_message_tctable_impl.h"
#include "google/protobuf/extension_set.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/wire_format_lite.h"
#include "google/protobuf/descriptor.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/reflection_ops.h"
#include "google/protobuf/wire_format.h"
// @@protoc_insertion_point(includes)

// Must be included last.
#include "google/protobuf/port_def.inc"
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::google::protobuf;
namespace _pbi = ::google::protobuf::internal;
namespace _fl = ::google::protobuf::internal::field_layout;
namespace orion {
template <typename>
PROTOBUF_CONSTEXPR Void::Void(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::internal::ZeroFieldsBase(Void_class_data_.base()){}
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::internal::ZeroFieldsBase() {
}
#endif  // PROTOBUF_CUSTOM_VTABLE
struct VoidDefaultTypeInternal {
  PROTOBUF_CONSTEXPR VoidDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~VoidDefaultTypeInternal() {}
  union {
    Void _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VoidDefaultTypeInternal _Void_default_instance_;

inline constexpr FloatVector::Impl_::Impl_(
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        data_{} {}

template <typename>
PROTOBUF_CONSTEXPR FloatVector::FloatVector(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::Message(FloatVector_class_data_.base()),
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::Message(),
#endif  // PROTOBUF_CUSTOM_VTABLE
      _impl_(::_pbi::ConstantInitialized()) {
}
struct FloatVectorDefaultTypeInternal {
  PROTOBUF_CONSTEXPR FloatVectorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~FloatVectorDefaultTypeInternal() {}
  union {
    FloatVector _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FloatVectorDefaultTypeInternal _FloatVector_default_instance_;

inline constexpr Field::Impl_::Impl_(
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        name_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        payload_{},
        _oneof_case_{} {}

template <typename>
PROTOBUF_CONSTEXPR Field::Field(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::Message(Field_class_data_.base()),
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::Message(),
#endif  // PROTOBUF_CUSTOM_VTABLE
      _impl_(::_pbi::ConstantInitialized()) {
}
struct FieldDefaultTypeInternal {
  PROTOBUF_CONSTEXPR FieldDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~FieldDefaultTypeInternal() {}
  union {
    Field _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FieldDefaultTypeInternal _Field_default_instance_;

inline constexpr Document::Impl_::Impl_(
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        fields_{},
        key_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()) {}

template <typename>
PROTOBUF_CONSTEXPR Document::Document(::_pbi::ConstantInitialized)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::Message(Document_class_data_.base()),
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::Message(),
#endif  // PROTOBUF_CUSTOM_VTABLE
      _impl_(::_pbi::ConstantInitialized()) {
}
struct DocumentDefaultTypeInternal {
  PROTOBUF_CONSTEXPR DocumentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~DocumentDefaultTypeInternal() {}
  union {
    Document _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DocumentDefaultTypeInternal _Document_default_instance_;
}  // namespace orion
static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
    file_level_enum_descriptors_proto_2fdocument_2eproto = nullptr;
static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
    file_level_service_descriptors_proto_2fdocument_2eproto = nullptr;
const ::uint32_t
    TableStruct_proto_2fdocument_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
        protodesc_cold) = {
        0x000, // bitmap
        0x081, // bitmap
        PROTOBUF_FIELD_OFFSET(::orion::FloatVector, _impl_._has_bits_),
        4, // hasbit index offset
        PROTOBUF_FIELD_OFFSET(::orion::FloatVector, _impl_.data_),
        0,
        0x085, // bitmap
        PROTOBUF_FIELD_OFFSET(::orion::Field, _impl_._has_bits_),
        PROTOBUF_FIELD_OFFSET(::orion::Field, _impl_._oneof_case_[0]),
        16, // hasbit index offset
        PROTOBUF_FIELD_OFFSET(::orion::Field, _impl_.name_),
        PROTOBUF_FIELD_OFFSET(::orion::Field, _impl_.payload_),
        PROTOBUF_FIELD_OFFSET(::orion::Field, _impl_.payload_),
        PROTOBUF_FIELD_OFFSET(::orion::Field, _impl_.payload_),
        PROTOBUF_FIELD_OFFSET(::orion::Field, _impl_.payload_),
        PROTOBUF_FIELD_OFFSET(::orion::Field, _impl_.payload_),
        PROTOBUF_FIELD_OFFSET(::orion::Field, _impl_.payload_),
        PROTOBUF_FIELD_OFFSET(::orion::Field, _impl_.payload_),
        PROTOBUF_FIELD_OFFSET(::orion::Field, _impl_.payload_),
        PROTOBUF_FIELD_OFFSET(::orion::Field, _impl_.payload_),
        PROTOBUF_FIELD_OFFSET(::orion::Field, _impl_.payload_),
        PROTOBUF_FIELD_OFFSET(::orion::Field, _impl_.payload_),
        0,
        ~0u,
        ~0u,
        ~0u,
        ~0u,
        ~0u,
        ~0u,
        ~0u,
        ~0u,
        ~0u,
        ~0u,
        0x081, // bitmap
        PROTOBUF_FIELD_OFFSET(::orion::Document, _impl_._has_bits_),
        5, // hasbit index offset
        PROTOBUF_FIELD_OFFSET(::orion::Document, _impl_.key_),
        PROTOBUF_FIELD_OFFSET(::orion::Document, _impl_.fields_),
        1,
        0,
};

static const ::_pbi::MigrationSchema
    schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
        {0, sizeof(::orion::Void)},
        {1, sizeof(::orion::FloatVector)},
        {6, sizeof(::orion::Field)},
        {33, sizeof(::orion::Document)},
};
static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = {
    &::orion::_Void_default_instance_._instance,
    &::orion::_FloatVector_default_instance_._instance,
    &::orion::_Field_default_instance_._instance,
    &::orion::_Document_default_instance_._instance,
};
const char descriptor_table_protodef_proto_2fdocument_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
    protodesc_cold) = {
    "\n\024proto/document.proto\022\005orion\"\006\n\004Void\"\033\n"
    "\013FloatVector\022\014\n\004data\030\001 \003(\002\"\262\002\n\005Field\022\014\n\004"
    "name\030\001 \001(\t\022!\n\nvoid_value\030\002 \001(\0132\013.orion.V"
    "oidH\000\022\026\n\014uint32_value\030\003 \001(\rH\000\022\026\n\014uint64_"
    "value\030\004 \001(\004H\000\022\025\n\013int32_value\030\005 \001(\005H\000\022\025\n\013"
    "int64_value\030\006 \001(\003H\000\022\025\n\013float_value\030\007 \001(\002"
    "H\000\022\026\n\014double_value\030\010 \001(\001H\000\022\026\n\014binary_val"
    "ue\030\t \001(\014H\000\022\026\n\014string_value\030\n \001(\tH\000\0220\n\022fl"
    "oat_vector_value\030\013 \001(\0132\022.orion.FloatVect"
    "orH\000B\t\n\007payload\"5\n\010Document\022\013\n\003key\030\001 \001(\t"
    "\022\034\n\006fields\030\002 \003(\0132\014.orion.Fieldb\006proto3"
};
static ::absl::once_flag descriptor_table_proto_2fdocument_2eproto_once;
PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_proto_2fdocument_2eproto = {
    false,
    false,
    438,
    descriptor_table_protodef_proto_2fdocument_2eproto,
    "proto/document.proto",
    &descriptor_table_proto_2fdocument_2eproto_once,
    nullptr,
    0,
    4,
    schemas,
    file_default_instances,
    TableStruct_proto_2fdocument_2eproto::offsets,
    file_level_enum_descriptors_proto_2fdocument_2eproto,
    file_level_service_descriptors_proto_2fdocument_2eproto,
};
namespace orion {
// ===================================================================

class Void::_Internal {
 public:
};

Void::Void(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::internal::ZeroFieldsBase(arena, Void_class_data_.base()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::internal::ZeroFieldsBase(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(arena_constructor:orion.Void)
}
Void::Void(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const Void& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::internal::ZeroFieldsBase(arena, Void_class_data_.base()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::internal::ZeroFieldsBase(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  Void* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
      from._internal_metadata_);

  // @@protoc_insertion_point(copy_constructor:orion.Void)
}

inline void* PROTOBUF_NONNULL Void::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) Void(arena);
}
constexpr auto Void::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Void),
                                            alignof(Void));
}
constexpr auto Void::InternalGenerateClassData_() {
  return ::google::protobuf::internal::ClassDataFull{
      ::google::protobuf::internal::ClassData{
          &_Void_default_instance_._instance,
          &_table_.header,
          nullptr,  // OnDemandRegisterArenaDtor
          nullptr,  // IsInitialized
          &Void::MergeImpl,
          ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl<Void>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &Void::SharedDtor,
          ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl<Void>(), &Void::ByteSizeLong,
              &Void::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(Void, _impl_._cached_size_),
          false,
      },
      &Void::kDescriptorMethods,
      &descriptor_table_proto_2fdocument_2eproto,
      nullptr,  // tracker
  };
}

PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
    ::google::protobuf::internal::ClassDataFull Void_class_data_ =
        Void::InternalGenerateClassData_();

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Void::GetClassData() const {
  ::google::protobuf::internal::PrefetchToLocalCache(&Void_class_data_);
  ::google::protobuf::internal::PrefetchToLocalCache(Void_class_data_.tc_table);
  return Void_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 0, 0, 0, 2>
Void::_table_ = {
  {
    0,  // no _has_bits_
    0, // no _extensions_
    0, 0,  // max_field_number, fast_idx_mask
    offsetof(decltype(_table_), field_lookup_table),
    4294967295,  // skipmap
    offsetof(decltype(_table_), field_names),  // no field_entries
    0,  // num_field_entries
    0,  // num_aux_entries
    offsetof(decltype(_table_), field_names),  // no aux_entries
    Void_class_data_.base(),
    nullptr,  // post_loop_handler
    ::_pbi::TcParser::GenericFallback,  // fallback
    #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
    ::_pbi::TcParser::GetTable<::orion::Void>(),  // to_prefetch
    #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
  }, {{
    {::_pbi::TcParser::MiniParse, {}},
  }}, {{
    65535, 65535
  }}, // no field_entries, or aux_entries
  {{
  }},
};







::google::protobuf::Metadata Void::GetMetadata() const {
  return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full());
}
// ===================================================================

class FloatVector::_Internal {
 public:
  using HasBits =
      decltype(::std::declval<FloatVector>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(FloatVector, _impl_._has_bits_);
};

FloatVector::FloatVector(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::Message(arena, FloatVector_class_data_.base()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::Message(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:orion.FloatVector)
}
PROTOBUF_NDEBUG_INLINE FloatVector::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::orion::FloatVector& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        data_{visibility, arena, from.data_} {}

FloatVector::FloatVector(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const FloatVector& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::Message(arena, FloatVector_class_data_.base()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::Message(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  FloatVector* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);

  // @@protoc_insertion_point(copy_constructor:orion.FloatVector)
}
PROTOBUF_NDEBUG_INLINE FloatVector::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        data_{visibility, arena} {}

inline void FloatVector::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
}
FloatVector::~FloatVector() {
  // @@protoc_insertion_point(destructor:orion.FloatVector)
  SharedDtor(*this);
}
inline void FloatVector::SharedDtor(MessageLite& self) {
  FloatVector& this_ = static_cast<FloatVector&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.~Impl_();
}

inline void* PROTOBUF_NONNULL FloatVector::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) FloatVector(arena);
}
constexpr auto FloatVector::InternalNewImpl_() {
  constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
      PROTOBUF_FIELD_OFFSET(FloatVector, _impl_.data_) +
          decltype(FloatVector::_impl_.data_)::
              InternalGetArenaOffset(
                  ::google::protobuf::Message::internal_visibility()),
  });
  if (arena_bits.has_value()) {
    return ::google::protobuf::internal::MessageCreator::ZeroInit(
        sizeof(FloatVector), alignof(FloatVector), *arena_bits);
  } else {
    return ::google::protobuf::internal::MessageCreator(&FloatVector::PlacementNew_,
                                 sizeof(FloatVector),
                                 alignof(FloatVector));
  }
}
constexpr auto FloatVector::InternalGenerateClassData_() {
  return ::google::protobuf::internal::ClassDataFull{
      ::google::protobuf::internal::ClassData{
          &_FloatVector_default_instance_._instance,
          &_table_.header,
          nullptr,  // OnDemandRegisterArenaDtor
          nullptr,  // IsInitialized
          &FloatVector::MergeImpl,
          ::google::protobuf::Message::GetNewImpl<FloatVector>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &FloatVector::SharedDtor,
          ::google::protobuf::Message::GetClearImpl<FloatVector>(), &FloatVector::ByteSizeLong,
              &FloatVector::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(FloatVector, _impl_._cached_size_),
          false,
      },
      &FloatVector::kDescriptorMethods,
      &descriptor_table_proto_2fdocument_2eproto,
      nullptr,  // tracker
  };
}

PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
    ::google::protobuf::internal::ClassDataFull FloatVector_class_data_ =
        FloatVector::InternalGenerateClassData_();

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
FloatVector::GetClassData() const {
  ::google::protobuf::internal::PrefetchToLocalCache(&FloatVector_class_data_);
  ::google::protobuf::internal::PrefetchToLocalCache(FloatVector_class_data_.tc_table);
  return FloatVector_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 1, 0, 0, 2>
FloatVector::_table_ = {
  {
    PROTOBUF_FIELD_OFFSET(FloatVector, _impl_._has_bits_),
    0, // no _extensions_
    1, 0,  // max_field_number, fast_idx_mask
    offsetof(decltype(_table_), field_lookup_table),
    4294967294,  // skipmap
    offsetof(decltype(_table_), field_entries),
    1,  // num_field_entries
    0,  // num_aux_entries
    offsetof(decltype(_table_), field_names),  // no aux_entries
    FloatVector_class_data_.base(),
    nullptr,  // post_loop_handler
    ::_pbi::TcParser::GenericFallback,  // fallback
    #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
    ::_pbi::TcParser::GetTable<::orion::FloatVector>(),  // to_prefetch
    #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
  }, {{
    // repeated float data = 1;
    {::_pbi::TcParser::FastF32P1,
     {10, 0, 0,
      PROTOBUF_FIELD_OFFSET(FloatVector, _impl_.data_)}},
  }}, {{
    65535, 65535
  }}, {{
    // repeated float data = 1;
    {PROTOBUF_FIELD_OFFSET(FloatVector, _impl_.data_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedFloat)},
  }},
  // no aux_entries
  {{
  }},
};
PROTOBUF_NOINLINE void FloatVector::Clear() {
// @@protoc_insertion_point(message_clear_start:orion.FloatVector)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
    _impl_.data_.Clear();
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL FloatVector::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const FloatVector& this_ = static_cast<const FloatVector&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL FloatVector::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const FloatVector& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:orion.FloatVector)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // repeated float data = 1;
  if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
    if (this_._internal_data_size() > 0) {
      target = stream->WriteFixedPacked(1, this_._internal_data(), target);
    }
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target =
        ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
            this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:orion.FloatVector)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t FloatVector::ByteSizeLong(const MessageLite& base) {
  const FloatVector& this_ = static_cast<const FloatVector&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t FloatVector::ByteSizeLong() const {
  const FloatVector& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:orion.FloatVector)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void)cached_has_bits;

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
   {
    // repeated float data = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
      ::size_t data_size = ::size_t{4} *
          ::_pbi::FromIntSize(this_._internal_data_size());
      ::size_t tag_size = data_size == 0
          ? 0
          : 1 + ::_pbi::WireFormatLite::Int32Size(
                              static_cast<::int32_t>(data_size));
      total_size += tag_size + data_size;
    }
  }
  return this_.MaybeComputeUnknownFieldsSize(total_size,
                                             &this_._impl_._cached_size_);
}

void FloatVector::MergeImpl(::google::protobuf::MessageLite& to_msg,
                            const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this =
      static_cast<FloatVector*>(&to_msg);
  auto& from = static_cast<const FloatVector&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(class_specific_merge_from_start:orion.FloatVector)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
    _this->_internal_mutable_data()->MergeFrom(from._internal_data());
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
      from._internal_metadata_);
}

void FloatVector::CopyFrom(const FloatVector& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:orion.FloatVector)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void FloatVector::InternalSwap(FloatVector* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  _impl_.data_.InternalSwap(&other->_impl_.data_);
}

::google::protobuf::Metadata FloatVector::GetMetadata() const {
  return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
}
// ===================================================================

class Field::_Internal {
 public:
  using HasBits =
      decltype(::std::declval<Field>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(Field, _impl_._has_bits_);
  static constexpr ::int32_t kOneofCaseOffset =
      PROTOBUF_FIELD_OFFSET(::orion::Field, _impl_._oneof_case_);
};

void Field::set_allocated_void_value(::orion::Void* PROTOBUF_NULLABLE void_value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_payload();
  if (void_value) {
    ::google::protobuf::Arena* submessage_arena = void_value->GetArena();
    if (message_arena != submessage_arena) {
      void_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, void_value, submessage_arena);
    }
    set_has_void_value();
    _impl_.payload_.void_value_ = void_value;
  }
  // @@protoc_insertion_point(field_set_allocated:orion.Field.void_value)
}
void Field::set_allocated_float_vector_value(::orion::FloatVector* PROTOBUF_NULLABLE float_vector_value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  clear_payload();
  if (float_vector_value) {
    ::google::protobuf::Arena* submessage_arena = float_vector_value->GetArena();
    if (message_arena != submessage_arena) {
      float_vector_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, float_vector_value, submessage_arena);
    }
    set_has_float_vector_value();
    _impl_.payload_.float_vector_value_ = float_vector_value;
  }
  // @@protoc_insertion_point(field_set_allocated:orion.Field.float_vector_value)
}
Field::Field(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::Message(arena, Field_class_data_.base()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::Message(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:orion.Field)
}
PROTOBUF_NDEBUG_INLINE Field::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::orion::Field& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        name_(arena, from.name_),
        payload_{},
        _oneof_case_{from._oneof_case_[0]} {}

Field::Field(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const Field& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::Message(arena, Field_class_data_.base()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::Message(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  Field* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  switch (payload_case()) {
    case PAYLOAD_NOT_SET:
      break;
      case kVoidValue:
        _impl_.payload_.void_value_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.payload_.void_value_);
        break;
      case kUint32Value:
        _impl_.payload_.uint32_value_ = from._impl_.payload_.uint32_value_;
        break;
      case kUint64Value:
        _impl_.payload_.uint64_value_ = from._impl_.payload_.uint64_value_;
        break;
      case kInt32Value:
        _impl_.payload_.int32_value_ = from._impl_.payload_.int32_value_;
        break;
      case kInt64Value:
        _impl_.payload_.int64_value_ = from._impl_.payload_.int64_value_;
        break;
      case kFloatValue:
        _impl_.payload_.float_value_ = from._impl_.payload_.float_value_;
        break;
      case kDoubleValue:
        _impl_.payload_.double_value_ = from._impl_.payload_.double_value_;
        break;
      case kBinaryValue:
        new (&_impl_.payload_.binary_value_) decltype(_impl_.payload_.binary_value_){arena, from._impl_.payload_.binary_value_};
        break;
      case kStringValue:
        new (&_impl_.payload_.string_value_) decltype(_impl_.payload_.string_value_){arena, from._impl_.payload_.string_value_};
        break;
      case kFloatVectorValue:
        _impl_.payload_.float_vector_value_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.payload_.float_vector_value_);
        break;
  }

  // @@protoc_insertion_point(copy_constructor:orion.Field)
}
PROTOBUF_NDEBUG_INLINE Field::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        name_(arena),
        payload_{},
        _oneof_case_{} {}

inline void Field::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
}
Field::~Field() {
  // @@protoc_insertion_point(destructor:orion.Field)
  SharedDtor(*this);
}
inline void Field::SharedDtor(MessageLite& self) {
  Field& this_ = static_cast<Field&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.name_.Destroy();
  if (this_.has_payload()) {
    this_.clear_payload();
  }
  this_._impl_.~Impl_();
}

void Field::clear_payload() {
// @@protoc_insertion_point(one_of_clear_start:orion.Field)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  switch (payload_case()) {
    case kVoidValue: {
      if (GetArena() == nullptr) {
        delete _impl_.payload_.void_value_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.payload_.void_value_);
      }
      break;
    }
    case kUint32Value: {
      // No need to clear
      break;
    }
    case kUint64Value: {
      // No need to clear
      break;
    }
    case kInt32Value: {
      // No need to clear
      break;
    }
    case kInt64Value: {
      // No need to clear
      break;
    }
    case kFloatValue: {
      // No need to clear
      break;
    }
    case kDoubleValue: {
      // No need to clear
      break;
    }
    case kBinaryValue: {
      _impl_.payload_.binary_value_.Destroy();
      break;
    }
    case kStringValue: {
      _impl_.payload_.string_value_.Destroy();
      break;
    }
    case kFloatVectorValue: {
      if (GetArena() == nullptr) {
        delete _impl_.payload_.float_vector_value_;
      } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
        ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.payload_.float_vector_value_);
      }
      break;
    }
    case PAYLOAD_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = PAYLOAD_NOT_SET;
}


inline void* PROTOBUF_NONNULL Field::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) Field(arena);
}
constexpr auto Field::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Field),
                                            alignof(Field));
}
constexpr auto Field::InternalGenerateClassData_() {
  return ::google::protobuf::internal::ClassDataFull{
      ::google::protobuf::internal::ClassData{
          &_Field_default_instance_._instance,
          &_table_.header,
          nullptr,  // OnDemandRegisterArenaDtor
          nullptr,  // IsInitialized
          &Field::MergeImpl,
          ::google::protobuf::Message::GetNewImpl<Field>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &Field::SharedDtor,
          ::google::protobuf::Message::GetClearImpl<Field>(), &Field::ByteSizeLong,
              &Field::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(Field, _impl_._cached_size_),
          false,
      },
      &Field::kDescriptorMethods,
      &descriptor_table_proto_2fdocument_2eproto,
      nullptr,  // tracker
  };
}

PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
    ::google::protobuf::internal::ClassDataFull Field_class_data_ =
        Field::InternalGenerateClassData_();

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Field::GetClassData() const {
  ::google::protobuf::internal::PrefetchToLocalCache(&Field_class_data_);
  ::google::protobuf::internal::PrefetchToLocalCache(Field_class_data_.tc_table);
  return Field_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<0, 11, 2, 44, 2>
Field::_table_ = {
  {
    PROTOBUF_FIELD_OFFSET(Field, _impl_._has_bits_),
    0, // no _extensions_
    11, 0,  // max_field_number, fast_idx_mask
    offsetof(decltype(_table_), field_lookup_table),
    4294965248,  // skipmap
    offsetof(decltype(_table_), field_entries),
    11,  // num_field_entries
    2,  // num_aux_entries
    offsetof(decltype(_table_), aux_entries),
    Field_class_data_.base(),
    nullptr,  // post_loop_handler
    ::_pbi::TcParser::GenericFallback,  // fallback
    #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
    ::_pbi::TcParser::GetTable<::orion::Field>(),  // to_prefetch
    #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
  }, {{
    // string name = 1;
    {::_pbi::TcParser::FastUS1,
     {10, 0, 0,
      PROTOBUF_FIELD_OFFSET(Field, _impl_.name_)}},
  }}, {{
    65535, 65535
  }}, {{
    // string name = 1;
    {PROTOBUF_FIELD_OFFSET(Field, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    // .orion.Void void_value = 2;
    {PROTOBUF_FIELD_OFFSET(Field, _impl_.payload_.void_value_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
    // uint32 uint32_value = 3;
    {PROTOBUF_FIELD_OFFSET(Field, _impl_.payload_.uint32_value_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kUInt32)},
    // uint64 uint64_value = 4;
    {PROTOBUF_FIELD_OFFSET(Field, _impl_.payload_.uint64_value_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kUInt64)},
    // int32 int32_value = 5;
    {PROTOBUF_FIELD_OFFSET(Field, _impl_.payload_.int32_value_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kInt32)},
    // int64 int64_value = 6;
    {PROTOBUF_FIELD_OFFSET(Field, _impl_.payload_.int64_value_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kInt64)},
    // float float_value = 7;
    {PROTOBUF_FIELD_OFFSET(Field, _impl_.payload_.float_value_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kFloat)},
    // double double_value = 8;
    {PROTOBUF_FIELD_OFFSET(Field, _impl_.payload_.double_value_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kDouble)},
    // bytes binary_value = 9;
    {PROTOBUF_FIELD_OFFSET(Field, _impl_.payload_.binary_value_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)},
    // string string_value = 10;
    {PROTOBUF_FIELD_OFFSET(Field, _impl_.payload_.string_value_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)},
    // .orion.FloatVector float_vector_value = 11;
    {PROTOBUF_FIELD_OFFSET(Field, _impl_.payload_.float_vector_value_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  }},
  {{
      {::_pbi::TcParser::GetTable<::orion::Void>()},
      {::_pbi::TcParser::GetTable<::orion::FloatVector>()},
  }},
  {{
    "\13\4\0\0\0\0\0\0\0\0\14\0\0\0\0\0"
    "orion.Field"
    "name"
    "string_value"
  }},
};
PROTOBUF_NOINLINE void Field::Clear() {
// @@protoc_insertion_point(message_clear_start:orion.Field)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    _impl_.name_.ClearNonDefaultToEmpty();
  }
  clear_payload();
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL Field::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const Field& this_ = static_cast<const Field&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL Field::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const Field& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:orion.Field)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // string name = 1;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    if (!this_._internal_name().empty()) {
      const ::std::string& _s = this_._internal_name();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "orion.Field.name");
      target = stream->WriteStringMaybeAliased(1, _s, target);
    }
  }

  switch (this_.payload_case()) {
    case kVoidValue: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          2, *this_._impl_.payload_.void_value_, this_._impl_.payload_.void_value_->GetCachedSize(), target,
          stream);
      break;
    }
    case kUint32Value: {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
          3, this_._internal_uint32_value(), target);
      break;
    }
    case kUint64Value: {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
          4, this_._internal_uint64_value(), target);
      break;
    }
    case kInt32Value: {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>(
              stream, this_._internal_int32_value(), target);
      break;
    }
    case kInt64Value: {
      target =
          ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>(
              stream, this_._internal_int64_value(), target);
      break;
    }
    case kFloatValue: {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteFloatToArray(
          7, this_._internal_float_value(), target);
      break;
    }
    case kDoubleValue: {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteDoubleToArray(
          8, this_._internal_double_value(), target);
      break;
    }
    case kBinaryValue: {
      const ::std::string& _s = this_._internal_binary_value();
      target = stream->WriteBytesMaybeAliased(9, _s, target);
      break;
    }
    case kStringValue: {
      const ::std::string& _s = this_._internal_string_value();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "orion.Field.string_value");
      target = stream->WriteStringMaybeAliased(10, _s, target);
      break;
    }
    case kFloatVectorValue: {
      target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
          11, *this_._impl_.payload_.float_vector_value_, this_._impl_.payload_.float_vector_value_->GetCachedSize(), target,
          stream);
      break;
    }
    default:
      break;
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target =
        ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
            this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:orion.Field)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Field::ByteSizeLong(const MessageLite& base) {
  const Field& this_ = static_cast<const Field&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Field::ByteSizeLong() const {
  const Field& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:orion.Field)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void)cached_has_bits;

   {
    // string name = 1;
    cached_has_bits = this_._impl_._has_bits_[0];
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      if (!this_._internal_name().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_name());
      }
    }
  }
  switch (this_.payload_case()) {
    // .orion.Void void_value = 2;
    case kVoidValue: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.payload_.void_value_);
      break;
    }
    // uint32 uint32_value = 3;
    case kUint32Value: {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_uint32_value());
      break;
    }
    // uint64 uint64_value = 4;
    case kUint64Value: {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
          this_._internal_uint64_value());
      break;
    }
    // int32 int32_value = 5;
    case kInt32Value: {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_int32_value());
      break;
    }
    // int64 int64_value = 6;
    case kInt64Value: {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_int64_value());
      break;
    }
    // float float_value = 7;
    case kFloatValue: {
      total_size += 5;
      break;
    }
    // double double_value = 8;
    case kDoubleValue: {
      total_size += 9;
      break;
    }
    // bytes binary_value = 9;
    case kBinaryValue: {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
                                      this_._internal_binary_value());
      break;
    }
    // string string_value = 10;
    case kStringValue: {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_string_value());
      break;
    }
    // .orion.FloatVector float_vector_value = 11;
    case kFloatVectorValue: {
      total_size += 1 +
                    ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.payload_.float_vector_value_);
      break;
    }
    case PAYLOAD_NOT_SET: {
      break;
    }
  }
  return this_.MaybeComputeUnknownFieldsSize(total_size,
                                             &this_._impl_._cached_size_);
}

void Field::MergeImpl(::google::protobuf::MessageLite& to_msg,
                            const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this =
      static_cast<Field*>(&to_msg);
  auto& from = static_cast<const Field&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:orion.Field)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    if (!from._internal_name().empty()) {
      _this->_internal_set_name(from._internal_name());
    } else {
      if (_this->_impl_.name_.IsDefault()) {
        _this->_internal_set_name("");
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  if (const uint32_t oneof_from_case =
          from._impl_._oneof_case_[0]) {
    const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0];
    const bool oneof_needs_init = oneof_to_case != oneof_from_case;
    if (oneof_needs_init) {
      if (oneof_to_case != 0) {
        _this->clear_payload();
      }
      _this->_impl_._oneof_case_[0] = oneof_from_case;
    }

    switch (oneof_from_case) {
      case kVoidValue: {
        if (oneof_needs_init) {
          _this->_impl_.payload_.void_value_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.payload_.void_value_);
        } else {
          _this->_impl_.payload_.void_value_->MergeFrom(*from._impl_.payload_.void_value_);
        }
        break;
      }
      case kUint32Value: {
        _this->_impl_.payload_.uint32_value_ = from._impl_.payload_.uint32_value_;
        break;
      }
      case kUint64Value: {
        _this->_impl_.payload_.uint64_value_ = from._impl_.payload_.uint64_value_;
        break;
      }
      case kInt32Value: {
        _this->_impl_.payload_.int32_value_ = from._impl_.payload_.int32_value_;
        break;
      }
      case kInt64Value: {
        _this->_impl_.payload_.int64_value_ = from._impl_.payload_.int64_value_;
        break;
      }
      case kFloatValue: {
        _this->_impl_.payload_.float_value_ = from._impl_.payload_.float_value_;
        break;
      }
      case kDoubleValue: {
        _this->_impl_.payload_.double_value_ = from._impl_.payload_.double_value_;
        break;
      }
      case kBinaryValue: {
        if (oneof_needs_init) {
          _this->_impl_.payload_.binary_value_.InitDefault();
        }
        _this->_impl_.payload_.binary_value_.Set(from._internal_binary_value(), arena);
        break;
      }
      case kStringValue: {
        if (oneof_needs_init) {
          _this->_impl_.payload_.string_value_.InitDefault();
        }
        _this->_impl_.payload_.string_value_.Set(from._internal_string_value(), arena);
        break;
      }
      case kFloatVectorValue: {
        if (oneof_needs_init) {
          _this->_impl_.payload_.float_vector_value_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.payload_.float_vector_value_);
        } else {
          _this->_impl_.payload_.float_vector_value_->MergeFrom(*from._impl_.payload_.float_vector_value_);
        }
        break;
      }
      case PAYLOAD_NOT_SET:
        break;
    }
  }
  _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
      from._internal_metadata_);
}

void Field::CopyFrom(const Field& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:orion.Field)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void Field::InternalSwap(Field* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  auto* arena = GetArena();
  ABSL_DCHECK_EQ(arena, other->GetArena());
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
  swap(_impl_.payload_, other->_impl_.payload_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

::google::protobuf::Metadata Field::GetMetadata() const {
  return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
}
// ===================================================================

class Document::_Internal {
 public:
  using HasBits =
      decltype(::std::declval<Document>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(Document, _impl_._has_bits_);
};

Document::Document(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::Message(arena, Document_class_data_.base()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::Message(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:orion.Document)
}
PROTOBUF_NDEBUG_INLINE Document::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::orion::Document& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        fields_{visibility, arena, from.fields_},
        key_(arena, from.key_) {}

Document::Document(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const Document& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::Message(arena, Document_class_data_.base()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::Message(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  Document* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);

  // @@protoc_insertion_point(copy_constructor:orion.Document)
}
PROTOBUF_NDEBUG_INLINE Document::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        fields_{visibility, arena},
        key_(arena) {}

inline void Document::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
}
Document::~Document() {
  // @@protoc_insertion_point(destructor:orion.Document)
  SharedDtor(*this);
}
inline void Document::SharedDtor(MessageLite& self) {
  Document& this_ = static_cast<Document&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.key_.Destroy();
  this_._impl_.~Impl_();
}

inline void* PROTOBUF_NONNULL Document::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) Document(arena);
}
constexpr auto Document::InternalNewImpl_() {
  constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
      PROTOBUF_FIELD_OFFSET(Document, _impl_.fields_) +
          decltype(Document::_impl_.fields_)::
              InternalGetArenaOffset(
                  ::google::protobuf::Message::internal_visibility()),
  });
  if (arena_bits.has_value()) {
    return ::google::protobuf::internal::MessageCreator::CopyInit(
        sizeof(Document), alignof(Document), *arena_bits);
  } else {
    return ::google::protobuf::internal::MessageCreator(&Document::PlacementNew_,
                                 sizeof(Document),
                                 alignof(Document));
  }
}
constexpr auto Document::InternalGenerateClassData_() {
  return ::google::protobuf::internal::ClassDataFull{
      ::google::protobuf::internal::ClassData{
          &_Document_default_instance_._instance,
          &_table_.header,
          nullptr,  // OnDemandRegisterArenaDtor
          nullptr,  // IsInitialized
          &Document::MergeImpl,
          ::google::protobuf::Message::GetNewImpl<Document>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &Document::SharedDtor,
          ::google::protobuf::Message::GetClearImpl<Document>(), &Document::ByteSizeLong,
              &Document::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(Document, _impl_._cached_size_),
          false,
      },
      &Document::kDescriptorMethods,
      &descriptor_table_proto_2fdocument_2eproto,
      nullptr,  // tracker
  };
}

PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
    ::google::protobuf::internal::ClassDataFull Document_class_data_ =
        Document::InternalGenerateClassData_();

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
Document::GetClassData() const {
  ::google::protobuf::internal::PrefetchToLocalCache(&Document_class_data_);
  ::google::protobuf::internal::PrefetchToLocalCache(Document_class_data_.tc_table);
  return Document_class_data_.base();
}
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::_pbi::TcParseTable<1, 2, 1, 26, 2>
Document::_table_ = {
  {
    PROTOBUF_FIELD_OFFSET(Document, _impl_._has_bits_),
    0, // no _extensions_
    2, 8,  // max_field_number, fast_idx_mask
    offsetof(decltype(_table_), field_lookup_table),
    4294967292,  // skipmap
    offsetof(decltype(_table_), field_entries),
    2,  // num_field_entries
    1,  // num_aux_entries
    offsetof(decltype(_table_), aux_entries),
    Document_class_data_.base(),
    nullptr,  // post_loop_handler
    ::_pbi::TcParser::GenericFallback,  // fallback
    #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
    ::_pbi::TcParser::GetTable<::orion::Document>(),  // to_prefetch
    #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
  }, {{
    // repeated .orion.Field fields = 2;
    {::_pbi::TcParser::FastMtR1,
     {18, 0, 0,
      PROTOBUF_FIELD_OFFSET(Document, _impl_.fields_)}},
    // string key = 1;
    {::_pbi::TcParser::FastUS1,
     {10, 1, 0,
      PROTOBUF_FIELD_OFFSET(Document, _impl_.key_)}},
  }}, {{
    65535, 65535
  }}, {{
    // string key = 1;
    {PROTOBUF_FIELD_OFFSET(Document, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
    // repeated .orion.Field fields = 2;
    {PROTOBUF_FIELD_OFFSET(Document, _impl_.fields_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
  }},
  {{
      {::_pbi::TcParser::GetTable<::orion::Field>()},
  }},
  {{
    "\16\3\0\0\0\0\0\0"
    "orion.Document"
    "key"
  }},
};
PROTOBUF_NOINLINE void Document::Clear() {
// @@protoc_insertion_point(message_clear_start:orion.Document)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
      _impl_.fields_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.key_.ClearNonDefaultToEmpty();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL Document::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const Document& this_ = static_cast<const Document&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL Document::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const Document& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:orion.Document)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // string key = 1;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    if (!this_._internal_key().empty()) {
      const ::std::string& _s = this_._internal_key();
      ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
          _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "orion.Document.key");
      target = stream->WriteStringMaybeAliased(1, _s, target);
    }
  }

  // repeated .orion.Field fields = 2;
  if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
    for (unsigned i = 0, n = static_cast<unsigned>(
                             this_._internal_fields_size());
         i < n; i++) {
      const auto& repfield = this_._internal_fields().Get(i);
      target =
          ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
              2, repfield, repfield.GetCachedSize(),
              target, stream);
    }
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target =
        ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
            this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:orion.Document)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t Document::ByteSizeLong(const MessageLite& base) {
  const Document& this_ = static_cast<const Document&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t Document::ByteSizeLong() const {
  const Document& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:orion.Document)
  ::size_t total_size = 0;

  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void)cached_has_bits;

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    // repeated .orion.Field fields = 2;
    if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
      total_size += 1UL * this_._internal_fields_size();
      for (const auto& msg : this_._internal_fields()) {
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
      }
    }
    // string key = 1;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!this_._internal_key().empty()) {
        total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                        this_._internal_key());
      }
    }
  }
  return this_.MaybeComputeUnknownFieldsSize(total_size,
                                             &this_._impl_._cached_size_);
}

void Document::MergeImpl(::google::protobuf::MessageLite& to_msg,
                            const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this =
      static_cast<Document*>(&to_msg);
  auto& from = static_cast<const Document&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:orion.Document)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
    if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_fields()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_fields());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      if (!from._internal_key().empty()) {
        _this->_internal_set_key(from._internal_key());
      } else {
        if (_this->_impl_.key_.IsDefault()) {
          _this->_internal_set_key("");
        }
      }
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
      from._internal_metadata_);
}

void Document::CopyFrom(const Document& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:orion.Document)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void Document::InternalSwap(Document* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  auto* arena = GetArena();
  ABSL_DCHECK_EQ(arena, other->GetArena());
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  _impl_.fields_.InternalSwap(&other->_impl_.fields_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, &other->_impl_.key_, arena);
}

::google::protobuf::Metadata Document::GetMetadata() const {
  return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
}
// @@protoc_insertion_point(namespace_scope)
}  // namespace orion
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google
// @@protoc_insertion_point(global_scope)
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
    _static_init2_ [[maybe_unused]] =
        (::_pbi::AddDescriptors(&descriptor_table_proto_2fdocument_2eproto),
         ::std::false_type{});
#include "google/protobuf/port_undef.inc"
