// Generated by the protocol buffer compiler. DO NOT EDIT! // source: brintos_probe.proto #include "brintos_probe.pb.h" #include #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/extension_set.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" #include "google/protobuf/generated_message_tctable_impl.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 brintos { inline constexpr Weapon::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), damage_{0}, _cached_size_{0} {} template PROTOBUF_CONSTEXPR Weapon::Weapon(::_pbi::ConstantInitialized) : _impl_(::_pbi::ConstantInitialized()) {} struct WeaponDefaultTypeInternal { PROTOBUF_CONSTEXPR WeaponDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~WeaponDefaultTypeInternal() {} union { Weapon _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WeaponDefaultTypeInternal _Weapon_default_instance_; inline constexpr Probe::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : inventory_{}, _inventory_cached_byte_size_{0}, weapons_{}, name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), blob_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), hp_{0}, mana_{0}, color_{static_cast< ::brintos::Color >(0)}, alive_{false}, weight_{0}, id_{::uint64_t{0u}}, depth_{0}, _cached_size_{0} {} template PROTOBUF_CONSTEXPR Probe::Probe(::_pbi::ConstantInitialized) : _impl_(::_pbi::ConstantInitialized()) {} struct ProbeDefaultTypeInternal { PROTOBUF_CONSTEXPR ProbeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ProbeDefaultTypeInternal() {} union { Probe _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProbeDefaultTypeInternal _Probe_default_instance_; } // namespace brintos static ::_pb::Metadata file_level_metadata_brintos_5fprobe_2eproto[2]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_brintos_5fprobe_2eproto[1]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_brintos_5fprobe_2eproto = nullptr; const ::uint32_t TableStruct_brintos_5fprobe_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::brintos::Weapon, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ ~0u, // no _split_ ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::brintos::Weapon, _impl_.name_), PROTOBUF_FIELD_OFFSET(::brintos::Weapon, _impl_.damage_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::brintos::Probe, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ ~0u, // no _split_ ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::brintos::Probe, _impl_.name_), PROTOBUF_FIELD_OFFSET(::brintos::Probe, _impl_.hp_), PROTOBUF_FIELD_OFFSET(::brintos::Probe, _impl_.mana_), PROTOBUF_FIELD_OFFSET(::brintos::Probe, _impl_.color_), PROTOBUF_FIELD_OFFSET(::brintos::Probe, _impl_.inventory_), PROTOBUF_FIELD_OFFSET(::brintos::Probe, _impl_.weapons_), PROTOBUF_FIELD_OFFSET(::brintos::Probe, _impl_.blob_), PROTOBUF_FIELD_OFFSET(::brintos::Probe, _impl_.alive_), PROTOBUF_FIELD_OFFSET(::brintos::Probe, _impl_.weight_), PROTOBUF_FIELD_OFFSET(::brintos::Probe, _impl_.depth_), PROTOBUF_FIELD_OFFSET(::brintos::Probe, _impl_.id_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { {0, -1, -1, sizeof(::brintos::Weapon)}, {10, -1, -1, sizeof(::brintos::Probe)}, }; static const ::_pb::Message* const file_default_instances[] = { &::brintos::_Weapon_default_instance_._instance, &::brintos::_Probe_default_instance_._instance, }; const char descriptor_table_protodef_brintos_5fprobe_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { "\n\023brintos_probe.proto\022\007brintos\"&\n\006Weapon" "\022\014\n\004name\030\001 \001(\t\022\016\n\006damage\030\002 \001(\005\"\313\001\n\005Probe" "\022\014\n\004name\030\001 \001(\t\022\n\n\002hp\030\002 \001(\005\022\014\n\004mana\030\003 \001(\005" "\022\035\n\005color\030\004 \001(\0162\016.brintos.Color\022\021\n\tinven" "tory\030\005 \003(\005\022 \n\007weapons\030\006 \003(\0132\017.brintos.We" "apon\022\014\n\004blob\030\007 \001(\014\022\r\n\005alive\030\010 \001(\010\022\016\n\006wei" "ght\030\t \001(\001\022\r\n\005depth\030\n \001(\021\022\n\n\002id\030\013 \001(\006*7\n\005" "Color\022\r\n\tCOLOR_RED\020\000\022\017\n\013COLOR_GREEN\020\001\022\016\n" "\nCOLOR_BLUE\020\002b\006proto3" }; static ::absl::once_flag descriptor_table_brintos_5fprobe_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_brintos_5fprobe_2eproto = { false, false, 341, descriptor_table_protodef_brintos_5fprobe_2eproto, "brintos_probe.proto", &descriptor_table_brintos_5fprobe_2eproto_once, nullptr, 0, 2, schemas, file_default_instances, TableStruct_brintos_5fprobe_2eproto::offsets, file_level_metadata_brintos_5fprobe_2eproto, file_level_enum_descriptors_brintos_5fprobe_2eproto, file_level_service_descriptors_brintos_5fprobe_2eproto, }; // This function exists to be marked as weak. // It can significantly speed up compilation by breaking up LLVM's SCC // in the .pb.cc translation units. Large translation units see a // reduction of more than 35% of walltime for optimized builds. Without // the weak attribute all the messages in the file, including all the // vtables and everything they use become part of the same SCC through // a cycle like: // GetMetadata -> descriptor table -> default instances -> // vtables -> GetMetadata // By adding a weak function here we break the connection from the // individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_brintos_5fprobe_2eproto_getter() { return &descriptor_table_brintos_5fprobe_2eproto; } // Force running AddDescriptors() at dynamic initialization time. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_brintos_5fprobe_2eproto(&descriptor_table_brintos_5fprobe_2eproto); namespace brintos { const ::google::protobuf::EnumDescriptor* Color_descriptor() { ::google::protobuf::internal::AssignDescriptors(&descriptor_table_brintos_5fprobe_2eproto); return file_level_enum_descriptors_brintos_5fprobe_2eproto[0]; } PROTOBUF_CONSTINIT const uint32_t Color_internal_data_[] = { 196608u, 0u, }; bool Color_IsValid(int value) { return 0 <= value && value <= 2; } // =================================================================== class Weapon::_Internal { public: }; Weapon::Weapon(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:brintos.Weapon) } inline PROTOBUF_NDEBUG_INLINE Weapon::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from) : name_(arena, from.name_), _cached_size_{0} {} Weapon::Weapon( ::google::protobuf::Arena* arena, const Weapon& from) : ::google::protobuf::Message(arena) { Weapon* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); _impl_.damage_ = from._impl_.damage_; // @@protoc_insertion_point(copy_constructor:brintos.Weapon) } inline PROTOBUF_NDEBUG_INLINE Weapon::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : name_(arena), _cached_size_{0} {} inline void Weapon::SharedCtor(::_pb::Arena* arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.damage_ = {}; } Weapon::~Weapon() { // @@protoc_insertion_point(destructor:brintos.Weapon) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void Weapon::SharedDtor() { ABSL_DCHECK(GetArena() == nullptr); _impl_.name_.Destroy(); _impl_.~Impl_(); } PROTOBUF_NOINLINE void Weapon::Clear() { // @@protoc_insertion_point(message_clear_start:brintos.Weapon) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.name_.ClearToEmpty(); _impl_.damage_ = 0; _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* Weapon::_InternalParse( const char* ptr, ::_pbi::ParseContext* ctx) { ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<1, 2, 0, 27, 2> Weapon::_table_ = { { 0, // no _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 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries &_Weapon_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // int32 damage = 2; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Weapon, _impl_.damage_), 63>(), {16, 63, 0, PROTOBUF_FIELD_OFFSET(Weapon, _impl_.damage_)}}, // string name = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(Weapon, _impl_.name_)}}, }}, {{ 65535, 65535 }}, {{ // string name = 1; {PROTOBUF_FIELD_OFFSET(Weapon, _impl_.name_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 damage = 2; {PROTOBUF_FIELD_OFFSET(Weapon, _impl_.damage_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, }}, // no aux_entries {{ "\16\4\0\0\0\0\0\0" "brintos.Weapon" "name" }}, }; ::uint8_t* Weapon::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:brintos.Weapon) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string name = 1; if (!this->_internal_name().empty()) { const std::string& _s = this->_internal_name(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "brintos.Weapon.name"); target = stream->WriteStringMaybeAliased(1, _s, target); } // int32 damage = 2; if (this->_internal_damage() != 0) { target = ::google::protobuf::internal::WireFormatLite:: WriteInt32ToArrayWithField<2>( stream, this->_internal_damage(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:brintos.Weapon) return target; } ::size_t Weapon::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:brintos.Weapon) ::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; if (!this->_internal_name().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_name()); } // int32 damage = 2; if (this->_internal_damage() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this->_internal_damage()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData Weapon::_class_data_ = { Weapon::MergeImpl, nullptr, // OnDemandRegisterArenaDtor }; const ::google::protobuf::Message::ClassData* Weapon::GetClassData() const { return &_class_data_; } void Weapon::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:brintos.Weapon) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { _this->_internal_set_name(from._internal_name()); } if (from._internal_damage() != 0) { _this->_internal_set_damage(from._internal_damage()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Weapon::CopyFrom(const Weapon& from) { // @@protoc_insertion_point(class_specific_copy_from_start:brintos.Weapon) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool Weapon::IsInitialized() const { return true; } ::_pbi::CachedSize* Weapon::AccessCachedSize() const { return &_impl_._cached_size_; } void Weapon::InternalSwap(Weapon* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); swap(_impl_.damage_, other->_impl_.damage_); } ::google::protobuf::Metadata Weapon::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_brintos_5fprobe_2eproto_getter, &descriptor_table_brintos_5fprobe_2eproto_once, file_level_metadata_brintos_5fprobe_2eproto[0]); } // =================================================================== class Probe::_Internal { public: }; Probe::Probe(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:brintos.Probe) } inline PROTOBUF_NDEBUG_INLINE Probe::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from) : inventory_{visibility, arena, from.inventory_}, _inventory_cached_byte_size_{0}, weapons_{visibility, arena, from.weapons_}, name_(arena, from.name_), blob_(arena, from.blob_), _cached_size_{0} {} Probe::Probe( ::google::protobuf::Arena* arena, const Probe& from) : ::google::protobuf::Message(arena) { Probe* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, hp_), reinterpret_cast(&from._impl_) + offsetof(Impl_, hp_), offsetof(Impl_, depth_) - offsetof(Impl_, hp_) + sizeof(Impl_::depth_)); // @@protoc_insertion_point(copy_constructor:brintos.Probe) } inline PROTOBUF_NDEBUG_INLINE Probe::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : inventory_{visibility, arena}, _inventory_cached_byte_size_{0}, weapons_{visibility, arena}, name_(arena), blob_(arena), _cached_size_{0} {} inline void Probe::SharedCtor(::_pb::Arena* arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, hp_), 0, offsetof(Impl_, depth_) - offsetof(Impl_, hp_) + sizeof(Impl_::depth_)); } Probe::~Probe() { // @@protoc_insertion_point(destructor:brintos.Probe) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void Probe::SharedDtor() { ABSL_DCHECK(GetArena() == nullptr); _impl_.name_.Destroy(); _impl_.blob_.Destroy(); _impl_.~Impl_(); } PROTOBUF_NOINLINE void Probe::Clear() { // @@protoc_insertion_point(message_clear_start:brintos.Probe) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.inventory_.Clear(); _impl_.weapons_.Clear(); _impl_.name_.ClearToEmpty(); _impl_.blob_.ClearToEmpty(); ::memset(&_impl_.hp_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.depth_) - reinterpret_cast(&_impl_.hp_)) + sizeof(_impl_.depth_)); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* Probe::_InternalParse( const char* ptr, ::_pbi::ParseContext* ctx) { ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<4, 11, 1, 34, 2> Probe::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ 11, 120, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294965248, // skipmap offsetof(decltype(_table_), field_entries), 11, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_Probe_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ {::_pbi::TcParser::MiniParse, {}}, // string name = 1; {::_pbi::TcParser::FastUS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(Probe, _impl_.name_)}}, // int32 hp = 2; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Probe, _impl_.hp_), 63>(), {16, 63, 0, PROTOBUF_FIELD_OFFSET(Probe, _impl_.hp_)}}, // int32 mana = 3; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Probe, _impl_.mana_), 63>(), {24, 63, 0, PROTOBUF_FIELD_OFFSET(Probe, _impl_.mana_)}}, // .brintos.Color color = 4; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Probe, _impl_.color_), 63>(), {32, 63, 0, PROTOBUF_FIELD_OFFSET(Probe, _impl_.color_)}}, // repeated int32 inventory = 5; {::_pbi::TcParser::FastV32P1, {42, 63, 0, PROTOBUF_FIELD_OFFSET(Probe, _impl_.inventory_)}}, // repeated .brintos.Weapon weapons = 6; {::_pbi::TcParser::FastMtR1, {50, 63, 0, PROTOBUF_FIELD_OFFSET(Probe, _impl_.weapons_)}}, // bytes blob = 7; {::_pbi::TcParser::FastBS1, {58, 63, 0, PROTOBUF_FIELD_OFFSET(Probe, _impl_.blob_)}}, // bool alive = 8; {::_pbi::TcParser::SingularVarintNoZag1(), {64, 63, 0, PROTOBUF_FIELD_OFFSET(Probe, _impl_.alive_)}}, // double weight = 9; {::_pbi::TcParser::FastF64S1, {73, 63, 0, PROTOBUF_FIELD_OFFSET(Probe, _impl_.weight_)}}, // sint32 depth = 10; {::_pbi::TcParser::FastZ32S1, {80, 63, 0, PROTOBUF_FIELD_OFFSET(Probe, _impl_.depth_)}}, // fixed64 id = 11; {::_pbi::TcParser::FastF64S1, {89, 63, 0, PROTOBUF_FIELD_OFFSET(Probe, _impl_.id_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // string name = 1; {PROTOBUF_FIELD_OFFSET(Probe, _impl_.name_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 hp = 2; {PROTOBUF_FIELD_OFFSET(Probe, _impl_.hp_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, // int32 mana = 3; {PROTOBUF_FIELD_OFFSET(Probe, _impl_.mana_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, // .brintos.Color color = 4; {PROTOBUF_FIELD_OFFSET(Probe, _impl_.color_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, // repeated int32 inventory = 5; {PROTOBUF_FIELD_OFFSET(Probe, _impl_.inventory_), 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, // repeated .brintos.Weapon weapons = 6; {PROTOBUF_FIELD_OFFSET(Probe, _impl_.weapons_), 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, // bytes blob = 7; {PROTOBUF_FIELD_OFFSET(Probe, _impl_.blob_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, // bool alive = 8; {PROTOBUF_FIELD_OFFSET(Probe, _impl_.alive_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kBool)}, // double weight = 9; {PROTOBUF_FIELD_OFFSET(Probe, _impl_.weight_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, // sint32 depth = 10; {PROTOBUF_FIELD_OFFSET(Probe, _impl_.depth_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kSInt32)}, // fixed64 id = 11; {PROTOBUF_FIELD_OFFSET(Probe, _impl_.id_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kFixed64)}, }}, {{ {::_pbi::TcParser::GetTable<::brintos::Weapon>()}, }}, {{ "\15\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "brintos.Probe" "name" }}, }; ::uint8_t* Probe::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:brintos.Probe) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // string name = 1; if (!this->_internal_name().empty()) { const std::string& _s = this->_internal_name(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "brintos.Probe.name"); target = stream->WriteStringMaybeAliased(1, _s, target); } // int32 hp = 2; if (this->_internal_hp() != 0) { target = ::google::protobuf::internal::WireFormatLite:: WriteInt32ToArrayWithField<2>( stream, this->_internal_hp(), target); } // int32 mana = 3; if (this->_internal_mana() != 0) { target = ::google::protobuf::internal::WireFormatLite:: WriteInt32ToArrayWithField<3>( stream, this->_internal_mana(), target); } // .brintos.Color color = 4; if (this->_internal_color() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 4, this->_internal_color(), target); } // repeated int32 inventory = 5; { int byte_size = _impl_._inventory_cached_byte_size_.Get(); if (byte_size > 0) { target = stream->WriteInt32Packed( 5, _internal_inventory(), byte_size, target); } } // repeated .brintos.Weapon weapons = 6; for (unsigned i = 0, n = static_cast(this->_internal_weapons_size()); i < n; i++) { const auto& repfield = this->_internal_weapons().Get(i); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream); } // bytes blob = 7; if (!this->_internal_blob().empty()) { const std::string& _s = this->_internal_blob(); target = stream->WriteBytesMaybeAliased(7, _s, target); } // bool alive = 8; if (this->_internal_alive() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 8, this->_internal_alive(), target); } // double weight = 9; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_weight = this->_internal_weight(); ::uint64_t raw_weight; memcpy(&raw_weight, &tmp_weight, sizeof(tmp_weight)); if (raw_weight != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteDoubleToArray( 9, this->_internal_weight(), target); } // sint32 depth = 10; if (this->_internal_depth() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteSInt32ToArray( 10, this->_internal_depth(), target); } // fixed64 id = 11; if (this->_internal_id() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteFixed64ToArray( 11, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:brintos.Probe) return target; } ::size_t Probe::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:brintos.Probe) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated int32 inventory = 5; { std::size_t data_size = ::_pbi::WireFormatLite::Int32Size( this->_internal_inventory()) ; _impl_._inventory_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); std::size_t tag_size = data_size == 0 ? 0 : 1 + ::_pbi::WireFormatLite::Int32Size( static_cast(data_size)) ; total_size += tag_size + data_size; } // repeated .brintos.Weapon weapons = 6; total_size += 1UL * this->_internal_weapons_size(); for (const auto& msg : this->_internal_weapons()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // string name = 1; if (!this->_internal_name().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_name()); } // bytes blob = 7; if (!this->_internal_blob().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this->_internal_blob()); } // int32 hp = 2; if (this->_internal_hp() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this->_internal_hp()); } // int32 mana = 3; if (this->_internal_mana() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this->_internal_mana()); } // .brintos.Color color = 4; if (this->_internal_color() != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this->_internal_color()); } // bool alive = 8; if (this->_internal_alive() != 0) { total_size += 2; } // double weight = 9; static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_weight = this->_internal_weight(); ::uint64_t raw_weight; memcpy(&raw_weight, &tmp_weight, sizeof(tmp_weight)); if (raw_weight != 0) { total_size += 9; } // fixed64 id = 11; if (this->_internal_id() != 0) { total_size += 9; } // sint32 depth = 10; if (this->_internal_depth() != 0) { total_size += ::_pbi::WireFormatLite::SInt32SizePlusOne( this->_internal_depth()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData Probe::_class_data_ = { Probe::MergeImpl, nullptr, // OnDemandRegisterArenaDtor }; const ::google::protobuf::Message::ClassData* Probe::GetClassData() const { return &_class_data_; } void Probe::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:brintos.Probe) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; _this->_internal_mutable_inventory()->MergeFrom(from._internal_inventory()); _this->_internal_mutable_weapons()->MergeFrom( from._internal_weapons()); if (!from._internal_name().empty()) { _this->_internal_set_name(from._internal_name()); } if (!from._internal_blob().empty()) { _this->_internal_set_blob(from._internal_blob()); } if (from._internal_hp() != 0) { _this->_internal_set_hp(from._internal_hp()); } if (from._internal_mana() != 0) { _this->_internal_set_mana(from._internal_mana()); } if (from._internal_color() != 0) { _this->_internal_set_color(from._internal_color()); } if (from._internal_alive() != 0) { _this->_internal_set_alive(from._internal_alive()); } static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); double tmp_weight = from._internal_weight(); ::uint64_t raw_weight; memcpy(&raw_weight, &tmp_weight, sizeof(tmp_weight)); if (raw_weight != 0) { _this->_internal_set_weight(from._internal_weight()); } if (from._internal_id() != 0) { _this->_internal_set_id(from._internal_id()); } if (from._internal_depth() != 0) { _this->_internal_set_depth(from._internal_depth()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Probe::CopyFrom(const Probe& from) { // @@protoc_insertion_point(class_specific_copy_from_start:brintos.Probe) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool Probe::IsInitialized() const { return true; } ::_pbi::CachedSize* Probe::AccessCachedSize() const { return &_impl_._cached_size_; } void Probe::InternalSwap(Probe* PROTOBUF_RESTRICT other) { using std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.inventory_.InternalSwap(&other->_impl_.inventory_); _impl_.weapons_.InternalSwap(&other->_impl_.weapons_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.blob_, &other->_impl_.blob_, arena); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(Probe, _impl_.depth_) + sizeof(Probe::_impl_.depth_) - PROTOBUF_FIELD_OFFSET(Probe, _impl_.hp_)>( reinterpret_cast(&_impl_.hp_), reinterpret_cast(&other->_impl_.hp_)); } ::google::protobuf::Metadata Probe::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_brintos_5fprobe_2eproto_getter, &descriptor_table_brintos_5fprobe_2eproto_once, file_level_metadata_brintos_5fprobe_2eproto[1]); } // @@protoc_insertion_point(namespace_scope) } // namespace brintos namespace google { namespace protobuf { } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc"