// 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 #include #include // This is a temporary google only hack #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS #include "third_party/protobuf/version.h" #endif // @@protoc_insertion_point(includes) namespace wj_lidar_message { class Terminal_fence_statuDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Terminal_fence_statu_default_instance_; class Fence_statu_messageDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Fence_statu_message_default_instance_; } // namespace wj_lidar_message namespace protobuf_wj_5flidar_5fmsg_2eproto { void InitDefaultsTerminal_fence_statuImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS { void* ptr = &::wj_lidar_message::_Terminal_fence_statu_default_instance_; new (ptr) ::wj_lidar_message::Terminal_fence_statu(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::wj_lidar_message::Terminal_fence_statu::InitAsDefaultInstance(); } void InitDefaultsTerminal_fence_statu() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTerminal_fence_statuImpl); } void InitDefaultsFence_statu_messageImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); #else ::google::protobuf::internal::InitProtobufDefaults(); #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS protobuf_wj_5flidar_5fmsg_2eproto::InitDefaultsTerminal_fence_statu(); { void* ptr = &::wj_lidar_message::_Fence_statu_message_default_instance_; new (ptr) ::wj_lidar_message::Fence_statu_message(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::wj_lidar_message::Fence_statu_message::InitAsDefaultInstance(); } void InitDefaultsFence_statu_message() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFence_statu_messageImpl); } ::google::protobuf::Metadata file_level_metadata[2]; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj_lidar_message::Terminal_fence_statu, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj_lidar_message::Terminal_fence_statu, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj_lidar_message::Terminal_fence_statu, terminal_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj_lidar_message::Terminal_fence_statu, cloud_statu_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj_lidar_message::Terminal_fence_statu, position_statu_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj_lidar_message::Terminal_fence_statu, error_info_), 1, 2, 3, 0, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj_lidar_message::Fence_statu_message, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj_lidar_message::Fence_statu_message, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj_lidar_message::Fence_statu_message, fence_statu_), ~0u, }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, 9, sizeof(::wj_lidar_message::Terminal_fence_statu)}, { 13, 19, sizeof(::wj_lidar_message::Fence_statu_message)}, }; static ::google::protobuf::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_), }; void protobuf_AssignDescriptors() { AddDescriptors(); ::google::protobuf::MessageFactory* factory = NULL; AssignDescriptors( "wj_lidar_msg.proto", schemas, file_default_instances, TableStruct::offsets, factory, file_level_metadata, NULL, NULL); } void protobuf_AssignDescriptorsOnce() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2); } void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n\022wj_lidar_msg.proto\022\020wj_lidar_message\"l" "\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\022\022\n\nerror_info\030\004 \001(\t\"R\n\023Fence_st" "atu_message\022;\n\013fence_statu\030\001 \003(\0132&.wj_li" "dar_message.Terminal_fence_statu" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 232); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "wj_lidar_msg.proto", &protobuf_RegisterTypes); } void AddDescriptors() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } // Force AddDescriptors() to be called at dynamic initialization time. struct StaticDescriptorInitializer { StaticDescriptorInitializer() { AddDescriptors(); } } static_descriptor_initializer; } // namespace protobuf_wj_5flidar_5fmsg_2eproto namespace wj_lidar_message { // =================================================================== void Terminal_fence_statu::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Terminal_fence_statu::kTerminalIdFieldNumber; const int Terminal_fence_statu::kCloudStatuFieldNumber; const int Terminal_fence_statu::kPositionStatuFieldNumber; const int Terminal_fence_statu::kErrorInfoFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Terminal_fence_statu::Terminal_fence_statu() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_wj_5flidar_5fmsg_2eproto::InitDefaultsTerminal_fence_statu(); } SharedCtor(); // @@protoc_insertion_point(constructor:wj_lidar_message.Terminal_fence_statu) } Terminal_fence_statu::Terminal_fence_statu(const Terminal_fence_statu& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); error_info_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_error_info()) { error_info_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_info_); } ::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() { _cached_size_ = 0; error_info_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::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(); } void Terminal_fence_statu::SharedDtor() { error_info_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void Terminal_fence_statu::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Terminal_fence_statu::descriptor() { ::protobuf_wj_5flidar_5fmsg_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_wj_5flidar_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Terminal_fence_statu& Terminal_fence_statu::default_instance() { ::protobuf_wj_5flidar_5fmsg_2eproto::InitDefaultsTerminal_fence_statu(); return *internal_default_instance(); } Terminal_fence_statu* Terminal_fence_statu::New(::google::protobuf::Arena* arena) const { Terminal_fence_statu* n = new Terminal_fence_statu; if (arena != NULL) { arena->Own(n); } return n; } void Terminal_fence_statu::Clear() { // @@protoc_insertion_point(message_clear_start:wj_lidar_message.Terminal_fence_statu) ::google::protobuf::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 & 0x00000001u) { GOOGLE_DCHECK(!error_info_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*error_info_.UnsafeRawStringPointer())->clear(); } if (cached_has_bits & 14u) { ::memset(&terminal_id_, 0, static_cast( reinterpret_cast(&position_statu_) - reinterpret_cast(&terminal_id_)) + sizeof(position_statu_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Terminal_fence_statu::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:wj_lidar_message.Terminal_fence_statu) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required int64 terminal_id = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { set_has_terminal_id(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &terminal_id_))); } else { goto handle_unusual; } break; } // required int64 cloud_statu = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { set_has_cloud_statu(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &cloud_statu_))); } else { goto handle_unusual; } break; } // required int64 position_statu = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { set_has_position_statu(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &position_statu_))); } else { goto handle_unusual; } break; } // optional string error_info = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_error_info())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->error_info().data(), static_cast(this->error_info().length()), ::google::protobuf::internal::WireFormat::PARSE, "wj_lidar_message.Terminal_fence_statu.error_info"); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:wj_lidar_message.Terminal_fence_statu) return true; failure: // @@protoc_insertion_point(parse_failure:wj_lidar_message.Terminal_fence_statu) return false; #undef DO_ } void Terminal_fence_statu::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:wj_lidar_message.Terminal_fence_statu) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int64 terminal_id = 1; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->terminal_id(), output); } // required int64 cloud_statu = 2; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->cloud_statu(), output); } // required int64 position_statu = 3; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->position_statu(), output); } // optional string error_info = 4; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->error_info().data(), static_cast(this->error_info().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "wj_lidar_message.Terminal_fence_statu.error_info"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 4, this->error_info(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:wj_lidar_message.Terminal_fence_statu) } ::google::protobuf::uint8* Terminal_fence_statu::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:wj_lidar_message.Terminal_fence_statu) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int64 terminal_id = 1; if (cached_has_bits & 0x00000002u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->terminal_id(), target); } // required int64 cloud_statu = 2; if (cached_has_bits & 0x00000004u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->cloud_statu(), target); } // required int64 position_statu = 3; if (cached_has_bits & 0x00000008u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->position_statu(), target); } // optional string error_info = 4; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->error_info().data(), static_cast(this->error_info().length()), ::google::protobuf::internal::WireFormat::SERIALIZE, "wj_lidar_message.Terminal_fence_statu.error_info"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 4, this->error_info(), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@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 (has_terminal_id()) { // required int64 terminal_id = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( this->terminal_id()); } if (has_cloud_statu()) { // required int64 cloud_statu = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( this->cloud_statu()); } if (has_position_statu()) { // required int64 position_statu = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( this->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 (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } if (((_has_bits_[0] & 0x0000000e) ^ 0x0000000e) == 0) { // All required fields are present. // required int64 terminal_id = 1; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( this->terminal_id()); // required int64 cloud_statu = 2; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( this->cloud_statu()); // required int64 position_statu = 3; total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( this->position_statu()); } else { total_size += RequiredFieldsByteSizeFallback(); } // optional string error_info = 4; if (has_error_info()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->error_info()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Terminal_fence_statu::MergeFrom(const ::google::protobuf::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 = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj_lidar_message.Terminal_fence_statu) ::google::protobuf::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(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 15u) { if (cached_has_bits & 0x00000001u) { set_has_error_info(); error_info_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_info_); } if (cached_has_bits & 0x00000002u) { terminal_id_ = from.terminal_id_; } if (cached_has_bits & 0x00000004u) { cloud_statu_ = from.cloud_statu_; } if (cached_has_bits & 0x00000008u) { position_statu_ = from.position_statu_; } _has_bits_[0] |= cached_has_bits; } } void Terminal_fence_statu::CopyFrom(const ::google::protobuf::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 ((_has_bits_[0] & 0x0000000e) != 0x0000000e) return false; return true; } void Terminal_fence_statu::Swap(Terminal_fence_statu* other) { if (other == this) return; InternalSwap(other); } void Terminal_fence_statu::InternalSwap(Terminal_fence_statu* other) { using std::swap; error_info_.Swap(&other->error_info_); swap(terminal_id_, other->terminal_id_); swap(cloud_statu_, other->cloud_statu_); swap(position_statu_, other->position_statu_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Terminal_fence_statu::GetMetadata() const { protobuf_wj_5flidar_5fmsg_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_wj_5flidar_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Fence_statu_message::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Fence_statu_message::kFenceStatuFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Fence_statu_message::Fence_statu_message() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { ::protobuf_wj_5flidar_5fmsg_2eproto::InitDefaultsFence_statu_message(); } SharedCtor(); // @@protoc_insertion_point(constructor:wj_lidar_message.Fence_statu_message) } Fence_statu_message::Fence_statu_message(const Fence_statu_message& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0), fence_statu_(from.fence_statu_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:wj_lidar_message.Fence_statu_message) } void Fence_statu_message::SharedCtor() { _cached_size_ = 0; } Fence_statu_message::~Fence_statu_message() { // @@protoc_insertion_point(destructor:wj_lidar_message.Fence_statu_message) SharedDtor(); } void Fence_statu_message::SharedDtor() { } void Fence_statu_message::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Fence_statu_message::descriptor() { ::protobuf_wj_5flidar_5fmsg_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_wj_5flidar_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Fence_statu_message& Fence_statu_message::default_instance() { ::protobuf_wj_5flidar_5fmsg_2eproto::InitDefaultsFence_statu_message(); return *internal_default_instance(); } Fence_statu_message* Fence_statu_message::New(::google::protobuf::Arena* arena) const { Fence_statu_message* n = new Fence_statu_message; if (arena != NULL) { arena->Own(n); } return n; } void Fence_statu_message::Clear() { // @@protoc_insertion_point(message_clear_start:wj_lidar_message.Fence_statu_message) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; fence_statu_.Clear(); _has_bits_.Clear(); _internal_metadata_.Clear(); } bool Fence_statu_message::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:wj_lidar_message.Fence_statu_message) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .wj_lidar_message.Terminal_fence_statu fence_statu = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_fence_statu())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:wj_lidar_message.Fence_statu_message) return true; failure: // @@protoc_insertion_point(parse_failure:wj_lidar_message.Fence_statu_message) return false; #undef DO_ } void Fence_statu_message::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:wj_lidar_message.Fence_statu_message) ::google::protobuf::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->fence_statu_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->fence_statu(static_cast(i)), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:wj_lidar_message.Fence_statu_message) } ::google::protobuf::uint8* Fence_statu_message::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:wj_lidar_message.Fence_statu_message) ::google::protobuf::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->fence_statu_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, this->fence_statu(static_cast(i)), deterministic, target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@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; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // repeated .wj_lidar_message.Terminal_fence_statu fence_statu = 1; { unsigned int count = static_cast(this->fence_statu_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->fence_statu(static_cast(i))); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Fence_statu_message::MergeFrom(const ::google::protobuf::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 = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj_lidar_message.Fence_statu_message) ::google::protobuf::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(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; fence_statu_.MergeFrom(from.fence_statu_); } void Fence_statu_message::CopyFrom(const ::google::protobuf::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 (!::google::protobuf::internal::AllAreInitialized(this->fence_statu())) return false; return true; } void Fence_statu_message::Swap(Fence_statu_message* other) { if (other == this) return; InternalSwap(other); } void Fence_statu_message::InternalSwap(Fence_statu_message* other) { using std::swap; fence_statu_.InternalSwap(&other->fence_statu_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Fence_statu_message::GetMetadata() const { protobuf_wj_5flidar_5fmsg_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_wj_5flidar_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages]; } // @@protoc_insertion_point(namespace_scope) } // namespace wj_lidar_message // @@protoc_insertion_point(global_scope)