12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: terminor_msg.proto
- #include "terminor_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 Terminal {
- class wj_locate_informationDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<wj_locate_information>
- _instance;
- } _wj_locate_information_default_instance_;
- class Terminal_messageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Terminal_message>
- _instance;
- } _Terminal_message_default_instance_;
- } // namespace Terminal
- namespace protobuf_terminor_5fmsg_2eproto {
- void InitDefaultswj_locate_informationImpl() {
- 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 = &::Terminal::_wj_locate_information_default_instance_;
- new (ptr) ::Terminal::wj_locate_information();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Terminal::wj_locate_information::InitAsDefaultInstance();
- }
- void InitDefaultswj_locate_information() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultswj_locate_informationImpl);
- }
- void InitDefaultsTerminal_messageImpl() {
- 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 = &::Terminal::_Terminal_message_default_instance_;
- new (ptr) ::Terminal::Terminal_message();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Terminal::Terminal_message::InitAsDefaultInstance();
- }
- void InitDefaultsTerminal_message() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTerminal_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(::Terminal::wj_locate_information, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, time_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, correctness_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, park_space_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, laser_ids_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, x_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, y_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, c_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, wheel_base_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, length_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, width_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, height_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, error_),
- 0,
- 2,
- 3,
- 11,
- 4,
- 5,
- 6,
- 7,
- 8,
- 9,
- 10,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminal_message, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminal_message, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- };
- static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, 17, sizeof(::Terminal::wj_locate_information)},
- { 29, 34, sizeof(::Terminal::Terminal_message)},
- };
- static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::google::protobuf::Message*>(&::Terminal::_wj_locate_information_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::Terminal::_Terminal_message_default_instance_),
- };
- void protobuf_AssignDescriptors() {
- AddDescriptors();
- ::google::protobuf::MessageFactory* factory = NULL;
- AssignDescriptors(
- "terminor_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\022terminor_msg.proto\022\010Terminal\"\333\001\n\025wj_lo"
- "cate_information\022\016\n\004time\030\001 \002(\t:\000\022\023\n\013corr"
- "ectness\030\002 \002(\010\022\025\n\rpark_space_id\030\003 \001(\005\022\021\n\t"
- "laser_ids\030\004 \001(\005\022\t\n\001x\030\005 \001(\001\022\t\n\001y\030\006 \001(\001\022\t\n"
- "\001c\030\007 \001(\001\022\022\n\nwheel_base\030\010 \001(\001\022\016\n\006length\030\t"
- " \001(\001\022\r\n\005width\030\n \001(\001\022\016\n\006height\030\013 \001(\001\022\017\n\005e"
- "rror\030\014 \001(\t:\000\"\022\n\020Terminal_message"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 272);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "terminor_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_terminor_5fmsg_2eproto
- namespace Terminal {
- // ===================================================================
- void wj_locate_information::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int wj_locate_information::kTimeFieldNumber;
- const int wj_locate_information::kCorrectnessFieldNumber;
- const int wj_locate_information::kParkSpaceIdFieldNumber;
- const int wj_locate_information::kLaserIdsFieldNumber;
- const int wj_locate_information::kXFieldNumber;
- const int wj_locate_information::kYFieldNumber;
- const int wj_locate_information::kCFieldNumber;
- const int wj_locate_information::kWheelBaseFieldNumber;
- const int wj_locate_information::kLengthFieldNumber;
- const int wj_locate_information::kWidthFieldNumber;
- const int wj_locate_information::kHeightFieldNumber;
- const int wj_locate_information::kErrorFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- wj_locate_information::wj_locate_information()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_terminor_5fmsg_2eproto::InitDefaultswj_locate_information();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:Terminal.wj_locate_information)
- }
- wj_locate_information::wj_locate_information(const wj_locate_information& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_time()) {
- time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.time_);
- }
- error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_error()) {
- error_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_);
- }
- ::memcpy(&correctness_, &from.correctness_,
- static_cast<size_t>(reinterpret_cast<char*>(&laser_ids_) -
- reinterpret_cast<char*>(&correctness_)) + sizeof(laser_ids_));
- // @@protoc_insertion_point(copy_constructor:Terminal.wj_locate_information)
- }
- void wj_locate_information::SharedCtor() {
- _cached_size_ = 0;
- time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- ::memset(&correctness_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&laser_ids_) -
- reinterpret_cast<char*>(&correctness_)) + sizeof(laser_ids_));
- }
- wj_locate_information::~wj_locate_information() {
- // @@protoc_insertion_point(destructor:Terminal.wj_locate_information)
- SharedDtor();
- }
- void wj_locate_information::SharedDtor() {
- time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- error_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void wj_locate_information::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* wj_locate_information::descriptor() {
- ::protobuf_terminor_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_terminor_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const wj_locate_information& wj_locate_information::default_instance() {
- ::protobuf_terminor_5fmsg_2eproto::InitDefaultswj_locate_information();
- return *internal_default_instance();
- }
- wj_locate_information* wj_locate_information::New(::google::protobuf::Arena* arena) const {
- wj_locate_information* n = new wj_locate_information;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void wj_locate_information::Clear() {
- // @@protoc_insertion_point(message_clear_start:Terminal.wj_locate_information)
- ::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 & 3u) {
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(!time_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
- (*time_.UnsafeRawStringPointer())->clear();
- }
- if (cached_has_bits & 0x00000002u) {
- GOOGLE_DCHECK(!error_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
- (*error_.UnsafeRawStringPointer())->clear();
- }
- }
- if (cached_has_bits & 252u) {
- ::memset(&correctness_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&wheel_base_) -
- reinterpret_cast<char*>(&correctness_)) + sizeof(wheel_base_));
- }
- if (cached_has_bits & 3840u) {
- ::memset(&length_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&laser_ids_) -
- reinterpret_cast<char*>(&length_)) + sizeof(laser_ids_));
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool wj_locate_information::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:Terminal.wj_locate_information)
- 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 string time = 1 [default = ""];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_time()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->time().data(), static_cast<int>(this->time().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "Terminal.wj_locate_information.time");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required bool correctness = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- set_has_correctness();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
- input, &correctness_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 park_space_id = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
- set_has_park_space_id();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &park_space_id_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 laser_ids = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
- set_has_laser_ids();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &laser_ids_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double x = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) {
- set_has_x();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &x_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double y = 6;
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) {
- set_has_y();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &y_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double c = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) {
- set_has_c();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &c_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double wheel_base = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(65u /* 65 & 0xFF */)) {
- set_has_wheel_base();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &wheel_base_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double length = 9;
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(73u /* 73 & 0xFF */)) {
- set_has_length();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &length_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double width = 10;
- case 10: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(81u /* 81 & 0xFF */)) {
- set_has_width();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &width_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double height = 11;
- case 11: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(89u /* 89 & 0xFF */)) {
- set_has_height();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &height_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional string error = 12 [default = ""];
- case 12: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_error()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->error().data(), static_cast<int>(this->error().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "Terminal.wj_locate_information.error");
- } 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:Terminal.wj_locate_information)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:Terminal.wj_locate_information)
- return false;
- #undef DO_
- }
- void wj_locate_information::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:Terminal.wj_locate_information)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required string time = 1 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->time().data(), static_cast<int>(this->time().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Terminal.wj_locate_information.time");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 1, this->time(), output);
- }
- // required bool correctness = 2;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->correctness(), output);
- }
- // optional int32 park_space_id = 3;
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->park_space_id(), output);
- }
- // optional int32 laser_ids = 4;
- if (cached_has_bits & 0x00000800u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->laser_ids(), output);
- }
- // optional double x = 5;
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->x(), output);
- }
- // optional double y = 6;
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->y(), output);
- }
- // optional double c = 7;
- if (cached_has_bits & 0x00000040u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->c(), output);
- }
- // optional double wheel_base = 8;
- if (cached_has_bits & 0x00000080u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(8, this->wheel_base(), output);
- }
- // optional double length = 9;
- if (cached_has_bits & 0x00000100u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(9, this->length(), output);
- }
- // optional double width = 10;
- if (cached_has_bits & 0x00000200u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(10, this->width(), output);
- }
- // optional double height = 11;
- if (cached_has_bits & 0x00000400u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(11, this->height(), output);
- }
- // optional string error = 12 [default = ""];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->error().data(), static_cast<int>(this->error().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Terminal.wj_locate_information.error");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 12, this->error(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:Terminal.wj_locate_information)
- }
- ::google::protobuf::uint8* wj_locate_information::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:Terminal.wj_locate_information)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required string time = 1 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->time().data(), static_cast<int>(this->time().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Terminal.wj_locate_information.time");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 1, this->time(), target);
- }
- // required bool correctness = 2;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->correctness(), target);
- }
- // optional int32 park_space_id = 3;
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->park_space_id(), target);
- }
- // optional int32 laser_ids = 4;
- if (cached_has_bits & 0x00000800u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->laser_ids(), target);
- }
- // optional double x = 5;
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->x(), target);
- }
- // optional double y = 6;
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->y(), target);
- }
- // optional double c = 7;
- if (cached_has_bits & 0x00000040u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(7, this->c(), target);
- }
- // optional double wheel_base = 8;
- if (cached_has_bits & 0x00000080u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(8, this->wheel_base(), target);
- }
- // optional double length = 9;
- if (cached_has_bits & 0x00000100u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(9, this->length(), target);
- }
- // optional double width = 10;
- if (cached_has_bits & 0x00000200u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(10, this->width(), target);
- }
- // optional double height = 11;
- if (cached_has_bits & 0x00000400u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(11, this->height(), target);
- }
- // optional string error = 12 [default = ""];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->error().data(), static_cast<int>(this->error().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Terminal.wj_locate_information.error");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 12, this->error(), 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:Terminal.wj_locate_information)
- return target;
- }
- size_t wj_locate_information::RequiredFieldsByteSizeFallback() const {
- // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Terminal.wj_locate_information)
- size_t total_size = 0;
- if (has_time()) {
- // required string time = 1 [default = ""];
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->time());
- }
- if (has_correctness()) {
- // required bool correctness = 2;
- total_size += 1 + 1;
- }
- return total_size;
- }
- size_t wj_locate_information::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Terminal.wj_locate_information)
- 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] & 0x00000005) ^ 0x00000005) == 0) { // All required fields are present.
- // required string time = 1 [default = ""];
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->time());
- // required bool correctness = 2;
- total_size += 1 + 1;
- } else {
- total_size += RequiredFieldsByteSizeFallback();
- }
- // optional string error = 12 [default = ""];
- if (has_error()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->error());
- }
- if (_has_bits_[0 / 32] & 248u) {
- // optional int32 park_space_id = 3;
- if (has_park_space_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->park_space_id());
- }
- // optional double x = 5;
- if (has_x()) {
- total_size += 1 + 8;
- }
- // optional double y = 6;
- if (has_y()) {
- total_size += 1 + 8;
- }
- // optional double c = 7;
- if (has_c()) {
- total_size += 1 + 8;
- }
- // optional double wheel_base = 8;
- if (has_wheel_base()) {
- total_size += 1 + 8;
- }
- }
- if (_has_bits_[8 / 32] & 3840u) {
- // optional double length = 9;
- if (has_length()) {
- total_size += 1 + 8;
- }
- // optional double width = 10;
- if (has_width()) {
- total_size += 1 + 8;
- }
- // optional double height = 11;
- if (has_height()) {
- total_size += 1 + 8;
- }
- // optional int32 laser_ids = 4;
- if (has_laser_ids()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->laser_ids());
- }
- }
- 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 wj_locate_information::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:Terminal.wj_locate_information)
- GOOGLE_DCHECK_NE(&from, this);
- const wj_locate_information* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const wj_locate_information>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:Terminal.wj_locate_information)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:Terminal.wj_locate_information)
- MergeFrom(*source);
- }
- }
- void wj_locate_information::MergeFrom(const wj_locate_information& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:Terminal.wj_locate_information)
- 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 & 255u) {
- if (cached_has_bits & 0x00000001u) {
- set_has_time();
- time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.time_);
- }
- if (cached_has_bits & 0x00000002u) {
- set_has_error();
- error_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_);
- }
- if (cached_has_bits & 0x00000004u) {
- correctness_ = from.correctness_;
- }
- if (cached_has_bits & 0x00000008u) {
- park_space_id_ = from.park_space_id_;
- }
- if (cached_has_bits & 0x00000010u) {
- x_ = from.x_;
- }
- if (cached_has_bits & 0x00000020u) {
- y_ = from.y_;
- }
- if (cached_has_bits & 0x00000040u) {
- c_ = from.c_;
- }
- if (cached_has_bits & 0x00000080u) {
- wheel_base_ = from.wheel_base_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- if (cached_has_bits & 3840u) {
- if (cached_has_bits & 0x00000100u) {
- length_ = from.length_;
- }
- if (cached_has_bits & 0x00000200u) {
- width_ = from.width_;
- }
- if (cached_has_bits & 0x00000400u) {
- height_ = from.height_;
- }
- if (cached_has_bits & 0x00000800u) {
- laser_ids_ = from.laser_ids_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void wj_locate_information::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:Terminal.wj_locate_information)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void wj_locate_information::CopyFrom(const wj_locate_information& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Terminal.wj_locate_information)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool wj_locate_information::IsInitialized() const {
- if ((_has_bits_[0] & 0x00000005) != 0x00000005) return false;
- return true;
- }
- void wj_locate_information::Swap(wj_locate_information* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void wj_locate_information::InternalSwap(wj_locate_information* other) {
- using std::swap;
- time_.Swap(&other->time_);
- error_.Swap(&other->error_);
- swap(correctness_, other->correctness_);
- swap(park_space_id_, other->park_space_id_);
- swap(x_, other->x_);
- swap(y_, other->y_);
- swap(c_, other->c_);
- swap(wheel_base_, other->wheel_base_);
- swap(length_, other->length_);
- swap(width_, other->width_);
- swap(height_, other->height_);
- swap(laser_ids_, other->laser_ids_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata wj_locate_information::GetMetadata() const {
- protobuf_terminor_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_terminor_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void Terminal_message::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Terminal_message::Terminal_message()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_terminor_5fmsg_2eproto::InitDefaultsTerminal_message();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:Terminal.Terminal_message)
- }
- Terminal_message::Terminal_message(const Terminal_message& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:Terminal.Terminal_message)
- }
- void Terminal_message::SharedCtor() {
- _cached_size_ = 0;
- }
- Terminal_message::~Terminal_message() {
- // @@protoc_insertion_point(destructor:Terminal.Terminal_message)
- SharedDtor();
- }
- void Terminal_message::SharedDtor() {
- }
- void Terminal_message::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* Terminal_message::descriptor() {
- ::protobuf_terminor_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_terminor_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const Terminal_message& Terminal_message::default_instance() {
- ::protobuf_terminor_5fmsg_2eproto::InitDefaultsTerminal_message();
- return *internal_default_instance();
- }
- Terminal_message* Terminal_message::New(::google::protobuf::Arena* arena) const {
- Terminal_message* n = new Terminal_message;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void Terminal_message::Clear() {
- // @@protoc_insertion_point(message_clear_start:Terminal.Terminal_message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool Terminal_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:Terminal.Terminal_message)
- for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- }
- success:
- // @@protoc_insertion_point(parse_success:Terminal.Terminal_message)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:Terminal.Terminal_message)
- return false;
- #undef DO_
- }
- void Terminal_message::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:Terminal.Terminal_message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:Terminal.Terminal_message)
- }
- ::google::protobuf::uint8* Terminal_message::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:Terminal.Terminal_message)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:Terminal.Terminal_message)
- return target;
- }
- size_t Terminal_message::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Terminal.Terminal_message)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- 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_message::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:Terminal.Terminal_message)
- GOOGLE_DCHECK_NE(&from, this);
- const Terminal_message* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Terminal_message>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:Terminal.Terminal_message)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:Terminal.Terminal_message)
- MergeFrom(*source);
- }
- }
- void Terminal_message::MergeFrom(const Terminal_message& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:Terminal.Terminal_message)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- }
- void Terminal_message::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:Terminal.Terminal_message)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Terminal_message::CopyFrom(const Terminal_message& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Terminal.Terminal_message)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Terminal_message::IsInitialized() const {
- return true;
- }
- void Terminal_message::Swap(Terminal_message* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Terminal_message::InternalSwap(Terminal_message* other) {
- using std::swap;
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata Terminal_message::GetMetadata() const {
- protobuf_terminor_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_terminor_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace Terminal
- // @@protoc_insertion_point(global_scope)
|