123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: map.proto
- #ifndef GOOGLE_PROTOBUF_INCLUDED_map_2eproto
- #define GOOGLE_PROTOBUF_INCLUDED_map_2eproto
- #include <limits>
- #include <string>
- #include <google/protobuf/port_def.inc>
- #if PROTOBUF_VERSION < 3013000
- #error This file was generated by a newer version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please update
- #error your headers.
- #endif
- #if 3013000 < PROTOBUF_MIN_PROTOC_VERSION
- #error This file was generated by an older version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please
- #error regenerate this file with a newer version of protoc.
- #endif
- #include <google/protobuf/port_undef.inc>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/arena.h>
- #include <google/protobuf/arenastring.h>
- #include <google/protobuf/generated_message_table_driven.h>
- #include <google/protobuf/generated_message_util.h>
- #include <google/protobuf/inlined_string_field.h>
- #include <google/protobuf/metadata_lite.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/message.h>
- #include <google/protobuf/repeated_field.h> // IWYU pragma: export
- #include <google/protobuf/extension_set.h> // IWYU pragma: export
- #include <google/protobuf/unknown_field_set.h>
- // @@protoc_insertion_point(includes)
- #include <google/protobuf/port_def.inc>
- #define PROTOBUF_INTERNAL_EXPORT_map_2eproto
- PROTOBUF_NAMESPACE_OPEN
- namespace internal {
- class AnyMetadata;
- } // namespace internal
- PROTOBUF_NAMESPACE_CLOSE
- // Internal implementation detail -- do not use these members.
- struct TableStruct_map_2eproto {
- static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
- PROTOBUF_SECTION_VARIABLE(protodesc_cold);
- static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
- PROTOBUF_SECTION_VARIABLE(protodesc_cold);
- static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
- PROTOBUF_SECTION_VARIABLE(protodesc_cold);
- static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
- static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
- static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
- };
- extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_map_2eproto;
- namespace MapMessage {
- class Edge;
- class EdgeDefaultTypeInternal;
- extern EdgeDefaultTypeInternal _Edge_default_instance_;
- class Map;
- class MapDefaultTypeInternal;
- extern MapDefaultTypeInternal _Map_default_instance_;
- class Node;
- class NodeDefaultTypeInternal;
- extern NodeDefaultTypeInternal _Node_default_instance_;
- } // namespace MapMessage
- PROTOBUF_NAMESPACE_OPEN
- template<> ::MapMessage::Edge* Arena::CreateMaybeMessage<::MapMessage::Edge>(Arena*);
- template<> ::MapMessage::Map* Arena::CreateMaybeMessage<::MapMessage::Map>(Arena*);
- template<> ::MapMessage::Node* Arena::CreateMaybeMessage<::MapMessage::Node>(Arena*);
- PROTOBUF_NAMESPACE_CLOSE
- namespace MapMessage {
- // ===================================================================
- class Node PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:MapMessage.Node) */ {
- public:
- inline Node() : Node(nullptr) {}
- virtual ~Node();
- Node(const Node& from);
- Node(Node&& from) noexcept
- : Node() {
- *this = ::std::move(from);
- }
- inline Node& operator=(const Node& from) {
- CopyFrom(from);
- return *this;
- }
- inline Node& operator=(Node&& from) noexcept {
- if (GetArena() == from.GetArena()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const Node& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Node* internal_default_instance() {
- return reinterpret_cast<const Node*>(
- &_Node_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 0;
- friend void swap(Node& a, Node& b) {
- a.Swap(&b);
- }
- inline void Swap(Node* other) {
- if (other == this) return;
- if (GetArena() == other->GetArena()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(Node* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- inline Node* New() const final {
- return CreateMaybeMessage<Node>(nullptr);
- }
- Node* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<Node>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const Node& from);
- void MergeFrom(const Node& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(Node* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "MapMessage.Node";
- }
- protected:
- explicit Node(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_map_2eproto);
- return ::descriptor_table_map_2eproto.file_level_metadata[kIndexInFileMessages];
- }
- public:
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kIdFieldNumber = 1,
- kXFieldNumber = 2,
- kYFieldNumber = 3,
- };
- // int32 id = 1;
- void clear_id();
- ::PROTOBUF_NAMESPACE_ID::int32 id() const;
- void set_id(::PROTOBUF_NAMESPACE_ID::int32 value);
- private:
- ::PROTOBUF_NAMESPACE_ID::int32 _internal_id() const;
- void _internal_set_id(::PROTOBUF_NAMESPACE_ID::int32 value);
- public:
- // float x = 2;
- void clear_x();
- float x() const;
- void set_x(float value);
- private:
- float _internal_x() const;
- void _internal_set_x(float value);
- public:
- // float y = 3;
- void clear_y();
- float y() const;
- void set_y(float value);
- private:
- float _internal_y() const;
- void _internal_set_y(float value);
- public:
- // @@protoc_insertion_point(class_scope:MapMessage.Node)
- private:
- class _Internal;
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::int32 id_;
- float x_;
- float y_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_map_2eproto;
- };
- // -------------------------------------------------------------------
- class Edge PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:MapMessage.Edge) */ {
- public:
- inline Edge() : Edge(nullptr) {}
- virtual ~Edge();
- Edge(const Edge& from);
- Edge(Edge&& from) noexcept
- : Edge() {
- *this = ::std::move(from);
- }
- inline Edge& operator=(const Edge& from) {
- CopyFrom(from);
- return *this;
- }
- inline Edge& operator=(Edge&& from) noexcept {
- if (GetArena() == from.GetArena()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const Edge& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Edge* internal_default_instance() {
- return reinterpret_cast<const Edge*>(
- &_Edge_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 1;
- friend void swap(Edge& a, Edge& b) {
- a.Swap(&b);
- }
- inline void Swap(Edge* other) {
- if (other == this) return;
- if (GetArena() == other->GetArena()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(Edge* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- inline Edge* New() const final {
- return CreateMaybeMessage<Edge>(nullptr);
- }
- Edge* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<Edge>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const Edge& from);
- void MergeFrom(const Edge& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(Edge* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "MapMessage.Edge";
- }
- protected:
- explicit Edge(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_map_2eproto);
- return ::descriptor_table_map_2eproto.file_level_metadata[kIndexInFileMessages];
- }
- public:
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kId1FieldNumber = 1,
- kId2FieldNumber = 2,
- kDirectedFieldNumber = 3,
- };
- // int32 id1 = 1;
- void clear_id1();
- ::PROTOBUF_NAMESPACE_ID::int32 id1() const;
- void set_id1(::PROTOBUF_NAMESPACE_ID::int32 value);
- private:
- ::PROTOBUF_NAMESPACE_ID::int32 _internal_id1() const;
- void _internal_set_id1(::PROTOBUF_NAMESPACE_ID::int32 value);
- public:
- // int32 id2 = 2;
- void clear_id2();
- ::PROTOBUF_NAMESPACE_ID::int32 id2() const;
- void set_id2(::PROTOBUF_NAMESPACE_ID::int32 value);
- private:
- ::PROTOBUF_NAMESPACE_ID::int32 _internal_id2() const;
- void _internal_set_id2(::PROTOBUF_NAMESPACE_ID::int32 value);
- public:
- // bool directed = 3;
- void clear_directed();
- bool directed() const;
- void set_directed(bool value);
- private:
- bool _internal_directed() const;
- void _internal_set_directed(bool value);
- public:
- // @@protoc_insertion_point(class_scope:MapMessage.Edge)
- private:
- class _Internal;
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::int32 id1_;
- ::PROTOBUF_NAMESPACE_ID::int32 id2_;
- bool directed_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_map_2eproto;
- };
- // -------------------------------------------------------------------
- class Map PROTOBUF_FINAL :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:MapMessage.Map) */ {
- public:
- inline Map() : Map(nullptr) {}
- virtual ~Map();
- Map(const Map& from);
- Map(Map&& from) noexcept
- : Map() {
- *this = ::std::move(from);
- }
- inline Map& operator=(const Map& from) {
- CopyFrom(from);
- return *this;
- }
- inline Map& operator=(Map&& from) noexcept {
- if (GetArena() == from.GetArena()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const Map& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Map* internal_default_instance() {
- return reinterpret_cast<const Map*>(
- &_Map_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 2;
- friend void swap(Map& a, Map& b) {
- a.Swap(&b);
- }
- inline void Swap(Map* other) {
- if (other == this) return;
- if (GetArena() == other->GetArena()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(Map* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- inline Map* New() const final {
- return CreateMaybeMessage<Map>(nullptr);
- }
- Map* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<Map>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const Map& from);
- void MergeFrom(const Map& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(Map* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "MapMessage.Map";
- }
- protected:
- explicit Map(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- public:
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_map_2eproto);
- return ::descriptor_table_map_2eproto.file_level_metadata[kIndexInFileMessages];
- }
- public:
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kNodesFieldNumber = 1,
- kEdgesFieldNumber = 2,
- };
- // repeated .MapMessage.Node nodes = 1;
- int nodes_size() const;
- private:
- int _internal_nodes_size() const;
- public:
- void clear_nodes();
- ::MapMessage::Node* mutable_nodes(int index);
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::MapMessage::Node >*
- mutable_nodes();
- private:
- const ::MapMessage::Node& _internal_nodes(int index) const;
- ::MapMessage::Node* _internal_add_nodes();
- public:
- const ::MapMessage::Node& nodes(int index) const;
- ::MapMessage::Node* add_nodes();
- const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::MapMessage::Node >&
- nodes() const;
- // repeated .MapMessage.Edge edges = 2;
- int edges_size() const;
- private:
- int _internal_edges_size() const;
- public:
- void clear_edges();
- ::MapMessage::Edge* mutable_edges(int index);
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::MapMessage::Edge >*
- mutable_edges();
- private:
- const ::MapMessage::Edge& _internal_edges(int index) const;
- ::MapMessage::Edge* _internal_add_edges();
- public:
- const ::MapMessage::Edge& edges(int index) const;
- ::MapMessage::Edge* add_edges();
- const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::MapMessage::Edge >&
- edges() const;
- // @@protoc_insertion_point(class_scope:MapMessage.Map)
- private:
- class _Internal;
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::MapMessage::Node > nodes_;
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::MapMessage::Edge > edges_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_map_2eproto;
- };
- // ===================================================================
- // ===================================================================
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
- #endif // __GNUC__
- // Node
- // int32 id = 1;
- inline void Node::clear_id() {
- id_ = 0;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 Node::_internal_id() const {
- return id_;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 Node::id() const {
- // @@protoc_insertion_point(field_get:MapMessage.Node.id)
- return _internal_id();
- }
- inline void Node::_internal_set_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
-
- id_ = value;
- }
- inline void Node::set_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
- _internal_set_id(value);
- // @@protoc_insertion_point(field_set:MapMessage.Node.id)
- }
- // float x = 2;
- inline void Node::clear_x() {
- x_ = 0;
- }
- inline float Node::_internal_x() const {
- return x_;
- }
- inline float Node::x() const {
- // @@protoc_insertion_point(field_get:MapMessage.Node.x)
- return _internal_x();
- }
- inline void Node::_internal_set_x(float value) {
-
- x_ = value;
- }
- inline void Node::set_x(float value) {
- _internal_set_x(value);
- // @@protoc_insertion_point(field_set:MapMessage.Node.x)
- }
- // float y = 3;
- inline void Node::clear_y() {
- y_ = 0;
- }
- inline float Node::_internal_y() const {
- return y_;
- }
- inline float Node::y() const {
- // @@protoc_insertion_point(field_get:MapMessage.Node.y)
- return _internal_y();
- }
- inline void Node::_internal_set_y(float value) {
-
- y_ = value;
- }
- inline void Node::set_y(float value) {
- _internal_set_y(value);
- // @@protoc_insertion_point(field_set:MapMessage.Node.y)
- }
- // -------------------------------------------------------------------
- // Edge
- // int32 id1 = 1;
- inline void Edge::clear_id1() {
- id1_ = 0;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 Edge::_internal_id1() const {
- return id1_;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 Edge::id1() const {
- // @@protoc_insertion_point(field_get:MapMessage.Edge.id1)
- return _internal_id1();
- }
- inline void Edge::_internal_set_id1(::PROTOBUF_NAMESPACE_ID::int32 value) {
-
- id1_ = value;
- }
- inline void Edge::set_id1(::PROTOBUF_NAMESPACE_ID::int32 value) {
- _internal_set_id1(value);
- // @@protoc_insertion_point(field_set:MapMessage.Edge.id1)
- }
- // int32 id2 = 2;
- inline void Edge::clear_id2() {
- id2_ = 0;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 Edge::_internal_id2() const {
- return id2_;
- }
- inline ::PROTOBUF_NAMESPACE_ID::int32 Edge::id2() const {
- // @@protoc_insertion_point(field_get:MapMessage.Edge.id2)
- return _internal_id2();
- }
- inline void Edge::_internal_set_id2(::PROTOBUF_NAMESPACE_ID::int32 value) {
-
- id2_ = value;
- }
- inline void Edge::set_id2(::PROTOBUF_NAMESPACE_ID::int32 value) {
- _internal_set_id2(value);
- // @@protoc_insertion_point(field_set:MapMessage.Edge.id2)
- }
- // bool directed = 3;
- inline void Edge::clear_directed() {
- directed_ = false;
- }
- inline bool Edge::_internal_directed() const {
- return directed_;
- }
- inline bool Edge::directed() const {
- // @@protoc_insertion_point(field_get:MapMessage.Edge.directed)
- return _internal_directed();
- }
- inline void Edge::_internal_set_directed(bool value) {
-
- directed_ = value;
- }
- inline void Edge::set_directed(bool value) {
- _internal_set_directed(value);
- // @@protoc_insertion_point(field_set:MapMessage.Edge.directed)
- }
- // -------------------------------------------------------------------
- // Map
- // repeated .MapMessage.Node nodes = 1;
- inline int Map::_internal_nodes_size() const {
- return nodes_.size();
- }
- inline int Map::nodes_size() const {
- return _internal_nodes_size();
- }
- inline void Map::clear_nodes() {
- nodes_.Clear();
- }
- inline ::MapMessage::Node* Map::mutable_nodes(int index) {
- // @@protoc_insertion_point(field_mutable:MapMessage.Map.nodes)
- return nodes_.Mutable(index);
- }
- inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::MapMessage::Node >*
- Map::mutable_nodes() {
- // @@protoc_insertion_point(field_mutable_list:MapMessage.Map.nodes)
- return &nodes_;
- }
- inline const ::MapMessage::Node& Map::_internal_nodes(int index) const {
- return nodes_.Get(index);
- }
- inline const ::MapMessage::Node& Map::nodes(int index) const {
- // @@protoc_insertion_point(field_get:MapMessage.Map.nodes)
- return _internal_nodes(index);
- }
- inline ::MapMessage::Node* Map::_internal_add_nodes() {
- return nodes_.Add();
- }
- inline ::MapMessage::Node* Map::add_nodes() {
- // @@protoc_insertion_point(field_add:MapMessage.Map.nodes)
- return _internal_add_nodes();
- }
- inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::MapMessage::Node >&
- Map::nodes() const {
- // @@protoc_insertion_point(field_list:MapMessage.Map.nodes)
- return nodes_;
- }
- // repeated .MapMessage.Edge edges = 2;
- inline int Map::_internal_edges_size() const {
- return edges_.size();
- }
- inline int Map::edges_size() const {
- return _internal_edges_size();
- }
- inline void Map::clear_edges() {
- edges_.Clear();
- }
- inline ::MapMessage::Edge* Map::mutable_edges(int index) {
- // @@protoc_insertion_point(field_mutable:MapMessage.Map.edges)
- return edges_.Mutable(index);
- }
- inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::MapMessage::Edge >*
- Map::mutable_edges() {
- // @@protoc_insertion_point(field_mutable_list:MapMessage.Map.edges)
- return &edges_;
- }
- inline const ::MapMessage::Edge& Map::_internal_edges(int index) const {
- return edges_.Get(index);
- }
- inline const ::MapMessage::Edge& Map::edges(int index) const {
- // @@protoc_insertion_point(field_get:MapMessage.Map.edges)
- return _internal_edges(index);
- }
- inline ::MapMessage::Edge* Map::_internal_add_edges() {
- return edges_.Add();
- }
- inline ::MapMessage::Edge* Map::add_edges() {
- // @@protoc_insertion_point(field_add:MapMessage.Map.edges)
- return _internal_add_edges();
- }
- inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::MapMessage::Edge >&
- Map::edges() const {
- // @@protoc_insertion_point(field_list:MapMessage.Map.edges)
- return edges_;
- }
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif // __GNUC__
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // @@protoc_insertion_point(namespace_scope)
- } // namespace MapMessage
- // @@protoc_insertion_point(global_scope)
- #include <google/protobuf/port_undef.inc>
- #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_map_2eproto
|