123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: wj_lidar_msg.proto
- #include "wj_lidar_msg.pb.h"
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/port.h>
- #include <google/protobuf/stubs/once.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.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>
- // 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<Terminal_fence_statu>
- _instance;
- } _Terminal_fence_statu_default_instance_;
- class Fence_statu_messageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Fence_statu_message>
- _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_),
- 0,
- 1,
- 2,
- 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, 8, sizeof(::wj_lidar_message::Terminal_fence_statu)},
- { 11, 17, sizeof(::wj_lidar_message::Fence_statu_message)},
- };
- static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::google::protobuf::Message*>(&::wj_lidar_message::_Terminal_fence_statu_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::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\"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"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 212);
- ::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;
- #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_);
- ::memcpy(&terminal_id_, &from.terminal_id_,
- static_cast<size_t>(reinterpret_cast<char*>(&position_statu_) -
- reinterpret_cast<char*>(&terminal_id_)) + sizeof(position_statu_));
- // @@protoc_insertion_point(copy_constructor:wj_lidar_message.Terminal_fence_statu)
- }
- void Terminal_fence_statu::SharedCtor() {
- _cached_size_ = 0;
- ::memset(&terminal_id_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&position_statu_) -
- reinterpret_cast<char*>(&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() {
- }
- 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 & 7u) {
- ::memset(&terminal_id_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&position_statu_) -
- reinterpret_cast<char*>(&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;
- }
- 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 & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->terminal_id(), output);
- }
- // required int64 cloud_statu = 2;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->cloud_statu(), output);
- }
- // required int64 position_statu = 3;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->position_statu(), 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 & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->terminal_id(), target);
- }
- // required int64 cloud_statu = 2;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->cloud_statu(), target);
- }
- // required int64 position_statu = 3;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->position_statu(), 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] & 0x00000007) ^ 0x00000007) == 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();
- }
- 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<const Terminal_fence_statu>(
- &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 & 7u) {
- 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 ::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] & 0x00000007) != 0x00000007) 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;
- 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<unsigned int>(this->fence_statu_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->fence_statu(static_cast<int>(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<unsigned int>(this->fence_statu_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->fence_statu(static_cast<int>(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<unsigned int>(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<int>(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<const Fence_statu_message>(
- &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)
|