terminor_msg.pb.cc 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: terminor_msg.proto
  3. #include "terminor_msg.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/stubs/once.h>
  8. #include <google/protobuf/io/coded_stream.h>
  9. #include <google/protobuf/wire_format_lite_inl.h>
  10. #include <google/protobuf/descriptor.h>
  11. #include <google/protobuf/generated_message_reflection.h>
  12. #include <google/protobuf/reflection_ops.h>
  13. #include <google/protobuf/wire_format.h>
  14. // This is a temporary google only hack
  15. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  16. #include "third_party/protobuf/version.h"
  17. #endif
  18. // @@protoc_insertion_point(includes)
  19. namespace Terminal {
  20. class wj_locate_informationDefaultTypeInternal {
  21. public:
  22. ::google::protobuf::internal::ExplicitlyConstructed<wj_locate_information>
  23. _instance;
  24. } _wj_locate_information_default_instance_;
  25. class Terminal_messageDefaultTypeInternal {
  26. public:
  27. ::google::protobuf::internal::ExplicitlyConstructed<Terminal_message>
  28. _instance;
  29. } _Terminal_message_default_instance_;
  30. } // namespace Terminal
  31. namespace protobuf_terminor_5fmsg_2eproto {
  32. void InitDefaultswj_locate_informationImpl() {
  33. GOOGLE_PROTOBUF_VERIFY_VERSION;
  34. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  35. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  36. #else
  37. ::google::protobuf::internal::InitProtobufDefaults();
  38. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  39. {
  40. void* ptr = &::Terminal::_wj_locate_information_default_instance_;
  41. new (ptr) ::Terminal::wj_locate_information();
  42. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  43. }
  44. ::Terminal::wj_locate_information::InitAsDefaultInstance();
  45. }
  46. void InitDefaultswj_locate_information() {
  47. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  48. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultswj_locate_informationImpl);
  49. }
  50. void InitDefaultsTerminal_messageImpl() {
  51. GOOGLE_PROTOBUF_VERIFY_VERSION;
  52. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  53. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  54. #else
  55. ::google::protobuf::internal::InitProtobufDefaults();
  56. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  57. {
  58. void* ptr = &::Terminal::_Terminal_message_default_instance_;
  59. new (ptr) ::Terminal::Terminal_message();
  60. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  61. }
  62. ::Terminal::Terminal_message::InitAsDefaultInstance();
  63. }
  64. void InitDefaultsTerminal_message() {
  65. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  66. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTerminal_messageImpl);
  67. }
  68. ::google::protobuf::Metadata file_level_metadata[2];
  69. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  70. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, _has_bits_),
  71. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, _internal_metadata_),
  72. ~0u, // no _extensions_
  73. ~0u, // no _oneof_case_
  74. ~0u, // no _weak_field_map_
  75. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, time_),
  76. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, correctness_),
  77. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, park_space_id_),
  78. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, laser_ids_),
  79. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, x_),
  80. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, y_),
  81. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, c_),
  82. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, wheel_base_),
  83. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, length_),
  84. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, width_),
  85. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, height_),
  86. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::wj_locate_information, error_),
  87. 0,
  88. 2,
  89. 3,
  90. 11,
  91. 4,
  92. 5,
  93. 6,
  94. 7,
  95. 8,
  96. 9,
  97. 10,
  98. 1,
  99. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminal_message, _has_bits_),
  100. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Terminal::Terminal_message, _internal_metadata_),
  101. ~0u, // no _extensions_
  102. ~0u, // no _oneof_case_
  103. ~0u, // no _weak_field_map_
  104. };
  105. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  106. { 0, 17, sizeof(::Terminal::wj_locate_information)},
  107. { 29, 34, sizeof(::Terminal::Terminal_message)},
  108. };
  109. static ::google::protobuf::Message const * const file_default_instances[] = {
  110. reinterpret_cast<const ::google::protobuf::Message*>(&::Terminal::_wj_locate_information_default_instance_),
  111. reinterpret_cast<const ::google::protobuf::Message*>(&::Terminal::_Terminal_message_default_instance_),
  112. };
  113. void protobuf_AssignDescriptors() {
  114. AddDescriptors();
  115. ::google::protobuf::MessageFactory* factory = NULL;
  116. AssignDescriptors(
  117. "terminor_msg.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  118. file_level_metadata, NULL, NULL);
  119. }
  120. void protobuf_AssignDescriptorsOnce() {
  121. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  122. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  123. }
  124. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  125. void protobuf_RegisterTypes(const ::std::string&) {
  126. protobuf_AssignDescriptorsOnce();
  127. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
  128. }
  129. void AddDescriptorsImpl() {
  130. InitDefaults();
  131. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  132. "\n\022terminor_msg.proto\022\010Terminal\"\333\001\n\025wj_lo"
  133. "cate_information\022\016\n\004time\030\001 \002(\t:\000\022\023\n\013corr"
  134. "ectness\030\002 \002(\010\022\025\n\rpark_space_id\030\003 \001(\005\022\021\n\t"
  135. "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"
  136. "\001c\030\007 \001(\001\022\022\n\nwheel_base\030\010 \001(\001\022\016\n\006length\030\t"
  137. " \001(\001\022\r\n\005width\030\n \001(\001\022\016\n\006height\030\013 \001(\001\022\017\n\005e"
  138. "rror\030\014 \001(\t:\000\"\022\n\020Terminal_message"
  139. };
  140. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  141. descriptor, 272);
  142. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  143. "terminor_msg.proto", &protobuf_RegisterTypes);
  144. }
  145. void AddDescriptors() {
  146. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  147. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  148. }
  149. // Force AddDescriptors() to be called at dynamic initialization time.
  150. struct StaticDescriptorInitializer {
  151. StaticDescriptorInitializer() {
  152. AddDescriptors();
  153. }
  154. } static_descriptor_initializer;
  155. } // namespace protobuf_terminor_5fmsg_2eproto
  156. namespace Terminal {
  157. // ===================================================================
  158. void wj_locate_information::InitAsDefaultInstance() {
  159. }
  160. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  161. const int wj_locate_information::kTimeFieldNumber;
  162. const int wj_locate_information::kCorrectnessFieldNumber;
  163. const int wj_locate_information::kParkSpaceIdFieldNumber;
  164. const int wj_locate_information::kLaserIdsFieldNumber;
  165. const int wj_locate_information::kXFieldNumber;
  166. const int wj_locate_information::kYFieldNumber;
  167. const int wj_locate_information::kCFieldNumber;
  168. const int wj_locate_information::kWheelBaseFieldNumber;
  169. const int wj_locate_information::kLengthFieldNumber;
  170. const int wj_locate_information::kWidthFieldNumber;
  171. const int wj_locate_information::kHeightFieldNumber;
  172. const int wj_locate_information::kErrorFieldNumber;
  173. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  174. wj_locate_information::wj_locate_information()
  175. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  176. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  177. ::protobuf_terminor_5fmsg_2eproto::InitDefaultswj_locate_information();
  178. }
  179. SharedCtor();
  180. // @@protoc_insertion_point(constructor:Terminal.wj_locate_information)
  181. }
  182. wj_locate_information::wj_locate_information(const wj_locate_information& from)
  183. : ::google::protobuf::Message(),
  184. _internal_metadata_(NULL),
  185. _has_bits_(from._has_bits_),
  186. _cached_size_(0) {
  187. _internal_metadata_.MergeFrom(from._internal_metadata_);
  188. time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  189. if (from.has_time()) {
  190. time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.time_);
  191. }
  192. error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  193. if (from.has_error()) {
  194. error_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_);
  195. }
  196. ::memcpy(&correctness_, &from.correctness_,
  197. static_cast<size_t>(reinterpret_cast<char*>(&laser_ids_) -
  198. reinterpret_cast<char*>(&correctness_)) + sizeof(laser_ids_));
  199. // @@protoc_insertion_point(copy_constructor:Terminal.wj_locate_information)
  200. }
  201. void wj_locate_information::SharedCtor() {
  202. _cached_size_ = 0;
  203. time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  204. error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  205. ::memset(&correctness_, 0, static_cast<size_t>(
  206. reinterpret_cast<char*>(&laser_ids_) -
  207. reinterpret_cast<char*>(&correctness_)) + sizeof(laser_ids_));
  208. }
  209. wj_locate_information::~wj_locate_information() {
  210. // @@protoc_insertion_point(destructor:Terminal.wj_locate_information)
  211. SharedDtor();
  212. }
  213. void wj_locate_information::SharedDtor() {
  214. time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  215. error_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  216. }
  217. void wj_locate_information::SetCachedSize(int size) const {
  218. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  219. _cached_size_ = size;
  220. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  221. }
  222. const ::google::protobuf::Descriptor* wj_locate_information::descriptor() {
  223. ::protobuf_terminor_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  224. return ::protobuf_terminor_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  225. }
  226. const wj_locate_information& wj_locate_information::default_instance() {
  227. ::protobuf_terminor_5fmsg_2eproto::InitDefaultswj_locate_information();
  228. return *internal_default_instance();
  229. }
  230. wj_locate_information* wj_locate_information::New(::google::protobuf::Arena* arena) const {
  231. wj_locate_information* n = new wj_locate_information;
  232. if (arena != NULL) {
  233. arena->Own(n);
  234. }
  235. return n;
  236. }
  237. void wj_locate_information::Clear() {
  238. // @@protoc_insertion_point(message_clear_start:Terminal.wj_locate_information)
  239. ::google::protobuf::uint32 cached_has_bits = 0;
  240. // Prevent compiler warnings about cached_has_bits being unused
  241. (void) cached_has_bits;
  242. cached_has_bits = _has_bits_[0];
  243. if (cached_has_bits & 3u) {
  244. if (cached_has_bits & 0x00000001u) {
  245. GOOGLE_DCHECK(!time_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  246. (*time_.UnsafeRawStringPointer())->clear();
  247. }
  248. if (cached_has_bits & 0x00000002u) {
  249. GOOGLE_DCHECK(!error_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  250. (*error_.UnsafeRawStringPointer())->clear();
  251. }
  252. }
  253. if (cached_has_bits & 252u) {
  254. ::memset(&correctness_, 0, static_cast<size_t>(
  255. reinterpret_cast<char*>(&wheel_base_) -
  256. reinterpret_cast<char*>(&correctness_)) + sizeof(wheel_base_));
  257. }
  258. if (cached_has_bits & 3840u) {
  259. ::memset(&length_, 0, static_cast<size_t>(
  260. reinterpret_cast<char*>(&laser_ids_) -
  261. reinterpret_cast<char*>(&length_)) + sizeof(laser_ids_));
  262. }
  263. _has_bits_.Clear();
  264. _internal_metadata_.Clear();
  265. }
  266. bool wj_locate_information::MergePartialFromCodedStream(
  267. ::google::protobuf::io::CodedInputStream* input) {
  268. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  269. ::google::protobuf::uint32 tag;
  270. // @@protoc_insertion_point(parse_start:Terminal.wj_locate_information)
  271. for (;;) {
  272. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  273. tag = p.first;
  274. if (!p.second) goto handle_unusual;
  275. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  276. // required string time = 1 [default = ""];
  277. case 1: {
  278. if (static_cast< ::google::protobuf::uint8>(tag) ==
  279. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  280. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  281. input, this->mutable_time()));
  282. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  283. this->time().data(), static_cast<int>(this->time().length()),
  284. ::google::protobuf::internal::WireFormat::PARSE,
  285. "Terminal.wj_locate_information.time");
  286. } else {
  287. goto handle_unusual;
  288. }
  289. break;
  290. }
  291. // required bool correctness = 2;
  292. case 2: {
  293. if (static_cast< ::google::protobuf::uint8>(tag) ==
  294. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  295. set_has_correctness();
  296. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  297. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  298. input, &correctness_)));
  299. } else {
  300. goto handle_unusual;
  301. }
  302. break;
  303. }
  304. // optional int32 park_space_id = 3;
  305. case 3: {
  306. if (static_cast< ::google::protobuf::uint8>(tag) ==
  307. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  308. set_has_park_space_id();
  309. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  310. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  311. input, &park_space_id_)));
  312. } else {
  313. goto handle_unusual;
  314. }
  315. break;
  316. }
  317. // optional int32 laser_ids = 4;
  318. case 4: {
  319. if (static_cast< ::google::protobuf::uint8>(tag) ==
  320. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  321. set_has_laser_ids();
  322. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  323. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  324. input, &laser_ids_)));
  325. } else {
  326. goto handle_unusual;
  327. }
  328. break;
  329. }
  330. // optional double x = 5;
  331. case 5: {
  332. if (static_cast< ::google::protobuf::uint8>(tag) ==
  333. static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) {
  334. set_has_x();
  335. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  336. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  337. input, &x_)));
  338. } else {
  339. goto handle_unusual;
  340. }
  341. break;
  342. }
  343. // optional double y = 6;
  344. case 6: {
  345. if (static_cast< ::google::protobuf::uint8>(tag) ==
  346. static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) {
  347. set_has_y();
  348. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  349. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  350. input, &y_)));
  351. } else {
  352. goto handle_unusual;
  353. }
  354. break;
  355. }
  356. // optional double c = 7;
  357. case 7: {
  358. if (static_cast< ::google::protobuf::uint8>(tag) ==
  359. static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) {
  360. set_has_c();
  361. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  362. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  363. input, &c_)));
  364. } else {
  365. goto handle_unusual;
  366. }
  367. break;
  368. }
  369. // optional double wheel_base = 8;
  370. case 8: {
  371. if (static_cast< ::google::protobuf::uint8>(tag) ==
  372. static_cast< ::google::protobuf::uint8>(65u /* 65 & 0xFF */)) {
  373. set_has_wheel_base();
  374. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  375. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  376. input, &wheel_base_)));
  377. } else {
  378. goto handle_unusual;
  379. }
  380. break;
  381. }
  382. // optional double length = 9;
  383. case 9: {
  384. if (static_cast< ::google::protobuf::uint8>(tag) ==
  385. static_cast< ::google::protobuf::uint8>(73u /* 73 & 0xFF */)) {
  386. set_has_length();
  387. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  388. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  389. input, &length_)));
  390. } else {
  391. goto handle_unusual;
  392. }
  393. break;
  394. }
  395. // optional double width = 10;
  396. case 10: {
  397. if (static_cast< ::google::protobuf::uint8>(tag) ==
  398. static_cast< ::google::protobuf::uint8>(81u /* 81 & 0xFF */)) {
  399. set_has_width();
  400. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  401. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  402. input, &width_)));
  403. } else {
  404. goto handle_unusual;
  405. }
  406. break;
  407. }
  408. // optional double height = 11;
  409. case 11: {
  410. if (static_cast< ::google::protobuf::uint8>(tag) ==
  411. static_cast< ::google::protobuf::uint8>(89u /* 89 & 0xFF */)) {
  412. set_has_height();
  413. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  414. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  415. input, &height_)));
  416. } else {
  417. goto handle_unusual;
  418. }
  419. break;
  420. }
  421. // optional string error = 12 [default = ""];
  422. case 12: {
  423. if (static_cast< ::google::protobuf::uint8>(tag) ==
  424. static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
  425. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  426. input, this->mutable_error()));
  427. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  428. this->error().data(), static_cast<int>(this->error().length()),
  429. ::google::protobuf::internal::WireFormat::PARSE,
  430. "Terminal.wj_locate_information.error");
  431. } else {
  432. goto handle_unusual;
  433. }
  434. break;
  435. }
  436. default: {
  437. handle_unusual:
  438. if (tag == 0) {
  439. goto success;
  440. }
  441. DO_(::google::protobuf::internal::WireFormat::SkipField(
  442. input, tag, _internal_metadata_.mutable_unknown_fields()));
  443. break;
  444. }
  445. }
  446. }
  447. success:
  448. // @@protoc_insertion_point(parse_success:Terminal.wj_locate_information)
  449. return true;
  450. failure:
  451. // @@protoc_insertion_point(parse_failure:Terminal.wj_locate_information)
  452. return false;
  453. #undef DO_
  454. }
  455. void wj_locate_information::SerializeWithCachedSizes(
  456. ::google::protobuf::io::CodedOutputStream* output) const {
  457. // @@protoc_insertion_point(serialize_start:Terminal.wj_locate_information)
  458. ::google::protobuf::uint32 cached_has_bits = 0;
  459. (void) cached_has_bits;
  460. cached_has_bits = _has_bits_[0];
  461. // required string time = 1 [default = ""];
  462. if (cached_has_bits & 0x00000001u) {
  463. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  464. this->time().data(), static_cast<int>(this->time().length()),
  465. ::google::protobuf::internal::WireFormat::SERIALIZE,
  466. "Terminal.wj_locate_information.time");
  467. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  468. 1, this->time(), output);
  469. }
  470. // required bool correctness = 2;
  471. if (cached_has_bits & 0x00000004u) {
  472. ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->correctness(), output);
  473. }
  474. // optional int32 park_space_id = 3;
  475. if (cached_has_bits & 0x00000008u) {
  476. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->park_space_id(), output);
  477. }
  478. // optional int32 laser_ids = 4;
  479. if (cached_has_bits & 0x00000800u) {
  480. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->laser_ids(), output);
  481. }
  482. // optional double x = 5;
  483. if (cached_has_bits & 0x00000010u) {
  484. ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->x(), output);
  485. }
  486. // optional double y = 6;
  487. if (cached_has_bits & 0x00000020u) {
  488. ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->y(), output);
  489. }
  490. // optional double c = 7;
  491. if (cached_has_bits & 0x00000040u) {
  492. ::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->c(), output);
  493. }
  494. // optional double wheel_base = 8;
  495. if (cached_has_bits & 0x00000080u) {
  496. ::google::protobuf::internal::WireFormatLite::WriteDouble(8, this->wheel_base(), output);
  497. }
  498. // optional double length = 9;
  499. if (cached_has_bits & 0x00000100u) {
  500. ::google::protobuf::internal::WireFormatLite::WriteDouble(9, this->length(), output);
  501. }
  502. // optional double width = 10;
  503. if (cached_has_bits & 0x00000200u) {
  504. ::google::protobuf::internal::WireFormatLite::WriteDouble(10, this->width(), output);
  505. }
  506. // optional double height = 11;
  507. if (cached_has_bits & 0x00000400u) {
  508. ::google::protobuf::internal::WireFormatLite::WriteDouble(11, this->height(), output);
  509. }
  510. // optional string error = 12 [default = ""];
  511. if (cached_has_bits & 0x00000002u) {
  512. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  513. this->error().data(), static_cast<int>(this->error().length()),
  514. ::google::protobuf::internal::WireFormat::SERIALIZE,
  515. "Terminal.wj_locate_information.error");
  516. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  517. 12, this->error(), output);
  518. }
  519. if (_internal_metadata_.have_unknown_fields()) {
  520. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  521. _internal_metadata_.unknown_fields(), output);
  522. }
  523. // @@protoc_insertion_point(serialize_end:Terminal.wj_locate_information)
  524. }
  525. ::google::protobuf::uint8* wj_locate_information::InternalSerializeWithCachedSizesToArray(
  526. bool deterministic, ::google::protobuf::uint8* target) const {
  527. (void)deterministic; // Unused
  528. // @@protoc_insertion_point(serialize_to_array_start:Terminal.wj_locate_information)
  529. ::google::protobuf::uint32 cached_has_bits = 0;
  530. (void) cached_has_bits;
  531. cached_has_bits = _has_bits_[0];
  532. // required string time = 1 [default = ""];
  533. if (cached_has_bits & 0x00000001u) {
  534. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  535. this->time().data(), static_cast<int>(this->time().length()),
  536. ::google::protobuf::internal::WireFormat::SERIALIZE,
  537. "Terminal.wj_locate_information.time");
  538. target =
  539. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  540. 1, this->time(), target);
  541. }
  542. // required bool correctness = 2;
  543. if (cached_has_bits & 0x00000004u) {
  544. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->correctness(), target);
  545. }
  546. // optional int32 park_space_id = 3;
  547. if (cached_has_bits & 0x00000008u) {
  548. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->park_space_id(), target);
  549. }
  550. // optional int32 laser_ids = 4;
  551. if (cached_has_bits & 0x00000800u) {
  552. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->laser_ids(), target);
  553. }
  554. // optional double x = 5;
  555. if (cached_has_bits & 0x00000010u) {
  556. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->x(), target);
  557. }
  558. // optional double y = 6;
  559. if (cached_has_bits & 0x00000020u) {
  560. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->y(), target);
  561. }
  562. // optional double c = 7;
  563. if (cached_has_bits & 0x00000040u) {
  564. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(7, this->c(), target);
  565. }
  566. // optional double wheel_base = 8;
  567. if (cached_has_bits & 0x00000080u) {
  568. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(8, this->wheel_base(), target);
  569. }
  570. // optional double length = 9;
  571. if (cached_has_bits & 0x00000100u) {
  572. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(9, this->length(), target);
  573. }
  574. // optional double width = 10;
  575. if (cached_has_bits & 0x00000200u) {
  576. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(10, this->width(), target);
  577. }
  578. // optional double height = 11;
  579. if (cached_has_bits & 0x00000400u) {
  580. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(11, this->height(), target);
  581. }
  582. // optional string error = 12 [default = ""];
  583. if (cached_has_bits & 0x00000002u) {
  584. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  585. this->error().data(), static_cast<int>(this->error().length()),
  586. ::google::protobuf::internal::WireFormat::SERIALIZE,
  587. "Terminal.wj_locate_information.error");
  588. target =
  589. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  590. 12, this->error(), target);
  591. }
  592. if (_internal_metadata_.have_unknown_fields()) {
  593. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  594. _internal_metadata_.unknown_fields(), target);
  595. }
  596. // @@protoc_insertion_point(serialize_to_array_end:Terminal.wj_locate_information)
  597. return target;
  598. }
  599. size_t wj_locate_information::RequiredFieldsByteSizeFallback() const {
  600. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:Terminal.wj_locate_information)
  601. size_t total_size = 0;
  602. if (has_time()) {
  603. // required string time = 1 [default = ""];
  604. total_size += 1 +
  605. ::google::protobuf::internal::WireFormatLite::StringSize(
  606. this->time());
  607. }
  608. if (has_correctness()) {
  609. // required bool correctness = 2;
  610. total_size += 1 + 1;
  611. }
  612. return total_size;
  613. }
  614. size_t wj_locate_information::ByteSizeLong() const {
  615. // @@protoc_insertion_point(message_byte_size_start:Terminal.wj_locate_information)
  616. size_t total_size = 0;
  617. if (_internal_metadata_.have_unknown_fields()) {
  618. total_size +=
  619. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  620. _internal_metadata_.unknown_fields());
  621. }
  622. if (((_has_bits_[0] & 0x00000005) ^ 0x00000005) == 0) { // All required fields are present.
  623. // required string time = 1 [default = ""];
  624. total_size += 1 +
  625. ::google::protobuf::internal::WireFormatLite::StringSize(
  626. this->time());
  627. // required bool correctness = 2;
  628. total_size += 1 + 1;
  629. } else {
  630. total_size += RequiredFieldsByteSizeFallback();
  631. }
  632. // optional string error = 12 [default = ""];
  633. if (has_error()) {
  634. total_size += 1 +
  635. ::google::protobuf::internal::WireFormatLite::StringSize(
  636. this->error());
  637. }
  638. if (_has_bits_[0 / 32] & 248u) {
  639. // optional int32 park_space_id = 3;
  640. if (has_park_space_id()) {
  641. total_size += 1 +
  642. ::google::protobuf::internal::WireFormatLite::Int32Size(
  643. this->park_space_id());
  644. }
  645. // optional double x = 5;
  646. if (has_x()) {
  647. total_size += 1 + 8;
  648. }
  649. // optional double y = 6;
  650. if (has_y()) {
  651. total_size += 1 + 8;
  652. }
  653. // optional double c = 7;
  654. if (has_c()) {
  655. total_size += 1 + 8;
  656. }
  657. // optional double wheel_base = 8;
  658. if (has_wheel_base()) {
  659. total_size += 1 + 8;
  660. }
  661. }
  662. if (_has_bits_[8 / 32] & 3840u) {
  663. // optional double length = 9;
  664. if (has_length()) {
  665. total_size += 1 + 8;
  666. }
  667. // optional double width = 10;
  668. if (has_width()) {
  669. total_size += 1 + 8;
  670. }
  671. // optional double height = 11;
  672. if (has_height()) {
  673. total_size += 1 + 8;
  674. }
  675. // optional int32 laser_ids = 4;
  676. if (has_laser_ids()) {
  677. total_size += 1 +
  678. ::google::protobuf::internal::WireFormatLite::Int32Size(
  679. this->laser_ids());
  680. }
  681. }
  682. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  683. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  684. _cached_size_ = cached_size;
  685. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  686. return total_size;
  687. }
  688. void wj_locate_information::MergeFrom(const ::google::protobuf::Message& from) {
  689. // @@protoc_insertion_point(generalized_merge_from_start:Terminal.wj_locate_information)
  690. GOOGLE_DCHECK_NE(&from, this);
  691. const wj_locate_information* source =
  692. ::google::protobuf::internal::DynamicCastToGenerated<const wj_locate_information>(
  693. &from);
  694. if (source == NULL) {
  695. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Terminal.wj_locate_information)
  696. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  697. } else {
  698. // @@protoc_insertion_point(generalized_merge_from_cast_success:Terminal.wj_locate_information)
  699. MergeFrom(*source);
  700. }
  701. }
  702. void wj_locate_information::MergeFrom(const wj_locate_information& from) {
  703. // @@protoc_insertion_point(class_specific_merge_from_start:Terminal.wj_locate_information)
  704. GOOGLE_DCHECK_NE(&from, this);
  705. _internal_metadata_.MergeFrom(from._internal_metadata_);
  706. ::google::protobuf::uint32 cached_has_bits = 0;
  707. (void) cached_has_bits;
  708. cached_has_bits = from._has_bits_[0];
  709. if (cached_has_bits & 255u) {
  710. if (cached_has_bits & 0x00000001u) {
  711. set_has_time();
  712. time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.time_);
  713. }
  714. if (cached_has_bits & 0x00000002u) {
  715. set_has_error();
  716. error_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_);
  717. }
  718. if (cached_has_bits & 0x00000004u) {
  719. correctness_ = from.correctness_;
  720. }
  721. if (cached_has_bits & 0x00000008u) {
  722. park_space_id_ = from.park_space_id_;
  723. }
  724. if (cached_has_bits & 0x00000010u) {
  725. x_ = from.x_;
  726. }
  727. if (cached_has_bits & 0x00000020u) {
  728. y_ = from.y_;
  729. }
  730. if (cached_has_bits & 0x00000040u) {
  731. c_ = from.c_;
  732. }
  733. if (cached_has_bits & 0x00000080u) {
  734. wheel_base_ = from.wheel_base_;
  735. }
  736. _has_bits_[0] |= cached_has_bits;
  737. }
  738. if (cached_has_bits & 3840u) {
  739. if (cached_has_bits & 0x00000100u) {
  740. length_ = from.length_;
  741. }
  742. if (cached_has_bits & 0x00000200u) {
  743. width_ = from.width_;
  744. }
  745. if (cached_has_bits & 0x00000400u) {
  746. height_ = from.height_;
  747. }
  748. if (cached_has_bits & 0x00000800u) {
  749. laser_ids_ = from.laser_ids_;
  750. }
  751. _has_bits_[0] |= cached_has_bits;
  752. }
  753. }
  754. void wj_locate_information::CopyFrom(const ::google::protobuf::Message& from) {
  755. // @@protoc_insertion_point(generalized_copy_from_start:Terminal.wj_locate_information)
  756. if (&from == this) return;
  757. Clear();
  758. MergeFrom(from);
  759. }
  760. void wj_locate_information::CopyFrom(const wj_locate_information& from) {
  761. // @@protoc_insertion_point(class_specific_copy_from_start:Terminal.wj_locate_information)
  762. if (&from == this) return;
  763. Clear();
  764. MergeFrom(from);
  765. }
  766. bool wj_locate_information::IsInitialized() const {
  767. if ((_has_bits_[0] & 0x00000005) != 0x00000005) return false;
  768. return true;
  769. }
  770. void wj_locate_information::Swap(wj_locate_information* other) {
  771. if (other == this) return;
  772. InternalSwap(other);
  773. }
  774. void wj_locate_information::InternalSwap(wj_locate_information* other) {
  775. using std::swap;
  776. time_.Swap(&other->time_);
  777. error_.Swap(&other->error_);
  778. swap(correctness_, other->correctness_);
  779. swap(park_space_id_, other->park_space_id_);
  780. swap(x_, other->x_);
  781. swap(y_, other->y_);
  782. swap(c_, other->c_);
  783. swap(wheel_base_, other->wheel_base_);
  784. swap(length_, other->length_);
  785. swap(width_, other->width_);
  786. swap(height_, other->height_);
  787. swap(laser_ids_, other->laser_ids_);
  788. swap(_has_bits_[0], other->_has_bits_[0]);
  789. _internal_metadata_.Swap(&other->_internal_metadata_);
  790. swap(_cached_size_, other->_cached_size_);
  791. }
  792. ::google::protobuf::Metadata wj_locate_information::GetMetadata() const {
  793. protobuf_terminor_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  794. return ::protobuf_terminor_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages];
  795. }
  796. // ===================================================================
  797. void Terminal_message::InitAsDefaultInstance() {
  798. }
  799. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  800. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  801. Terminal_message::Terminal_message()
  802. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  803. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  804. ::protobuf_terminor_5fmsg_2eproto::InitDefaultsTerminal_message();
  805. }
  806. SharedCtor();
  807. // @@protoc_insertion_point(constructor:Terminal.Terminal_message)
  808. }
  809. Terminal_message::Terminal_message(const Terminal_message& from)
  810. : ::google::protobuf::Message(),
  811. _internal_metadata_(NULL),
  812. _has_bits_(from._has_bits_),
  813. _cached_size_(0) {
  814. _internal_metadata_.MergeFrom(from._internal_metadata_);
  815. // @@protoc_insertion_point(copy_constructor:Terminal.Terminal_message)
  816. }
  817. void Terminal_message::SharedCtor() {
  818. _cached_size_ = 0;
  819. }
  820. Terminal_message::~Terminal_message() {
  821. // @@protoc_insertion_point(destructor:Terminal.Terminal_message)
  822. SharedDtor();
  823. }
  824. void Terminal_message::SharedDtor() {
  825. }
  826. void Terminal_message::SetCachedSize(int size) const {
  827. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  828. _cached_size_ = size;
  829. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  830. }
  831. const ::google::protobuf::Descriptor* Terminal_message::descriptor() {
  832. ::protobuf_terminor_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  833. return ::protobuf_terminor_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  834. }
  835. const Terminal_message& Terminal_message::default_instance() {
  836. ::protobuf_terminor_5fmsg_2eproto::InitDefaultsTerminal_message();
  837. return *internal_default_instance();
  838. }
  839. Terminal_message* Terminal_message::New(::google::protobuf::Arena* arena) const {
  840. Terminal_message* n = new Terminal_message;
  841. if (arena != NULL) {
  842. arena->Own(n);
  843. }
  844. return n;
  845. }
  846. void Terminal_message::Clear() {
  847. // @@protoc_insertion_point(message_clear_start:Terminal.Terminal_message)
  848. ::google::protobuf::uint32 cached_has_bits = 0;
  849. // Prevent compiler warnings about cached_has_bits being unused
  850. (void) cached_has_bits;
  851. _has_bits_.Clear();
  852. _internal_metadata_.Clear();
  853. }
  854. bool Terminal_message::MergePartialFromCodedStream(
  855. ::google::protobuf::io::CodedInputStream* input) {
  856. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  857. ::google::protobuf::uint32 tag;
  858. // @@protoc_insertion_point(parse_start:Terminal.Terminal_message)
  859. for (;;) {
  860. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  861. tag = p.first;
  862. if (!p.second) goto handle_unusual;
  863. handle_unusual:
  864. if (tag == 0) {
  865. goto success;
  866. }
  867. DO_(::google::protobuf::internal::WireFormat::SkipField(
  868. input, tag, _internal_metadata_.mutable_unknown_fields()));
  869. }
  870. success:
  871. // @@protoc_insertion_point(parse_success:Terminal.Terminal_message)
  872. return true;
  873. failure:
  874. // @@protoc_insertion_point(parse_failure:Terminal.Terminal_message)
  875. return false;
  876. #undef DO_
  877. }
  878. void Terminal_message::SerializeWithCachedSizes(
  879. ::google::protobuf::io::CodedOutputStream* output) const {
  880. // @@protoc_insertion_point(serialize_start:Terminal.Terminal_message)
  881. ::google::protobuf::uint32 cached_has_bits = 0;
  882. (void) cached_has_bits;
  883. if (_internal_metadata_.have_unknown_fields()) {
  884. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  885. _internal_metadata_.unknown_fields(), output);
  886. }
  887. // @@protoc_insertion_point(serialize_end:Terminal.Terminal_message)
  888. }
  889. ::google::protobuf::uint8* Terminal_message::InternalSerializeWithCachedSizesToArray(
  890. bool deterministic, ::google::protobuf::uint8* target) const {
  891. (void)deterministic; // Unused
  892. // @@protoc_insertion_point(serialize_to_array_start:Terminal.Terminal_message)
  893. ::google::protobuf::uint32 cached_has_bits = 0;
  894. (void) cached_has_bits;
  895. if (_internal_metadata_.have_unknown_fields()) {
  896. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  897. _internal_metadata_.unknown_fields(), target);
  898. }
  899. // @@protoc_insertion_point(serialize_to_array_end:Terminal.Terminal_message)
  900. return target;
  901. }
  902. size_t Terminal_message::ByteSizeLong() const {
  903. // @@protoc_insertion_point(message_byte_size_start:Terminal.Terminal_message)
  904. size_t total_size = 0;
  905. if (_internal_metadata_.have_unknown_fields()) {
  906. total_size +=
  907. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  908. _internal_metadata_.unknown_fields());
  909. }
  910. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  911. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  912. _cached_size_ = cached_size;
  913. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  914. return total_size;
  915. }
  916. void Terminal_message::MergeFrom(const ::google::protobuf::Message& from) {
  917. // @@protoc_insertion_point(generalized_merge_from_start:Terminal.Terminal_message)
  918. GOOGLE_DCHECK_NE(&from, this);
  919. const Terminal_message* source =
  920. ::google::protobuf::internal::DynamicCastToGenerated<const Terminal_message>(
  921. &from);
  922. if (source == NULL) {
  923. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Terminal.Terminal_message)
  924. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  925. } else {
  926. // @@protoc_insertion_point(generalized_merge_from_cast_success:Terminal.Terminal_message)
  927. MergeFrom(*source);
  928. }
  929. }
  930. void Terminal_message::MergeFrom(const Terminal_message& from) {
  931. // @@protoc_insertion_point(class_specific_merge_from_start:Terminal.Terminal_message)
  932. GOOGLE_DCHECK_NE(&from, this);
  933. _internal_metadata_.MergeFrom(from._internal_metadata_);
  934. ::google::protobuf::uint32 cached_has_bits = 0;
  935. (void) cached_has_bits;
  936. }
  937. void Terminal_message::CopyFrom(const ::google::protobuf::Message& from) {
  938. // @@protoc_insertion_point(generalized_copy_from_start:Terminal.Terminal_message)
  939. if (&from == this) return;
  940. Clear();
  941. MergeFrom(from);
  942. }
  943. void Terminal_message::CopyFrom(const Terminal_message& from) {
  944. // @@protoc_insertion_point(class_specific_copy_from_start:Terminal.Terminal_message)
  945. if (&from == this) return;
  946. Clear();
  947. MergeFrom(from);
  948. }
  949. bool Terminal_message::IsInitialized() const {
  950. return true;
  951. }
  952. void Terminal_message::Swap(Terminal_message* other) {
  953. if (other == this) return;
  954. InternalSwap(other);
  955. }
  956. void Terminal_message::InternalSwap(Terminal_message* other) {
  957. using std::swap;
  958. swap(_has_bits_[0], other->_has_bits_[0]);
  959. _internal_metadata_.Swap(&other->_internal_metadata_);
  960. swap(_cached_size_, other->_cached_size_);
  961. }
  962. ::google::protobuf::Metadata Terminal_message::GetMetadata() const {
  963. protobuf_terminor_5fmsg_2eproto::protobuf_AssignDescriptorsOnce();
  964. return ::protobuf_terminor_5fmsg_2eproto::file_level_metadata[kIndexInFileMessages];
  965. }
  966. // @@protoc_insertion_point(namespace_scope)
  967. } // namespace Terminal
  968. // @@protoc_insertion_point(global_scope)