geodata.pb.cc 68 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: geodata.proto
  3. #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
  4. #include "geodata.pb.h"
  5. #include <algorithm>
  6. #include <google/protobuf/stubs/common.h>
  7. #include <google/protobuf/stubs/port.h>
  8. #include <google/protobuf/stubs/once.h>
  9. #include <google/protobuf/io/coded_stream.h>
  10. #include <google/protobuf/wire_format_lite_inl.h>
  11. #include <google/protobuf/descriptor.h>
  12. #include <google/protobuf/generated_message_reflection.h>
  13. #include <google/protobuf/reflection_ops.h>
  14. #include <google/protobuf/wire_format.h>
  15. // @@protoc_insertion_point(includes)
  16. namespace iv {
  17. namespace map {
  18. namespace {
  19. const ::google::protobuf::Descriptor* Point_descriptor_ = NULL;
  20. const ::google::protobuf::internal::GeneratedMessageReflection*
  21. Point_reflection_ = NULL;
  22. const ::google::protobuf::Descriptor* geodata_descriptor_ = NULL;
  23. const ::google::protobuf::internal::GeneratedMessageReflection*
  24. geodata_reflection_ = NULL;
  25. const ::google::protobuf::EnumDescriptor* geotype_descriptor_ = NULL;
  26. } // namespace
  27. void protobuf_AssignDesc_geodata_2eproto() GOOGLE_ATTRIBUTE_COLD;
  28. void protobuf_AssignDesc_geodata_2eproto() {
  29. protobuf_AddDesc_geodata_2eproto();
  30. const ::google::protobuf::FileDescriptor* file =
  31. ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
  32. "geodata.proto");
  33. GOOGLE_CHECK(file != NULL);
  34. Point_descriptor_ = file->message_type(0);
  35. static const int Point_offsets_[2] = {
  36. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Point, x_),
  37. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Point, y_),
  38. };
  39. Point_reflection_ =
  40. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  41. Point_descriptor_,
  42. Point::default_instance_,
  43. Point_offsets_,
  44. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Point, _has_bits_[0]),
  45. -1,
  46. -1,
  47. sizeof(Point),
  48. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Point, _internal_metadata_),
  49. -1);
  50. geodata_descriptor_ = file->message_type(1);
  51. static const int geodata_offsets_[25] = {
  52. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, index_),
  53. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, start_),
  54. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, end_),
  55. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, hdg_),
  56. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, index_start_),
  57. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, index_end_),
  58. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, off_),
  59. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, curvature_),
  60. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, s_),
  61. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, type_),
  62. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, curvcenter_),
  63. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, mindis_),
  64. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, maxdis_),
  65. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, hdg_start_),
  66. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, hdg_end_),
  67. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, au_),
  68. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, bu_),
  69. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, cu_),
  70. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, du_),
  71. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, av_),
  72. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, bv_),
  73. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, cv_),
  74. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, dv_),
  75. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, polyuratio_),
  76. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, polyvratio_),
  77. };
  78. geodata_reflection_ =
  79. ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
  80. geodata_descriptor_,
  81. geodata::default_instance_,
  82. geodata_offsets_,
  83. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, _has_bits_[0]),
  84. -1,
  85. -1,
  86. sizeof(geodata),
  87. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(geodata, _internal_metadata_),
  88. -1);
  89. geotype_descriptor_ = file->enum_type(0);
  90. }
  91. namespace {
  92. GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
  93. inline void protobuf_AssignDescriptorsOnce() {
  94. ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
  95. &protobuf_AssignDesc_geodata_2eproto);
  96. }
  97. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
  98. void protobuf_RegisterTypes(const ::std::string&) {
  99. protobuf_AssignDescriptorsOnce();
  100. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  101. Point_descriptor_, &Point::default_instance());
  102. ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
  103. geodata_descriptor_, &geodata::default_instance());
  104. }
  105. } // namespace
  106. void protobuf_ShutdownFile_geodata_2eproto() {
  107. delete Point::default_instance_;
  108. delete Point_reflection_;
  109. delete geodata::default_instance_;
  110. delete geodata_reflection_;
  111. }
  112. void protobuf_AddDesc_geodata_2eproto() GOOGLE_ATTRIBUTE_COLD;
  113. void protobuf_AddDesc_geodata_2eproto() {
  114. static bool already_here = false;
  115. if (already_here) return;
  116. already_here = true;
  117. GOOGLE_PROTOBUF_VERIFY_VERSION;
  118. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  119. "\n\rgeodata.proto\022\006iv.map\"\035\n\005Point\022\t\n\001x\030\001 "
  120. "\002(\001\022\t\n\001y\030\002 \002(\001\"\300\003\n\007geodata\022\r\n\005index\030\001 \001("
  121. "\r\022\034\n\005start\030\002 \002(\0132\r.iv.map.Point\022\032\n\003end\030\003"
  122. " \002(\0132\r.iv.map.Point\022\013\n\003hdg\030\004 \001(\001\022\023\n\013inde"
  123. "x_start\030\005 \001(\005\022\021\n\tindex_end\030\006 \001(\005\022\013\n\003off\030"
  124. "\007 \001(\001\022\021\n\tcurvature\030\010 \001(\001\022\t\n\001s\030\n \001(\001\022\035\n\004t"
  125. "ype\030\t \002(\0162\017.iv.map.geotype\022!\n\ncurvcenter"
  126. "\030\013 \001(\0132\r.iv.map.Point\022\016\n\006mindis\030\014 \001(\001\022\016\n"
  127. "\006maxdis\030\r \001(\001\022\021\n\thdg_start\030\016 \001(\001\022\017\n\007hdg_"
  128. "end\030\017 \001(\001\022\n\n\002au\030\020 \001(\001\022\n\n\002bu\030\021 \001(\001\022\n\n\002cu\030"
  129. "\022 \001(\001\022\n\n\002du\030\023 \001(\001\022\n\n\002av\030\024 \001(\001\022\n\n\002bv\030\025 \001("
  130. "\001\022\n\n\002cv\030\026 \001(\001\022\n\n\002dv\030\027 \001(\001\022\022\n\npolyuratio\030"
  131. "\030 \001(\001\022\022\n\npolyvratio\030\031 \001(\001*,\n\007geotype\022\010\n\004"
  132. "LINE\020\000\022\007\n\003ARC\020\001\022\016\n\nPARAMPOLY3\020\002", 551);
  133. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  134. "geodata.proto", &protobuf_RegisterTypes);
  135. Point::default_instance_ = new Point();
  136. geodata::default_instance_ = new geodata();
  137. Point::default_instance_->InitAsDefaultInstance();
  138. geodata::default_instance_->InitAsDefaultInstance();
  139. ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_geodata_2eproto);
  140. }
  141. // Force AddDescriptors() to be called at static initialization time.
  142. struct StaticDescriptorInitializer_geodata_2eproto {
  143. StaticDescriptorInitializer_geodata_2eproto() {
  144. protobuf_AddDesc_geodata_2eproto();
  145. }
  146. } static_descriptor_initializer_geodata_2eproto_;
  147. const ::google::protobuf::EnumDescriptor* geotype_descriptor() {
  148. protobuf_AssignDescriptorsOnce();
  149. return geotype_descriptor_;
  150. }
  151. bool geotype_IsValid(int value) {
  152. switch(value) {
  153. case 0:
  154. case 1:
  155. case 2:
  156. return true;
  157. default:
  158. return false;
  159. }
  160. }
  161. // ===================================================================
  162. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  163. const int Point::kXFieldNumber;
  164. const int Point::kYFieldNumber;
  165. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  166. Point::Point()
  167. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  168. SharedCtor();
  169. // @@protoc_insertion_point(constructor:iv.map.Point)
  170. }
  171. void Point::InitAsDefaultInstance() {
  172. }
  173. Point::Point(const Point& from)
  174. : ::google::protobuf::Message(),
  175. _internal_metadata_(NULL) {
  176. SharedCtor();
  177. MergeFrom(from);
  178. // @@protoc_insertion_point(copy_constructor:iv.map.Point)
  179. }
  180. void Point::SharedCtor() {
  181. _cached_size_ = 0;
  182. x_ = 0;
  183. y_ = 0;
  184. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  185. }
  186. Point::~Point() {
  187. // @@protoc_insertion_point(destructor:iv.map.Point)
  188. SharedDtor();
  189. }
  190. void Point::SharedDtor() {
  191. if (this != default_instance_) {
  192. }
  193. }
  194. void Point::SetCachedSize(int size) const {
  195. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  196. _cached_size_ = size;
  197. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  198. }
  199. const ::google::protobuf::Descriptor* Point::descriptor() {
  200. protobuf_AssignDescriptorsOnce();
  201. return Point_descriptor_;
  202. }
  203. const Point& Point::default_instance() {
  204. if (default_instance_ == NULL) protobuf_AddDesc_geodata_2eproto();
  205. return *default_instance_;
  206. }
  207. Point* Point::default_instance_ = NULL;
  208. Point* Point::New(::google::protobuf::Arena* arena) const {
  209. Point* n = new Point;
  210. if (arena != NULL) {
  211. arena->Own(n);
  212. }
  213. return n;
  214. }
  215. void Point::Clear() {
  216. // @@protoc_insertion_point(message_clear_start:iv.map.Point)
  217. #if defined(__clang__)
  218. #define ZR_HELPER_(f) \
  219. _Pragma("clang diagnostic push") \
  220. _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
  221. __builtin_offsetof(Point, f) \
  222. _Pragma("clang diagnostic pop")
  223. #else
  224. #define ZR_HELPER_(f) reinterpret_cast<char*>(\
  225. &reinterpret_cast<Point*>(16)->f)
  226. #endif
  227. #define ZR_(first, last) do {\
  228. ::memset(&first, 0,\
  229. ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
  230. } while (0)
  231. ZR_(x_, y_);
  232. #undef ZR_HELPER_
  233. #undef ZR_
  234. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  235. if (_internal_metadata_.have_unknown_fields()) {
  236. mutable_unknown_fields()->Clear();
  237. }
  238. }
  239. bool Point::MergePartialFromCodedStream(
  240. ::google::protobuf::io::CodedInputStream* input) {
  241. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  242. ::google::protobuf::uint32 tag;
  243. // @@protoc_insertion_point(parse_start:iv.map.Point)
  244. for (;;) {
  245. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
  246. tag = p.first;
  247. if (!p.second) goto handle_unusual;
  248. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  249. // required double x = 1;
  250. case 1: {
  251. if (tag == 9) {
  252. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  253. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  254. input, &x_)));
  255. set_has_x();
  256. } else {
  257. goto handle_unusual;
  258. }
  259. if (input->ExpectTag(17)) goto parse_y;
  260. break;
  261. }
  262. // required double y = 2;
  263. case 2: {
  264. if (tag == 17) {
  265. parse_y:
  266. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  267. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  268. input, &y_)));
  269. set_has_y();
  270. } else {
  271. goto handle_unusual;
  272. }
  273. if (input->ExpectAtEnd()) goto success;
  274. break;
  275. }
  276. default: {
  277. handle_unusual:
  278. if (tag == 0 ||
  279. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  280. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  281. goto success;
  282. }
  283. DO_(::google::protobuf::internal::WireFormat::SkipField(
  284. input, tag, mutable_unknown_fields()));
  285. break;
  286. }
  287. }
  288. }
  289. success:
  290. // @@protoc_insertion_point(parse_success:iv.map.Point)
  291. return true;
  292. failure:
  293. // @@protoc_insertion_point(parse_failure:iv.map.Point)
  294. return false;
  295. #undef DO_
  296. }
  297. void Point::SerializeWithCachedSizes(
  298. ::google::protobuf::io::CodedOutputStream* output) const {
  299. // @@protoc_insertion_point(serialize_start:iv.map.Point)
  300. // required double x = 1;
  301. if (has_x()) {
  302. ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->x(), output);
  303. }
  304. // required double y = 2;
  305. if (has_y()) {
  306. ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->y(), output);
  307. }
  308. if (_internal_metadata_.have_unknown_fields()) {
  309. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  310. unknown_fields(), output);
  311. }
  312. // @@protoc_insertion_point(serialize_end:iv.map.Point)
  313. }
  314. ::google::protobuf::uint8* Point::InternalSerializeWithCachedSizesToArray(
  315. bool deterministic, ::google::protobuf::uint8* target) const {
  316. // @@protoc_insertion_point(serialize_to_array_start:iv.map.Point)
  317. // required double x = 1;
  318. if (has_x()) {
  319. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->x(), target);
  320. }
  321. // required double y = 2;
  322. if (has_y()) {
  323. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->y(), target);
  324. }
  325. if (_internal_metadata_.have_unknown_fields()) {
  326. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  327. unknown_fields(), target);
  328. }
  329. // @@protoc_insertion_point(serialize_to_array_end:iv.map.Point)
  330. return target;
  331. }
  332. int Point::RequiredFieldsByteSizeFallback() const {
  333. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:iv.map.Point)
  334. int total_size = 0;
  335. if (has_x()) {
  336. // required double x = 1;
  337. total_size += 1 + 8;
  338. }
  339. if (has_y()) {
  340. // required double y = 2;
  341. total_size += 1 + 8;
  342. }
  343. return total_size;
  344. }
  345. int Point::ByteSize() const {
  346. // @@protoc_insertion_point(message_byte_size_start:iv.map.Point)
  347. int total_size = 0;
  348. if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
  349. // required double x = 1;
  350. total_size += 1 + 8;
  351. // required double y = 2;
  352. total_size += 1 + 8;
  353. } else {
  354. total_size += RequiredFieldsByteSizeFallback();
  355. }
  356. if (_internal_metadata_.have_unknown_fields()) {
  357. total_size +=
  358. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  359. unknown_fields());
  360. }
  361. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  362. _cached_size_ = total_size;
  363. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  364. return total_size;
  365. }
  366. void Point::MergeFrom(const ::google::protobuf::Message& from) {
  367. // @@protoc_insertion_point(generalized_merge_from_start:iv.map.Point)
  368. if (GOOGLE_PREDICT_FALSE(&from == this)) {
  369. ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
  370. }
  371. const Point* source =
  372. ::google::protobuf::internal::DynamicCastToGenerated<const Point>(
  373. &from);
  374. if (source == NULL) {
  375. // @@protoc_insertion_point(generalized_merge_from_cast_fail:iv.map.Point)
  376. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  377. } else {
  378. // @@protoc_insertion_point(generalized_merge_from_cast_success:iv.map.Point)
  379. MergeFrom(*source);
  380. }
  381. }
  382. void Point::MergeFrom(const Point& from) {
  383. // @@protoc_insertion_point(class_specific_merge_from_start:iv.map.Point)
  384. if (GOOGLE_PREDICT_FALSE(&from == this)) {
  385. ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
  386. }
  387. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  388. if (from.has_x()) {
  389. set_x(from.x());
  390. }
  391. if (from.has_y()) {
  392. set_y(from.y());
  393. }
  394. }
  395. if (from._internal_metadata_.have_unknown_fields()) {
  396. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  397. }
  398. }
  399. void Point::CopyFrom(const ::google::protobuf::Message& from) {
  400. // @@protoc_insertion_point(generalized_copy_from_start:iv.map.Point)
  401. if (&from == this) return;
  402. Clear();
  403. MergeFrom(from);
  404. }
  405. void Point::CopyFrom(const Point& from) {
  406. // @@protoc_insertion_point(class_specific_copy_from_start:iv.map.Point)
  407. if (&from == this) return;
  408. Clear();
  409. MergeFrom(from);
  410. }
  411. bool Point::IsInitialized() const {
  412. if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  413. return true;
  414. }
  415. void Point::Swap(Point* other) {
  416. if (other == this) return;
  417. InternalSwap(other);
  418. }
  419. void Point::InternalSwap(Point* other) {
  420. std::swap(x_, other->x_);
  421. std::swap(y_, other->y_);
  422. std::swap(_has_bits_[0], other->_has_bits_[0]);
  423. _internal_metadata_.Swap(&other->_internal_metadata_);
  424. std::swap(_cached_size_, other->_cached_size_);
  425. }
  426. ::google::protobuf::Metadata Point::GetMetadata() const {
  427. protobuf_AssignDescriptorsOnce();
  428. ::google::protobuf::Metadata metadata;
  429. metadata.descriptor = Point_descriptor_;
  430. metadata.reflection = Point_reflection_;
  431. return metadata;
  432. }
  433. #if PROTOBUF_INLINE_NOT_IN_HEADERS
  434. // Point
  435. // required double x = 1;
  436. bool Point::has_x() const {
  437. return (_has_bits_[0] & 0x00000001u) != 0;
  438. }
  439. void Point::set_has_x() {
  440. _has_bits_[0] |= 0x00000001u;
  441. }
  442. void Point::clear_has_x() {
  443. _has_bits_[0] &= ~0x00000001u;
  444. }
  445. void Point::clear_x() {
  446. x_ = 0;
  447. clear_has_x();
  448. }
  449. double Point::x() const {
  450. // @@protoc_insertion_point(field_get:iv.map.Point.x)
  451. return x_;
  452. }
  453. void Point::set_x(double value) {
  454. set_has_x();
  455. x_ = value;
  456. // @@protoc_insertion_point(field_set:iv.map.Point.x)
  457. }
  458. // required double y = 2;
  459. bool Point::has_y() const {
  460. return (_has_bits_[0] & 0x00000002u) != 0;
  461. }
  462. void Point::set_has_y() {
  463. _has_bits_[0] |= 0x00000002u;
  464. }
  465. void Point::clear_has_y() {
  466. _has_bits_[0] &= ~0x00000002u;
  467. }
  468. void Point::clear_y() {
  469. y_ = 0;
  470. clear_has_y();
  471. }
  472. double Point::y() const {
  473. // @@protoc_insertion_point(field_get:iv.map.Point.y)
  474. return y_;
  475. }
  476. void Point::set_y(double value) {
  477. set_has_y();
  478. y_ = value;
  479. // @@protoc_insertion_point(field_set:iv.map.Point.y)
  480. }
  481. #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
  482. // ===================================================================
  483. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  484. const int geodata::kIndexFieldNumber;
  485. const int geodata::kStartFieldNumber;
  486. const int geodata::kEndFieldNumber;
  487. const int geodata::kHdgFieldNumber;
  488. const int geodata::kIndexStartFieldNumber;
  489. const int geodata::kIndexEndFieldNumber;
  490. const int geodata::kOffFieldNumber;
  491. const int geodata::kCurvatureFieldNumber;
  492. const int geodata::kSFieldNumber;
  493. const int geodata::kTypeFieldNumber;
  494. const int geodata::kCurvcenterFieldNumber;
  495. const int geodata::kMindisFieldNumber;
  496. const int geodata::kMaxdisFieldNumber;
  497. const int geodata::kHdgStartFieldNumber;
  498. const int geodata::kHdgEndFieldNumber;
  499. const int geodata::kAuFieldNumber;
  500. const int geodata::kBuFieldNumber;
  501. const int geodata::kCuFieldNumber;
  502. const int geodata::kDuFieldNumber;
  503. const int geodata::kAvFieldNumber;
  504. const int geodata::kBvFieldNumber;
  505. const int geodata::kCvFieldNumber;
  506. const int geodata::kDvFieldNumber;
  507. const int geodata::kPolyuratioFieldNumber;
  508. const int geodata::kPolyvratioFieldNumber;
  509. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  510. geodata::geodata()
  511. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  512. SharedCtor();
  513. // @@protoc_insertion_point(constructor:iv.map.geodata)
  514. }
  515. void geodata::InitAsDefaultInstance() {
  516. start_ = const_cast< ::iv::map::Point*>(&::iv::map::Point::default_instance());
  517. end_ = const_cast< ::iv::map::Point*>(&::iv::map::Point::default_instance());
  518. curvcenter_ = const_cast< ::iv::map::Point*>(&::iv::map::Point::default_instance());
  519. }
  520. geodata::geodata(const geodata& from)
  521. : ::google::protobuf::Message(),
  522. _internal_metadata_(NULL) {
  523. SharedCtor();
  524. MergeFrom(from);
  525. // @@protoc_insertion_point(copy_constructor:iv.map.geodata)
  526. }
  527. void geodata::SharedCtor() {
  528. _cached_size_ = 0;
  529. index_ = 0u;
  530. start_ = NULL;
  531. end_ = NULL;
  532. hdg_ = 0;
  533. index_start_ = 0;
  534. index_end_ = 0;
  535. off_ = 0;
  536. curvature_ = 0;
  537. s_ = 0;
  538. type_ = 0;
  539. curvcenter_ = NULL;
  540. mindis_ = 0;
  541. maxdis_ = 0;
  542. hdg_start_ = 0;
  543. hdg_end_ = 0;
  544. au_ = 0;
  545. bu_ = 0;
  546. cu_ = 0;
  547. du_ = 0;
  548. av_ = 0;
  549. bv_ = 0;
  550. cv_ = 0;
  551. dv_ = 0;
  552. polyuratio_ = 0;
  553. polyvratio_ = 0;
  554. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  555. }
  556. geodata::~geodata() {
  557. // @@protoc_insertion_point(destructor:iv.map.geodata)
  558. SharedDtor();
  559. }
  560. void geodata::SharedDtor() {
  561. if (this != default_instance_) {
  562. delete start_;
  563. delete end_;
  564. delete curvcenter_;
  565. }
  566. }
  567. void geodata::SetCachedSize(int size) const {
  568. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  569. _cached_size_ = size;
  570. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  571. }
  572. const ::google::protobuf::Descriptor* geodata::descriptor() {
  573. protobuf_AssignDescriptorsOnce();
  574. return geodata_descriptor_;
  575. }
  576. const geodata& geodata::default_instance() {
  577. if (default_instance_ == NULL) protobuf_AddDesc_geodata_2eproto();
  578. return *default_instance_;
  579. }
  580. geodata* geodata::default_instance_ = NULL;
  581. geodata* geodata::New(::google::protobuf::Arena* arena) const {
  582. geodata* n = new geodata;
  583. if (arena != NULL) {
  584. arena->Own(n);
  585. }
  586. return n;
  587. }
  588. void geodata::Clear() {
  589. // @@protoc_insertion_point(message_clear_start:iv.map.geodata)
  590. #if defined(__clang__)
  591. #define ZR_HELPER_(f) \
  592. _Pragma("clang diagnostic push") \
  593. _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
  594. __builtin_offsetof(geodata, f) \
  595. _Pragma("clang diagnostic pop")
  596. #else
  597. #define ZR_HELPER_(f) reinterpret_cast<char*>(\
  598. &reinterpret_cast<geodata*>(16)->f)
  599. #endif
  600. #define ZR_(first, last) do {\
  601. ::memset(&first, 0,\
  602. ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
  603. } while (0)
  604. if (_has_bits_[0 / 32] & 255u) {
  605. ZR_(index_, index_end_);
  606. if (has_start()) {
  607. if (start_ != NULL) start_->::iv::map::Point::Clear();
  608. }
  609. if (has_end()) {
  610. if (end_ != NULL) end_->::iv::map::Point::Clear();
  611. }
  612. }
  613. if (_has_bits_[8 / 32] & 65280u) {
  614. ZR_(type_, s_);
  615. ZR_(mindis_, au_);
  616. if (has_curvcenter()) {
  617. if (curvcenter_ != NULL) curvcenter_->::iv::map::Point::Clear();
  618. }
  619. }
  620. if (_has_bits_[16 / 32] & 16711680u) {
  621. ZR_(bu_, polyuratio_);
  622. }
  623. polyvratio_ = 0;
  624. #undef ZR_HELPER_
  625. #undef ZR_
  626. ::memset(_has_bits_, 0, sizeof(_has_bits_));
  627. if (_internal_metadata_.have_unknown_fields()) {
  628. mutable_unknown_fields()->Clear();
  629. }
  630. }
  631. bool geodata::MergePartialFromCodedStream(
  632. ::google::protobuf::io::CodedInputStream* input) {
  633. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  634. ::google::protobuf::uint32 tag;
  635. // @@protoc_insertion_point(parse_start:iv.map.geodata)
  636. for (;;) {
  637. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
  638. tag = p.first;
  639. if (!p.second) goto handle_unusual;
  640. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  641. // optional uint32 index = 1;
  642. case 1: {
  643. if (tag == 8) {
  644. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  645. ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
  646. input, &index_)));
  647. set_has_index();
  648. } else {
  649. goto handle_unusual;
  650. }
  651. if (input->ExpectTag(18)) goto parse_start;
  652. break;
  653. }
  654. // required .iv.map.Point start = 2;
  655. case 2: {
  656. if (tag == 18) {
  657. parse_start:
  658. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  659. input, mutable_start()));
  660. } else {
  661. goto handle_unusual;
  662. }
  663. if (input->ExpectTag(26)) goto parse_end;
  664. break;
  665. }
  666. // required .iv.map.Point end = 3;
  667. case 3: {
  668. if (tag == 26) {
  669. parse_end:
  670. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  671. input, mutable_end()));
  672. } else {
  673. goto handle_unusual;
  674. }
  675. if (input->ExpectTag(33)) goto parse_hdg;
  676. break;
  677. }
  678. // optional double hdg = 4;
  679. case 4: {
  680. if (tag == 33) {
  681. parse_hdg:
  682. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  683. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  684. input, &hdg_)));
  685. set_has_hdg();
  686. } else {
  687. goto handle_unusual;
  688. }
  689. if (input->ExpectTag(40)) goto parse_index_start;
  690. break;
  691. }
  692. // optional int32 index_start = 5;
  693. case 5: {
  694. if (tag == 40) {
  695. parse_index_start:
  696. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  697. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  698. input, &index_start_)));
  699. set_has_index_start();
  700. } else {
  701. goto handle_unusual;
  702. }
  703. if (input->ExpectTag(48)) goto parse_index_end;
  704. break;
  705. }
  706. // optional int32 index_end = 6;
  707. case 6: {
  708. if (tag == 48) {
  709. parse_index_end:
  710. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  711. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  712. input, &index_end_)));
  713. set_has_index_end();
  714. } else {
  715. goto handle_unusual;
  716. }
  717. if (input->ExpectTag(57)) goto parse_off;
  718. break;
  719. }
  720. // optional double off = 7;
  721. case 7: {
  722. if (tag == 57) {
  723. parse_off:
  724. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  725. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  726. input, &off_)));
  727. set_has_off();
  728. } else {
  729. goto handle_unusual;
  730. }
  731. if (input->ExpectTag(65)) goto parse_curvature;
  732. break;
  733. }
  734. // optional double curvature = 8;
  735. case 8: {
  736. if (tag == 65) {
  737. parse_curvature:
  738. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  739. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  740. input, &curvature_)));
  741. set_has_curvature();
  742. } else {
  743. goto handle_unusual;
  744. }
  745. if (input->ExpectTag(72)) goto parse_type;
  746. break;
  747. }
  748. // required .iv.map.geotype type = 9;
  749. case 9: {
  750. if (tag == 72) {
  751. parse_type:
  752. int value;
  753. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  754. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  755. input, &value)));
  756. if (::iv::map::geotype_IsValid(value)) {
  757. set_type(static_cast< ::iv::map::geotype >(value));
  758. } else {
  759. mutable_unknown_fields()->AddVarint(9, value);
  760. }
  761. } else {
  762. goto handle_unusual;
  763. }
  764. if (input->ExpectTag(81)) goto parse_s;
  765. break;
  766. }
  767. // optional double s = 10;
  768. case 10: {
  769. if (tag == 81) {
  770. parse_s:
  771. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  772. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  773. input, &s_)));
  774. set_has_s();
  775. } else {
  776. goto handle_unusual;
  777. }
  778. if (input->ExpectTag(90)) goto parse_curvcenter;
  779. break;
  780. }
  781. // optional .iv.map.Point curvcenter = 11;
  782. case 11: {
  783. if (tag == 90) {
  784. parse_curvcenter:
  785. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  786. input, mutable_curvcenter()));
  787. } else {
  788. goto handle_unusual;
  789. }
  790. if (input->ExpectTag(97)) goto parse_mindis;
  791. break;
  792. }
  793. // optional double mindis = 12;
  794. case 12: {
  795. if (tag == 97) {
  796. parse_mindis:
  797. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  798. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  799. input, &mindis_)));
  800. set_has_mindis();
  801. } else {
  802. goto handle_unusual;
  803. }
  804. if (input->ExpectTag(105)) goto parse_maxdis;
  805. break;
  806. }
  807. // optional double maxdis = 13;
  808. case 13: {
  809. if (tag == 105) {
  810. parse_maxdis:
  811. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  812. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  813. input, &maxdis_)));
  814. set_has_maxdis();
  815. } else {
  816. goto handle_unusual;
  817. }
  818. if (input->ExpectTag(113)) goto parse_hdg_start;
  819. break;
  820. }
  821. // optional double hdg_start = 14;
  822. case 14: {
  823. if (tag == 113) {
  824. parse_hdg_start:
  825. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  826. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  827. input, &hdg_start_)));
  828. set_has_hdg_start();
  829. } else {
  830. goto handle_unusual;
  831. }
  832. if (input->ExpectTag(121)) goto parse_hdg_end;
  833. break;
  834. }
  835. // optional double hdg_end = 15;
  836. case 15: {
  837. if (tag == 121) {
  838. parse_hdg_end:
  839. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  840. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  841. input, &hdg_end_)));
  842. set_has_hdg_end();
  843. } else {
  844. goto handle_unusual;
  845. }
  846. if (input->ExpectTag(129)) goto parse_au;
  847. break;
  848. }
  849. // optional double au = 16;
  850. case 16: {
  851. if (tag == 129) {
  852. parse_au:
  853. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  854. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  855. input, &au_)));
  856. set_has_au();
  857. } else {
  858. goto handle_unusual;
  859. }
  860. if (input->ExpectTag(137)) goto parse_bu;
  861. break;
  862. }
  863. // optional double bu = 17;
  864. case 17: {
  865. if (tag == 137) {
  866. parse_bu:
  867. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  868. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  869. input, &bu_)));
  870. set_has_bu();
  871. } else {
  872. goto handle_unusual;
  873. }
  874. if (input->ExpectTag(145)) goto parse_cu;
  875. break;
  876. }
  877. // optional double cu = 18;
  878. case 18: {
  879. if (tag == 145) {
  880. parse_cu:
  881. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  882. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  883. input, &cu_)));
  884. set_has_cu();
  885. } else {
  886. goto handle_unusual;
  887. }
  888. if (input->ExpectTag(153)) goto parse_du;
  889. break;
  890. }
  891. // optional double du = 19;
  892. case 19: {
  893. if (tag == 153) {
  894. parse_du:
  895. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  896. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  897. input, &du_)));
  898. set_has_du();
  899. } else {
  900. goto handle_unusual;
  901. }
  902. if (input->ExpectTag(161)) goto parse_av;
  903. break;
  904. }
  905. // optional double av = 20;
  906. case 20: {
  907. if (tag == 161) {
  908. parse_av:
  909. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  910. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  911. input, &av_)));
  912. set_has_av();
  913. } else {
  914. goto handle_unusual;
  915. }
  916. if (input->ExpectTag(169)) goto parse_bv;
  917. break;
  918. }
  919. // optional double bv = 21;
  920. case 21: {
  921. if (tag == 169) {
  922. parse_bv:
  923. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  924. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  925. input, &bv_)));
  926. set_has_bv();
  927. } else {
  928. goto handle_unusual;
  929. }
  930. if (input->ExpectTag(177)) goto parse_cv;
  931. break;
  932. }
  933. // optional double cv = 22;
  934. case 22: {
  935. if (tag == 177) {
  936. parse_cv:
  937. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  938. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  939. input, &cv_)));
  940. set_has_cv();
  941. } else {
  942. goto handle_unusual;
  943. }
  944. if (input->ExpectTag(185)) goto parse_dv;
  945. break;
  946. }
  947. // optional double dv = 23;
  948. case 23: {
  949. if (tag == 185) {
  950. parse_dv:
  951. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  952. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  953. input, &dv_)));
  954. set_has_dv();
  955. } else {
  956. goto handle_unusual;
  957. }
  958. if (input->ExpectTag(193)) goto parse_polyuratio;
  959. break;
  960. }
  961. // optional double polyuratio = 24;
  962. case 24: {
  963. if (tag == 193) {
  964. parse_polyuratio:
  965. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  966. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  967. input, &polyuratio_)));
  968. set_has_polyuratio();
  969. } else {
  970. goto handle_unusual;
  971. }
  972. if (input->ExpectTag(201)) goto parse_polyvratio;
  973. break;
  974. }
  975. // optional double polyvratio = 25;
  976. case 25: {
  977. if (tag == 201) {
  978. parse_polyvratio:
  979. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  980. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  981. input, &polyvratio_)));
  982. set_has_polyvratio();
  983. } else {
  984. goto handle_unusual;
  985. }
  986. if (input->ExpectAtEnd()) goto success;
  987. break;
  988. }
  989. default: {
  990. handle_unusual:
  991. if (tag == 0 ||
  992. ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
  993. ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
  994. goto success;
  995. }
  996. DO_(::google::protobuf::internal::WireFormat::SkipField(
  997. input, tag, mutable_unknown_fields()));
  998. break;
  999. }
  1000. }
  1001. }
  1002. success:
  1003. // @@protoc_insertion_point(parse_success:iv.map.geodata)
  1004. return true;
  1005. failure:
  1006. // @@protoc_insertion_point(parse_failure:iv.map.geodata)
  1007. return false;
  1008. #undef DO_
  1009. }
  1010. void geodata::SerializeWithCachedSizes(
  1011. ::google::protobuf::io::CodedOutputStream* output) const {
  1012. // @@protoc_insertion_point(serialize_start:iv.map.geodata)
  1013. // optional uint32 index = 1;
  1014. if (has_index()) {
  1015. ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->index(), output);
  1016. }
  1017. // required .iv.map.Point start = 2;
  1018. if (has_start()) {
  1019. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1020. 2, *this->start_, output);
  1021. }
  1022. // required .iv.map.Point end = 3;
  1023. if (has_end()) {
  1024. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1025. 3, *this->end_, output);
  1026. }
  1027. // optional double hdg = 4;
  1028. if (has_hdg()) {
  1029. ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->hdg(), output);
  1030. }
  1031. // optional int32 index_start = 5;
  1032. if (has_index_start()) {
  1033. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->index_start(), output);
  1034. }
  1035. // optional int32 index_end = 6;
  1036. if (has_index_end()) {
  1037. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->index_end(), output);
  1038. }
  1039. // optional double off = 7;
  1040. if (has_off()) {
  1041. ::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->off(), output);
  1042. }
  1043. // optional double curvature = 8;
  1044. if (has_curvature()) {
  1045. ::google::protobuf::internal::WireFormatLite::WriteDouble(8, this->curvature(), output);
  1046. }
  1047. // required .iv.map.geotype type = 9;
  1048. if (has_type()) {
  1049. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1050. 9, this->type(), output);
  1051. }
  1052. // optional double s = 10;
  1053. if (has_s()) {
  1054. ::google::protobuf::internal::WireFormatLite::WriteDouble(10, this->s(), output);
  1055. }
  1056. // optional .iv.map.Point curvcenter = 11;
  1057. if (has_curvcenter()) {
  1058. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1059. 11, *this->curvcenter_, output);
  1060. }
  1061. // optional double mindis = 12;
  1062. if (has_mindis()) {
  1063. ::google::protobuf::internal::WireFormatLite::WriteDouble(12, this->mindis(), output);
  1064. }
  1065. // optional double maxdis = 13;
  1066. if (has_maxdis()) {
  1067. ::google::protobuf::internal::WireFormatLite::WriteDouble(13, this->maxdis(), output);
  1068. }
  1069. // optional double hdg_start = 14;
  1070. if (has_hdg_start()) {
  1071. ::google::protobuf::internal::WireFormatLite::WriteDouble(14, this->hdg_start(), output);
  1072. }
  1073. // optional double hdg_end = 15;
  1074. if (has_hdg_end()) {
  1075. ::google::protobuf::internal::WireFormatLite::WriteDouble(15, this->hdg_end(), output);
  1076. }
  1077. // optional double au = 16;
  1078. if (has_au()) {
  1079. ::google::protobuf::internal::WireFormatLite::WriteDouble(16, this->au(), output);
  1080. }
  1081. // optional double bu = 17;
  1082. if (has_bu()) {
  1083. ::google::protobuf::internal::WireFormatLite::WriteDouble(17, this->bu(), output);
  1084. }
  1085. // optional double cu = 18;
  1086. if (has_cu()) {
  1087. ::google::protobuf::internal::WireFormatLite::WriteDouble(18, this->cu(), output);
  1088. }
  1089. // optional double du = 19;
  1090. if (has_du()) {
  1091. ::google::protobuf::internal::WireFormatLite::WriteDouble(19, this->du(), output);
  1092. }
  1093. // optional double av = 20;
  1094. if (has_av()) {
  1095. ::google::protobuf::internal::WireFormatLite::WriteDouble(20, this->av(), output);
  1096. }
  1097. // optional double bv = 21;
  1098. if (has_bv()) {
  1099. ::google::protobuf::internal::WireFormatLite::WriteDouble(21, this->bv(), output);
  1100. }
  1101. // optional double cv = 22;
  1102. if (has_cv()) {
  1103. ::google::protobuf::internal::WireFormatLite::WriteDouble(22, this->cv(), output);
  1104. }
  1105. // optional double dv = 23;
  1106. if (has_dv()) {
  1107. ::google::protobuf::internal::WireFormatLite::WriteDouble(23, this->dv(), output);
  1108. }
  1109. // optional double polyuratio = 24;
  1110. if (has_polyuratio()) {
  1111. ::google::protobuf::internal::WireFormatLite::WriteDouble(24, this->polyuratio(), output);
  1112. }
  1113. // optional double polyvratio = 25;
  1114. if (has_polyvratio()) {
  1115. ::google::protobuf::internal::WireFormatLite::WriteDouble(25, this->polyvratio(), output);
  1116. }
  1117. if (_internal_metadata_.have_unknown_fields()) {
  1118. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1119. unknown_fields(), output);
  1120. }
  1121. // @@protoc_insertion_point(serialize_end:iv.map.geodata)
  1122. }
  1123. ::google::protobuf::uint8* geodata::InternalSerializeWithCachedSizesToArray(
  1124. bool deterministic, ::google::protobuf::uint8* target) const {
  1125. // @@protoc_insertion_point(serialize_to_array_start:iv.map.geodata)
  1126. // optional uint32 index = 1;
  1127. if (has_index()) {
  1128. target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->index(), target);
  1129. }
  1130. // required .iv.map.Point start = 2;
  1131. if (has_start()) {
  1132. target = ::google::protobuf::internal::WireFormatLite::
  1133. InternalWriteMessageNoVirtualToArray(
  1134. 2, *this->start_, false, target);
  1135. }
  1136. // required .iv.map.Point end = 3;
  1137. if (has_end()) {
  1138. target = ::google::protobuf::internal::WireFormatLite::
  1139. InternalWriteMessageNoVirtualToArray(
  1140. 3, *this->end_, false, target);
  1141. }
  1142. // optional double hdg = 4;
  1143. if (has_hdg()) {
  1144. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->hdg(), target);
  1145. }
  1146. // optional int32 index_start = 5;
  1147. if (has_index_start()) {
  1148. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->index_start(), target);
  1149. }
  1150. // optional int32 index_end = 6;
  1151. if (has_index_end()) {
  1152. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->index_end(), target);
  1153. }
  1154. // optional double off = 7;
  1155. if (has_off()) {
  1156. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(7, this->off(), target);
  1157. }
  1158. // optional double curvature = 8;
  1159. if (has_curvature()) {
  1160. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(8, this->curvature(), target);
  1161. }
  1162. // required .iv.map.geotype type = 9;
  1163. if (has_type()) {
  1164. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1165. 9, this->type(), target);
  1166. }
  1167. // optional double s = 10;
  1168. if (has_s()) {
  1169. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(10, this->s(), target);
  1170. }
  1171. // optional .iv.map.Point curvcenter = 11;
  1172. if (has_curvcenter()) {
  1173. target = ::google::protobuf::internal::WireFormatLite::
  1174. InternalWriteMessageNoVirtualToArray(
  1175. 11, *this->curvcenter_, false, target);
  1176. }
  1177. // optional double mindis = 12;
  1178. if (has_mindis()) {
  1179. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(12, this->mindis(), target);
  1180. }
  1181. // optional double maxdis = 13;
  1182. if (has_maxdis()) {
  1183. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(13, this->maxdis(), target);
  1184. }
  1185. // optional double hdg_start = 14;
  1186. if (has_hdg_start()) {
  1187. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(14, this->hdg_start(), target);
  1188. }
  1189. // optional double hdg_end = 15;
  1190. if (has_hdg_end()) {
  1191. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(15, this->hdg_end(), target);
  1192. }
  1193. // optional double au = 16;
  1194. if (has_au()) {
  1195. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(16, this->au(), target);
  1196. }
  1197. // optional double bu = 17;
  1198. if (has_bu()) {
  1199. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(17, this->bu(), target);
  1200. }
  1201. // optional double cu = 18;
  1202. if (has_cu()) {
  1203. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(18, this->cu(), target);
  1204. }
  1205. // optional double du = 19;
  1206. if (has_du()) {
  1207. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(19, this->du(), target);
  1208. }
  1209. // optional double av = 20;
  1210. if (has_av()) {
  1211. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(20, this->av(), target);
  1212. }
  1213. // optional double bv = 21;
  1214. if (has_bv()) {
  1215. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(21, this->bv(), target);
  1216. }
  1217. // optional double cv = 22;
  1218. if (has_cv()) {
  1219. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(22, this->cv(), target);
  1220. }
  1221. // optional double dv = 23;
  1222. if (has_dv()) {
  1223. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(23, this->dv(), target);
  1224. }
  1225. // optional double polyuratio = 24;
  1226. if (has_polyuratio()) {
  1227. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(24, this->polyuratio(), target);
  1228. }
  1229. // optional double polyvratio = 25;
  1230. if (has_polyvratio()) {
  1231. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(25, this->polyvratio(), target);
  1232. }
  1233. if (_internal_metadata_.have_unknown_fields()) {
  1234. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1235. unknown_fields(), target);
  1236. }
  1237. // @@protoc_insertion_point(serialize_to_array_end:iv.map.geodata)
  1238. return target;
  1239. }
  1240. int geodata::RequiredFieldsByteSizeFallback() const {
  1241. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:iv.map.geodata)
  1242. int total_size = 0;
  1243. if (has_start()) {
  1244. // required .iv.map.Point start = 2;
  1245. total_size += 1 +
  1246. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1247. *this->start_);
  1248. }
  1249. if (has_end()) {
  1250. // required .iv.map.Point end = 3;
  1251. total_size += 1 +
  1252. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1253. *this->end_);
  1254. }
  1255. if (has_type()) {
  1256. // required .iv.map.geotype type = 9;
  1257. total_size += 1 +
  1258. ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
  1259. }
  1260. return total_size;
  1261. }
  1262. int geodata::ByteSize() const {
  1263. // @@protoc_insertion_point(message_byte_size_start:iv.map.geodata)
  1264. int total_size = 0;
  1265. if (((_has_bits_[0] & 0x00000206) ^ 0x00000206) == 0) { // All required fields are present.
  1266. // required .iv.map.Point start = 2;
  1267. total_size += 1 +
  1268. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1269. *this->start_);
  1270. // required .iv.map.Point end = 3;
  1271. total_size += 1 +
  1272. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1273. *this->end_);
  1274. // required .iv.map.geotype type = 9;
  1275. total_size += 1 +
  1276. ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
  1277. } else {
  1278. total_size += RequiredFieldsByteSizeFallback();
  1279. }
  1280. if (_has_bits_[0 / 32] & 249u) {
  1281. // optional uint32 index = 1;
  1282. if (has_index()) {
  1283. total_size += 1 +
  1284. ::google::protobuf::internal::WireFormatLite::UInt32Size(
  1285. this->index());
  1286. }
  1287. // optional double hdg = 4;
  1288. if (has_hdg()) {
  1289. total_size += 1 + 8;
  1290. }
  1291. // optional int32 index_start = 5;
  1292. if (has_index_start()) {
  1293. total_size += 1 +
  1294. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1295. this->index_start());
  1296. }
  1297. // optional int32 index_end = 6;
  1298. if (has_index_end()) {
  1299. total_size += 1 +
  1300. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1301. this->index_end());
  1302. }
  1303. // optional double off = 7;
  1304. if (has_off()) {
  1305. total_size += 1 + 8;
  1306. }
  1307. // optional double curvature = 8;
  1308. if (has_curvature()) {
  1309. total_size += 1 + 8;
  1310. }
  1311. }
  1312. if (_has_bits_[8 / 32] & 64768u) {
  1313. // optional double s = 10;
  1314. if (has_s()) {
  1315. total_size += 1 + 8;
  1316. }
  1317. // optional .iv.map.Point curvcenter = 11;
  1318. if (has_curvcenter()) {
  1319. total_size += 1 +
  1320. ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
  1321. *this->curvcenter_);
  1322. }
  1323. // optional double mindis = 12;
  1324. if (has_mindis()) {
  1325. total_size += 1 + 8;
  1326. }
  1327. // optional double maxdis = 13;
  1328. if (has_maxdis()) {
  1329. total_size += 1 + 8;
  1330. }
  1331. // optional double hdg_start = 14;
  1332. if (has_hdg_start()) {
  1333. total_size += 1 + 8;
  1334. }
  1335. // optional double hdg_end = 15;
  1336. if (has_hdg_end()) {
  1337. total_size += 1 + 8;
  1338. }
  1339. // optional double au = 16;
  1340. if (has_au()) {
  1341. total_size += 2 + 8;
  1342. }
  1343. }
  1344. if (_has_bits_[16 / 32] & 16711680u) {
  1345. // optional double bu = 17;
  1346. if (has_bu()) {
  1347. total_size += 2 + 8;
  1348. }
  1349. // optional double cu = 18;
  1350. if (has_cu()) {
  1351. total_size += 2 + 8;
  1352. }
  1353. // optional double du = 19;
  1354. if (has_du()) {
  1355. total_size += 2 + 8;
  1356. }
  1357. // optional double av = 20;
  1358. if (has_av()) {
  1359. total_size += 2 + 8;
  1360. }
  1361. // optional double bv = 21;
  1362. if (has_bv()) {
  1363. total_size += 2 + 8;
  1364. }
  1365. // optional double cv = 22;
  1366. if (has_cv()) {
  1367. total_size += 2 + 8;
  1368. }
  1369. // optional double dv = 23;
  1370. if (has_dv()) {
  1371. total_size += 2 + 8;
  1372. }
  1373. // optional double polyuratio = 24;
  1374. if (has_polyuratio()) {
  1375. total_size += 2 + 8;
  1376. }
  1377. }
  1378. // optional double polyvratio = 25;
  1379. if (has_polyvratio()) {
  1380. total_size += 2 + 8;
  1381. }
  1382. if (_internal_metadata_.have_unknown_fields()) {
  1383. total_size +=
  1384. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1385. unknown_fields());
  1386. }
  1387. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1388. _cached_size_ = total_size;
  1389. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1390. return total_size;
  1391. }
  1392. void geodata::MergeFrom(const ::google::protobuf::Message& from) {
  1393. // @@protoc_insertion_point(generalized_merge_from_start:iv.map.geodata)
  1394. if (GOOGLE_PREDICT_FALSE(&from == this)) {
  1395. ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
  1396. }
  1397. const geodata* source =
  1398. ::google::protobuf::internal::DynamicCastToGenerated<const geodata>(
  1399. &from);
  1400. if (source == NULL) {
  1401. // @@protoc_insertion_point(generalized_merge_from_cast_fail:iv.map.geodata)
  1402. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1403. } else {
  1404. // @@protoc_insertion_point(generalized_merge_from_cast_success:iv.map.geodata)
  1405. MergeFrom(*source);
  1406. }
  1407. }
  1408. void geodata::MergeFrom(const geodata& from) {
  1409. // @@protoc_insertion_point(class_specific_merge_from_start:iv.map.geodata)
  1410. if (GOOGLE_PREDICT_FALSE(&from == this)) {
  1411. ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
  1412. }
  1413. if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
  1414. if (from.has_index()) {
  1415. set_index(from.index());
  1416. }
  1417. if (from.has_start()) {
  1418. mutable_start()->::iv::map::Point::MergeFrom(from.start());
  1419. }
  1420. if (from.has_end()) {
  1421. mutable_end()->::iv::map::Point::MergeFrom(from.end());
  1422. }
  1423. if (from.has_hdg()) {
  1424. set_hdg(from.hdg());
  1425. }
  1426. if (from.has_index_start()) {
  1427. set_index_start(from.index_start());
  1428. }
  1429. if (from.has_index_end()) {
  1430. set_index_end(from.index_end());
  1431. }
  1432. if (from.has_off()) {
  1433. set_off(from.off());
  1434. }
  1435. if (from.has_curvature()) {
  1436. set_curvature(from.curvature());
  1437. }
  1438. }
  1439. if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
  1440. if (from.has_s()) {
  1441. set_s(from.s());
  1442. }
  1443. if (from.has_type()) {
  1444. set_type(from.type());
  1445. }
  1446. if (from.has_curvcenter()) {
  1447. mutable_curvcenter()->::iv::map::Point::MergeFrom(from.curvcenter());
  1448. }
  1449. if (from.has_mindis()) {
  1450. set_mindis(from.mindis());
  1451. }
  1452. if (from.has_maxdis()) {
  1453. set_maxdis(from.maxdis());
  1454. }
  1455. if (from.has_hdg_start()) {
  1456. set_hdg_start(from.hdg_start());
  1457. }
  1458. if (from.has_hdg_end()) {
  1459. set_hdg_end(from.hdg_end());
  1460. }
  1461. if (from.has_au()) {
  1462. set_au(from.au());
  1463. }
  1464. }
  1465. if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) {
  1466. if (from.has_bu()) {
  1467. set_bu(from.bu());
  1468. }
  1469. if (from.has_cu()) {
  1470. set_cu(from.cu());
  1471. }
  1472. if (from.has_du()) {
  1473. set_du(from.du());
  1474. }
  1475. if (from.has_av()) {
  1476. set_av(from.av());
  1477. }
  1478. if (from.has_bv()) {
  1479. set_bv(from.bv());
  1480. }
  1481. if (from.has_cv()) {
  1482. set_cv(from.cv());
  1483. }
  1484. if (from.has_dv()) {
  1485. set_dv(from.dv());
  1486. }
  1487. if (from.has_polyuratio()) {
  1488. set_polyuratio(from.polyuratio());
  1489. }
  1490. }
  1491. if (from._has_bits_[24 / 32] & (0xffu << (24 % 32))) {
  1492. if (from.has_polyvratio()) {
  1493. set_polyvratio(from.polyvratio());
  1494. }
  1495. }
  1496. if (from._internal_metadata_.have_unknown_fields()) {
  1497. mutable_unknown_fields()->MergeFrom(from.unknown_fields());
  1498. }
  1499. }
  1500. void geodata::CopyFrom(const ::google::protobuf::Message& from) {
  1501. // @@protoc_insertion_point(generalized_copy_from_start:iv.map.geodata)
  1502. if (&from == this) return;
  1503. Clear();
  1504. MergeFrom(from);
  1505. }
  1506. void geodata::CopyFrom(const geodata& from) {
  1507. // @@protoc_insertion_point(class_specific_copy_from_start:iv.map.geodata)
  1508. if (&from == this) return;
  1509. Clear();
  1510. MergeFrom(from);
  1511. }
  1512. bool geodata::IsInitialized() const {
  1513. if ((_has_bits_[0] & 0x00000206) != 0x00000206) return false;
  1514. if (has_start()) {
  1515. if (!this->start_->IsInitialized()) return false;
  1516. }
  1517. if (has_end()) {
  1518. if (!this->end_->IsInitialized()) return false;
  1519. }
  1520. if (has_curvcenter()) {
  1521. if (!this->curvcenter_->IsInitialized()) return false;
  1522. }
  1523. return true;
  1524. }
  1525. void geodata::Swap(geodata* other) {
  1526. if (other == this) return;
  1527. InternalSwap(other);
  1528. }
  1529. void geodata::InternalSwap(geodata* other) {
  1530. std::swap(index_, other->index_);
  1531. std::swap(start_, other->start_);
  1532. std::swap(end_, other->end_);
  1533. std::swap(hdg_, other->hdg_);
  1534. std::swap(index_start_, other->index_start_);
  1535. std::swap(index_end_, other->index_end_);
  1536. std::swap(off_, other->off_);
  1537. std::swap(curvature_, other->curvature_);
  1538. std::swap(s_, other->s_);
  1539. std::swap(type_, other->type_);
  1540. std::swap(curvcenter_, other->curvcenter_);
  1541. std::swap(mindis_, other->mindis_);
  1542. std::swap(maxdis_, other->maxdis_);
  1543. std::swap(hdg_start_, other->hdg_start_);
  1544. std::swap(hdg_end_, other->hdg_end_);
  1545. std::swap(au_, other->au_);
  1546. std::swap(bu_, other->bu_);
  1547. std::swap(cu_, other->cu_);
  1548. std::swap(du_, other->du_);
  1549. std::swap(av_, other->av_);
  1550. std::swap(bv_, other->bv_);
  1551. std::swap(cv_, other->cv_);
  1552. std::swap(dv_, other->dv_);
  1553. std::swap(polyuratio_, other->polyuratio_);
  1554. std::swap(polyvratio_, other->polyvratio_);
  1555. std::swap(_has_bits_[0], other->_has_bits_[0]);
  1556. _internal_metadata_.Swap(&other->_internal_metadata_);
  1557. std::swap(_cached_size_, other->_cached_size_);
  1558. }
  1559. ::google::protobuf::Metadata geodata::GetMetadata() const {
  1560. protobuf_AssignDescriptorsOnce();
  1561. ::google::protobuf::Metadata metadata;
  1562. metadata.descriptor = geodata_descriptor_;
  1563. metadata.reflection = geodata_reflection_;
  1564. return metadata;
  1565. }
  1566. #if PROTOBUF_INLINE_NOT_IN_HEADERS
  1567. // geodata
  1568. // optional uint32 index = 1;
  1569. bool geodata::has_index() const {
  1570. return (_has_bits_[0] & 0x00000001u) != 0;
  1571. }
  1572. void geodata::set_has_index() {
  1573. _has_bits_[0] |= 0x00000001u;
  1574. }
  1575. void geodata::clear_has_index() {
  1576. _has_bits_[0] &= ~0x00000001u;
  1577. }
  1578. void geodata::clear_index() {
  1579. index_ = 0u;
  1580. clear_has_index();
  1581. }
  1582. ::google::protobuf::uint32 geodata::index() const {
  1583. // @@protoc_insertion_point(field_get:iv.map.geodata.index)
  1584. return index_;
  1585. }
  1586. void geodata::set_index(::google::protobuf::uint32 value) {
  1587. set_has_index();
  1588. index_ = value;
  1589. // @@protoc_insertion_point(field_set:iv.map.geodata.index)
  1590. }
  1591. // required .iv.map.Point start = 2;
  1592. bool geodata::has_start() const {
  1593. return (_has_bits_[0] & 0x00000002u) != 0;
  1594. }
  1595. void geodata::set_has_start() {
  1596. _has_bits_[0] |= 0x00000002u;
  1597. }
  1598. void geodata::clear_has_start() {
  1599. _has_bits_[0] &= ~0x00000002u;
  1600. }
  1601. void geodata::clear_start() {
  1602. if (start_ != NULL) start_->::iv::map::Point::Clear();
  1603. clear_has_start();
  1604. }
  1605. const ::iv::map::Point& geodata::start() const {
  1606. // @@protoc_insertion_point(field_get:iv.map.geodata.start)
  1607. return start_ != NULL ? *start_ : *default_instance_->start_;
  1608. }
  1609. ::iv::map::Point* geodata::mutable_start() {
  1610. set_has_start();
  1611. if (start_ == NULL) {
  1612. start_ = new ::iv::map::Point;
  1613. }
  1614. // @@protoc_insertion_point(field_mutable:iv.map.geodata.start)
  1615. return start_;
  1616. }
  1617. ::iv::map::Point* geodata::release_start() {
  1618. // @@protoc_insertion_point(field_release:iv.map.geodata.start)
  1619. clear_has_start();
  1620. ::iv::map::Point* temp = start_;
  1621. start_ = NULL;
  1622. return temp;
  1623. }
  1624. void geodata::set_allocated_start(::iv::map::Point* start) {
  1625. delete start_;
  1626. start_ = start;
  1627. if (start) {
  1628. set_has_start();
  1629. } else {
  1630. clear_has_start();
  1631. }
  1632. // @@protoc_insertion_point(field_set_allocated:iv.map.geodata.start)
  1633. }
  1634. // required .iv.map.Point end = 3;
  1635. bool geodata::has_end() const {
  1636. return (_has_bits_[0] & 0x00000004u) != 0;
  1637. }
  1638. void geodata::set_has_end() {
  1639. _has_bits_[0] |= 0x00000004u;
  1640. }
  1641. void geodata::clear_has_end() {
  1642. _has_bits_[0] &= ~0x00000004u;
  1643. }
  1644. void geodata::clear_end() {
  1645. if (end_ != NULL) end_->::iv::map::Point::Clear();
  1646. clear_has_end();
  1647. }
  1648. const ::iv::map::Point& geodata::end() const {
  1649. // @@protoc_insertion_point(field_get:iv.map.geodata.end)
  1650. return end_ != NULL ? *end_ : *default_instance_->end_;
  1651. }
  1652. ::iv::map::Point* geodata::mutable_end() {
  1653. set_has_end();
  1654. if (end_ == NULL) {
  1655. end_ = new ::iv::map::Point;
  1656. }
  1657. // @@protoc_insertion_point(field_mutable:iv.map.geodata.end)
  1658. return end_;
  1659. }
  1660. ::iv::map::Point* geodata::release_end() {
  1661. // @@protoc_insertion_point(field_release:iv.map.geodata.end)
  1662. clear_has_end();
  1663. ::iv::map::Point* temp = end_;
  1664. end_ = NULL;
  1665. return temp;
  1666. }
  1667. void geodata::set_allocated_end(::iv::map::Point* end) {
  1668. delete end_;
  1669. end_ = end;
  1670. if (end) {
  1671. set_has_end();
  1672. } else {
  1673. clear_has_end();
  1674. }
  1675. // @@protoc_insertion_point(field_set_allocated:iv.map.geodata.end)
  1676. }
  1677. // optional double hdg = 4;
  1678. bool geodata::has_hdg() const {
  1679. return (_has_bits_[0] & 0x00000008u) != 0;
  1680. }
  1681. void geodata::set_has_hdg() {
  1682. _has_bits_[0] |= 0x00000008u;
  1683. }
  1684. void geodata::clear_has_hdg() {
  1685. _has_bits_[0] &= ~0x00000008u;
  1686. }
  1687. void geodata::clear_hdg() {
  1688. hdg_ = 0;
  1689. clear_has_hdg();
  1690. }
  1691. double geodata::hdg() const {
  1692. // @@protoc_insertion_point(field_get:iv.map.geodata.hdg)
  1693. return hdg_;
  1694. }
  1695. void geodata::set_hdg(double value) {
  1696. set_has_hdg();
  1697. hdg_ = value;
  1698. // @@protoc_insertion_point(field_set:iv.map.geodata.hdg)
  1699. }
  1700. // optional int32 index_start = 5;
  1701. bool geodata::has_index_start() const {
  1702. return (_has_bits_[0] & 0x00000010u) != 0;
  1703. }
  1704. void geodata::set_has_index_start() {
  1705. _has_bits_[0] |= 0x00000010u;
  1706. }
  1707. void geodata::clear_has_index_start() {
  1708. _has_bits_[0] &= ~0x00000010u;
  1709. }
  1710. void geodata::clear_index_start() {
  1711. index_start_ = 0;
  1712. clear_has_index_start();
  1713. }
  1714. ::google::protobuf::int32 geodata::index_start() const {
  1715. // @@protoc_insertion_point(field_get:iv.map.geodata.index_start)
  1716. return index_start_;
  1717. }
  1718. void geodata::set_index_start(::google::protobuf::int32 value) {
  1719. set_has_index_start();
  1720. index_start_ = value;
  1721. // @@protoc_insertion_point(field_set:iv.map.geodata.index_start)
  1722. }
  1723. // optional int32 index_end = 6;
  1724. bool geodata::has_index_end() const {
  1725. return (_has_bits_[0] & 0x00000020u) != 0;
  1726. }
  1727. void geodata::set_has_index_end() {
  1728. _has_bits_[0] |= 0x00000020u;
  1729. }
  1730. void geodata::clear_has_index_end() {
  1731. _has_bits_[0] &= ~0x00000020u;
  1732. }
  1733. void geodata::clear_index_end() {
  1734. index_end_ = 0;
  1735. clear_has_index_end();
  1736. }
  1737. ::google::protobuf::int32 geodata::index_end() const {
  1738. // @@protoc_insertion_point(field_get:iv.map.geodata.index_end)
  1739. return index_end_;
  1740. }
  1741. void geodata::set_index_end(::google::protobuf::int32 value) {
  1742. set_has_index_end();
  1743. index_end_ = value;
  1744. // @@protoc_insertion_point(field_set:iv.map.geodata.index_end)
  1745. }
  1746. // optional double off = 7;
  1747. bool geodata::has_off() const {
  1748. return (_has_bits_[0] & 0x00000040u) != 0;
  1749. }
  1750. void geodata::set_has_off() {
  1751. _has_bits_[0] |= 0x00000040u;
  1752. }
  1753. void geodata::clear_has_off() {
  1754. _has_bits_[0] &= ~0x00000040u;
  1755. }
  1756. void geodata::clear_off() {
  1757. off_ = 0;
  1758. clear_has_off();
  1759. }
  1760. double geodata::off() const {
  1761. // @@protoc_insertion_point(field_get:iv.map.geodata.off)
  1762. return off_;
  1763. }
  1764. void geodata::set_off(double value) {
  1765. set_has_off();
  1766. off_ = value;
  1767. // @@protoc_insertion_point(field_set:iv.map.geodata.off)
  1768. }
  1769. // optional double curvature = 8;
  1770. bool geodata::has_curvature() const {
  1771. return (_has_bits_[0] & 0x00000080u) != 0;
  1772. }
  1773. void geodata::set_has_curvature() {
  1774. _has_bits_[0] |= 0x00000080u;
  1775. }
  1776. void geodata::clear_has_curvature() {
  1777. _has_bits_[0] &= ~0x00000080u;
  1778. }
  1779. void geodata::clear_curvature() {
  1780. curvature_ = 0;
  1781. clear_has_curvature();
  1782. }
  1783. double geodata::curvature() const {
  1784. // @@protoc_insertion_point(field_get:iv.map.geodata.curvature)
  1785. return curvature_;
  1786. }
  1787. void geodata::set_curvature(double value) {
  1788. set_has_curvature();
  1789. curvature_ = value;
  1790. // @@protoc_insertion_point(field_set:iv.map.geodata.curvature)
  1791. }
  1792. // optional double s = 10;
  1793. bool geodata::has_s() const {
  1794. return (_has_bits_[0] & 0x00000100u) != 0;
  1795. }
  1796. void geodata::set_has_s() {
  1797. _has_bits_[0] |= 0x00000100u;
  1798. }
  1799. void geodata::clear_has_s() {
  1800. _has_bits_[0] &= ~0x00000100u;
  1801. }
  1802. void geodata::clear_s() {
  1803. s_ = 0;
  1804. clear_has_s();
  1805. }
  1806. double geodata::s() const {
  1807. // @@protoc_insertion_point(field_get:iv.map.geodata.s)
  1808. return s_;
  1809. }
  1810. void geodata::set_s(double value) {
  1811. set_has_s();
  1812. s_ = value;
  1813. // @@protoc_insertion_point(field_set:iv.map.geodata.s)
  1814. }
  1815. // required .iv.map.geotype type = 9;
  1816. bool geodata::has_type() const {
  1817. return (_has_bits_[0] & 0x00000200u) != 0;
  1818. }
  1819. void geodata::set_has_type() {
  1820. _has_bits_[0] |= 0x00000200u;
  1821. }
  1822. void geodata::clear_has_type() {
  1823. _has_bits_[0] &= ~0x00000200u;
  1824. }
  1825. void geodata::clear_type() {
  1826. type_ = 0;
  1827. clear_has_type();
  1828. }
  1829. ::iv::map::geotype geodata::type() const {
  1830. // @@protoc_insertion_point(field_get:iv.map.geodata.type)
  1831. return static_cast< ::iv::map::geotype >(type_);
  1832. }
  1833. void geodata::set_type(::iv::map::geotype value) {
  1834. assert(::iv::map::geotype_IsValid(value));
  1835. set_has_type();
  1836. type_ = value;
  1837. // @@protoc_insertion_point(field_set:iv.map.geodata.type)
  1838. }
  1839. // optional .iv.map.Point curvcenter = 11;
  1840. bool geodata::has_curvcenter() const {
  1841. return (_has_bits_[0] & 0x00000400u) != 0;
  1842. }
  1843. void geodata::set_has_curvcenter() {
  1844. _has_bits_[0] |= 0x00000400u;
  1845. }
  1846. void geodata::clear_has_curvcenter() {
  1847. _has_bits_[0] &= ~0x00000400u;
  1848. }
  1849. void geodata::clear_curvcenter() {
  1850. if (curvcenter_ != NULL) curvcenter_->::iv::map::Point::Clear();
  1851. clear_has_curvcenter();
  1852. }
  1853. const ::iv::map::Point& geodata::curvcenter() const {
  1854. // @@protoc_insertion_point(field_get:iv.map.geodata.curvcenter)
  1855. return curvcenter_ != NULL ? *curvcenter_ : *default_instance_->curvcenter_;
  1856. }
  1857. ::iv::map::Point* geodata::mutable_curvcenter() {
  1858. set_has_curvcenter();
  1859. if (curvcenter_ == NULL) {
  1860. curvcenter_ = new ::iv::map::Point;
  1861. }
  1862. // @@protoc_insertion_point(field_mutable:iv.map.geodata.curvcenter)
  1863. return curvcenter_;
  1864. }
  1865. ::iv::map::Point* geodata::release_curvcenter() {
  1866. // @@protoc_insertion_point(field_release:iv.map.geodata.curvcenter)
  1867. clear_has_curvcenter();
  1868. ::iv::map::Point* temp = curvcenter_;
  1869. curvcenter_ = NULL;
  1870. return temp;
  1871. }
  1872. void geodata::set_allocated_curvcenter(::iv::map::Point* curvcenter) {
  1873. delete curvcenter_;
  1874. curvcenter_ = curvcenter;
  1875. if (curvcenter) {
  1876. set_has_curvcenter();
  1877. } else {
  1878. clear_has_curvcenter();
  1879. }
  1880. // @@protoc_insertion_point(field_set_allocated:iv.map.geodata.curvcenter)
  1881. }
  1882. // optional double mindis = 12;
  1883. bool geodata::has_mindis() const {
  1884. return (_has_bits_[0] & 0x00000800u) != 0;
  1885. }
  1886. void geodata::set_has_mindis() {
  1887. _has_bits_[0] |= 0x00000800u;
  1888. }
  1889. void geodata::clear_has_mindis() {
  1890. _has_bits_[0] &= ~0x00000800u;
  1891. }
  1892. void geodata::clear_mindis() {
  1893. mindis_ = 0;
  1894. clear_has_mindis();
  1895. }
  1896. double geodata::mindis() const {
  1897. // @@protoc_insertion_point(field_get:iv.map.geodata.mindis)
  1898. return mindis_;
  1899. }
  1900. void geodata::set_mindis(double value) {
  1901. set_has_mindis();
  1902. mindis_ = value;
  1903. // @@protoc_insertion_point(field_set:iv.map.geodata.mindis)
  1904. }
  1905. // optional double maxdis = 13;
  1906. bool geodata::has_maxdis() const {
  1907. return (_has_bits_[0] & 0x00001000u) != 0;
  1908. }
  1909. void geodata::set_has_maxdis() {
  1910. _has_bits_[0] |= 0x00001000u;
  1911. }
  1912. void geodata::clear_has_maxdis() {
  1913. _has_bits_[0] &= ~0x00001000u;
  1914. }
  1915. void geodata::clear_maxdis() {
  1916. maxdis_ = 0;
  1917. clear_has_maxdis();
  1918. }
  1919. double geodata::maxdis() const {
  1920. // @@protoc_insertion_point(field_get:iv.map.geodata.maxdis)
  1921. return maxdis_;
  1922. }
  1923. void geodata::set_maxdis(double value) {
  1924. set_has_maxdis();
  1925. maxdis_ = value;
  1926. // @@protoc_insertion_point(field_set:iv.map.geodata.maxdis)
  1927. }
  1928. // optional double hdg_start = 14;
  1929. bool geodata::has_hdg_start() const {
  1930. return (_has_bits_[0] & 0x00002000u) != 0;
  1931. }
  1932. void geodata::set_has_hdg_start() {
  1933. _has_bits_[0] |= 0x00002000u;
  1934. }
  1935. void geodata::clear_has_hdg_start() {
  1936. _has_bits_[0] &= ~0x00002000u;
  1937. }
  1938. void geodata::clear_hdg_start() {
  1939. hdg_start_ = 0;
  1940. clear_has_hdg_start();
  1941. }
  1942. double geodata::hdg_start() const {
  1943. // @@protoc_insertion_point(field_get:iv.map.geodata.hdg_start)
  1944. return hdg_start_;
  1945. }
  1946. void geodata::set_hdg_start(double value) {
  1947. set_has_hdg_start();
  1948. hdg_start_ = value;
  1949. // @@protoc_insertion_point(field_set:iv.map.geodata.hdg_start)
  1950. }
  1951. // optional double hdg_end = 15;
  1952. bool geodata::has_hdg_end() const {
  1953. return (_has_bits_[0] & 0x00004000u) != 0;
  1954. }
  1955. void geodata::set_has_hdg_end() {
  1956. _has_bits_[0] |= 0x00004000u;
  1957. }
  1958. void geodata::clear_has_hdg_end() {
  1959. _has_bits_[0] &= ~0x00004000u;
  1960. }
  1961. void geodata::clear_hdg_end() {
  1962. hdg_end_ = 0;
  1963. clear_has_hdg_end();
  1964. }
  1965. double geodata::hdg_end() const {
  1966. // @@protoc_insertion_point(field_get:iv.map.geodata.hdg_end)
  1967. return hdg_end_;
  1968. }
  1969. void geodata::set_hdg_end(double value) {
  1970. set_has_hdg_end();
  1971. hdg_end_ = value;
  1972. // @@protoc_insertion_point(field_set:iv.map.geodata.hdg_end)
  1973. }
  1974. // optional double au = 16;
  1975. bool geodata::has_au() const {
  1976. return (_has_bits_[0] & 0x00008000u) != 0;
  1977. }
  1978. void geodata::set_has_au() {
  1979. _has_bits_[0] |= 0x00008000u;
  1980. }
  1981. void geodata::clear_has_au() {
  1982. _has_bits_[0] &= ~0x00008000u;
  1983. }
  1984. void geodata::clear_au() {
  1985. au_ = 0;
  1986. clear_has_au();
  1987. }
  1988. double geodata::au() const {
  1989. // @@protoc_insertion_point(field_get:iv.map.geodata.au)
  1990. return au_;
  1991. }
  1992. void geodata::set_au(double value) {
  1993. set_has_au();
  1994. au_ = value;
  1995. // @@protoc_insertion_point(field_set:iv.map.geodata.au)
  1996. }
  1997. // optional double bu = 17;
  1998. bool geodata::has_bu() const {
  1999. return (_has_bits_[0] & 0x00010000u) != 0;
  2000. }
  2001. void geodata::set_has_bu() {
  2002. _has_bits_[0] |= 0x00010000u;
  2003. }
  2004. void geodata::clear_has_bu() {
  2005. _has_bits_[0] &= ~0x00010000u;
  2006. }
  2007. void geodata::clear_bu() {
  2008. bu_ = 0;
  2009. clear_has_bu();
  2010. }
  2011. double geodata::bu() const {
  2012. // @@protoc_insertion_point(field_get:iv.map.geodata.bu)
  2013. return bu_;
  2014. }
  2015. void geodata::set_bu(double value) {
  2016. set_has_bu();
  2017. bu_ = value;
  2018. // @@protoc_insertion_point(field_set:iv.map.geodata.bu)
  2019. }
  2020. // optional double cu = 18;
  2021. bool geodata::has_cu() const {
  2022. return (_has_bits_[0] & 0x00020000u) != 0;
  2023. }
  2024. void geodata::set_has_cu() {
  2025. _has_bits_[0] |= 0x00020000u;
  2026. }
  2027. void geodata::clear_has_cu() {
  2028. _has_bits_[0] &= ~0x00020000u;
  2029. }
  2030. void geodata::clear_cu() {
  2031. cu_ = 0;
  2032. clear_has_cu();
  2033. }
  2034. double geodata::cu() const {
  2035. // @@protoc_insertion_point(field_get:iv.map.geodata.cu)
  2036. return cu_;
  2037. }
  2038. void geodata::set_cu(double value) {
  2039. set_has_cu();
  2040. cu_ = value;
  2041. // @@protoc_insertion_point(field_set:iv.map.geodata.cu)
  2042. }
  2043. // optional double du = 19;
  2044. bool geodata::has_du() const {
  2045. return (_has_bits_[0] & 0x00040000u) != 0;
  2046. }
  2047. void geodata::set_has_du() {
  2048. _has_bits_[0] |= 0x00040000u;
  2049. }
  2050. void geodata::clear_has_du() {
  2051. _has_bits_[0] &= ~0x00040000u;
  2052. }
  2053. void geodata::clear_du() {
  2054. du_ = 0;
  2055. clear_has_du();
  2056. }
  2057. double geodata::du() const {
  2058. // @@protoc_insertion_point(field_get:iv.map.geodata.du)
  2059. return du_;
  2060. }
  2061. void geodata::set_du(double value) {
  2062. set_has_du();
  2063. du_ = value;
  2064. // @@protoc_insertion_point(field_set:iv.map.geodata.du)
  2065. }
  2066. // optional double av = 20;
  2067. bool geodata::has_av() const {
  2068. return (_has_bits_[0] & 0x00080000u) != 0;
  2069. }
  2070. void geodata::set_has_av() {
  2071. _has_bits_[0] |= 0x00080000u;
  2072. }
  2073. void geodata::clear_has_av() {
  2074. _has_bits_[0] &= ~0x00080000u;
  2075. }
  2076. void geodata::clear_av() {
  2077. av_ = 0;
  2078. clear_has_av();
  2079. }
  2080. double geodata::av() const {
  2081. // @@protoc_insertion_point(field_get:iv.map.geodata.av)
  2082. return av_;
  2083. }
  2084. void geodata::set_av(double value) {
  2085. set_has_av();
  2086. av_ = value;
  2087. // @@protoc_insertion_point(field_set:iv.map.geodata.av)
  2088. }
  2089. // optional double bv = 21;
  2090. bool geodata::has_bv() const {
  2091. return (_has_bits_[0] & 0x00100000u) != 0;
  2092. }
  2093. void geodata::set_has_bv() {
  2094. _has_bits_[0] |= 0x00100000u;
  2095. }
  2096. void geodata::clear_has_bv() {
  2097. _has_bits_[0] &= ~0x00100000u;
  2098. }
  2099. void geodata::clear_bv() {
  2100. bv_ = 0;
  2101. clear_has_bv();
  2102. }
  2103. double geodata::bv() const {
  2104. // @@protoc_insertion_point(field_get:iv.map.geodata.bv)
  2105. return bv_;
  2106. }
  2107. void geodata::set_bv(double value) {
  2108. set_has_bv();
  2109. bv_ = value;
  2110. // @@protoc_insertion_point(field_set:iv.map.geodata.bv)
  2111. }
  2112. // optional double cv = 22;
  2113. bool geodata::has_cv() const {
  2114. return (_has_bits_[0] & 0x00200000u) != 0;
  2115. }
  2116. void geodata::set_has_cv() {
  2117. _has_bits_[0] |= 0x00200000u;
  2118. }
  2119. void geodata::clear_has_cv() {
  2120. _has_bits_[0] &= ~0x00200000u;
  2121. }
  2122. void geodata::clear_cv() {
  2123. cv_ = 0;
  2124. clear_has_cv();
  2125. }
  2126. double geodata::cv() const {
  2127. // @@protoc_insertion_point(field_get:iv.map.geodata.cv)
  2128. return cv_;
  2129. }
  2130. void geodata::set_cv(double value) {
  2131. set_has_cv();
  2132. cv_ = value;
  2133. // @@protoc_insertion_point(field_set:iv.map.geodata.cv)
  2134. }
  2135. // optional double dv = 23;
  2136. bool geodata::has_dv() const {
  2137. return (_has_bits_[0] & 0x00400000u) != 0;
  2138. }
  2139. void geodata::set_has_dv() {
  2140. _has_bits_[0] |= 0x00400000u;
  2141. }
  2142. void geodata::clear_has_dv() {
  2143. _has_bits_[0] &= ~0x00400000u;
  2144. }
  2145. void geodata::clear_dv() {
  2146. dv_ = 0;
  2147. clear_has_dv();
  2148. }
  2149. double geodata::dv() const {
  2150. // @@protoc_insertion_point(field_get:iv.map.geodata.dv)
  2151. return dv_;
  2152. }
  2153. void geodata::set_dv(double value) {
  2154. set_has_dv();
  2155. dv_ = value;
  2156. // @@protoc_insertion_point(field_set:iv.map.geodata.dv)
  2157. }
  2158. // optional double polyuratio = 24;
  2159. bool geodata::has_polyuratio() const {
  2160. return (_has_bits_[0] & 0x00800000u) != 0;
  2161. }
  2162. void geodata::set_has_polyuratio() {
  2163. _has_bits_[0] |= 0x00800000u;
  2164. }
  2165. void geodata::clear_has_polyuratio() {
  2166. _has_bits_[0] &= ~0x00800000u;
  2167. }
  2168. void geodata::clear_polyuratio() {
  2169. polyuratio_ = 0;
  2170. clear_has_polyuratio();
  2171. }
  2172. double geodata::polyuratio() const {
  2173. // @@protoc_insertion_point(field_get:iv.map.geodata.polyuratio)
  2174. return polyuratio_;
  2175. }
  2176. void geodata::set_polyuratio(double value) {
  2177. set_has_polyuratio();
  2178. polyuratio_ = value;
  2179. // @@protoc_insertion_point(field_set:iv.map.geodata.polyuratio)
  2180. }
  2181. // optional double polyvratio = 25;
  2182. bool geodata::has_polyvratio() const {
  2183. return (_has_bits_[0] & 0x01000000u) != 0;
  2184. }
  2185. void geodata::set_has_polyvratio() {
  2186. _has_bits_[0] |= 0x01000000u;
  2187. }
  2188. void geodata::clear_has_polyvratio() {
  2189. _has_bits_[0] &= ~0x01000000u;
  2190. }
  2191. void geodata::clear_polyvratio() {
  2192. polyvratio_ = 0;
  2193. clear_has_polyvratio();
  2194. }
  2195. double geodata::polyvratio() const {
  2196. // @@protoc_insertion_point(field_get:iv.map.geodata.polyvratio)
  2197. return polyvratio_;
  2198. }
  2199. void geodata::set_polyvratio(double value) {
  2200. set_has_polyvratio();
  2201. polyvratio_ = value;
  2202. // @@protoc_insertion_point(field_set:iv.map.geodata.polyvratio)
  2203. }
  2204. #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
  2205. // @@protoc_insertion_point(namespace_scope)
  2206. } // namespace map
  2207. } // namespace iv
  2208. // @@protoc_insertion_point(global_scope)