1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: osmformat.proto
3
4 #ifndef PROTOBUF_osmformat_2eproto__INCLUDED
5 #define PROTOBUF_osmformat_2eproto__INCLUDED
6
7 #include <string>
8
9 #include <google/protobuf/stubs/common.h>
10
11 #if GOOGLE_PROTOBUF_VERSION < 2003000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 2003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21
22 #include <google/protobuf/generated_message_util.h>
23 #include <google/protobuf/repeated_field.h>
24 #include <google/protobuf/extension_set.h>
25 // @@protoc_insertion_point(includes)
26
27 namespace OSMPBF {
28
29 // Internal implementation detail -- do not call these.
30 void protobuf_AddDesc_osmformat_2eproto();
31 void protobuf_AssignDesc_osmformat_2eproto();
32 void protobuf_ShutdownFile_osmformat_2eproto();
33
34 class HeaderBlock;
35 class HeaderBBox;
36 class PrimitiveBlock;
37 class PrimitiveGroup;
38 class StringTable;
39 class Info;
40 class DenseInfo;
41 class ChangeSet;
42 class Node;
43 class DenseNodes;
44 class Way;
45 class Relation;
46
47 enum Relation_MemberType {
48 Relation_MemberType_NODE = 0,
49 Relation_MemberType_WAY = 1,
50 Relation_MemberType_RELATION = 2
51 };
52 bool Relation_MemberType_IsValid(int value);
53 const Relation_MemberType Relation_MemberType_MemberType_MIN = Relation_MemberType_NODE;
54 const Relation_MemberType Relation_MemberType_MemberType_MAX = Relation_MemberType_RELATION;
55 const int Relation_MemberType_MemberType_ARRAYSIZE = Relation_MemberType_MemberType_MAX + 1;
56
57 // ===================================================================
58
59 class HeaderBlock : public ::google::protobuf::MessageLite {
60 public:
61 HeaderBlock();
62 virtual ~HeaderBlock();
63
64 HeaderBlock(const HeaderBlock& from);
65
66 inline HeaderBlock& operator=(const HeaderBlock& from) {
67 CopyFrom(from);
68 return *this;
69 }
70
71 static const HeaderBlock& default_instance();
72
73 void Swap(HeaderBlock* other);
74
75 // implements Message ----------------------------------------------
76
77 HeaderBlock* New() const;
78 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
79 void CopyFrom(const HeaderBlock& from);
80 void MergeFrom(const HeaderBlock& from);
81 void Clear();
82 bool IsInitialized() const;
83
84 int ByteSize() const;
85 bool MergePartialFromCodedStream(
86 ::google::protobuf::io::CodedInputStream* input);
87 void SerializeWithCachedSizes(
88 ::google::protobuf::io::CodedOutputStream* output) const;
GetCachedSize()89 int GetCachedSize() const { return _cached_size_; }
90 private:
91 void SharedCtor();
92 void SharedDtor();
93 void SetCachedSize(int size) const;
94 public:
95
96 ::std::string GetTypeName() const;
97
98 // nested types ----------------------------------------------------
99
100 // accessors -------------------------------------------------------
101
102 // optional .OSMPBF.HeaderBBox bbox = 1;
103 inline bool has_bbox() const;
104 inline void clear_bbox();
105 static const int kBboxFieldNumber = 1;
106 inline const ::OSMPBF::HeaderBBox& bbox() const;
107 inline ::OSMPBF::HeaderBBox* mutable_bbox();
108
109 // repeated string required_features = 4;
110 inline int required_features_size() const;
111 inline void clear_required_features();
112 static const int kRequiredFeaturesFieldNumber = 4;
113 inline const ::std::string& required_features(int index) const;
114 inline ::std::string* mutable_required_features(int index);
115 inline void set_required_features(int index, const ::std::string& value);
116 inline void set_required_features(int index, const char* value);
117 inline void set_required_features(int index, const char* value, size_t size);
118 inline ::std::string* add_required_features();
119 inline void add_required_features(const ::std::string& value);
120 inline void add_required_features(const char* value);
121 inline void add_required_features(const char* value, size_t size);
122 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& required_features() const;
123 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_required_features();
124
125 // repeated string optional_features = 5;
126 inline int optional_features_size() const;
127 inline void clear_optional_features();
128 static const int kOptionalFeaturesFieldNumber = 5;
129 inline const ::std::string& optional_features(int index) const;
130 inline ::std::string* mutable_optional_features(int index);
131 inline void set_optional_features(int index, const ::std::string& value);
132 inline void set_optional_features(int index, const char* value);
133 inline void set_optional_features(int index, const char* value, size_t size);
134 inline ::std::string* add_optional_features();
135 inline void add_optional_features(const ::std::string& value);
136 inline void add_optional_features(const char* value);
137 inline void add_optional_features(const char* value, size_t size);
138 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& optional_features() const;
139 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_optional_features();
140
141 // optional string writingprogram = 16;
142 inline bool has_writingprogram() const;
143 inline void clear_writingprogram();
144 static const int kWritingprogramFieldNumber = 16;
145 inline const ::std::string& writingprogram() const;
146 inline void set_writingprogram(const ::std::string& value);
147 inline void set_writingprogram(const char* value);
148 inline void set_writingprogram(const char* value, size_t size);
149 inline ::std::string* mutable_writingprogram();
150
151 // optional string source = 17;
152 inline bool has_source() const;
153 inline void clear_source();
154 static const int kSourceFieldNumber = 17;
155 inline const ::std::string& source() const;
156 inline void set_source(const ::std::string& value);
157 inline void set_source(const char* value);
158 inline void set_source(const char* value, size_t size);
159 inline ::std::string* mutable_source();
160
161 // @@protoc_insertion_point(class_scope:OSMPBF.HeaderBlock)
162 private:
163 mutable int _cached_size_;
164
165 ::OSMPBF::HeaderBBox* bbox_;
166 ::google::protobuf::RepeatedPtrField< ::std::string> required_features_;
167 ::google::protobuf::RepeatedPtrField< ::std::string> optional_features_;
168 ::std::string* writingprogram_;
169 static const ::std::string _default_writingprogram_;
170 ::std::string* source_;
171 static const ::std::string _default_source_;
172 friend void protobuf_AddDesc_osmformat_2eproto();
173 friend void protobuf_AssignDesc_osmformat_2eproto();
174 friend void protobuf_ShutdownFile_osmformat_2eproto();
175
176 ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
177
178 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
_has_bit(int index)179 inline bool _has_bit(int index) const {
180 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
181 }
_set_bit(int index)182 inline void _set_bit(int index) {
183 _has_bits_[index / 32] |= (1u << (index % 32));
184 }
_clear_bit(int index)185 inline void _clear_bit(int index) {
186 _has_bits_[index / 32] &= ~(1u << (index % 32));
187 }
188
189 void InitAsDefaultInstance();
190 static HeaderBlock* default_instance_;
191 };
192 // -------------------------------------------------------------------
193
194 class HeaderBBox : public ::google::protobuf::MessageLite {
195 public:
196 HeaderBBox();
197 virtual ~HeaderBBox();
198
199 HeaderBBox(const HeaderBBox& from);
200
201 inline HeaderBBox& operator=(const HeaderBBox& from) {
202 CopyFrom(from);
203 return *this;
204 }
205
206 static const HeaderBBox& default_instance();
207
208 void Swap(HeaderBBox* other);
209
210 // implements Message ----------------------------------------------
211
212 HeaderBBox* New() const;
213 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
214 void CopyFrom(const HeaderBBox& from);
215 void MergeFrom(const HeaderBBox& from);
216 void Clear();
217 bool IsInitialized() const;
218
219 int ByteSize() const;
220 bool MergePartialFromCodedStream(
221 ::google::protobuf::io::CodedInputStream* input);
222 void SerializeWithCachedSizes(
223 ::google::protobuf::io::CodedOutputStream* output) const;
GetCachedSize()224 int GetCachedSize() const { return _cached_size_; }
225 private:
226 void SharedCtor();
227 void SharedDtor();
228 void SetCachedSize(int size) const;
229 public:
230
231 ::std::string GetTypeName() const;
232
233 // nested types ----------------------------------------------------
234
235 // accessors -------------------------------------------------------
236
237 // required sint64 left = 1;
238 inline bool has_left() const;
239 inline void clear_left();
240 static const int kLeftFieldNumber = 1;
241 inline ::google::protobuf::int64 left() const;
242 inline void set_left(::google::protobuf::int64 value);
243
244 // required sint64 right = 2;
245 inline bool has_right() const;
246 inline void clear_right();
247 static const int kRightFieldNumber = 2;
248 inline ::google::protobuf::int64 right() const;
249 inline void set_right(::google::protobuf::int64 value);
250
251 // required sint64 top = 3;
252 inline bool has_top() const;
253 inline void clear_top();
254 static const int kTopFieldNumber = 3;
255 inline ::google::protobuf::int64 top() const;
256 inline void set_top(::google::protobuf::int64 value);
257
258 // required sint64 bottom = 4;
259 inline bool has_bottom() const;
260 inline void clear_bottom();
261 static const int kBottomFieldNumber = 4;
262 inline ::google::protobuf::int64 bottom() const;
263 inline void set_bottom(::google::protobuf::int64 value);
264
265 // @@protoc_insertion_point(class_scope:OSMPBF.HeaderBBox)
266 private:
267 mutable int _cached_size_;
268
269 ::google::protobuf::int64 left_;
270 ::google::protobuf::int64 right_;
271 ::google::protobuf::int64 top_;
272 ::google::protobuf::int64 bottom_;
273 friend void protobuf_AddDesc_osmformat_2eproto();
274 friend void protobuf_AssignDesc_osmformat_2eproto();
275 friend void protobuf_ShutdownFile_osmformat_2eproto();
276
277 ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
278
279 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
_has_bit(int index)280 inline bool _has_bit(int index) const {
281 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
282 }
_set_bit(int index)283 inline void _set_bit(int index) {
284 _has_bits_[index / 32] |= (1u << (index % 32));
285 }
_clear_bit(int index)286 inline void _clear_bit(int index) {
287 _has_bits_[index / 32] &= ~(1u << (index % 32));
288 }
289
290 void InitAsDefaultInstance();
291 static HeaderBBox* default_instance_;
292 };
293 // -------------------------------------------------------------------
294
295 class PrimitiveBlock : public ::google::protobuf::MessageLite {
296 public:
297 PrimitiveBlock();
298 virtual ~PrimitiveBlock();
299
300 PrimitiveBlock(const PrimitiveBlock& from);
301
302 inline PrimitiveBlock& operator=(const PrimitiveBlock& from) {
303 CopyFrom(from);
304 return *this;
305 }
306
307 static const PrimitiveBlock& default_instance();
308
309 void Swap(PrimitiveBlock* other);
310
311 // implements Message ----------------------------------------------
312
313 PrimitiveBlock* New() const;
314 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
315 void CopyFrom(const PrimitiveBlock& from);
316 void MergeFrom(const PrimitiveBlock& from);
317 void Clear();
318 bool IsInitialized() const;
319
320 int ByteSize() const;
321 bool MergePartialFromCodedStream(
322 ::google::protobuf::io::CodedInputStream* input);
323 void SerializeWithCachedSizes(
324 ::google::protobuf::io::CodedOutputStream* output) const;
GetCachedSize()325 int GetCachedSize() const { return _cached_size_; }
326 private:
327 void SharedCtor();
328 void SharedDtor();
329 void SetCachedSize(int size) const;
330 public:
331
332 ::std::string GetTypeName() const;
333
334 // nested types ----------------------------------------------------
335
336 // accessors -------------------------------------------------------
337
338 // required .OSMPBF.StringTable stringtable = 1;
339 inline bool has_stringtable() const;
340 inline void clear_stringtable();
341 static const int kStringtableFieldNumber = 1;
342 inline const ::OSMPBF::StringTable& stringtable() const;
343 inline ::OSMPBF::StringTable* mutable_stringtable();
344
345 // repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;
346 inline int primitivegroup_size() const;
347 inline void clear_primitivegroup();
348 static const int kPrimitivegroupFieldNumber = 2;
349 inline const ::OSMPBF::PrimitiveGroup& primitivegroup(int index) const;
350 inline ::OSMPBF::PrimitiveGroup* mutable_primitivegroup(int index);
351 inline ::OSMPBF::PrimitiveGroup* add_primitivegroup();
352 inline const ::google::protobuf::RepeatedPtrField< ::OSMPBF::PrimitiveGroup >&
353 primitivegroup() const;
354 inline ::google::protobuf::RepeatedPtrField< ::OSMPBF::PrimitiveGroup >*
355 mutable_primitivegroup();
356
357 // optional int32 granularity = 17 [default = 100];
358 inline bool has_granularity() const;
359 inline void clear_granularity();
360 static const int kGranularityFieldNumber = 17;
361 inline ::google::protobuf::int32 granularity() const;
362 inline void set_granularity(::google::protobuf::int32 value);
363
364 // optional int64 lat_offset = 19 [default = 0];
365 inline bool has_lat_offset() const;
366 inline void clear_lat_offset();
367 static const int kLatOffsetFieldNumber = 19;
368 inline ::google::protobuf::int64 lat_offset() const;
369 inline void set_lat_offset(::google::protobuf::int64 value);
370
371 // optional int64 lon_offset = 20 [default = 0];
372 inline bool has_lon_offset() const;
373 inline void clear_lon_offset();
374 static const int kLonOffsetFieldNumber = 20;
375 inline ::google::protobuf::int64 lon_offset() const;
376 inline void set_lon_offset(::google::protobuf::int64 value);
377
378 // optional int32 date_granularity = 18 [default = 1000];
379 inline bool has_date_granularity() const;
380 inline void clear_date_granularity();
381 static const int kDateGranularityFieldNumber = 18;
382 inline ::google::protobuf::int32 date_granularity() const;
383 inline void set_date_granularity(::google::protobuf::int32 value);
384
385 // @@protoc_insertion_point(class_scope:OSMPBF.PrimitiveBlock)
386 private:
387 mutable int _cached_size_;
388
389 ::OSMPBF::StringTable* stringtable_;
390 ::google::protobuf::RepeatedPtrField< ::OSMPBF::PrimitiveGroup > primitivegroup_;
391 ::google::protobuf::int32 granularity_;
392 ::google::protobuf::int64 lat_offset_;
393 ::google::protobuf::int64 lon_offset_;
394 ::google::protobuf::int32 date_granularity_;
395 friend void protobuf_AddDesc_osmformat_2eproto();
396 friend void protobuf_AssignDesc_osmformat_2eproto();
397 friend void protobuf_ShutdownFile_osmformat_2eproto();
398
399 ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32];
400
401 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
_has_bit(int index)402 inline bool _has_bit(int index) const {
403 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
404 }
_set_bit(int index)405 inline void _set_bit(int index) {
406 _has_bits_[index / 32] |= (1u << (index % 32));
407 }
_clear_bit(int index)408 inline void _clear_bit(int index) {
409 _has_bits_[index / 32] &= ~(1u << (index % 32));
410 }
411
412 void InitAsDefaultInstance();
413 static PrimitiveBlock* default_instance_;
414 };
415 // -------------------------------------------------------------------
416
417 class PrimitiveGroup : public ::google::protobuf::MessageLite {
418 public:
419 PrimitiveGroup();
420 virtual ~PrimitiveGroup();
421
422 PrimitiveGroup(const PrimitiveGroup& from);
423
424 inline PrimitiveGroup& operator=(const PrimitiveGroup& from) {
425 CopyFrom(from);
426 return *this;
427 }
428
429 static const PrimitiveGroup& default_instance();
430
431 void Swap(PrimitiveGroup* other);
432
433 // implements Message ----------------------------------------------
434
435 PrimitiveGroup* New() const;
436 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
437 void CopyFrom(const PrimitiveGroup& from);
438 void MergeFrom(const PrimitiveGroup& from);
439 void Clear();
440 bool IsInitialized() const;
441
442 int ByteSize() const;
443 bool MergePartialFromCodedStream(
444 ::google::protobuf::io::CodedInputStream* input);
445 void SerializeWithCachedSizes(
446 ::google::protobuf::io::CodedOutputStream* output) const;
GetCachedSize()447 int GetCachedSize() const { return _cached_size_; }
448 private:
449 void SharedCtor();
450 void SharedDtor();
451 void SetCachedSize(int size) const;
452 public:
453
454 ::std::string GetTypeName() const;
455
456 // nested types ----------------------------------------------------
457
458 // accessors -------------------------------------------------------
459
460 // repeated .OSMPBF.Node nodes = 1;
461 inline int nodes_size() const;
462 inline void clear_nodes();
463 static const int kNodesFieldNumber = 1;
464 inline const ::OSMPBF::Node& nodes(int index) const;
465 inline ::OSMPBF::Node* mutable_nodes(int index);
466 inline ::OSMPBF::Node* add_nodes();
467 inline const ::google::protobuf::RepeatedPtrField< ::OSMPBF::Node >&
468 nodes() const;
469 inline ::google::protobuf::RepeatedPtrField< ::OSMPBF::Node >*
470 mutable_nodes();
471
472 // optional .OSMPBF.DenseNodes dense = 2;
473 inline bool has_dense() const;
474 inline void clear_dense();
475 static const int kDenseFieldNumber = 2;
476 inline const ::OSMPBF::DenseNodes& dense() const;
477 inline ::OSMPBF::DenseNodes* mutable_dense();
478
479 // repeated .OSMPBF.Way ways = 3;
480 inline int ways_size() const;
481 inline void clear_ways();
482 static const int kWaysFieldNumber = 3;
483 inline const ::OSMPBF::Way& ways(int index) const;
484 inline ::OSMPBF::Way* mutable_ways(int index);
485 inline ::OSMPBF::Way* add_ways();
486 inline const ::google::protobuf::RepeatedPtrField< ::OSMPBF::Way >&
487 ways() const;
488 inline ::google::protobuf::RepeatedPtrField< ::OSMPBF::Way >*
489 mutable_ways();
490
491 // repeated .OSMPBF.Relation relations = 4;
492 inline int relations_size() const;
493 inline void clear_relations();
494 static const int kRelationsFieldNumber = 4;
495 inline const ::OSMPBF::Relation& relations(int index) const;
496 inline ::OSMPBF::Relation* mutable_relations(int index);
497 inline ::OSMPBF::Relation* add_relations();
498 inline const ::google::protobuf::RepeatedPtrField< ::OSMPBF::Relation >&
499 relations() const;
500 inline ::google::protobuf::RepeatedPtrField< ::OSMPBF::Relation >*
501 mutable_relations();
502
503 // repeated .OSMPBF.ChangeSet changesets = 5;
504 inline int changesets_size() const;
505 inline void clear_changesets();
506 static const int kChangesetsFieldNumber = 5;
507 inline const ::OSMPBF::ChangeSet& changesets(int index) const;
508 inline ::OSMPBF::ChangeSet* mutable_changesets(int index);
509 inline ::OSMPBF::ChangeSet* add_changesets();
510 inline const ::google::protobuf::RepeatedPtrField< ::OSMPBF::ChangeSet >&
511 changesets() const;
512 inline ::google::protobuf::RepeatedPtrField< ::OSMPBF::ChangeSet >*
513 mutable_changesets();
514
515 // @@protoc_insertion_point(class_scope:OSMPBF.PrimitiveGroup)
516 private:
517 mutable int _cached_size_;
518
519 ::google::protobuf::RepeatedPtrField< ::OSMPBF::Node > nodes_;
520 ::OSMPBF::DenseNodes* dense_;
521 ::google::protobuf::RepeatedPtrField< ::OSMPBF::Way > ways_;
522 ::google::protobuf::RepeatedPtrField< ::OSMPBF::Relation > relations_;
523 ::google::protobuf::RepeatedPtrField< ::OSMPBF::ChangeSet > changesets_;
524 friend void protobuf_AddDesc_osmformat_2eproto();
525 friend void protobuf_AssignDesc_osmformat_2eproto();
526 friend void protobuf_ShutdownFile_osmformat_2eproto();
527
528 ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
529
530 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
_has_bit(int index)531 inline bool _has_bit(int index) const {
532 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
533 }
_set_bit(int index)534 inline void _set_bit(int index) {
535 _has_bits_[index / 32] |= (1u << (index % 32));
536 }
_clear_bit(int index)537 inline void _clear_bit(int index) {
538 _has_bits_[index / 32] &= ~(1u << (index % 32));
539 }
540
541 void InitAsDefaultInstance();
542 static PrimitiveGroup* default_instance_;
543 };
544 // -------------------------------------------------------------------
545
546 class StringTable : public ::google::protobuf::MessageLite {
547 public:
548 StringTable();
549 virtual ~StringTable();
550
551 StringTable(const StringTable& from);
552
553 inline StringTable& operator=(const StringTable& from) {
554 CopyFrom(from);
555 return *this;
556 }
557
558 static const StringTable& default_instance();
559
560 void Swap(StringTable* other);
561
562 // implements Message ----------------------------------------------
563
564 StringTable* New() const;
565 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
566 void CopyFrom(const StringTable& from);
567 void MergeFrom(const StringTable& from);
568 void Clear();
569 bool IsInitialized() const;
570
571 int ByteSize() const;
572 bool MergePartialFromCodedStream(
573 ::google::protobuf::io::CodedInputStream* input);
574 void SerializeWithCachedSizes(
575 ::google::protobuf::io::CodedOutputStream* output) const;
GetCachedSize()576 int GetCachedSize() const { return _cached_size_; }
577 private:
578 void SharedCtor();
579 void SharedDtor();
580 void SetCachedSize(int size) const;
581 public:
582
583 ::std::string GetTypeName() const;
584
585 // nested types ----------------------------------------------------
586
587 // accessors -------------------------------------------------------
588
589 // repeated bytes s = 1;
590 inline int s_size() const;
591 inline void clear_s();
592 static const int kSFieldNumber = 1;
593 inline const ::std::string& s(int index) const;
594 inline ::std::string* mutable_s(int index);
595 inline void set_s(int index, const ::std::string& value);
596 inline void set_s(int index, const char* value);
597 inline void set_s(int index, const void* value, size_t size);
598 inline ::std::string* add_s();
599 inline void add_s(const ::std::string& value);
600 inline void add_s(const char* value);
601 inline void add_s(const void* value, size_t size);
602 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& s() const;
603 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_s();
604
605 // @@protoc_insertion_point(class_scope:OSMPBF.StringTable)
606 private:
607 mutable int _cached_size_;
608
609 ::google::protobuf::RepeatedPtrField< ::std::string> s_;
610 friend void protobuf_AddDesc_osmformat_2eproto();
611 friend void protobuf_AssignDesc_osmformat_2eproto();
612 friend void protobuf_ShutdownFile_osmformat_2eproto();
613
614 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
615
616 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
_has_bit(int index)617 inline bool _has_bit(int index) const {
618 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
619 }
_set_bit(int index)620 inline void _set_bit(int index) {
621 _has_bits_[index / 32] |= (1u << (index % 32));
622 }
_clear_bit(int index)623 inline void _clear_bit(int index) {
624 _has_bits_[index / 32] &= ~(1u << (index % 32));
625 }
626
627 void InitAsDefaultInstance();
628 static StringTable* default_instance_;
629 };
630 // -------------------------------------------------------------------
631
632 class Info : public ::google::protobuf::MessageLite {
633 public:
634 Info();
635 virtual ~Info();
636
637 Info(const Info& from);
638
639 inline Info& operator=(const Info& from) {
640 CopyFrom(from);
641 return *this;
642 }
643
644 static const Info& default_instance();
645
646 void Swap(Info* other);
647
648 // implements Message ----------------------------------------------
649
650 Info* New() const;
651 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
652 void CopyFrom(const Info& from);
653 void MergeFrom(const Info& from);
654 void Clear();
655 bool IsInitialized() const;
656
657 int ByteSize() const;
658 bool MergePartialFromCodedStream(
659 ::google::protobuf::io::CodedInputStream* input);
660 void SerializeWithCachedSizes(
661 ::google::protobuf::io::CodedOutputStream* output) const;
GetCachedSize()662 int GetCachedSize() const { return _cached_size_; }
663 private:
664 void SharedCtor();
665 void SharedDtor();
666 void SetCachedSize(int size) const;
667 public:
668
669 ::std::string GetTypeName() const;
670
671 // nested types ----------------------------------------------------
672
673 // accessors -------------------------------------------------------
674
675 // optional int32 version = 1 [default = -1];
676 inline bool has_version() const;
677 inline void clear_version();
678 static const int kVersionFieldNumber = 1;
679 inline ::google::protobuf::int32 version() const;
680 inline void set_version(::google::protobuf::int32 value);
681
682 // optional int64 timestamp = 2;
683 inline bool has_timestamp() const;
684 inline void clear_timestamp();
685 static const int kTimestampFieldNumber = 2;
686 inline ::google::protobuf::int64 timestamp() const;
687 inline void set_timestamp(::google::protobuf::int64 value);
688
689 // optional int64 changeset = 3;
690 inline bool has_changeset() const;
691 inline void clear_changeset();
692 static const int kChangesetFieldNumber = 3;
693 inline ::google::protobuf::int64 changeset() const;
694 inline void set_changeset(::google::protobuf::int64 value);
695
696 // optional int32 uid = 4;
697 inline bool has_uid() const;
698 inline void clear_uid();
699 static const int kUidFieldNumber = 4;
700 inline ::google::protobuf::int32 uid() const;
701 inline void set_uid(::google::protobuf::int32 value);
702
703 // optional uint32 user_sid = 5;
704 inline bool has_user_sid() const;
705 inline void clear_user_sid();
706 static const int kUserSidFieldNumber = 5;
707 inline ::google::protobuf::uint32 user_sid() const;
708 inline void set_user_sid(::google::protobuf::uint32 value);
709
710 // @@protoc_insertion_point(class_scope:OSMPBF.Info)
711 private:
712 mutable int _cached_size_;
713
714 ::google::protobuf::int32 version_;
715 ::google::protobuf::int64 timestamp_;
716 ::google::protobuf::int64 changeset_;
717 ::google::protobuf::int32 uid_;
718 ::google::protobuf::uint32 user_sid_;
719 friend void protobuf_AddDesc_osmformat_2eproto();
720 friend void protobuf_AssignDesc_osmformat_2eproto();
721 friend void protobuf_ShutdownFile_osmformat_2eproto();
722
723 ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
724
725 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
_has_bit(int index)726 inline bool _has_bit(int index) const {
727 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
728 }
_set_bit(int index)729 inline void _set_bit(int index) {
730 _has_bits_[index / 32] |= (1u << (index % 32));
731 }
_clear_bit(int index)732 inline void _clear_bit(int index) {
733 _has_bits_[index / 32] &= ~(1u << (index % 32));
734 }
735
736 void InitAsDefaultInstance();
737 static Info* default_instance_;
738 };
739 // -------------------------------------------------------------------
740
741 class DenseInfo : public ::google::protobuf::MessageLite {
742 public:
743 DenseInfo();
744 virtual ~DenseInfo();
745
746 DenseInfo(const DenseInfo& from);
747
748 inline DenseInfo& operator=(const DenseInfo& from) {
749 CopyFrom(from);
750 return *this;
751 }
752
753 static const DenseInfo& default_instance();
754
755 void Swap(DenseInfo* other);
756
757 // implements Message ----------------------------------------------
758
759 DenseInfo* New() const;
760 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
761 void CopyFrom(const DenseInfo& from);
762 void MergeFrom(const DenseInfo& from);
763 void Clear();
764 bool IsInitialized() const;
765
766 int ByteSize() const;
767 bool MergePartialFromCodedStream(
768 ::google::protobuf::io::CodedInputStream* input);
769 void SerializeWithCachedSizes(
770 ::google::protobuf::io::CodedOutputStream* output) const;
GetCachedSize()771 int GetCachedSize() const { return _cached_size_; }
772 private:
773 void SharedCtor();
774 void SharedDtor();
775 void SetCachedSize(int size) const;
776 public:
777
778 ::std::string GetTypeName() const;
779
780 // nested types ----------------------------------------------------
781
782 // accessors -------------------------------------------------------
783
784 // repeated int32 version = 1 [packed = true];
785 inline int version_size() const;
786 inline void clear_version();
787 static const int kVersionFieldNumber = 1;
788 inline ::google::protobuf::int32 version(int index) const;
789 inline void set_version(int index, ::google::protobuf::int32 value);
790 inline void add_version(::google::protobuf::int32 value);
791 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
792 version() const;
793 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
794 mutable_version();
795
796 // repeated sint64 timestamp = 2 [packed = true];
797 inline int timestamp_size() const;
798 inline void clear_timestamp();
799 static const int kTimestampFieldNumber = 2;
800 inline ::google::protobuf::int64 timestamp(int index) const;
801 inline void set_timestamp(int index, ::google::protobuf::int64 value);
802 inline void add_timestamp(::google::protobuf::int64 value);
803 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
804 timestamp() const;
805 inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
806 mutable_timestamp();
807
808 // repeated sint64 changeset = 3 [packed = true];
809 inline int changeset_size() const;
810 inline void clear_changeset();
811 static const int kChangesetFieldNumber = 3;
812 inline ::google::protobuf::int64 changeset(int index) const;
813 inline void set_changeset(int index, ::google::protobuf::int64 value);
814 inline void add_changeset(::google::protobuf::int64 value);
815 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
816 changeset() const;
817 inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
818 mutable_changeset();
819
820 // repeated sint32 uid = 4 [packed = true];
821 inline int uid_size() const;
822 inline void clear_uid();
823 static const int kUidFieldNumber = 4;
824 inline ::google::protobuf::int32 uid(int index) const;
825 inline void set_uid(int index, ::google::protobuf::int32 value);
826 inline void add_uid(::google::protobuf::int32 value);
827 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
828 uid() const;
829 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
830 mutable_uid();
831
832 // repeated sint32 user_sid = 5 [packed = true];
833 inline int user_sid_size() const;
834 inline void clear_user_sid();
835 static const int kUserSidFieldNumber = 5;
836 inline ::google::protobuf::int32 user_sid(int index) const;
837 inline void set_user_sid(int index, ::google::protobuf::int32 value);
838 inline void add_user_sid(::google::protobuf::int32 value);
839 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
840 user_sid() const;
841 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
842 mutable_user_sid();
843
844 // @@protoc_insertion_point(class_scope:OSMPBF.DenseInfo)
845 private:
846 mutable int _cached_size_;
847
848 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > version_;
849 mutable int _version_cached_byte_size_;
850 ::google::protobuf::RepeatedField< ::google::protobuf::int64 > timestamp_;
851 mutable int _timestamp_cached_byte_size_;
852 ::google::protobuf::RepeatedField< ::google::protobuf::int64 > changeset_;
853 mutable int _changeset_cached_byte_size_;
854 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > uid_;
855 mutable int _uid_cached_byte_size_;
856 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > user_sid_;
857 mutable int _user_sid_cached_byte_size_;
858 friend void protobuf_AddDesc_osmformat_2eproto();
859 friend void protobuf_AssignDesc_osmformat_2eproto();
860 friend void protobuf_ShutdownFile_osmformat_2eproto();
861
862 ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
863
864 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
_has_bit(int index)865 inline bool _has_bit(int index) const {
866 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
867 }
_set_bit(int index)868 inline void _set_bit(int index) {
869 _has_bits_[index / 32] |= (1u << (index % 32));
870 }
_clear_bit(int index)871 inline void _clear_bit(int index) {
872 _has_bits_[index / 32] &= ~(1u << (index % 32));
873 }
874
875 void InitAsDefaultInstance();
876 static DenseInfo* default_instance_;
877 };
878 // -------------------------------------------------------------------
879
880 class ChangeSet : public ::google::protobuf::MessageLite {
881 public:
882 ChangeSet();
883 virtual ~ChangeSet();
884
885 ChangeSet(const ChangeSet& from);
886
887 inline ChangeSet& operator=(const ChangeSet& from) {
888 CopyFrom(from);
889 return *this;
890 }
891
892 static const ChangeSet& default_instance();
893
894 void Swap(ChangeSet* other);
895
896 // implements Message ----------------------------------------------
897
898 ChangeSet* New() const;
899 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
900 void CopyFrom(const ChangeSet& from);
901 void MergeFrom(const ChangeSet& from);
902 void Clear();
903 bool IsInitialized() const;
904
905 int ByteSize() const;
906 bool MergePartialFromCodedStream(
907 ::google::protobuf::io::CodedInputStream* input);
908 void SerializeWithCachedSizes(
909 ::google::protobuf::io::CodedOutputStream* output) const;
GetCachedSize()910 int GetCachedSize() const { return _cached_size_; }
911 private:
912 void SharedCtor();
913 void SharedDtor();
914 void SetCachedSize(int size) const;
915 public:
916
917 ::std::string GetTypeName() const;
918
919 // nested types ----------------------------------------------------
920
921 // accessors -------------------------------------------------------
922
923 // required int64 id = 1;
924 inline bool has_id() const;
925 inline void clear_id();
926 static const int kIdFieldNumber = 1;
927 inline ::google::protobuf::int64 id() const;
928 inline void set_id(::google::protobuf::int64 value);
929
930 // @@protoc_insertion_point(class_scope:OSMPBF.ChangeSet)
931 private:
932 mutable int _cached_size_;
933
934 ::google::protobuf::int64 id_;
935 friend void protobuf_AddDesc_osmformat_2eproto();
936 friend void protobuf_AssignDesc_osmformat_2eproto();
937 friend void protobuf_ShutdownFile_osmformat_2eproto();
938
939 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
940
941 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
_has_bit(int index)942 inline bool _has_bit(int index) const {
943 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
944 }
_set_bit(int index)945 inline void _set_bit(int index) {
946 _has_bits_[index / 32] |= (1u << (index % 32));
947 }
_clear_bit(int index)948 inline void _clear_bit(int index) {
949 _has_bits_[index / 32] &= ~(1u << (index % 32));
950 }
951
952 void InitAsDefaultInstance();
953 static ChangeSet* default_instance_;
954 };
955 // -------------------------------------------------------------------
956
957 class Node : public ::google::protobuf::MessageLite {
958 public:
959 Node();
960 virtual ~Node();
961
962 Node(const Node& from);
963
964 inline Node& operator=(const Node& from) {
965 CopyFrom(from);
966 return *this;
967 }
968
969 static const Node& default_instance();
970
971 void Swap(Node* other);
972
973 // implements Message ----------------------------------------------
974
975 Node* New() const;
976 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
977 void CopyFrom(const Node& from);
978 void MergeFrom(const Node& from);
979 void Clear();
980 bool IsInitialized() const;
981
982 int ByteSize() const;
983 bool MergePartialFromCodedStream(
984 ::google::protobuf::io::CodedInputStream* input);
985 void SerializeWithCachedSizes(
986 ::google::protobuf::io::CodedOutputStream* output) const;
GetCachedSize()987 int GetCachedSize() const { return _cached_size_; }
988 private:
989 void SharedCtor();
990 void SharedDtor();
991 void SetCachedSize(int size) const;
992 public:
993
994 ::std::string GetTypeName() const;
995
996 // nested types ----------------------------------------------------
997
998 // accessors -------------------------------------------------------
999
1000 // required sint64 id = 1;
1001 inline bool has_id() const;
1002 inline void clear_id();
1003 static const int kIdFieldNumber = 1;
1004 inline ::google::protobuf::int64 id() const;
1005 inline void set_id(::google::protobuf::int64 value);
1006
1007 // repeated uint32 keys = 2 [packed = true];
1008 inline int keys_size() const;
1009 inline void clear_keys();
1010 static const int kKeysFieldNumber = 2;
1011 inline ::google::protobuf::uint32 keys(int index) const;
1012 inline void set_keys(int index, ::google::protobuf::uint32 value);
1013 inline void add_keys(::google::protobuf::uint32 value);
1014 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
1015 keys() const;
1016 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
1017 mutable_keys();
1018
1019 // repeated uint32 vals = 3 [packed = true];
1020 inline int vals_size() const;
1021 inline void clear_vals();
1022 static const int kValsFieldNumber = 3;
1023 inline ::google::protobuf::uint32 vals(int index) const;
1024 inline void set_vals(int index, ::google::protobuf::uint32 value);
1025 inline void add_vals(::google::protobuf::uint32 value);
1026 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
1027 vals() const;
1028 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
1029 mutable_vals();
1030
1031 // optional .OSMPBF.Info info = 4;
1032 inline bool has_info() const;
1033 inline void clear_info();
1034 static const int kInfoFieldNumber = 4;
1035 inline const ::OSMPBF::Info& info() const;
1036 inline ::OSMPBF::Info* mutable_info();
1037
1038 // required sint64 lat = 8;
1039 inline bool has_lat() const;
1040 inline void clear_lat();
1041 static const int kLatFieldNumber = 8;
1042 inline ::google::protobuf::int64 lat() const;
1043 inline void set_lat(::google::protobuf::int64 value);
1044
1045 // required sint64 lon = 9;
1046 inline bool has_lon() const;
1047 inline void clear_lon();
1048 static const int kLonFieldNumber = 9;
1049 inline ::google::protobuf::int64 lon() const;
1050 inline void set_lon(::google::protobuf::int64 value);
1051
1052 // @@protoc_insertion_point(class_scope:OSMPBF.Node)
1053 private:
1054 mutable int _cached_size_;
1055
1056 ::google::protobuf::int64 id_;
1057 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > keys_;
1058 mutable int _keys_cached_byte_size_;
1059 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > vals_;
1060 mutable int _vals_cached_byte_size_;
1061 ::OSMPBF::Info* info_;
1062 ::google::protobuf::int64 lat_;
1063 ::google::protobuf::int64 lon_;
1064 friend void protobuf_AddDesc_osmformat_2eproto();
1065 friend void protobuf_AssignDesc_osmformat_2eproto();
1066 friend void protobuf_ShutdownFile_osmformat_2eproto();
1067
1068 ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32];
1069
1070 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
_has_bit(int index)1071 inline bool _has_bit(int index) const {
1072 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
1073 }
_set_bit(int index)1074 inline void _set_bit(int index) {
1075 _has_bits_[index / 32] |= (1u << (index % 32));
1076 }
_clear_bit(int index)1077 inline void _clear_bit(int index) {
1078 _has_bits_[index / 32] &= ~(1u << (index % 32));
1079 }
1080
1081 void InitAsDefaultInstance();
1082 static Node* default_instance_;
1083 };
1084 // -------------------------------------------------------------------
1085
1086 class DenseNodes : public ::google::protobuf::MessageLite {
1087 public:
1088 DenseNodes();
1089 virtual ~DenseNodes();
1090
1091 DenseNodes(const DenseNodes& from);
1092
1093 inline DenseNodes& operator=(const DenseNodes& from) {
1094 CopyFrom(from);
1095 return *this;
1096 }
1097
1098 static const DenseNodes& default_instance();
1099
1100 void Swap(DenseNodes* other);
1101
1102 // implements Message ----------------------------------------------
1103
1104 DenseNodes* New() const;
1105 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
1106 void CopyFrom(const DenseNodes& from);
1107 void MergeFrom(const DenseNodes& from);
1108 void Clear();
1109 bool IsInitialized() const;
1110
1111 int ByteSize() const;
1112 bool MergePartialFromCodedStream(
1113 ::google::protobuf::io::CodedInputStream* input);
1114 void SerializeWithCachedSizes(
1115 ::google::protobuf::io::CodedOutputStream* output) const;
GetCachedSize()1116 int GetCachedSize() const { return _cached_size_; }
1117 private:
1118 void SharedCtor();
1119 void SharedDtor();
1120 void SetCachedSize(int size) const;
1121 public:
1122
1123 ::std::string GetTypeName() const;
1124
1125 // nested types ----------------------------------------------------
1126
1127 // accessors -------------------------------------------------------
1128
1129 // repeated sint64 id = 1 [packed = true];
1130 inline int id_size() const;
1131 inline void clear_id();
1132 static const int kIdFieldNumber = 1;
1133 inline ::google::protobuf::int64 id(int index) const;
1134 inline void set_id(int index, ::google::protobuf::int64 value);
1135 inline void add_id(::google::protobuf::int64 value);
1136 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
1137 id() const;
1138 inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
1139 mutable_id();
1140
1141 // optional .OSMPBF.DenseInfo denseinfo = 5;
1142 inline bool has_denseinfo() const;
1143 inline void clear_denseinfo();
1144 static const int kDenseinfoFieldNumber = 5;
1145 inline const ::OSMPBF::DenseInfo& denseinfo() const;
1146 inline ::OSMPBF::DenseInfo* mutable_denseinfo();
1147
1148 // repeated sint64 lat = 8 [packed = true];
1149 inline int lat_size() const;
1150 inline void clear_lat();
1151 static const int kLatFieldNumber = 8;
1152 inline ::google::protobuf::int64 lat(int index) const;
1153 inline void set_lat(int index, ::google::protobuf::int64 value);
1154 inline void add_lat(::google::protobuf::int64 value);
1155 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
1156 lat() const;
1157 inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
1158 mutable_lat();
1159
1160 // repeated sint64 lon = 9 [packed = true];
1161 inline int lon_size() const;
1162 inline void clear_lon();
1163 static const int kLonFieldNumber = 9;
1164 inline ::google::protobuf::int64 lon(int index) const;
1165 inline void set_lon(int index, ::google::protobuf::int64 value);
1166 inline void add_lon(::google::protobuf::int64 value);
1167 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
1168 lon() const;
1169 inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
1170 mutable_lon();
1171
1172 // repeated int32 keys_vals = 10 [packed = true];
1173 inline int keys_vals_size() const;
1174 inline void clear_keys_vals();
1175 static const int kKeysValsFieldNumber = 10;
1176 inline ::google::protobuf::int32 keys_vals(int index) const;
1177 inline void set_keys_vals(int index, ::google::protobuf::int32 value);
1178 inline void add_keys_vals(::google::protobuf::int32 value);
1179 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
1180 keys_vals() const;
1181 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
1182 mutable_keys_vals();
1183
1184 // @@protoc_insertion_point(class_scope:OSMPBF.DenseNodes)
1185 private:
1186 mutable int _cached_size_;
1187
1188 ::google::protobuf::RepeatedField< ::google::protobuf::int64 > id_;
1189 mutable int _id_cached_byte_size_;
1190 ::OSMPBF::DenseInfo* denseinfo_;
1191 ::google::protobuf::RepeatedField< ::google::protobuf::int64 > lat_;
1192 mutable int _lat_cached_byte_size_;
1193 ::google::protobuf::RepeatedField< ::google::protobuf::int64 > lon_;
1194 mutable int _lon_cached_byte_size_;
1195 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > keys_vals_;
1196 mutable int _keys_vals_cached_byte_size_;
1197 friend void protobuf_AddDesc_osmformat_2eproto();
1198 friend void protobuf_AssignDesc_osmformat_2eproto();
1199 friend void protobuf_ShutdownFile_osmformat_2eproto();
1200
1201 ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
1202
1203 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
_has_bit(int index)1204 inline bool _has_bit(int index) const {
1205 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
1206 }
_set_bit(int index)1207 inline void _set_bit(int index) {
1208 _has_bits_[index / 32] |= (1u << (index % 32));
1209 }
_clear_bit(int index)1210 inline void _clear_bit(int index) {
1211 _has_bits_[index / 32] &= ~(1u << (index % 32));
1212 }
1213
1214 void InitAsDefaultInstance();
1215 static DenseNodes* default_instance_;
1216 };
1217 // -------------------------------------------------------------------
1218
1219 class Way : public ::google::protobuf::MessageLite {
1220 public:
1221 Way();
1222 virtual ~Way();
1223
1224 Way(const Way& from);
1225
1226 inline Way& operator=(const Way& from) {
1227 CopyFrom(from);
1228 return *this;
1229 }
1230
1231 static const Way& default_instance();
1232
1233 void Swap(Way* other);
1234
1235 // implements Message ----------------------------------------------
1236
1237 Way* New() const;
1238 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
1239 void CopyFrom(const Way& from);
1240 void MergeFrom(const Way& from);
1241 void Clear();
1242 bool IsInitialized() const;
1243
1244 int ByteSize() const;
1245 bool MergePartialFromCodedStream(
1246 ::google::protobuf::io::CodedInputStream* input);
1247 void SerializeWithCachedSizes(
1248 ::google::protobuf::io::CodedOutputStream* output) const;
GetCachedSize()1249 int GetCachedSize() const { return _cached_size_; }
1250 private:
1251 void SharedCtor();
1252 void SharedDtor();
1253 void SetCachedSize(int size) const;
1254 public:
1255
1256 ::std::string GetTypeName() const;
1257
1258 // nested types ----------------------------------------------------
1259
1260 // accessors -------------------------------------------------------
1261
1262 // required int64 id = 1;
1263 inline bool has_id() const;
1264 inline void clear_id();
1265 static const int kIdFieldNumber = 1;
1266 inline ::google::protobuf::int64 id() const;
1267 inline void set_id(::google::protobuf::int64 value);
1268
1269 // repeated uint32 keys = 2 [packed = true];
1270 inline int keys_size() const;
1271 inline void clear_keys();
1272 static const int kKeysFieldNumber = 2;
1273 inline ::google::protobuf::uint32 keys(int index) const;
1274 inline void set_keys(int index, ::google::protobuf::uint32 value);
1275 inline void add_keys(::google::protobuf::uint32 value);
1276 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
1277 keys() const;
1278 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
1279 mutable_keys();
1280
1281 // repeated uint32 vals = 3 [packed = true];
1282 inline int vals_size() const;
1283 inline void clear_vals();
1284 static const int kValsFieldNumber = 3;
1285 inline ::google::protobuf::uint32 vals(int index) const;
1286 inline void set_vals(int index, ::google::protobuf::uint32 value);
1287 inline void add_vals(::google::protobuf::uint32 value);
1288 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
1289 vals() const;
1290 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
1291 mutable_vals();
1292
1293 // optional .OSMPBF.Info info = 4;
1294 inline bool has_info() const;
1295 inline void clear_info();
1296 static const int kInfoFieldNumber = 4;
1297 inline const ::OSMPBF::Info& info() const;
1298 inline ::OSMPBF::Info* mutable_info();
1299
1300 // repeated sint64 refs = 8 [packed = true];
1301 inline int refs_size() const;
1302 inline void clear_refs();
1303 static const int kRefsFieldNumber = 8;
1304 inline ::google::protobuf::int64 refs(int index) const;
1305 inline void set_refs(int index, ::google::protobuf::int64 value);
1306 inline void add_refs(::google::protobuf::int64 value);
1307 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
1308 refs() const;
1309 inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
1310 mutable_refs();
1311
1312 // @@protoc_insertion_point(class_scope:OSMPBF.Way)
1313 private:
1314 mutable int _cached_size_;
1315
1316 ::google::protobuf::int64 id_;
1317 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > keys_;
1318 mutable int _keys_cached_byte_size_;
1319 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > vals_;
1320 mutable int _vals_cached_byte_size_;
1321 ::OSMPBF::Info* info_;
1322 ::google::protobuf::RepeatedField< ::google::protobuf::int64 > refs_;
1323 mutable int _refs_cached_byte_size_;
1324 friend void protobuf_AddDesc_osmformat_2eproto();
1325 friend void protobuf_AssignDesc_osmformat_2eproto();
1326 friend void protobuf_ShutdownFile_osmformat_2eproto();
1327
1328 ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
1329
1330 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
_has_bit(int index)1331 inline bool _has_bit(int index) const {
1332 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
1333 }
_set_bit(int index)1334 inline void _set_bit(int index) {
1335 _has_bits_[index / 32] |= (1u << (index % 32));
1336 }
_clear_bit(int index)1337 inline void _clear_bit(int index) {
1338 _has_bits_[index / 32] &= ~(1u << (index % 32));
1339 }
1340
1341 void InitAsDefaultInstance();
1342 static Way* default_instance_;
1343 };
1344 // -------------------------------------------------------------------
1345
1346 class Relation : public ::google::protobuf::MessageLite {
1347 public:
1348 Relation();
1349 virtual ~Relation();
1350
1351 Relation(const Relation& from);
1352
1353 inline Relation& operator=(const Relation& from) {
1354 CopyFrom(from);
1355 return *this;
1356 }
1357
1358 static const Relation& default_instance();
1359
1360 void Swap(Relation* other);
1361
1362 // implements Message ----------------------------------------------
1363
1364 Relation* New() const;
1365 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
1366 void CopyFrom(const Relation& from);
1367 void MergeFrom(const Relation& from);
1368 void Clear();
1369 bool IsInitialized() const;
1370
1371 int ByteSize() const;
1372 bool MergePartialFromCodedStream(
1373 ::google::protobuf::io::CodedInputStream* input);
1374 void SerializeWithCachedSizes(
1375 ::google::protobuf::io::CodedOutputStream* output) const;
GetCachedSize()1376 int GetCachedSize() const { return _cached_size_; }
1377 private:
1378 void SharedCtor();
1379 void SharedDtor();
1380 void SetCachedSize(int size) const;
1381 public:
1382
1383 ::std::string GetTypeName() const;
1384
1385 // nested types ----------------------------------------------------
1386
1387 typedef Relation_MemberType MemberType;
1388 static const MemberType NODE = Relation_MemberType_NODE;
1389 static const MemberType WAY = Relation_MemberType_WAY;
1390 static const MemberType RELATION = Relation_MemberType_RELATION;
MemberType_IsValid(int value)1391 static inline bool MemberType_IsValid(int value) {
1392 return Relation_MemberType_IsValid(value);
1393 }
1394 static const MemberType MemberType_MIN =
1395 Relation_MemberType_MemberType_MIN;
1396 static const MemberType MemberType_MAX =
1397 Relation_MemberType_MemberType_MAX;
1398 static const int MemberType_ARRAYSIZE =
1399 Relation_MemberType_MemberType_ARRAYSIZE;
1400
1401 // accessors -------------------------------------------------------
1402
1403 // required int64 id = 1;
1404 inline bool has_id() const;
1405 inline void clear_id();
1406 static const int kIdFieldNumber = 1;
1407 inline ::google::protobuf::int64 id() const;
1408 inline void set_id(::google::protobuf::int64 value);
1409
1410 // repeated uint32 keys = 2 [packed = true];
1411 inline int keys_size() const;
1412 inline void clear_keys();
1413 static const int kKeysFieldNumber = 2;
1414 inline ::google::protobuf::uint32 keys(int index) const;
1415 inline void set_keys(int index, ::google::protobuf::uint32 value);
1416 inline void add_keys(::google::protobuf::uint32 value);
1417 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
1418 keys() const;
1419 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
1420 mutable_keys();
1421
1422 // repeated uint32 vals = 3 [packed = true];
1423 inline int vals_size() const;
1424 inline void clear_vals();
1425 static const int kValsFieldNumber = 3;
1426 inline ::google::protobuf::uint32 vals(int index) const;
1427 inline void set_vals(int index, ::google::protobuf::uint32 value);
1428 inline void add_vals(::google::protobuf::uint32 value);
1429 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
1430 vals() const;
1431 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
1432 mutable_vals();
1433
1434 // optional .OSMPBF.Info info = 4;
1435 inline bool has_info() const;
1436 inline void clear_info();
1437 static const int kInfoFieldNumber = 4;
1438 inline const ::OSMPBF::Info& info() const;
1439 inline ::OSMPBF::Info* mutable_info();
1440
1441 // repeated int32 roles_sid = 8 [packed = true];
1442 inline int roles_sid_size() const;
1443 inline void clear_roles_sid();
1444 static const int kRolesSidFieldNumber = 8;
1445 inline ::google::protobuf::int32 roles_sid(int index) const;
1446 inline void set_roles_sid(int index, ::google::protobuf::int32 value);
1447 inline void add_roles_sid(::google::protobuf::int32 value);
1448 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
1449 roles_sid() const;
1450 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
1451 mutable_roles_sid();
1452
1453 // repeated sint64 memids = 9 [packed = true];
1454 inline int memids_size() const;
1455 inline void clear_memids();
1456 static const int kMemidsFieldNumber = 9;
1457 inline ::google::protobuf::int64 memids(int index) const;
1458 inline void set_memids(int index, ::google::protobuf::int64 value);
1459 inline void add_memids(::google::protobuf::int64 value);
1460 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
1461 memids() const;
1462 inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
1463 mutable_memids();
1464
1465 // repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
1466 inline int types_size() const;
1467 inline void clear_types();
1468 static const int kTypesFieldNumber = 10;
1469 inline ::OSMPBF::Relation_MemberType types(int index) const;
1470 inline void set_types(int index, ::OSMPBF::Relation_MemberType value);
1471 inline void add_types(::OSMPBF::Relation_MemberType value);
1472 inline const ::google::protobuf::RepeatedField<int>& types() const;
1473 inline ::google::protobuf::RepeatedField<int>* mutable_types();
1474
1475 // @@protoc_insertion_point(class_scope:OSMPBF.Relation)
1476 private:
1477 mutable int _cached_size_;
1478
1479 ::google::protobuf::int64 id_;
1480 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > keys_;
1481 mutable int _keys_cached_byte_size_;
1482 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > vals_;
1483 mutable int _vals_cached_byte_size_;
1484 ::OSMPBF::Info* info_;
1485 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > roles_sid_;
1486 mutable int _roles_sid_cached_byte_size_;
1487 ::google::protobuf::RepeatedField< ::google::protobuf::int64 > memids_;
1488 mutable int _memids_cached_byte_size_;
1489 ::google::protobuf::RepeatedField<int> types_;
1490 mutable int _types_cached_byte_size_;
1491 friend void protobuf_AddDesc_osmformat_2eproto();
1492 friend void protobuf_AssignDesc_osmformat_2eproto();
1493 friend void protobuf_ShutdownFile_osmformat_2eproto();
1494
1495 ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32];
1496
1497 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
_has_bit(int index)1498 inline bool _has_bit(int index) const {
1499 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
1500 }
_set_bit(int index)1501 inline void _set_bit(int index) {
1502 _has_bits_[index / 32] |= (1u << (index % 32));
1503 }
_clear_bit(int index)1504 inline void _clear_bit(int index) {
1505 _has_bits_[index / 32] &= ~(1u << (index % 32));
1506 }
1507
1508 void InitAsDefaultInstance();
1509 static Relation* default_instance_;
1510 };
1511 // ===================================================================
1512
1513
1514 // ===================================================================
1515
1516 // HeaderBlock
1517
1518 // optional .OSMPBF.HeaderBBox bbox = 1;
has_bbox()1519 inline bool HeaderBlock::has_bbox() const {
1520 return _has_bit(0);
1521 }
clear_bbox()1522 inline void HeaderBlock::clear_bbox() {
1523 if (bbox_ != NULL) bbox_->::OSMPBF::HeaderBBox::Clear();
1524 _clear_bit(0);
1525 }
bbox()1526 inline const ::OSMPBF::HeaderBBox& HeaderBlock::bbox() const {
1527 return bbox_ != NULL ? *bbox_ : *default_instance_->bbox_;
1528 }
mutable_bbox()1529 inline ::OSMPBF::HeaderBBox* HeaderBlock::mutable_bbox() {
1530 _set_bit(0);
1531 if (bbox_ == NULL) bbox_ = new ::OSMPBF::HeaderBBox;
1532 return bbox_;
1533 }
1534
1535 // repeated string required_features = 4;
required_features_size()1536 inline int HeaderBlock::required_features_size() const {
1537 return required_features_.size();
1538 }
clear_required_features()1539 inline void HeaderBlock::clear_required_features() {
1540 required_features_.Clear();
1541 }
required_features(int index)1542 inline const ::std::string& HeaderBlock::required_features(int index) const {
1543 return required_features_.Get(index);
1544 }
mutable_required_features(int index)1545 inline ::std::string* HeaderBlock::mutable_required_features(int index) {
1546 return required_features_.Mutable(index);
1547 }
set_required_features(int index,const::std::string & value)1548 inline void HeaderBlock::set_required_features(int index, const ::std::string& value) {
1549 required_features_.Mutable(index)->assign(value);
1550 }
set_required_features(int index,const char * value)1551 inline void HeaderBlock::set_required_features(int index, const char* value) {
1552 required_features_.Mutable(index)->assign(value);
1553 }
set_required_features(int index,const char * value,size_t size)1554 inline void HeaderBlock::set_required_features(int index, const char* value, size_t size) {
1555 required_features_.Mutable(index)->assign(
1556 reinterpret_cast<const char*>(value), size);
1557 }
add_required_features()1558 inline ::std::string* HeaderBlock::add_required_features() {
1559 return required_features_.Add();
1560 }
add_required_features(const::std::string & value)1561 inline void HeaderBlock::add_required_features(const ::std::string& value) {
1562 required_features_.Add()->assign(value);
1563 }
add_required_features(const char * value)1564 inline void HeaderBlock::add_required_features(const char* value) {
1565 required_features_.Add()->assign(value);
1566 }
add_required_features(const char * value,size_t size)1567 inline void HeaderBlock::add_required_features(const char* value, size_t size) {
1568 required_features_.Add()->assign(reinterpret_cast<const char*>(value), size);
1569 }
1570 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
required_features()1571 HeaderBlock::required_features() const {
1572 return required_features_;
1573 }
1574 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
mutable_required_features()1575 HeaderBlock::mutable_required_features() {
1576 return &required_features_;
1577 }
1578
1579 // repeated string optional_features = 5;
optional_features_size()1580 inline int HeaderBlock::optional_features_size() const {
1581 return optional_features_.size();
1582 }
clear_optional_features()1583 inline void HeaderBlock::clear_optional_features() {
1584 optional_features_.Clear();
1585 }
optional_features(int index)1586 inline const ::std::string& HeaderBlock::optional_features(int index) const {
1587 return optional_features_.Get(index);
1588 }
mutable_optional_features(int index)1589 inline ::std::string* HeaderBlock::mutable_optional_features(int index) {
1590 return optional_features_.Mutable(index);
1591 }
set_optional_features(int index,const::std::string & value)1592 inline void HeaderBlock::set_optional_features(int index, const ::std::string& value) {
1593 optional_features_.Mutable(index)->assign(value);
1594 }
set_optional_features(int index,const char * value)1595 inline void HeaderBlock::set_optional_features(int index, const char* value) {
1596 optional_features_.Mutable(index)->assign(value);
1597 }
set_optional_features(int index,const char * value,size_t size)1598 inline void HeaderBlock::set_optional_features(int index, const char* value, size_t size) {
1599 optional_features_.Mutable(index)->assign(
1600 reinterpret_cast<const char*>(value), size);
1601 }
add_optional_features()1602 inline ::std::string* HeaderBlock::add_optional_features() {
1603 return optional_features_.Add();
1604 }
add_optional_features(const::std::string & value)1605 inline void HeaderBlock::add_optional_features(const ::std::string& value) {
1606 optional_features_.Add()->assign(value);
1607 }
add_optional_features(const char * value)1608 inline void HeaderBlock::add_optional_features(const char* value) {
1609 optional_features_.Add()->assign(value);
1610 }
add_optional_features(const char * value,size_t size)1611 inline void HeaderBlock::add_optional_features(const char* value, size_t size) {
1612 optional_features_.Add()->assign(reinterpret_cast<const char*>(value), size);
1613 }
1614 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
optional_features()1615 HeaderBlock::optional_features() const {
1616 return optional_features_;
1617 }
1618 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
mutable_optional_features()1619 HeaderBlock::mutable_optional_features() {
1620 return &optional_features_;
1621 }
1622
1623 // optional string writingprogram = 16;
has_writingprogram()1624 inline bool HeaderBlock::has_writingprogram() const {
1625 return _has_bit(3);
1626 }
clear_writingprogram()1627 inline void HeaderBlock::clear_writingprogram() {
1628 if (writingprogram_ != &_default_writingprogram_) {
1629 writingprogram_->clear();
1630 }
1631 _clear_bit(3);
1632 }
writingprogram()1633 inline const ::std::string& HeaderBlock::writingprogram() const {
1634 return *writingprogram_;
1635 }
set_writingprogram(const::std::string & value)1636 inline void HeaderBlock::set_writingprogram(const ::std::string& value) {
1637 _set_bit(3);
1638 if (writingprogram_ == &_default_writingprogram_) {
1639 writingprogram_ = new ::std::string;
1640 }
1641 writingprogram_->assign(value);
1642 }
set_writingprogram(const char * value)1643 inline void HeaderBlock::set_writingprogram(const char* value) {
1644 _set_bit(3);
1645 if (writingprogram_ == &_default_writingprogram_) {
1646 writingprogram_ = new ::std::string;
1647 }
1648 writingprogram_->assign(value);
1649 }
set_writingprogram(const char * value,size_t size)1650 inline void HeaderBlock::set_writingprogram(const char* value, size_t size) {
1651 _set_bit(3);
1652 if (writingprogram_ == &_default_writingprogram_) {
1653 writingprogram_ = new ::std::string;
1654 }
1655 writingprogram_->assign(reinterpret_cast<const char*>(value), size);
1656 }
mutable_writingprogram()1657 inline ::std::string* HeaderBlock::mutable_writingprogram() {
1658 _set_bit(3);
1659 if (writingprogram_ == &_default_writingprogram_) {
1660 writingprogram_ = new ::std::string;
1661 }
1662 return writingprogram_;
1663 }
1664
1665 // optional string source = 17;
has_source()1666 inline bool HeaderBlock::has_source() const {
1667 return _has_bit(4);
1668 }
clear_source()1669 inline void HeaderBlock::clear_source() {
1670 if (source_ != &_default_source_) {
1671 source_->clear();
1672 }
1673 _clear_bit(4);
1674 }
source()1675 inline const ::std::string& HeaderBlock::source() const {
1676 return *source_;
1677 }
set_source(const::std::string & value)1678 inline void HeaderBlock::set_source(const ::std::string& value) {
1679 _set_bit(4);
1680 if (source_ == &_default_source_) {
1681 source_ = new ::std::string;
1682 }
1683 source_->assign(value);
1684 }
set_source(const char * value)1685 inline void HeaderBlock::set_source(const char* value) {
1686 _set_bit(4);
1687 if (source_ == &_default_source_) {
1688 source_ = new ::std::string;
1689 }
1690 source_->assign(value);
1691 }
set_source(const char * value,size_t size)1692 inline void HeaderBlock::set_source(const char* value, size_t size) {
1693 _set_bit(4);
1694 if (source_ == &_default_source_) {
1695 source_ = new ::std::string;
1696 }
1697 source_->assign(reinterpret_cast<const char*>(value), size);
1698 }
mutable_source()1699 inline ::std::string* HeaderBlock::mutable_source() {
1700 _set_bit(4);
1701 if (source_ == &_default_source_) {
1702 source_ = new ::std::string;
1703 }
1704 return source_;
1705 }
1706
1707 // -------------------------------------------------------------------
1708
1709 // HeaderBBox
1710
1711 // required sint64 left = 1;
has_left()1712 inline bool HeaderBBox::has_left() const {
1713 return _has_bit(0);
1714 }
clear_left()1715 inline void HeaderBBox::clear_left() {
1716 left_ = GOOGLE_LONGLONG(0);
1717 _clear_bit(0);
1718 }
left()1719 inline ::google::protobuf::int64 HeaderBBox::left() const {
1720 return left_;
1721 }
set_left(::google::protobuf::int64 value)1722 inline void HeaderBBox::set_left(::google::protobuf::int64 value) {
1723 _set_bit(0);
1724 left_ = value;
1725 }
1726
1727 // required sint64 right = 2;
has_right()1728 inline bool HeaderBBox::has_right() const {
1729 return _has_bit(1);
1730 }
clear_right()1731 inline void HeaderBBox::clear_right() {
1732 right_ = GOOGLE_LONGLONG(0);
1733 _clear_bit(1);
1734 }
right()1735 inline ::google::protobuf::int64 HeaderBBox::right() const {
1736 return right_;
1737 }
set_right(::google::protobuf::int64 value)1738 inline void HeaderBBox::set_right(::google::protobuf::int64 value) {
1739 _set_bit(1);
1740 right_ = value;
1741 }
1742
1743 // required sint64 top = 3;
has_top()1744 inline bool HeaderBBox::has_top() const {
1745 return _has_bit(2);
1746 }
clear_top()1747 inline void HeaderBBox::clear_top() {
1748 top_ = GOOGLE_LONGLONG(0);
1749 _clear_bit(2);
1750 }
top()1751 inline ::google::protobuf::int64 HeaderBBox::top() const {
1752 return top_;
1753 }
set_top(::google::protobuf::int64 value)1754 inline void HeaderBBox::set_top(::google::protobuf::int64 value) {
1755 _set_bit(2);
1756 top_ = value;
1757 }
1758
1759 // required sint64 bottom = 4;
has_bottom()1760 inline bool HeaderBBox::has_bottom() const {
1761 return _has_bit(3);
1762 }
clear_bottom()1763 inline void HeaderBBox::clear_bottom() {
1764 bottom_ = GOOGLE_LONGLONG(0);
1765 _clear_bit(3);
1766 }
bottom()1767 inline ::google::protobuf::int64 HeaderBBox::bottom() const {
1768 return bottom_;
1769 }
set_bottom(::google::protobuf::int64 value)1770 inline void HeaderBBox::set_bottom(::google::protobuf::int64 value) {
1771 _set_bit(3);
1772 bottom_ = value;
1773 }
1774
1775 // -------------------------------------------------------------------
1776
1777 // PrimitiveBlock
1778
1779 // required .OSMPBF.StringTable stringtable = 1;
has_stringtable()1780 inline bool PrimitiveBlock::has_stringtable() const {
1781 return _has_bit(0);
1782 }
clear_stringtable()1783 inline void PrimitiveBlock::clear_stringtable() {
1784 if (stringtable_ != NULL) stringtable_->::OSMPBF::StringTable::Clear();
1785 _clear_bit(0);
1786 }
stringtable()1787 inline const ::OSMPBF::StringTable& PrimitiveBlock::stringtable() const {
1788 return stringtable_ != NULL ? *stringtable_ : *default_instance_->stringtable_;
1789 }
mutable_stringtable()1790 inline ::OSMPBF::StringTable* PrimitiveBlock::mutable_stringtable() {
1791 _set_bit(0);
1792 if (stringtable_ == NULL) stringtable_ = new ::OSMPBF::StringTable;
1793 return stringtable_;
1794 }
1795
1796 // repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;
primitivegroup_size()1797 inline int PrimitiveBlock::primitivegroup_size() const {
1798 return primitivegroup_.size();
1799 }
clear_primitivegroup()1800 inline void PrimitiveBlock::clear_primitivegroup() {
1801 primitivegroup_.Clear();
1802 }
primitivegroup(int index)1803 inline const ::OSMPBF::PrimitiveGroup& PrimitiveBlock::primitivegroup(int index) const {
1804 return primitivegroup_.Get(index);
1805 }
mutable_primitivegroup(int index)1806 inline ::OSMPBF::PrimitiveGroup* PrimitiveBlock::mutable_primitivegroup(int index) {
1807 return primitivegroup_.Mutable(index);
1808 }
add_primitivegroup()1809 inline ::OSMPBF::PrimitiveGroup* PrimitiveBlock::add_primitivegroup() {
1810 return primitivegroup_.Add();
1811 }
1812 inline const ::google::protobuf::RepeatedPtrField< ::OSMPBF::PrimitiveGroup >&
primitivegroup()1813 PrimitiveBlock::primitivegroup() const {
1814 return primitivegroup_;
1815 }
1816 inline ::google::protobuf::RepeatedPtrField< ::OSMPBF::PrimitiveGroup >*
mutable_primitivegroup()1817 PrimitiveBlock::mutable_primitivegroup() {
1818 return &primitivegroup_;
1819 }
1820
1821 // optional int32 granularity = 17 [default = 100];
has_granularity()1822 inline bool PrimitiveBlock::has_granularity() const {
1823 return _has_bit(2);
1824 }
clear_granularity()1825 inline void PrimitiveBlock::clear_granularity() {
1826 granularity_ = 100;
1827 _clear_bit(2);
1828 }
granularity()1829 inline ::google::protobuf::int32 PrimitiveBlock::granularity() const {
1830 return granularity_;
1831 }
set_granularity(::google::protobuf::int32 value)1832 inline void PrimitiveBlock::set_granularity(::google::protobuf::int32 value) {
1833 _set_bit(2);
1834 granularity_ = value;
1835 }
1836
1837 // optional int64 lat_offset = 19 [default = 0];
has_lat_offset()1838 inline bool PrimitiveBlock::has_lat_offset() const {
1839 return _has_bit(3);
1840 }
clear_lat_offset()1841 inline void PrimitiveBlock::clear_lat_offset() {
1842 lat_offset_ = GOOGLE_LONGLONG(0);
1843 _clear_bit(3);
1844 }
lat_offset()1845 inline ::google::protobuf::int64 PrimitiveBlock::lat_offset() const {
1846 return lat_offset_;
1847 }
set_lat_offset(::google::protobuf::int64 value)1848 inline void PrimitiveBlock::set_lat_offset(::google::protobuf::int64 value) {
1849 _set_bit(3);
1850 lat_offset_ = value;
1851 }
1852
1853 // optional int64 lon_offset = 20 [default = 0];
has_lon_offset()1854 inline bool PrimitiveBlock::has_lon_offset() const {
1855 return _has_bit(4);
1856 }
clear_lon_offset()1857 inline void PrimitiveBlock::clear_lon_offset() {
1858 lon_offset_ = GOOGLE_LONGLONG(0);
1859 _clear_bit(4);
1860 }
lon_offset()1861 inline ::google::protobuf::int64 PrimitiveBlock::lon_offset() const {
1862 return lon_offset_;
1863 }
set_lon_offset(::google::protobuf::int64 value)1864 inline void PrimitiveBlock::set_lon_offset(::google::protobuf::int64 value) {
1865 _set_bit(4);
1866 lon_offset_ = value;
1867 }
1868
1869 // optional int32 date_granularity = 18 [default = 1000];
has_date_granularity()1870 inline bool PrimitiveBlock::has_date_granularity() const {
1871 return _has_bit(5);
1872 }
clear_date_granularity()1873 inline void PrimitiveBlock::clear_date_granularity() {
1874 date_granularity_ = 1000;
1875 _clear_bit(5);
1876 }
date_granularity()1877 inline ::google::protobuf::int32 PrimitiveBlock::date_granularity() const {
1878 return date_granularity_;
1879 }
set_date_granularity(::google::protobuf::int32 value)1880 inline void PrimitiveBlock::set_date_granularity(::google::protobuf::int32 value) {
1881 _set_bit(5);
1882 date_granularity_ = value;
1883 }
1884
1885 // -------------------------------------------------------------------
1886
1887 // PrimitiveGroup
1888
1889 // repeated .OSMPBF.Node nodes = 1;
nodes_size()1890 inline int PrimitiveGroup::nodes_size() const {
1891 return nodes_.size();
1892 }
clear_nodes()1893 inline void PrimitiveGroup::clear_nodes() {
1894 nodes_.Clear();
1895 }
nodes(int index)1896 inline const ::OSMPBF::Node& PrimitiveGroup::nodes(int index) const {
1897 return nodes_.Get(index);
1898 }
mutable_nodes(int index)1899 inline ::OSMPBF::Node* PrimitiveGroup::mutable_nodes(int index) {
1900 return nodes_.Mutable(index);
1901 }
add_nodes()1902 inline ::OSMPBF::Node* PrimitiveGroup::add_nodes() {
1903 return nodes_.Add();
1904 }
1905 inline const ::google::protobuf::RepeatedPtrField< ::OSMPBF::Node >&
nodes()1906 PrimitiveGroup::nodes() const {
1907 return nodes_;
1908 }
1909 inline ::google::protobuf::RepeatedPtrField< ::OSMPBF::Node >*
mutable_nodes()1910 PrimitiveGroup::mutable_nodes() {
1911 return &nodes_;
1912 }
1913
1914 // optional .OSMPBF.DenseNodes dense = 2;
has_dense()1915 inline bool PrimitiveGroup::has_dense() const {
1916 return _has_bit(1);
1917 }
clear_dense()1918 inline void PrimitiveGroup::clear_dense() {
1919 if (dense_ != NULL) dense_->::OSMPBF::DenseNodes::Clear();
1920 _clear_bit(1);
1921 }
dense()1922 inline const ::OSMPBF::DenseNodes& PrimitiveGroup::dense() const {
1923 return dense_ != NULL ? *dense_ : *default_instance_->dense_;
1924 }
mutable_dense()1925 inline ::OSMPBF::DenseNodes* PrimitiveGroup::mutable_dense() {
1926 _set_bit(1);
1927 if (dense_ == NULL) dense_ = new ::OSMPBF::DenseNodes;
1928 return dense_;
1929 }
1930
1931 // repeated .OSMPBF.Way ways = 3;
ways_size()1932 inline int PrimitiveGroup::ways_size() const {
1933 return ways_.size();
1934 }
clear_ways()1935 inline void PrimitiveGroup::clear_ways() {
1936 ways_.Clear();
1937 }
ways(int index)1938 inline const ::OSMPBF::Way& PrimitiveGroup::ways(int index) const {
1939 return ways_.Get(index);
1940 }
mutable_ways(int index)1941 inline ::OSMPBF::Way* PrimitiveGroup::mutable_ways(int index) {
1942 return ways_.Mutable(index);
1943 }
add_ways()1944 inline ::OSMPBF::Way* PrimitiveGroup::add_ways() {
1945 return ways_.Add();
1946 }
1947 inline const ::google::protobuf::RepeatedPtrField< ::OSMPBF::Way >&
ways()1948 PrimitiveGroup::ways() const {
1949 return ways_;
1950 }
1951 inline ::google::protobuf::RepeatedPtrField< ::OSMPBF::Way >*
mutable_ways()1952 PrimitiveGroup::mutable_ways() {
1953 return &ways_;
1954 }
1955
1956 // repeated .OSMPBF.Relation relations = 4;
relations_size()1957 inline int PrimitiveGroup::relations_size() const {
1958 return relations_.size();
1959 }
clear_relations()1960 inline void PrimitiveGroup::clear_relations() {
1961 relations_.Clear();
1962 }
relations(int index)1963 inline const ::OSMPBF::Relation& PrimitiveGroup::relations(int index) const {
1964 return relations_.Get(index);
1965 }
mutable_relations(int index)1966 inline ::OSMPBF::Relation* PrimitiveGroup::mutable_relations(int index) {
1967 return relations_.Mutable(index);
1968 }
add_relations()1969 inline ::OSMPBF::Relation* PrimitiveGroup::add_relations() {
1970 return relations_.Add();
1971 }
1972 inline const ::google::protobuf::RepeatedPtrField< ::OSMPBF::Relation >&
relations()1973 PrimitiveGroup::relations() const {
1974 return relations_;
1975 }
1976 inline ::google::protobuf::RepeatedPtrField< ::OSMPBF::Relation >*
mutable_relations()1977 PrimitiveGroup::mutable_relations() {
1978 return &relations_;
1979 }
1980
1981 // repeated .OSMPBF.ChangeSet changesets = 5;
changesets_size()1982 inline int PrimitiveGroup::changesets_size() const {
1983 return changesets_.size();
1984 }
clear_changesets()1985 inline void PrimitiveGroup::clear_changesets() {
1986 changesets_.Clear();
1987 }
changesets(int index)1988 inline const ::OSMPBF::ChangeSet& PrimitiveGroup::changesets(int index) const {
1989 return changesets_.Get(index);
1990 }
mutable_changesets(int index)1991 inline ::OSMPBF::ChangeSet* PrimitiveGroup::mutable_changesets(int index) {
1992 return changesets_.Mutable(index);
1993 }
add_changesets()1994 inline ::OSMPBF::ChangeSet* PrimitiveGroup::add_changesets() {
1995 return changesets_.Add();
1996 }
1997 inline const ::google::protobuf::RepeatedPtrField< ::OSMPBF::ChangeSet >&
changesets()1998 PrimitiveGroup::changesets() const {
1999 return changesets_;
2000 }
2001 inline ::google::protobuf::RepeatedPtrField< ::OSMPBF::ChangeSet >*
mutable_changesets()2002 PrimitiveGroup::mutable_changesets() {
2003 return &changesets_;
2004 }
2005
2006 // -------------------------------------------------------------------
2007
2008 // StringTable
2009
2010 // repeated bytes s = 1;
s_size()2011 inline int StringTable::s_size() const {
2012 return s_.size();
2013 }
clear_s()2014 inline void StringTable::clear_s() {
2015 s_.Clear();
2016 }
s(int index)2017 inline const ::std::string& StringTable::s(int index) const {
2018 return s_.Get(index);
2019 }
mutable_s(int index)2020 inline ::std::string* StringTable::mutable_s(int index) {
2021 return s_.Mutable(index);
2022 }
set_s(int index,const::std::string & value)2023 inline void StringTable::set_s(int index, const ::std::string& value) {
2024 s_.Mutable(index)->assign(value);
2025 }
set_s(int index,const char * value)2026 inline void StringTable::set_s(int index, const char* value) {
2027 s_.Mutable(index)->assign(value);
2028 }
set_s(int index,const void * value,size_t size)2029 inline void StringTable::set_s(int index, const void* value, size_t size) {
2030 s_.Mutable(index)->assign(
2031 reinterpret_cast<const char*>(value), size);
2032 }
add_s()2033 inline ::std::string* StringTable::add_s() {
2034 return s_.Add();
2035 }
add_s(const::std::string & value)2036 inline void StringTable::add_s(const ::std::string& value) {
2037 s_.Add()->assign(value);
2038 }
add_s(const char * value)2039 inline void StringTable::add_s(const char* value) {
2040 s_.Add()->assign(value);
2041 }
add_s(const void * value,size_t size)2042 inline void StringTable::add_s(const void* value, size_t size) {
2043 s_.Add()->assign(reinterpret_cast<const char*>(value), size);
2044 }
2045 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
s()2046 StringTable::s() const {
2047 return s_;
2048 }
2049 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
mutable_s()2050 StringTable::mutable_s() {
2051 return &s_;
2052 }
2053
2054 // -------------------------------------------------------------------
2055
2056 // Info
2057
2058 // optional int32 version = 1 [default = -1];
has_version()2059 inline bool Info::has_version() const {
2060 return _has_bit(0);
2061 }
clear_version()2062 inline void Info::clear_version() {
2063 version_ = -1;
2064 _clear_bit(0);
2065 }
version()2066 inline ::google::protobuf::int32 Info::version() const {
2067 return version_;
2068 }
set_version(::google::protobuf::int32 value)2069 inline void Info::set_version(::google::protobuf::int32 value) {
2070 _set_bit(0);
2071 version_ = value;
2072 }
2073
2074 // optional int64 timestamp = 2;
has_timestamp()2075 inline bool Info::has_timestamp() const {
2076 return _has_bit(1);
2077 }
clear_timestamp()2078 inline void Info::clear_timestamp() {
2079 timestamp_ = GOOGLE_LONGLONG(0);
2080 _clear_bit(1);
2081 }
timestamp()2082 inline ::google::protobuf::int64 Info::timestamp() const {
2083 return timestamp_;
2084 }
set_timestamp(::google::protobuf::int64 value)2085 inline void Info::set_timestamp(::google::protobuf::int64 value) {
2086 _set_bit(1);
2087 timestamp_ = value;
2088 }
2089
2090 // optional int64 changeset = 3;
has_changeset()2091 inline bool Info::has_changeset() const {
2092 return _has_bit(2);
2093 }
clear_changeset()2094 inline void Info::clear_changeset() {
2095 changeset_ = GOOGLE_LONGLONG(0);
2096 _clear_bit(2);
2097 }
changeset()2098 inline ::google::protobuf::int64 Info::changeset() const {
2099 return changeset_;
2100 }
set_changeset(::google::protobuf::int64 value)2101 inline void Info::set_changeset(::google::protobuf::int64 value) {
2102 _set_bit(2);
2103 changeset_ = value;
2104 }
2105
2106 // optional int32 uid = 4;
has_uid()2107 inline bool Info::has_uid() const {
2108 return _has_bit(3);
2109 }
clear_uid()2110 inline void Info::clear_uid() {
2111 uid_ = 0;
2112 _clear_bit(3);
2113 }
uid()2114 inline ::google::protobuf::int32 Info::uid() const {
2115 return uid_;
2116 }
set_uid(::google::protobuf::int32 value)2117 inline void Info::set_uid(::google::protobuf::int32 value) {
2118 _set_bit(3);
2119 uid_ = value;
2120 }
2121
2122 // optional uint32 user_sid = 5;
has_user_sid()2123 inline bool Info::has_user_sid() const {
2124 return _has_bit(4);
2125 }
clear_user_sid()2126 inline void Info::clear_user_sid() {
2127 user_sid_ = 0u;
2128 _clear_bit(4);
2129 }
user_sid()2130 inline ::google::protobuf::uint32 Info::user_sid() const {
2131 return user_sid_;
2132 }
set_user_sid(::google::protobuf::uint32 value)2133 inline void Info::set_user_sid(::google::protobuf::uint32 value) {
2134 _set_bit(4);
2135 user_sid_ = value;
2136 }
2137
2138 // -------------------------------------------------------------------
2139
2140 // DenseInfo
2141
2142 // repeated int32 version = 1 [packed = true];
version_size()2143 inline int DenseInfo::version_size() const {
2144 return version_.size();
2145 }
clear_version()2146 inline void DenseInfo::clear_version() {
2147 version_.Clear();
2148 }
version(int index)2149 inline ::google::protobuf::int32 DenseInfo::version(int index) const {
2150 return version_.Get(index);
2151 }
set_version(int index,::google::protobuf::int32 value)2152 inline void DenseInfo::set_version(int index, ::google::protobuf::int32 value) {
2153 version_.Set(index, value);
2154 }
add_version(::google::protobuf::int32 value)2155 inline void DenseInfo::add_version(::google::protobuf::int32 value) {
2156 version_.Add(value);
2157 }
2158 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
version()2159 DenseInfo::version() const {
2160 return version_;
2161 }
2162 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
mutable_version()2163 DenseInfo::mutable_version() {
2164 return &version_;
2165 }
2166
2167 // repeated sint64 timestamp = 2 [packed = true];
timestamp_size()2168 inline int DenseInfo::timestamp_size() const {
2169 return timestamp_.size();
2170 }
clear_timestamp()2171 inline void DenseInfo::clear_timestamp() {
2172 timestamp_.Clear();
2173 }
timestamp(int index)2174 inline ::google::protobuf::int64 DenseInfo::timestamp(int index) const {
2175 return timestamp_.Get(index);
2176 }
set_timestamp(int index,::google::protobuf::int64 value)2177 inline void DenseInfo::set_timestamp(int index, ::google::protobuf::int64 value) {
2178 timestamp_.Set(index, value);
2179 }
add_timestamp(::google::protobuf::int64 value)2180 inline void DenseInfo::add_timestamp(::google::protobuf::int64 value) {
2181 timestamp_.Add(value);
2182 }
2183 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
timestamp()2184 DenseInfo::timestamp() const {
2185 return timestamp_;
2186 }
2187 inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
mutable_timestamp()2188 DenseInfo::mutable_timestamp() {
2189 return ×tamp_;
2190 }
2191
2192 // repeated sint64 changeset = 3 [packed = true];
changeset_size()2193 inline int DenseInfo::changeset_size() const {
2194 return changeset_.size();
2195 }
clear_changeset()2196 inline void DenseInfo::clear_changeset() {
2197 changeset_.Clear();
2198 }
changeset(int index)2199 inline ::google::protobuf::int64 DenseInfo::changeset(int index) const {
2200 return changeset_.Get(index);
2201 }
set_changeset(int index,::google::protobuf::int64 value)2202 inline void DenseInfo::set_changeset(int index, ::google::protobuf::int64 value) {
2203 changeset_.Set(index, value);
2204 }
add_changeset(::google::protobuf::int64 value)2205 inline void DenseInfo::add_changeset(::google::protobuf::int64 value) {
2206 changeset_.Add(value);
2207 }
2208 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
changeset()2209 DenseInfo::changeset() const {
2210 return changeset_;
2211 }
2212 inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
mutable_changeset()2213 DenseInfo::mutable_changeset() {
2214 return &changeset_;
2215 }
2216
2217 // repeated sint32 uid = 4 [packed = true];
uid_size()2218 inline int DenseInfo::uid_size() const {
2219 return uid_.size();
2220 }
clear_uid()2221 inline void DenseInfo::clear_uid() {
2222 uid_.Clear();
2223 }
uid(int index)2224 inline ::google::protobuf::int32 DenseInfo::uid(int index) const {
2225 return uid_.Get(index);
2226 }
set_uid(int index,::google::protobuf::int32 value)2227 inline void DenseInfo::set_uid(int index, ::google::protobuf::int32 value) {
2228 uid_.Set(index, value);
2229 }
add_uid(::google::protobuf::int32 value)2230 inline void DenseInfo::add_uid(::google::protobuf::int32 value) {
2231 uid_.Add(value);
2232 }
2233 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
uid()2234 DenseInfo::uid() const {
2235 return uid_;
2236 }
2237 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
mutable_uid()2238 DenseInfo::mutable_uid() {
2239 return &uid_;
2240 }
2241
2242 // repeated sint32 user_sid = 5 [packed = true];
user_sid_size()2243 inline int DenseInfo::user_sid_size() const {
2244 return user_sid_.size();
2245 }
clear_user_sid()2246 inline void DenseInfo::clear_user_sid() {
2247 user_sid_.Clear();
2248 }
user_sid(int index)2249 inline ::google::protobuf::int32 DenseInfo::user_sid(int index) const {
2250 return user_sid_.Get(index);
2251 }
set_user_sid(int index,::google::protobuf::int32 value)2252 inline void DenseInfo::set_user_sid(int index, ::google::protobuf::int32 value) {
2253 user_sid_.Set(index, value);
2254 }
add_user_sid(::google::protobuf::int32 value)2255 inline void DenseInfo::add_user_sid(::google::protobuf::int32 value) {
2256 user_sid_.Add(value);
2257 }
2258 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
user_sid()2259 DenseInfo::user_sid() const {
2260 return user_sid_;
2261 }
2262 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
mutable_user_sid()2263 DenseInfo::mutable_user_sid() {
2264 return &user_sid_;
2265 }
2266
2267 // -------------------------------------------------------------------
2268
2269 // ChangeSet
2270
2271 // required int64 id = 1;
has_id()2272 inline bool ChangeSet::has_id() const {
2273 return _has_bit(0);
2274 }
clear_id()2275 inline void ChangeSet::clear_id() {
2276 id_ = GOOGLE_LONGLONG(0);
2277 _clear_bit(0);
2278 }
id()2279 inline ::google::protobuf::int64 ChangeSet::id() const {
2280 return id_;
2281 }
set_id(::google::protobuf::int64 value)2282 inline void ChangeSet::set_id(::google::protobuf::int64 value) {
2283 _set_bit(0);
2284 id_ = value;
2285 }
2286
2287 // -------------------------------------------------------------------
2288
2289 // Node
2290
2291 // required sint64 id = 1;
has_id()2292 inline bool Node::has_id() const {
2293 return _has_bit(0);
2294 }
clear_id()2295 inline void Node::clear_id() {
2296 id_ = GOOGLE_LONGLONG(0);
2297 _clear_bit(0);
2298 }
id()2299 inline ::google::protobuf::int64 Node::id() const {
2300 return id_;
2301 }
set_id(::google::protobuf::int64 value)2302 inline void Node::set_id(::google::protobuf::int64 value) {
2303 _set_bit(0);
2304 id_ = value;
2305 }
2306
2307 // repeated uint32 keys = 2 [packed = true];
keys_size()2308 inline int Node::keys_size() const {
2309 return keys_.size();
2310 }
clear_keys()2311 inline void Node::clear_keys() {
2312 keys_.Clear();
2313 }
keys(int index)2314 inline ::google::protobuf::uint32 Node::keys(int index) const {
2315 return keys_.Get(index);
2316 }
set_keys(int index,::google::protobuf::uint32 value)2317 inline void Node::set_keys(int index, ::google::protobuf::uint32 value) {
2318 keys_.Set(index, value);
2319 }
add_keys(::google::protobuf::uint32 value)2320 inline void Node::add_keys(::google::protobuf::uint32 value) {
2321 keys_.Add(value);
2322 }
2323 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
keys()2324 Node::keys() const {
2325 return keys_;
2326 }
2327 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
mutable_keys()2328 Node::mutable_keys() {
2329 return &keys_;
2330 }
2331
2332 // repeated uint32 vals = 3 [packed = true];
vals_size()2333 inline int Node::vals_size() const {
2334 return vals_.size();
2335 }
clear_vals()2336 inline void Node::clear_vals() {
2337 vals_.Clear();
2338 }
vals(int index)2339 inline ::google::protobuf::uint32 Node::vals(int index) const {
2340 return vals_.Get(index);
2341 }
set_vals(int index,::google::protobuf::uint32 value)2342 inline void Node::set_vals(int index, ::google::protobuf::uint32 value) {
2343 vals_.Set(index, value);
2344 }
add_vals(::google::protobuf::uint32 value)2345 inline void Node::add_vals(::google::protobuf::uint32 value) {
2346 vals_.Add(value);
2347 }
2348 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
vals()2349 Node::vals() const {
2350 return vals_;
2351 }
2352 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
mutable_vals()2353 Node::mutable_vals() {
2354 return &vals_;
2355 }
2356
2357 // optional .OSMPBF.Info info = 4;
has_info()2358 inline bool Node::has_info() const {
2359 return _has_bit(3);
2360 }
clear_info()2361 inline void Node::clear_info() {
2362 if (info_ != NULL) info_->::OSMPBF::Info::Clear();
2363 _clear_bit(3);
2364 }
info()2365 inline const ::OSMPBF::Info& Node::info() const {
2366 return info_ != NULL ? *info_ : *default_instance_->info_;
2367 }
mutable_info()2368 inline ::OSMPBF::Info* Node::mutable_info() {
2369 _set_bit(3);
2370 if (info_ == NULL) info_ = new ::OSMPBF::Info;
2371 return info_;
2372 }
2373
2374 // required sint64 lat = 8;
has_lat()2375 inline bool Node::has_lat() const {
2376 return _has_bit(4);
2377 }
clear_lat()2378 inline void Node::clear_lat() {
2379 lat_ = GOOGLE_LONGLONG(0);
2380 _clear_bit(4);
2381 }
lat()2382 inline ::google::protobuf::int64 Node::lat() const {
2383 return lat_;
2384 }
set_lat(::google::protobuf::int64 value)2385 inline void Node::set_lat(::google::protobuf::int64 value) {
2386 _set_bit(4);
2387 lat_ = value;
2388 }
2389
2390 // required sint64 lon = 9;
has_lon()2391 inline bool Node::has_lon() const {
2392 return _has_bit(5);
2393 }
clear_lon()2394 inline void Node::clear_lon() {
2395 lon_ = GOOGLE_LONGLONG(0);
2396 _clear_bit(5);
2397 }
lon()2398 inline ::google::protobuf::int64 Node::lon() const {
2399 return lon_;
2400 }
set_lon(::google::protobuf::int64 value)2401 inline void Node::set_lon(::google::protobuf::int64 value) {
2402 _set_bit(5);
2403 lon_ = value;
2404 }
2405
2406 // -------------------------------------------------------------------
2407
2408 // DenseNodes
2409
2410 // repeated sint64 id = 1 [packed = true];
id_size()2411 inline int DenseNodes::id_size() const {
2412 return id_.size();
2413 }
clear_id()2414 inline void DenseNodes::clear_id() {
2415 id_.Clear();
2416 }
id(int index)2417 inline ::google::protobuf::int64 DenseNodes::id(int index) const {
2418 return id_.Get(index);
2419 }
set_id(int index,::google::protobuf::int64 value)2420 inline void DenseNodes::set_id(int index, ::google::protobuf::int64 value) {
2421 id_.Set(index, value);
2422 }
add_id(::google::protobuf::int64 value)2423 inline void DenseNodes::add_id(::google::protobuf::int64 value) {
2424 id_.Add(value);
2425 }
2426 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
id()2427 DenseNodes::id() const {
2428 return id_;
2429 }
2430 inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
mutable_id()2431 DenseNodes::mutable_id() {
2432 return &id_;
2433 }
2434
2435 // optional .OSMPBF.DenseInfo denseinfo = 5;
has_denseinfo()2436 inline bool DenseNodes::has_denseinfo() const {
2437 return _has_bit(1);
2438 }
clear_denseinfo()2439 inline void DenseNodes::clear_denseinfo() {
2440 if (denseinfo_ != NULL) denseinfo_->::OSMPBF::DenseInfo::Clear();
2441 _clear_bit(1);
2442 }
denseinfo()2443 inline const ::OSMPBF::DenseInfo& DenseNodes::denseinfo() const {
2444 return denseinfo_ != NULL ? *denseinfo_ : *default_instance_->denseinfo_;
2445 }
mutable_denseinfo()2446 inline ::OSMPBF::DenseInfo* DenseNodes::mutable_denseinfo() {
2447 _set_bit(1);
2448 if (denseinfo_ == NULL) denseinfo_ = new ::OSMPBF::DenseInfo;
2449 return denseinfo_;
2450 }
2451
2452 // repeated sint64 lat = 8 [packed = true];
lat_size()2453 inline int DenseNodes::lat_size() const {
2454 return lat_.size();
2455 }
clear_lat()2456 inline void DenseNodes::clear_lat() {
2457 lat_.Clear();
2458 }
lat(int index)2459 inline ::google::protobuf::int64 DenseNodes::lat(int index) const {
2460 return lat_.Get(index);
2461 }
set_lat(int index,::google::protobuf::int64 value)2462 inline void DenseNodes::set_lat(int index, ::google::protobuf::int64 value) {
2463 lat_.Set(index, value);
2464 }
add_lat(::google::protobuf::int64 value)2465 inline void DenseNodes::add_lat(::google::protobuf::int64 value) {
2466 lat_.Add(value);
2467 }
2468 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
lat()2469 DenseNodes::lat() const {
2470 return lat_;
2471 }
2472 inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
mutable_lat()2473 DenseNodes::mutable_lat() {
2474 return &lat_;
2475 }
2476
2477 // repeated sint64 lon = 9 [packed = true];
lon_size()2478 inline int DenseNodes::lon_size() const {
2479 return lon_.size();
2480 }
clear_lon()2481 inline void DenseNodes::clear_lon() {
2482 lon_.Clear();
2483 }
lon(int index)2484 inline ::google::protobuf::int64 DenseNodes::lon(int index) const {
2485 return lon_.Get(index);
2486 }
set_lon(int index,::google::protobuf::int64 value)2487 inline void DenseNodes::set_lon(int index, ::google::protobuf::int64 value) {
2488 lon_.Set(index, value);
2489 }
add_lon(::google::protobuf::int64 value)2490 inline void DenseNodes::add_lon(::google::protobuf::int64 value) {
2491 lon_.Add(value);
2492 }
2493 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
lon()2494 DenseNodes::lon() const {
2495 return lon_;
2496 }
2497 inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
mutable_lon()2498 DenseNodes::mutable_lon() {
2499 return &lon_;
2500 }
2501
2502 // repeated int32 keys_vals = 10 [packed = true];
keys_vals_size()2503 inline int DenseNodes::keys_vals_size() const {
2504 return keys_vals_.size();
2505 }
clear_keys_vals()2506 inline void DenseNodes::clear_keys_vals() {
2507 keys_vals_.Clear();
2508 }
keys_vals(int index)2509 inline ::google::protobuf::int32 DenseNodes::keys_vals(int index) const {
2510 return keys_vals_.Get(index);
2511 }
set_keys_vals(int index,::google::protobuf::int32 value)2512 inline void DenseNodes::set_keys_vals(int index, ::google::protobuf::int32 value) {
2513 keys_vals_.Set(index, value);
2514 }
add_keys_vals(::google::protobuf::int32 value)2515 inline void DenseNodes::add_keys_vals(::google::protobuf::int32 value) {
2516 keys_vals_.Add(value);
2517 }
2518 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
keys_vals()2519 DenseNodes::keys_vals() const {
2520 return keys_vals_;
2521 }
2522 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
mutable_keys_vals()2523 DenseNodes::mutable_keys_vals() {
2524 return &keys_vals_;
2525 }
2526
2527 // -------------------------------------------------------------------
2528
2529 // Way
2530
2531 // required int64 id = 1;
has_id()2532 inline bool Way::has_id() const {
2533 return _has_bit(0);
2534 }
clear_id()2535 inline void Way::clear_id() {
2536 id_ = GOOGLE_LONGLONG(0);
2537 _clear_bit(0);
2538 }
id()2539 inline ::google::protobuf::int64 Way::id() const {
2540 return id_;
2541 }
set_id(::google::protobuf::int64 value)2542 inline void Way::set_id(::google::protobuf::int64 value) {
2543 _set_bit(0);
2544 id_ = value;
2545 }
2546
2547 // repeated uint32 keys = 2 [packed = true];
keys_size()2548 inline int Way::keys_size() const {
2549 return keys_.size();
2550 }
clear_keys()2551 inline void Way::clear_keys() {
2552 keys_.Clear();
2553 }
keys(int index)2554 inline ::google::protobuf::uint32 Way::keys(int index) const {
2555 return keys_.Get(index);
2556 }
set_keys(int index,::google::protobuf::uint32 value)2557 inline void Way::set_keys(int index, ::google::protobuf::uint32 value) {
2558 keys_.Set(index, value);
2559 }
add_keys(::google::protobuf::uint32 value)2560 inline void Way::add_keys(::google::protobuf::uint32 value) {
2561 keys_.Add(value);
2562 }
2563 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
keys()2564 Way::keys() const {
2565 return keys_;
2566 }
2567 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
mutable_keys()2568 Way::mutable_keys() {
2569 return &keys_;
2570 }
2571
2572 // repeated uint32 vals = 3 [packed = true];
vals_size()2573 inline int Way::vals_size() const {
2574 return vals_.size();
2575 }
clear_vals()2576 inline void Way::clear_vals() {
2577 vals_.Clear();
2578 }
vals(int index)2579 inline ::google::protobuf::uint32 Way::vals(int index) const {
2580 return vals_.Get(index);
2581 }
set_vals(int index,::google::protobuf::uint32 value)2582 inline void Way::set_vals(int index, ::google::protobuf::uint32 value) {
2583 vals_.Set(index, value);
2584 }
add_vals(::google::protobuf::uint32 value)2585 inline void Way::add_vals(::google::protobuf::uint32 value) {
2586 vals_.Add(value);
2587 }
2588 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
vals()2589 Way::vals() const {
2590 return vals_;
2591 }
2592 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
mutable_vals()2593 Way::mutable_vals() {
2594 return &vals_;
2595 }
2596
2597 // optional .OSMPBF.Info info = 4;
has_info()2598 inline bool Way::has_info() const {
2599 return _has_bit(3);
2600 }
clear_info()2601 inline void Way::clear_info() {
2602 if (info_ != NULL) info_->::OSMPBF::Info::Clear();
2603 _clear_bit(3);
2604 }
info()2605 inline const ::OSMPBF::Info& Way::info() const {
2606 return info_ != NULL ? *info_ : *default_instance_->info_;
2607 }
mutable_info()2608 inline ::OSMPBF::Info* Way::mutable_info() {
2609 _set_bit(3);
2610 if (info_ == NULL) info_ = new ::OSMPBF::Info;
2611 return info_;
2612 }
2613
2614 // repeated sint64 refs = 8 [packed = true];
refs_size()2615 inline int Way::refs_size() const {
2616 return refs_.size();
2617 }
clear_refs()2618 inline void Way::clear_refs() {
2619 refs_.Clear();
2620 }
refs(int index)2621 inline ::google::protobuf::int64 Way::refs(int index) const {
2622 return refs_.Get(index);
2623 }
set_refs(int index,::google::protobuf::int64 value)2624 inline void Way::set_refs(int index, ::google::protobuf::int64 value) {
2625 refs_.Set(index, value);
2626 }
add_refs(::google::protobuf::int64 value)2627 inline void Way::add_refs(::google::protobuf::int64 value) {
2628 refs_.Add(value);
2629 }
2630 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
refs()2631 Way::refs() const {
2632 return refs_;
2633 }
2634 inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
mutable_refs()2635 Way::mutable_refs() {
2636 return &refs_;
2637 }
2638
2639 // -------------------------------------------------------------------
2640
2641 // Relation
2642
2643 // required int64 id = 1;
has_id()2644 inline bool Relation::has_id() const {
2645 return _has_bit(0);
2646 }
clear_id()2647 inline void Relation::clear_id() {
2648 id_ = GOOGLE_LONGLONG(0);
2649 _clear_bit(0);
2650 }
id()2651 inline ::google::protobuf::int64 Relation::id() const {
2652 return id_;
2653 }
set_id(::google::protobuf::int64 value)2654 inline void Relation::set_id(::google::protobuf::int64 value) {
2655 _set_bit(0);
2656 id_ = value;
2657 }
2658
2659 // repeated uint32 keys = 2 [packed = true];
keys_size()2660 inline int Relation::keys_size() const {
2661 return keys_.size();
2662 }
clear_keys()2663 inline void Relation::clear_keys() {
2664 keys_.Clear();
2665 }
keys(int index)2666 inline ::google::protobuf::uint32 Relation::keys(int index) const {
2667 return keys_.Get(index);
2668 }
set_keys(int index,::google::protobuf::uint32 value)2669 inline void Relation::set_keys(int index, ::google::protobuf::uint32 value) {
2670 keys_.Set(index, value);
2671 }
add_keys(::google::protobuf::uint32 value)2672 inline void Relation::add_keys(::google::protobuf::uint32 value) {
2673 keys_.Add(value);
2674 }
2675 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
keys()2676 Relation::keys() const {
2677 return keys_;
2678 }
2679 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
mutable_keys()2680 Relation::mutable_keys() {
2681 return &keys_;
2682 }
2683
2684 // repeated uint32 vals = 3 [packed = true];
vals_size()2685 inline int Relation::vals_size() const {
2686 return vals_.size();
2687 }
clear_vals()2688 inline void Relation::clear_vals() {
2689 vals_.Clear();
2690 }
vals(int index)2691 inline ::google::protobuf::uint32 Relation::vals(int index) const {
2692 return vals_.Get(index);
2693 }
set_vals(int index,::google::protobuf::uint32 value)2694 inline void Relation::set_vals(int index, ::google::protobuf::uint32 value) {
2695 vals_.Set(index, value);
2696 }
add_vals(::google::protobuf::uint32 value)2697 inline void Relation::add_vals(::google::protobuf::uint32 value) {
2698 vals_.Add(value);
2699 }
2700 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
vals()2701 Relation::vals() const {
2702 return vals_;
2703 }
2704 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
mutable_vals()2705 Relation::mutable_vals() {
2706 return &vals_;
2707 }
2708
2709 // optional .OSMPBF.Info info = 4;
has_info()2710 inline bool Relation::has_info() const {
2711 return _has_bit(3);
2712 }
clear_info()2713 inline void Relation::clear_info() {
2714 if (info_ != NULL) info_->::OSMPBF::Info::Clear();
2715 _clear_bit(3);
2716 }
info()2717 inline const ::OSMPBF::Info& Relation::info() const {
2718 return info_ != NULL ? *info_ : *default_instance_->info_;
2719 }
mutable_info()2720 inline ::OSMPBF::Info* Relation::mutable_info() {
2721 _set_bit(3);
2722 if (info_ == NULL) info_ = new ::OSMPBF::Info;
2723 return info_;
2724 }
2725
2726 // repeated int32 roles_sid = 8 [packed = true];
roles_sid_size()2727 inline int Relation::roles_sid_size() const {
2728 return roles_sid_.size();
2729 }
clear_roles_sid()2730 inline void Relation::clear_roles_sid() {
2731 roles_sid_.Clear();
2732 }
roles_sid(int index)2733 inline ::google::protobuf::int32 Relation::roles_sid(int index) const {
2734 return roles_sid_.Get(index);
2735 }
set_roles_sid(int index,::google::protobuf::int32 value)2736 inline void Relation::set_roles_sid(int index, ::google::protobuf::int32 value) {
2737 roles_sid_.Set(index, value);
2738 }
add_roles_sid(::google::protobuf::int32 value)2739 inline void Relation::add_roles_sid(::google::protobuf::int32 value) {
2740 roles_sid_.Add(value);
2741 }
2742 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
roles_sid()2743 Relation::roles_sid() const {
2744 return roles_sid_;
2745 }
2746 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
mutable_roles_sid()2747 Relation::mutable_roles_sid() {
2748 return &roles_sid_;
2749 }
2750
2751 // repeated sint64 memids = 9 [packed = true];
memids_size()2752 inline int Relation::memids_size() const {
2753 return memids_.size();
2754 }
clear_memids()2755 inline void Relation::clear_memids() {
2756 memids_.Clear();
2757 }
memids(int index)2758 inline ::google::protobuf::int64 Relation::memids(int index) const {
2759 return memids_.Get(index);
2760 }
set_memids(int index,::google::protobuf::int64 value)2761 inline void Relation::set_memids(int index, ::google::protobuf::int64 value) {
2762 memids_.Set(index, value);
2763 }
add_memids(::google::protobuf::int64 value)2764 inline void Relation::add_memids(::google::protobuf::int64 value) {
2765 memids_.Add(value);
2766 }
2767 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
memids()2768 Relation::memids() const {
2769 return memids_;
2770 }
2771 inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
mutable_memids()2772 Relation::mutable_memids() {
2773 return &memids_;
2774 }
2775
2776 // repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
types_size()2777 inline int Relation::types_size() const {
2778 return types_.size();
2779 }
clear_types()2780 inline void Relation::clear_types() {
2781 types_.Clear();
2782 }
types(int index)2783 inline ::OSMPBF::Relation_MemberType Relation::types(int index) const {
2784 return static_cast< ::OSMPBF::Relation_MemberType >(types_.Get(index));
2785 }
set_types(int index,::OSMPBF::Relation_MemberType value)2786 inline void Relation::set_types(int index, ::OSMPBF::Relation_MemberType value) {
2787 GOOGLE_DCHECK(::OSMPBF::Relation_MemberType_IsValid(value));
2788 types_.Set(index, value);
2789 }
add_types(::OSMPBF::Relation_MemberType value)2790 inline void Relation::add_types(::OSMPBF::Relation_MemberType value) {
2791 GOOGLE_DCHECK(::OSMPBF::Relation_MemberType_IsValid(value));
2792 types_.Add(value);
2793 }
2794 inline const ::google::protobuf::RepeatedField<int>&
types()2795 Relation::types() const {
2796 return types_;
2797 }
2798 inline ::google::protobuf::RepeatedField<int>*
mutable_types()2799 Relation::mutable_types() {
2800 return &types_;
2801 }
2802
2803
2804 // @@protoc_insertion_point(namespace_scope)
2805
2806 } // namespace OSMPBF
2807
2808 // @@protoc_insertion_point(global_scope)
2809
2810 #endif // PROTOBUF_osmformat_2eproto__INCLUDED
2811