map.pb.h 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: map.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_map_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_map_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3013000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3013000 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_table_driven.h>
  23. #include <google/protobuf/generated_message_util.h>
  24. #include <google/protobuf/inlined_string_field.h>
  25. #include <google/protobuf/metadata_lite.h>
  26. #include <google/protobuf/generated_message_reflection.h>
  27. #include <google/protobuf/message.h>
  28. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  29. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  30. #include <google/protobuf/unknown_field_set.h>
  31. // @@protoc_insertion_point(includes)
  32. #include <google/protobuf/port_def.inc>
  33. #define PROTOBUF_INTERNAL_EXPORT_map_2eproto
  34. PROTOBUF_NAMESPACE_OPEN
  35. namespace internal {
  36. class AnyMetadata;
  37. } // namespace internal
  38. PROTOBUF_NAMESPACE_CLOSE
  39. // Internal implementation detail -- do not use these members.
  40. struct TableStruct_map_2eproto {
  41. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  42. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  43. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  44. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  45. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
  46. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  47. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  48. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  49. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  50. };
  51. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_map_2eproto;
  52. namespace MapMessage {
  53. class Edge;
  54. class EdgeDefaultTypeInternal;
  55. extern EdgeDefaultTypeInternal _Edge_default_instance_;
  56. class Map;
  57. class MapDefaultTypeInternal;
  58. extern MapDefaultTypeInternal _Map_default_instance_;
  59. class Node;
  60. class NodeDefaultTypeInternal;
  61. extern NodeDefaultTypeInternal _Node_default_instance_;
  62. } // namespace MapMessage
  63. PROTOBUF_NAMESPACE_OPEN
  64. template<> ::MapMessage::Edge* Arena::CreateMaybeMessage<::MapMessage::Edge>(Arena*);
  65. template<> ::MapMessage::Map* Arena::CreateMaybeMessage<::MapMessage::Map>(Arena*);
  66. template<> ::MapMessage::Node* Arena::CreateMaybeMessage<::MapMessage::Node>(Arena*);
  67. PROTOBUF_NAMESPACE_CLOSE
  68. namespace MapMessage {
  69. // ===================================================================
  70. class Node PROTOBUF_FINAL :
  71. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:MapMessage.Node) */ {
  72. public:
  73. inline Node() : Node(nullptr) {}
  74. virtual ~Node();
  75. Node(const Node& from);
  76. Node(Node&& from) noexcept
  77. : Node() {
  78. *this = ::std::move(from);
  79. }
  80. inline Node& operator=(const Node& from) {
  81. CopyFrom(from);
  82. return *this;
  83. }
  84. inline Node& operator=(Node&& from) noexcept {
  85. if (GetArena() == from.GetArena()) {
  86. if (this != &from) InternalSwap(&from);
  87. } else {
  88. CopyFrom(from);
  89. }
  90. return *this;
  91. }
  92. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  93. return GetDescriptor();
  94. }
  95. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  96. return GetMetadataStatic().descriptor;
  97. }
  98. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  99. return GetMetadataStatic().reflection;
  100. }
  101. static const Node& default_instance();
  102. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  103. static inline const Node* internal_default_instance() {
  104. return reinterpret_cast<const Node*>(
  105. &_Node_default_instance_);
  106. }
  107. static constexpr int kIndexInFileMessages =
  108. 0;
  109. friend void swap(Node& a, Node& b) {
  110. a.Swap(&b);
  111. }
  112. inline void Swap(Node* other) {
  113. if (other == this) return;
  114. if (GetArena() == other->GetArena()) {
  115. InternalSwap(other);
  116. } else {
  117. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  118. }
  119. }
  120. void UnsafeArenaSwap(Node* other) {
  121. if (other == this) return;
  122. GOOGLE_DCHECK(GetArena() == other->GetArena());
  123. InternalSwap(other);
  124. }
  125. // implements Message ----------------------------------------------
  126. inline Node* New() const final {
  127. return CreateMaybeMessage<Node>(nullptr);
  128. }
  129. Node* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  130. return CreateMaybeMessage<Node>(arena);
  131. }
  132. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  133. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  134. void CopyFrom(const Node& from);
  135. void MergeFrom(const Node& from);
  136. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  137. bool IsInitialized() const final;
  138. size_t ByteSizeLong() const final;
  139. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  140. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  141. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  142. int GetCachedSize() const final { return _cached_size_.Get(); }
  143. private:
  144. inline void SharedCtor();
  145. inline void SharedDtor();
  146. void SetCachedSize(int size) const final;
  147. void InternalSwap(Node* other);
  148. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  149. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  150. return "MapMessage.Node";
  151. }
  152. protected:
  153. explicit Node(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  154. private:
  155. static void ArenaDtor(void* object);
  156. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  157. public:
  158. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  159. private:
  160. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  161. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_map_2eproto);
  162. return ::descriptor_table_map_2eproto.file_level_metadata[kIndexInFileMessages];
  163. }
  164. public:
  165. // nested types ----------------------------------------------------
  166. // accessors -------------------------------------------------------
  167. enum : int {
  168. kIdFieldNumber = 1,
  169. kXFieldNumber = 2,
  170. kYFieldNumber = 3,
  171. };
  172. // int32 id = 1;
  173. void clear_id();
  174. ::PROTOBUF_NAMESPACE_ID::int32 id() const;
  175. void set_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  176. private:
  177. ::PROTOBUF_NAMESPACE_ID::int32 _internal_id() const;
  178. void _internal_set_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  179. public:
  180. // float x = 2;
  181. void clear_x();
  182. float x() const;
  183. void set_x(float value);
  184. private:
  185. float _internal_x() const;
  186. void _internal_set_x(float value);
  187. public:
  188. // float y = 3;
  189. void clear_y();
  190. float y() const;
  191. void set_y(float value);
  192. private:
  193. float _internal_y() const;
  194. void _internal_set_y(float value);
  195. public:
  196. // @@protoc_insertion_point(class_scope:MapMessage.Node)
  197. private:
  198. class _Internal;
  199. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  200. typedef void InternalArenaConstructable_;
  201. typedef void DestructorSkippable_;
  202. ::PROTOBUF_NAMESPACE_ID::int32 id_;
  203. float x_;
  204. float y_;
  205. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  206. friend struct ::TableStruct_map_2eproto;
  207. };
  208. // -------------------------------------------------------------------
  209. class Edge PROTOBUF_FINAL :
  210. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:MapMessage.Edge) */ {
  211. public:
  212. inline Edge() : Edge(nullptr) {}
  213. virtual ~Edge();
  214. Edge(const Edge& from);
  215. Edge(Edge&& from) noexcept
  216. : Edge() {
  217. *this = ::std::move(from);
  218. }
  219. inline Edge& operator=(const Edge& from) {
  220. CopyFrom(from);
  221. return *this;
  222. }
  223. inline Edge& operator=(Edge&& from) noexcept {
  224. if (GetArena() == from.GetArena()) {
  225. if (this != &from) InternalSwap(&from);
  226. } else {
  227. CopyFrom(from);
  228. }
  229. return *this;
  230. }
  231. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  232. return GetDescriptor();
  233. }
  234. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  235. return GetMetadataStatic().descriptor;
  236. }
  237. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  238. return GetMetadataStatic().reflection;
  239. }
  240. static const Edge& default_instance();
  241. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  242. static inline const Edge* internal_default_instance() {
  243. return reinterpret_cast<const Edge*>(
  244. &_Edge_default_instance_);
  245. }
  246. static constexpr int kIndexInFileMessages =
  247. 1;
  248. friend void swap(Edge& a, Edge& b) {
  249. a.Swap(&b);
  250. }
  251. inline void Swap(Edge* other) {
  252. if (other == this) return;
  253. if (GetArena() == other->GetArena()) {
  254. InternalSwap(other);
  255. } else {
  256. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  257. }
  258. }
  259. void UnsafeArenaSwap(Edge* other) {
  260. if (other == this) return;
  261. GOOGLE_DCHECK(GetArena() == other->GetArena());
  262. InternalSwap(other);
  263. }
  264. // implements Message ----------------------------------------------
  265. inline Edge* New() const final {
  266. return CreateMaybeMessage<Edge>(nullptr);
  267. }
  268. Edge* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  269. return CreateMaybeMessage<Edge>(arena);
  270. }
  271. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  272. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  273. void CopyFrom(const Edge& from);
  274. void MergeFrom(const Edge& from);
  275. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  276. bool IsInitialized() const final;
  277. size_t ByteSizeLong() const final;
  278. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  279. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  280. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  281. int GetCachedSize() const final { return _cached_size_.Get(); }
  282. private:
  283. inline void SharedCtor();
  284. inline void SharedDtor();
  285. void SetCachedSize(int size) const final;
  286. void InternalSwap(Edge* other);
  287. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  288. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  289. return "MapMessage.Edge";
  290. }
  291. protected:
  292. explicit Edge(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  293. private:
  294. static void ArenaDtor(void* object);
  295. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  296. public:
  297. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  298. private:
  299. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  300. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_map_2eproto);
  301. return ::descriptor_table_map_2eproto.file_level_metadata[kIndexInFileMessages];
  302. }
  303. public:
  304. // nested types ----------------------------------------------------
  305. // accessors -------------------------------------------------------
  306. enum : int {
  307. kId1FieldNumber = 1,
  308. kId2FieldNumber = 2,
  309. kDirectedFieldNumber = 3,
  310. };
  311. // int32 id1 = 1;
  312. void clear_id1();
  313. ::PROTOBUF_NAMESPACE_ID::int32 id1() const;
  314. void set_id1(::PROTOBUF_NAMESPACE_ID::int32 value);
  315. private:
  316. ::PROTOBUF_NAMESPACE_ID::int32 _internal_id1() const;
  317. void _internal_set_id1(::PROTOBUF_NAMESPACE_ID::int32 value);
  318. public:
  319. // int32 id2 = 2;
  320. void clear_id2();
  321. ::PROTOBUF_NAMESPACE_ID::int32 id2() const;
  322. void set_id2(::PROTOBUF_NAMESPACE_ID::int32 value);
  323. private:
  324. ::PROTOBUF_NAMESPACE_ID::int32 _internal_id2() const;
  325. void _internal_set_id2(::PROTOBUF_NAMESPACE_ID::int32 value);
  326. public:
  327. // bool directed = 3;
  328. void clear_directed();
  329. bool directed() const;
  330. void set_directed(bool value);
  331. private:
  332. bool _internal_directed() const;
  333. void _internal_set_directed(bool value);
  334. public:
  335. // @@protoc_insertion_point(class_scope:MapMessage.Edge)
  336. private:
  337. class _Internal;
  338. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  339. typedef void InternalArenaConstructable_;
  340. typedef void DestructorSkippable_;
  341. ::PROTOBUF_NAMESPACE_ID::int32 id1_;
  342. ::PROTOBUF_NAMESPACE_ID::int32 id2_;
  343. bool directed_;
  344. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  345. friend struct ::TableStruct_map_2eproto;
  346. };
  347. // -------------------------------------------------------------------
  348. class Map PROTOBUF_FINAL :
  349. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:MapMessage.Map) */ {
  350. public:
  351. inline Map() : Map(nullptr) {}
  352. virtual ~Map();
  353. Map(const Map& from);
  354. Map(Map&& from) noexcept
  355. : Map() {
  356. *this = ::std::move(from);
  357. }
  358. inline Map& operator=(const Map& from) {
  359. CopyFrom(from);
  360. return *this;
  361. }
  362. inline Map& operator=(Map&& from) noexcept {
  363. if (GetArena() == from.GetArena()) {
  364. if (this != &from) InternalSwap(&from);
  365. } else {
  366. CopyFrom(from);
  367. }
  368. return *this;
  369. }
  370. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  371. return GetDescriptor();
  372. }
  373. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  374. return GetMetadataStatic().descriptor;
  375. }
  376. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  377. return GetMetadataStatic().reflection;
  378. }
  379. static const Map& default_instance();
  380. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  381. static inline const Map* internal_default_instance() {
  382. return reinterpret_cast<const Map*>(
  383. &_Map_default_instance_);
  384. }
  385. static constexpr int kIndexInFileMessages =
  386. 2;
  387. friend void swap(Map& a, Map& b) {
  388. a.Swap(&b);
  389. }
  390. inline void Swap(Map* other) {
  391. if (other == this) return;
  392. if (GetArena() == other->GetArena()) {
  393. InternalSwap(other);
  394. } else {
  395. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  396. }
  397. }
  398. void UnsafeArenaSwap(Map* other) {
  399. if (other == this) return;
  400. GOOGLE_DCHECK(GetArena() == other->GetArena());
  401. InternalSwap(other);
  402. }
  403. // implements Message ----------------------------------------------
  404. inline Map* New() const final {
  405. return CreateMaybeMessage<Map>(nullptr);
  406. }
  407. Map* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  408. return CreateMaybeMessage<Map>(arena);
  409. }
  410. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  411. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  412. void CopyFrom(const Map& from);
  413. void MergeFrom(const Map& from);
  414. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  415. bool IsInitialized() const final;
  416. size_t ByteSizeLong() const final;
  417. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  418. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  419. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  420. int GetCachedSize() const final { return _cached_size_.Get(); }
  421. private:
  422. inline void SharedCtor();
  423. inline void SharedDtor();
  424. void SetCachedSize(int size) const final;
  425. void InternalSwap(Map* other);
  426. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  427. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  428. return "MapMessage.Map";
  429. }
  430. protected:
  431. explicit Map(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  432. private:
  433. static void ArenaDtor(void* object);
  434. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  435. public:
  436. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  437. private:
  438. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  439. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_map_2eproto);
  440. return ::descriptor_table_map_2eproto.file_level_metadata[kIndexInFileMessages];
  441. }
  442. public:
  443. // nested types ----------------------------------------------------
  444. // accessors -------------------------------------------------------
  445. enum : int {
  446. kNodesFieldNumber = 1,
  447. kEdgesFieldNumber = 2,
  448. };
  449. // repeated .MapMessage.Node nodes = 1;
  450. int nodes_size() const;
  451. private:
  452. int _internal_nodes_size() const;
  453. public:
  454. void clear_nodes();
  455. ::MapMessage::Node* mutable_nodes(int index);
  456. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::MapMessage::Node >*
  457. mutable_nodes();
  458. private:
  459. const ::MapMessage::Node& _internal_nodes(int index) const;
  460. ::MapMessage::Node* _internal_add_nodes();
  461. public:
  462. const ::MapMessage::Node& nodes(int index) const;
  463. ::MapMessage::Node* add_nodes();
  464. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::MapMessage::Node >&
  465. nodes() const;
  466. // repeated .MapMessage.Edge edges = 2;
  467. int edges_size() const;
  468. private:
  469. int _internal_edges_size() const;
  470. public:
  471. void clear_edges();
  472. ::MapMessage::Edge* mutable_edges(int index);
  473. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::MapMessage::Edge >*
  474. mutable_edges();
  475. private:
  476. const ::MapMessage::Edge& _internal_edges(int index) const;
  477. ::MapMessage::Edge* _internal_add_edges();
  478. public:
  479. const ::MapMessage::Edge& edges(int index) const;
  480. ::MapMessage::Edge* add_edges();
  481. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::MapMessage::Edge >&
  482. edges() const;
  483. // @@protoc_insertion_point(class_scope:MapMessage.Map)
  484. private:
  485. class _Internal;
  486. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  487. typedef void InternalArenaConstructable_;
  488. typedef void DestructorSkippable_;
  489. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::MapMessage::Node > nodes_;
  490. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::MapMessage::Edge > edges_;
  491. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  492. friend struct ::TableStruct_map_2eproto;
  493. };
  494. // ===================================================================
  495. // ===================================================================
  496. #ifdef __GNUC__
  497. #pragma GCC diagnostic push
  498. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  499. #endif // __GNUC__
  500. // Node
  501. // int32 id = 1;
  502. inline void Node::clear_id() {
  503. id_ = 0;
  504. }
  505. inline ::PROTOBUF_NAMESPACE_ID::int32 Node::_internal_id() const {
  506. return id_;
  507. }
  508. inline ::PROTOBUF_NAMESPACE_ID::int32 Node::id() const {
  509. // @@protoc_insertion_point(field_get:MapMessage.Node.id)
  510. return _internal_id();
  511. }
  512. inline void Node::_internal_set_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  513. id_ = value;
  514. }
  515. inline void Node::set_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  516. _internal_set_id(value);
  517. // @@protoc_insertion_point(field_set:MapMessage.Node.id)
  518. }
  519. // float x = 2;
  520. inline void Node::clear_x() {
  521. x_ = 0;
  522. }
  523. inline float Node::_internal_x() const {
  524. return x_;
  525. }
  526. inline float Node::x() const {
  527. // @@protoc_insertion_point(field_get:MapMessage.Node.x)
  528. return _internal_x();
  529. }
  530. inline void Node::_internal_set_x(float value) {
  531. x_ = value;
  532. }
  533. inline void Node::set_x(float value) {
  534. _internal_set_x(value);
  535. // @@protoc_insertion_point(field_set:MapMessage.Node.x)
  536. }
  537. // float y = 3;
  538. inline void Node::clear_y() {
  539. y_ = 0;
  540. }
  541. inline float Node::_internal_y() const {
  542. return y_;
  543. }
  544. inline float Node::y() const {
  545. // @@protoc_insertion_point(field_get:MapMessage.Node.y)
  546. return _internal_y();
  547. }
  548. inline void Node::_internal_set_y(float value) {
  549. y_ = value;
  550. }
  551. inline void Node::set_y(float value) {
  552. _internal_set_y(value);
  553. // @@protoc_insertion_point(field_set:MapMessage.Node.y)
  554. }
  555. // -------------------------------------------------------------------
  556. // Edge
  557. // int32 id1 = 1;
  558. inline void Edge::clear_id1() {
  559. id1_ = 0;
  560. }
  561. inline ::PROTOBUF_NAMESPACE_ID::int32 Edge::_internal_id1() const {
  562. return id1_;
  563. }
  564. inline ::PROTOBUF_NAMESPACE_ID::int32 Edge::id1() const {
  565. // @@protoc_insertion_point(field_get:MapMessage.Edge.id1)
  566. return _internal_id1();
  567. }
  568. inline void Edge::_internal_set_id1(::PROTOBUF_NAMESPACE_ID::int32 value) {
  569. id1_ = value;
  570. }
  571. inline void Edge::set_id1(::PROTOBUF_NAMESPACE_ID::int32 value) {
  572. _internal_set_id1(value);
  573. // @@protoc_insertion_point(field_set:MapMessage.Edge.id1)
  574. }
  575. // int32 id2 = 2;
  576. inline void Edge::clear_id2() {
  577. id2_ = 0;
  578. }
  579. inline ::PROTOBUF_NAMESPACE_ID::int32 Edge::_internal_id2() const {
  580. return id2_;
  581. }
  582. inline ::PROTOBUF_NAMESPACE_ID::int32 Edge::id2() const {
  583. // @@protoc_insertion_point(field_get:MapMessage.Edge.id2)
  584. return _internal_id2();
  585. }
  586. inline void Edge::_internal_set_id2(::PROTOBUF_NAMESPACE_ID::int32 value) {
  587. id2_ = value;
  588. }
  589. inline void Edge::set_id2(::PROTOBUF_NAMESPACE_ID::int32 value) {
  590. _internal_set_id2(value);
  591. // @@protoc_insertion_point(field_set:MapMessage.Edge.id2)
  592. }
  593. // bool directed = 3;
  594. inline void Edge::clear_directed() {
  595. directed_ = false;
  596. }
  597. inline bool Edge::_internal_directed() const {
  598. return directed_;
  599. }
  600. inline bool Edge::directed() const {
  601. // @@protoc_insertion_point(field_get:MapMessage.Edge.directed)
  602. return _internal_directed();
  603. }
  604. inline void Edge::_internal_set_directed(bool value) {
  605. directed_ = value;
  606. }
  607. inline void Edge::set_directed(bool value) {
  608. _internal_set_directed(value);
  609. // @@protoc_insertion_point(field_set:MapMessage.Edge.directed)
  610. }
  611. // -------------------------------------------------------------------
  612. // Map
  613. // repeated .MapMessage.Node nodes = 1;
  614. inline int Map::_internal_nodes_size() const {
  615. return nodes_.size();
  616. }
  617. inline int Map::nodes_size() const {
  618. return _internal_nodes_size();
  619. }
  620. inline void Map::clear_nodes() {
  621. nodes_.Clear();
  622. }
  623. inline ::MapMessage::Node* Map::mutable_nodes(int index) {
  624. // @@protoc_insertion_point(field_mutable:MapMessage.Map.nodes)
  625. return nodes_.Mutable(index);
  626. }
  627. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::MapMessage::Node >*
  628. Map::mutable_nodes() {
  629. // @@protoc_insertion_point(field_mutable_list:MapMessage.Map.nodes)
  630. return &nodes_;
  631. }
  632. inline const ::MapMessage::Node& Map::_internal_nodes(int index) const {
  633. return nodes_.Get(index);
  634. }
  635. inline const ::MapMessage::Node& Map::nodes(int index) const {
  636. // @@protoc_insertion_point(field_get:MapMessage.Map.nodes)
  637. return _internal_nodes(index);
  638. }
  639. inline ::MapMessage::Node* Map::_internal_add_nodes() {
  640. return nodes_.Add();
  641. }
  642. inline ::MapMessage::Node* Map::add_nodes() {
  643. // @@protoc_insertion_point(field_add:MapMessage.Map.nodes)
  644. return _internal_add_nodes();
  645. }
  646. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::MapMessage::Node >&
  647. Map::nodes() const {
  648. // @@protoc_insertion_point(field_list:MapMessage.Map.nodes)
  649. return nodes_;
  650. }
  651. // repeated .MapMessage.Edge edges = 2;
  652. inline int Map::_internal_edges_size() const {
  653. return edges_.size();
  654. }
  655. inline int Map::edges_size() const {
  656. return _internal_edges_size();
  657. }
  658. inline void Map::clear_edges() {
  659. edges_.Clear();
  660. }
  661. inline ::MapMessage::Edge* Map::mutable_edges(int index) {
  662. // @@protoc_insertion_point(field_mutable:MapMessage.Map.edges)
  663. return edges_.Mutable(index);
  664. }
  665. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::MapMessage::Edge >*
  666. Map::mutable_edges() {
  667. // @@protoc_insertion_point(field_mutable_list:MapMessage.Map.edges)
  668. return &edges_;
  669. }
  670. inline const ::MapMessage::Edge& Map::_internal_edges(int index) const {
  671. return edges_.Get(index);
  672. }
  673. inline const ::MapMessage::Edge& Map::edges(int index) const {
  674. // @@protoc_insertion_point(field_get:MapMessage.Map.edges)
  675. return _internal_edges(index);
  676. }
  677. inline ::MapMessage::Edge* Map::_internal_add_edges() {
  678. return edges_.Add();
  679. }
  680. inline ::MapMessage::Edge* Map::add_edges() {
  681. // @@protoc_insertion_point(field_add:MapMessage.Map.edges)
  682. return _internal_add_edges();
  683. }
  684. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::MapMessage::Edge >&
  685. Map::edges() const {
  686. // @@protoc_insertion_point(field_list:MapMessage.Map.edges)
  687. return edges_;
  688. }
  689. #ifdef __GNUC__
  690. #pragma GCC diagnostic pop
  691. #endif // __GNUC__
  692. // -------------------------------------------------------------------
  693. // -------------------------------------------------------------------
  694. // @@protoc_insertion_point(namespace_scope)
  695. } // namespace MapMessage
  696. // @@protoc_insertion_point(global_scope)
  697. #include <google/protobuf/port_undef.inc>
  698. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_map_2eproto