// Generated by the protocol buffer compiler. DO NOT EDIT! // source: wj_lidar_msg.proto #include "wj_lidar_msg.pb.h" #include #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) #include extern PROTOBUF_INTERNAL_EXPORT_wj_5flidar_5fmsg_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Terminal_fence_statu_wj_5flidar_5fmsg_2eproto; namespace wj_lidar_message { class Terminal_fence_statuDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _Terminal_fence_statu_default_instance_; class Fence_statu_messageDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _Fence_statu_message_default_instance_; } // namespace wj_lidar_message static void InitDefaultsscc_info_Fence_statu_message_wj_5flidar_5fmsg_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::wj_lidar_message::_Fence_statu_message_default_instance_; new (ptr) ::wj_lidar_message::Fence_statu_message(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::wj_lidar_message::Fence_statu_message::InitAsDefaultInstance(); } ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Fence_statu_message_wj_5flidar_5fmsg_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Fence_statu_message_wj_5flidar_5fmsg_2eproto}, { &scc_info_Terminal_fence_statu_wj_5flidar_5fmsg_2eproto.base,}}; static void InitDefaultsscc_info_Terminal_fence_statu_wj_5flidar_5fmsg_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::wj_lidar_message::_Terminal_fence_statu_default_instance_; new (ptr) ::wj_lidar_message::Terminal_fence_statu(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::wj_lidar_message::Terminal_fence_statu::InitAsDefaultInstance(); } ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Terminal_fence_statu_wj_5flidar_5fmsg_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Terminal_fence_statu_wj_5flidar_5fmsg_2eproto}, {}}; static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_wj_5flidar_5fmsg_2eproto[2]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_wj_5flidar_5fmsg_2eproto = nullptr; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_wj_5flidar_5fmsg_2eproto = nullptr; const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_wj_5flidar_5fmsg_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { PROTOBUF_FIELD_OFFSET(::wj_lidar_message::Terminal_fence_statu, _has_bits_), PROTOBUF_FIELD_OFFSET(::wj_lidar_message::Terminal_fence_statu, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::wj_lidar_message::Terminal_fence_statu, terminal_id_), PROTOBUF_FIELD_OFFSET(::wj_lidar_message::Terminal_fence_statu, cloud_statu_), PROTOBUF_FIELD_OFFSET(::wj_lidar_message::Terminal_fence_statu, position_statu_), 0, 1, 2, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::wj_lidar_message::Fence_statu_message, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::wj_lidar_message::Fence_statu_message, fence_statu_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, 8, sizeof(::wj_lidar_message::Terminal_fence_statu)}, { 11, -1, sizeof(::wj_lidar_message::Fence_statu_message)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { reinterpret_cast(&::wj_lidar_message::_Terminal_fence_statu_default_instance_), reinterpret_cast(&::wj_lidar_message::_Fence_statu_message_default_instance_), }; const char descriptor_table_protodef_wj_5flidar_5fmsg_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\022wj_lidar_msg.proto\022\020wj_lidar_message\"X" "\n\024Terminal_fence_statu\022\023\n\013terminal_id\030\001 " "\002(\003\022\023\n\013cloud_statu\030\002 \002(\003\022\026\n\016position_sta" "tu\030\003 \002(\003\"R\n\023Fence_statu_message\022;\n\013fence" "_statu\030\001 \003(\0132&.wj_lidar_message.Terminal" "_fence_statu" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_wj_5flidar_5fmsg_2eproto_deps[1] = { }; static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_wj_5flidar_5fmsg_2eproto_sccs[2] = { &scc_info_Fence_statu_message_wj_5flidar_5fmsg_2eproto.base, &scc_info_Terminal_fence_statu_wj_5flidar_5fmsg_2eproto.base, }; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_wj_5flidar_5fmsg_2eproto_once; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_wj_5flidar_5fmsg_2eproto = { false, false, descriptor_table_protodef_wj_5flidar_5fmsg_2eproto, "wj_lidar_msg.proto", 212, &descriptor_table_wj_5flidar_5fmsg_2eproto_once, descriptor_table_wj_5flidar_5fmsg_2eproto_sccs, descriptor_table_wj_5flidar_5fmsg_2eproto_deps, 2, 0, schemas, file_default_instances, TableStruct_wj_5flidar_5fmsg_2eproto::offsets, file_level_metadata_wj_5flidar_5fmsg_2eproto, 2, file_level_enum_descriptors_wj_5flidar_5fmsg_2eproto, file_level_service_descriptors_wj_5flidar_5fmsg_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. static bool dynamic_init_dummy_wj_5flidar_5fmsg_2eproto = (static_cast(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_wj_5flidar_5fmsg_2eproto)), true); namespace wj_lidar_message { // =================================================================== void Terminal_fence_statu::InitAsDefaultInstance() { } class Terminal_fence_statu::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_terminal_id(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_cloud_statu(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_position_statu(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static bool MissingRequiredFields(const HasBits& has_bits) { return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; } }; Terminal_fence_statu::Terminal_fence_statu(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:wj_lidar_message.Terminal_fence_statu) } Terminal_fence_statu::Terminal_fence_statu(const Terminal_fence_statu& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&terminal_id_, &from.terminal_id_, static_cast(reinterpret_cast(&position_statu_) - reinterpret_cast(&terminal_id_)) + sizeof(position_statu_)); // @@protoc_insertion_point(copy_constructor:wj_lidar_message.Terminal_fence_statu) } void Terminal_fence_statu::SharedCtor() { ::memset(&terminal_id_, 0, static_cast( reinterpret_cast(&position_statu_) - reinterpret_cast(&terminal_id_)) + sizeof(position_statu_)); } Terminal_fence_statu::~Terminal_fence_statu() { // @@protoc_insertion_point(destructor:wj_lidar_message.Terminal_fence_statu) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void Terminal_fence_statu::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); } void Terminal_fence_statu::ArenaDtor(void* object) { Terminal_fence_statu* _this = reinterpret_cast< Terminal_fence_statu* >(object); (void)_this; } void Terminal_fence_statu::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void Terminal_fence_statu::SetCachedSize(int size) const { _cached_size_.Set(size); } const Terminal_fence_statu& Terminal_fence_statu::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Terminal_fence_statu_wj_5flidar_5fmsg_2eproto.base); return *internal_default_instance(); } void Terminal_fence_statu::Clear() { // @@protoc_insertion_point(message_clear_start:wj_lidar_message.Terminal_fence_statu) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { ::memset(&terminal_id_, 0, static_cast( reinterpret_cast(&position_statu_) - reinterpret_cast(&terminal_id_)) + sizeof(position_statu_)); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Terminal_fence_statu::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // required int64 terminal_id = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { _Internal::set_has_terminal_id(&has_bits); terminal_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // required int64 cloud_statu = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { _Internal::set_has_cloud_statu(&has_bits); cloud_statu_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // required int64 position_statu = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { _Internal::set_has_position_statu(&has_bits); position_statu_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* Terminal_fence_statu::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:wj_lidar_message.Terminal_fence_statu) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int64 terminal_id = 1; if (cached_has_bits & 0x00000001u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_terminal_id(), target); } // required int64 cloud_statu = 2; if (cached_has_bits & 0x00000002u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_cloud_statu(), target); } // required int64 position_statu = 3; if (cached_has_bits & 0x00000004u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_position_statu(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:wj_lidar_message.Terminal_fence_statu) return target; } size_t Terminal_fence_statu::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:wj_lidar_message.Terminal_fence_statu) size_t total_size = 0; if (_internal_has_terminal_id()) { // required int64 terminal_id = 1; total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_terminal_id()); } if (_internal_has_cloud_statu()) { // required int64 cloud_statu = 2; total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_cloud_statu()); } if (_internal_has_position_statu()) { // required int64 position_statu = 3; total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_position_statu()); } return total_size; } size_t Terminal_fence_statu::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:wj_lidar_message.Terminal_fence_statu) size_t total_size = 0; if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. // required int64 terminal_id = 1; total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_terminal_id()); // required int64 cloud_statu = 2; total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_cloud_statu()); // required int64 position_statu = 3; total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_position_statu()); } else { total_size += RequiredFieldsByteSizeFallback(); } ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void Terminal_fence_statu::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:wj_lidar_message.Terminal_fence_statu) GOOGLE_DCHECK_NE(&from, this); const Terminal_fence_statu* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj_lidar_message.Terminal_fence_statu) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:wj_lidar_message.Terminal_fence_statu) MergeFrom(*source); } } void Terminal_fence_statu::MergeFrom(const Terminal_fence_statu& from) { // @@protoc_insertion_point(class_specific_merge_from_start:wj_lidar_message.Terminal_fence_statu) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { terminal_id_ = from.terminal_id_; } if (cached_has_bits & 0x00000002u) { cloud_statu_ = from.cloud_statu_; } if (cached_has_bits & 0x00000004u) { position_statu_ = from.position_statu_; } _has_bits_[0] |= cached_has_bits; } } void Terminal_fence_statu::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:wj_lidar_message.Terminal_fence_statu) if (&from == this) return; Clear(); MergeFrom(from); } void Terminal_fence_statu::CopyFrom(const Terminal_fence_statu& from) { // @@protoc_insertion_point(class_specific_copy_from_start:wj_lidar_message.Terminal_fence_statu) if (&from == this) return; Clear(); MergeFrom(from); } bool Terminal_fence_statu::IsInitialized() const { if (_Internal::MissingRequiredFields(_has_bits_)) return false; return true; } void Terminal_fence_statu::InternalSwap(Terminal_fence_statu* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(Terminal_fence_statu, position_statu_) + sizeof(Terminal_fence_statu::position_statu_) - PROTOBUF_FIELD_OFFSET(Terminal_fence_statu, terminal_id_)>( reinterpret_cast(&terminal_id_), reinterpret_cast(&other->terminal_id_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Terminal_fence_statu::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== void Fence_statu_message::InitAsDefaultInstance() { } class Fence_statu_message::_Internal { public: }; Fence_statu_message::Fence_statu_message(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena), fence_statu_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:wj_lidar_message.Fence_statu_message) } Fence_statu_message::Fence_statu_message(const Fence_statu_message& from) : ::PROTOBUF_NAMESPACE_ID::Message(), fence_statu_(from.fence_statu_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:wj_lidar_message.Fence_statu_message) } void Fence_statu_message::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Fence_statu_message_wj_5flidar_5fmsg_2eproto.base); } Fence_statu_message::~Fence_statu_message() { // @@protoc_insertion_point(destructor:wj_lidar_message.Fence_statu_message) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void Fence_statu_message::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); } void Fence_statu_message::ArenaDtor(void* object) { Fence_statu_message* _this = reinterpret_cast< Fence_statu_message* >(object); (void)_this; } void Fence_statu_message::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void Fence_statu_message::SetCachedSize(int size) const { _cached_size_.Set(size); } const Fence_statu_message& Fence_statu_message::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Fence_statu_message_wj_5flidar_5fmsg_2eproto.base); return *internal_default_instance(); } void Fence_statu_message::Clear() { // @@protoc_insertion_point(message_clear_start:wj_lidar_message.Fence_statu_message) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; fence_statu_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Fence_statu_message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // repeated .wj_lidar_message.Terminal_fence_statu fence_statu = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(_internal_add_fence_statu(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* Fence_statu_message::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:wj_lidar_message.Fence_statu_message) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated .wj_lidar_message.Terminal_fence_statu fence_statu = 1; for (unsigned int i = 0, n = static_cast(this->_internal_fence_statu_size()); i < n; i++) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, this->_internal_fence_statu(i), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:wj_lidar_message.Fence_statu_message) return target; } size_t Fence_statu_message::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:wj_lidar_message.Fence_statu_message) size_t total_size = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .wj_lidar_message.Terminal_fence_statu fence_statu = 1; total_size += 1UL * this->_internal_fence_statu_size(); for (const auto& msg : this->fence_statu_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void Fence_statu_message::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:wj_lidar_message.Fence_statu_message) GOOGLE_DCHECK_NE(&from, this); const Fence_statu_message* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj_lidar_message.Fence_statu_message) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:wj_lidar_message.Fence_statu_message) MergeFrom(*source); } } void Fence_statu_message::MergeFrom(const Fence_statu_message& from) { // @@protoc_insertion_point(class_specific_merge_from_start:wj_lidar_message.Fence_statu_message) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; fence_statu_.MergeFrom(from.fence_statu_); } void Fence_statu_message::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:wj_lidar_message.Fence_statu_message) if (&from == this) return; Clear(); MergeFrom(from); } void Fence_statu_message::CopyFrom(const Fence_statu_message& from) { // @@protoc_insertion_point(class_specific_copy_from_start:wj_lidar_message.Fence_statu_message) if (&from == this) return; Clear(); MergeFrom(from); } bool Fence_statu_message::IsInitialized() const { if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(fence_statu_)) return false; return true; } void Fence_statu_message::InternalSwap(Fence_statu_message* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); fence_statu_.InternalSwap(&other->fence_statu_); } ::PROTOBUF_NAMESPACE_ID::Metadata Fence_statu_message::GetMetadata() const { return GetMetadataStatic(); } // @@protoc_insertion_point(namespace_scope) } // namespace wj_lidar_message PROTOBUF_NAMESPACE_OPEN template<> PROTOBUF_NOINLINE ::wj_lidar_message::Terminal_fence_statu* Arena::CreateMaybeMessage< ::wj_lidar_message::Terminal_fence_statu >(Arena* arena) { return Arena::CreateMessageInternal< ::wj_lidar_message::Terminal_fence_statu >(arena); } template<> PROTOBUF_NOINLINE ::wj_lidar_message::Fence_statu_message* Arena::CreateMaybeMessage< ::wj_lidar_message::Fence_statu_message >(Arena* arena) { return Arena::CreateMessageInternal< ::wj_lidar_message::Fence_statu_message >(arena); } PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include