-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathosmformat.pb.h
More file actions
6159 lines (5777 loc) · 210 KB
/
Copy pathosmformat.pb.h
File metadata and controls
6159 lines (5777 loc) · 210 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: osmformat.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_osmformat_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_osmformat_2eproto
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3021000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_osmformat_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_osmformat_2eproto {
static const uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_osmformat_2eproto;
namespace OSMPBF {
class ChangeSet;
struct ChangeSetDefaultTypeInternal;
extern ChangeSetDefaultTypeInternal _ChangeSet_default_instance_;
class DenseInfo;
struct DenseInfoDefaultTypeInternal;
extern DenseInfoDefaultTypeInternal _DenseInfo_default_instance_;
class DenseNodes;
struct DenseNodesDefaultTypeInternal;
extern DenseNodesDefaultTypeInternal _DenseNodes_default_instance_;
class HeaderBBox;
struct HeaderBBoxDefaultTypeInternal;
extern HeaderBBoxDefaultTypeInternal _HeaderBBox_default_instance_;
class HeaderBlock;
struct HeaderBlockDefaultTypeInternal;
extern HeaderBlockDefaultTypeInternal _HeaderBlock_default_instance_;
class Info;
struct InfoDefaultTypeInternal;
extern InfoDefaultTypeInternal _Info_default_instance_;
class Node;
struct NodeDefaultTypeInternal;
extern NodeDefaultTypeInternal _Node_default_instance_;
class PrimitiveBlock;
struct PrimitiveBlockDefaultTypeInternal;
extern PrimitiveBlockDefaultTypeInternal _PrimitiveBlock_default_instance_;
class PrimitiveGroup;
struct PrimitiveGroupDefaultTypeInternal;
extern PrimitiveGroupDefaultTypeInternal _PrimitiveGroup_default_instance_;
class Relation;
struct RelationDefaultTypeInternal;
extern RelationDefaultTypeInternal _Relation_default_instance_;
class StringTable;
struct StringTableDefaultTypeInternal;
extern StringTableDefaultTypeInternal _StringTable_default_instance_;
class Way;
struct WayDefaultTypeInternal;
extern WayDefaultTypeInternal _Way_default_instance_;
} // namespace OSMPBF
PROTOBUF_NAMESPACE_OPEN
template<> ::OSMPBF::ChangeSet* Arena::CreateMaybeMessage<::OSMPBF::ChangeSet>(Arena*);
template<> ::OSMPBF::DenseInfo* Arena::CreateMaybeMessage<::OSMPBF::DenseInfo>(Arena*);
template<> ::OSMPBF::DenseNodes* Arena::CreateMaybeMessage<::OSMPBF::DenseNodes>(Arena*);
template<> ::OSMPBF::HeaderBBox* Arena::CreateMaybeMessage<::OSMPBF::HeaderBBox>(Arena*);
template<> ::OSMPBF::HeaderBlock* Arena::CreateMaybeMessage<::OSMPBF::HeaderBlock>(Arena*);
template<> ::OSMPBF::Info* Arena::CreateMaybeMessage<::OSMPBF::Info>(Arena*);
template<> ::OSMPBF::Node* Arena::CreateMaybeMessage<::OSMPBF::Node>(Arena*);
template<> ::OSMPBF::PrimitiveBlock* Arena::CreateMaybeMessage<::OSMPBF::PrimitiveBlock>(Arena*);
template<> ::OSMPBF::PrimitiveGroup* Arena::CreateMaybeMessage<::OSMPBF::PrimitiveGroup>(Arena*);
template<> ::OSMPBF::Relation* Arena::CreateMaybeMessage<::OSMPBF::Relation>(Arena*);
template<> ::OSMPBF::StringTable* Arena::CreateMaybeMessage<::OSMPBF::StringTable>(Arena*);
template<> ::OSMPBF::Way* Arena::CreateMaybeMessage<::OSMPBF::Way>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace OSMPBF {
enum Relation_MemberType : int {
Relation_MemberType_NODE = 0,
Relation_MemberType_WAY = 1,
Relation_MemberType_RELATION = 2
};
bool Relation_MemberType_IsValid(int value);
constexpr Relation_MemberType Relation_MemberType_MemberType_MIN = Relation_MemberType_NODE;
constexpr Relation_MemberType Relation_MemberType_MemberType_MAX = Relation_MemberType_RELATION;
constexpr int Relation_MemberType_MemberType_ARRAYSIZE = Relation_MemberType_MemberType_MAX + 1;
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Relation_MemberType_descriptor();
template<typename T>
inline const std::string& Relation_MemberType_Name(T enum_t_value) {
static_assert(::std::is_same<T, Relation_MemberType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function Relation_MemberType_Name.");
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
Relation_MemberType_descriptor(), enum_t_value);
}
inline bool Relation_MemberType_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Relation_MemberType* value) {
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Relation_MemberType>(
Relation_MemberType_descriptor(), name, value);
}
// ===================================================================
class HeaderBlock final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:OSMPBF.HeaderBlock) */ {
public:
inline HeaderBlock() : HeaderBlock(nullptr) {}
~HeaderBlock() override;
explicit PROTOBUF_CONSTEXPR HeaderBlock(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
HeaderBlock(const HeaderBlock& from);
HeaderBlock(HeaderBlock&& from) noexcept
: HeaderBlock() {
*this = ::std::move(from);
}
inline HeaderBlock& operator=(const HeaderBlock& from) {
CopyFrom(from);
return *this;
}
inline HeaderBlock& operator=(HeaderBlock&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
}
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const HeaderBlock& default_instance() {
return *internal_default_instance();
}
static inline const HeaderBlock* internal_default_instance() {
return reinterpret_cast<const HeaderBlock*>(
&_HeaderBlock_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(HeaderBlock& a, HeaderBlock& b) {
a.Swap(&b);
}
inline void Swap(HeaderBlock* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(HeaderBlock* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
HeaderBlock* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<HeaderBlock>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const HeaderBlock& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const HeaderBlock& from) {
HeaderBlock::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(HeaderBlock* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "OSMPBF.HeaderBlock";
}
protected:
explicit HeaderBlock(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kRequiredFeaturesFieldNumber = 4,
kOptionalFeaturesFieldNumber = 5,
kWritingprogramFieldNumber = 16,
kSourceFieldNumber = 17,
kOsmosisReplicationBaseUrlFieldNumber = 34,
kBboxFieldNumber = 1,
kOsmosisReplicationTimestampFieldNumber = 32,
kOsmosisReplicationSequenceNumberFieldNumber = 33,
};
// repeated string required_features = 4;
int required_features_size() const;
private:
int _internal_required_features_size() const;
public:
void clear_required_features();
const std::string& required_features(int index) const;
std::string* mutable_required_features(int index);
void set_required_features(int index, const std::string& value);
void set_required_features(int index, std::string&& value);
void set_required_features(int index, const char* value);
void set_required_features(int index, const char* value, size_t size);
std::string* add_required_features();
void add_required_features(const std::string& value);
void add_required_features(std::string&& value);
void add_required_features(const char* value);
void add_required_features(const char* value, size_t size);
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& required_features() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_required_features();
private:
const std::string& _internal_required_features(int index) const;
std::string* _internal_add_required_features();
public:
// repeated string optional_features = 5;
int optional_features_size() const;
private:
int _internal_optional_features_size() const;
public:
void clear_optional_features();
const std::string& optional_features(int index) const;
std::string* mutable_optional_features(int index);
void set_optional_features(int index, const std::string& value);
void set_optional_features(int index, std::string&& value);
void set_optional_features(int index, const char* value);
void set_optional_features(int index, const char* value, size_t size);
std::string* add_optional_features();
void add_optional_features(const std::string& value);
void add_optional_features(std::string&& value);
void add_optional_features(const char* value);
void add_optional_features(const char* value, size_t size);
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& optional_features() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_optional_features();
private:
const std::string& _internal_optional_features(int index) const;
std::string* _internal_add_optional_features();
public:
// optional string writingprogram = 16;
bool has_writingprogram() const;
private:
bool _internal_has_writingprogram() const;
public:
void clear_writingprogram();
const std::string& writingprogram() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_writingprogram(ArgT0&& arg0, ArgT... args);
std::string* mutable_writingprogram();
PROTOBUF_NODISCARD std::string* release_writingprogram();
void set_allocated_writingprogram(std::string* writingprogram);
private:
const std::string& _internal_writingprogram() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_writingprogram(const std::string& value);
std::string* _internal_mutable_writingprogram();
public:
// optional string source = 17;
bool has_source() const;
private:
bool _internal_has_source() const;
public:
void clear_source();
const std::string& source() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_source(ArgT0&& arg0, ArgT... args);
std::string* mutable_source();
PROTOBUF_NODISCARD std::string* release_source();
void set_allocated_source(std::string* source);
private:
const std::string& _internal_source() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_source(const std::string& value);
std::string* _internal_mutable_source();
public:
// optional string osmosis_replication_base_url = 34;
bool has_osmosis_replication_base_url() const;
private:
bool _internal_has_osmosis_replication_base_url() const;
public:
void clear_osmosis_replication_base_url();
const std::string& osmosis_replication_base_url() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_osmosis_replication_base_url(ArgT0&& arg0, ArgT... args);
std::string* mutable_osmosis_replication_base_url();
PROTOBUF_NODISCARD std::string* release_osmosis_replication_base_url();
void set_allocated_osmosis_replication_base_url(std::string* osmosis_replication_base_url);
private:
const std::string& _internal_osmosis_replication_base_url() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_osmosis_replication_base_url(const std::string& value);
std::string* _internal_mutable_osmosis_replication_base_url();
public:
// optional .OSMPBF.HeaderBBox bbox = 1;
bool has_bbox() const;
private:
bool _internal_has_bbox() const;
public:
void clear_bbox();
const ::OSMPBF::HeaderBBox& bbox() const;
PROTOBUF_NODISCARD ::OSMPBF::HeaderBBox* release_bbox();
::OSMPBF::HeaderBBox* mutable_bbox();
void set_allocated_bbox(::OSMPBF::HeaderBBox* bbox);
private:
const ::OSMPBF::HeaderBBox& _internal_bbox() const;
::OSMPBF::HeaderBBox* _internal_mutable_bbox();
public:
void unsafe_arena_set_allocated_bbox(
::OSMPBF::HeaderBBox* bbox);
::OSMPBF::HeaderBBox* unsafe_arena_release_bbox();
// optional int64 osmosis_replication_timestamp = 32;
bool has_osmosis_replication_timestamp() const;
private:
bool _internal_has_osmosis_replication_timestamp() const;
public:
void clear_osmosis_replication_timestamp();
int64_t osmosis_replication_timestamp() const;
void set_osmosis_replication_timestamp(int64_t value);
private:
int64_t _internal_osmosis_replication_timestamp() const;
void _internal_set_osmosis_replication_timestamp(int64_t value);
public:
// optional int64 osmosis_replication_sequence_number = 33;
bool has_osmosis_replication_sequence_number() const;
private:
bool _internal_has_osmosis_replication_sequence_number() const;
public:
void clear_osmosis_replication_sequence_number();
int64_t osmosis_replication_sequence_number() const;
void set_osmosis_replication_sequence_number(int64_t value);
private:
int64_t _internal_osmosis_replication_sequence_number() const;
void _internal_set_osmosis_replication_sequence_number(int64_t value);
public:
// @@protoc_insertion_point(class_scope:OSMPBF.HeaderBlock)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> required_features_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> optional_features_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr writingprogram_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr source_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr osmosis_replication_base_url_;
::OSMPBF::HeaderBBox* bbox_;
int64_t osmosis_replication_timestamp_;
int64_t osmosis_replication_sequence_number_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_osmformat_2eproto;
};
// -------------------------------------------------------------------
class HeaderBBox final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:OSMPBF.HeaderBBox) */ {
public:
inline HeaderBBox() : HeaderBBox(nullptr) {}
~HeaderBBox() override;
explicit PROTOBUF_CONSTEXPR HeaderBBox(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
HeaderBBox(const HeaderBBox& from);
HeaderBBox(HeaderBBox&& from) noexcept
: HeaderBBox() {
*this = ::std::move(from);
}
inline HeaderBBox& operator=(const HeaderBBox& from) {
CopyFrom(from);
return *this;
}
inline HeaderBBox& operator=(HeaderBBox&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
}
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const HeaderBBox& default_instance() {
return *internal_default_instance();
}
static inline const HeaderBBox* internal_default_instance() {
return reinterpret_cast<const HeaderBBox*>(
&_HeaderBBox_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
friend void swap(HeaderBBox& a, HeaderBBox& b) {
a.Swap(&b);
}
inline void Swap(HeaderBBox* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(HeaderBBox* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
HeaderBBox* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<HeaderBBox>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const HeaderBBox& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const HeaderBBox& from) {
HeaderBBox::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(HeaderBBox* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "OSMPBF.HeaderBBox";
}
protected:
explicit HeaderBBox(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kLeftFieldNumber = 1,
kRightFieldNumber = 2,
kTopFieldNumber = 3,
kBottomFieldNumber = 4,
};
// required sint64 left = 1;
bool has_left() const;
private:
bool _internal_has_left() const;
public:
void clear_left();
int64_t left() const;
void set_left(int64_t value);
private:
int64_t _internal_left() const;
void _internal_set_left(int64_t value);
public:
// required sint64 right = 2;
bool has_right() const;
private:
bool _internal_has_right() const;
public:
void clear_right();
int64_t right() const;
void set_right(int64_t value);
private:
int64_t _internal_right() const;
void _internal_set_right(int64_t value);
public:
// required sint64 top = 3;
bool has_top() const;
private:
bool _internal_has_top() const;
public:
void clear_top();
int64_t top() const;
void set_top(int64_t value);
private:
int64_t _internal_top() const;
void _internal_set_top(int64_t value);
public:
// required sint64 bottom = 4;
bool has_bottom() const;
private:
bool _internal_has_bottom() const;
public:
void clear_bottom();
int64_t bottom() const;
void set_bottom(int64_t value);
private:
int64_t _internal_bottom() const;
void _internal_set_bottom(int64_t value);
public:
// @@protoc_insertion_point(class_scope:OSMPBF.HeaderBBox)
private:
class _Internal;
// helper for ByteSizeLong()
size_t RequiredFieldsByteSizeFallback() const;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
int64_t left_;
int64_t right_;
int64_t top_;
int64_t bottom_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_osmformat_2eproto;
};
// -------------------------------------------------------------------
class PrimitiveBlock final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:OSMPBF.PrimitiveBlock) */ {
public:
inline PrimitiveBlock() : PrimitiveBlock(nullptr) {}
~PrimitiveBlock() override;
explicit PROTOBUF_CONSTEXPR PrimitiveBlock(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
PrimitiveBlock(const PrimitiveBlock& from);
PrimitiveBlock(PrimitiveBlock&& from) noexcept
: PrimitiveBlock() {
*this = ::std::move(from);
}
inline PrimitiveBlock& operator=(const PrimitiveBlock& from) {
CopyFrom(from);
return *this;
}
inline PrimitiveBlock& operator=(PrimitiveBlock&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
}
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const PrimitiveBlock& default_instance() {
return *internal_default_instance();
}
static inline const PrimitiveBlock* internal_default_instance() {
return reinterpret_cast<const PrimitiveBlock*>(
&_PrimitiveBlock_default_instance_);
}
static constexpr int kIndexInFileMessages =
2;
friend void swap(PrimitiveBlock& a, PrimitiveBlock& b) {
a.Swap(&b);
}
inline void Swap(PrimitiveBlock* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(PrimitiveBlock* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
PrimitiveBlock* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<PrimitiveBlock>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const PrimitiveBlock& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const PrimitiveBlock& from) {
PrimitiveBlock::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(PrimitiveBlock* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "OSMPBF.PrimitiveBlock";
}
protected:
explicit PrimitiveBlock(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kPrimitivegroupFieldNumber = 2,
kStringtableFieldNumber = 1,
kLatOffsetFieldNumber = 19,
kLonOffsetFieldNumber = 20,
kGranularityFieldNumber = 17,
kDateGranularityFieldNumber = 18,
};
// repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;
int primitivegroup_size() const;
private:
int _internal_primitivegroup_size() const;
public:
void clear_primitivegroup();
::OSMPBF::PrimitiveGroup* mutable_primitivegroup(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::OSMPBF::PrimitiveGroup >*
mutable_primitivegroup();
private:
const ::OSMPBF::PrimitiveGroup& _internal_primitivegroup(int index) const;
::OSMPBF::PrimitiveGroup* _internal_add_primitivegroup();
public:
const ::OSMPBF::PrimitiveGroup& primitivegroup(int index) const;
::OSMPBF::PrimitiveGroup* add_primitivegroup();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::OSMPBF::PrimitiveGroup >&
primitivegroup() const;
// required .OSMPBF.StringTable stringtable = 1;
bool has_stringtable() const;
private:
bool _internal_has_stringtable() const;
public:
void clear_stringtable();
const ::OSMPBF::StringTable& stringtable() const;
PROTOBUF_NODISCARD ::OSMPBF::StringTable* release_stringtable();
::OSMPBF::StringTable* mutable_stringtable();
void set_allocated_stringtable(::OSMPBF::StringTable* stringtable);
private:
const ::OSMPBF::StringTable& _internal_stringtable() const;
::OSMPBF::StringTable* _internal_mutable_stringtable();
public:
void unsafe_arena_set_allocated_stringtable(
::OSMPBF::StringTable* stringtable);
::OSMPBF::StringTable* unsafe_arena_release_stringtable();
// optional int64 lat_offset = 19 [default = 0];
bool has_lat_offset() const;
private:
bool _internal_has_lat_offset() const;
public:
void clear_lat_offset();
int64_t lat_offset() const;
void set_lat_offset(int64_t value);
private:
int64_t _internal_lat_offset() const;
void _internal_set_lat_offset(int64_t value);
public:
// optional int64 lon_offset = 20 [default = 0];
bool has_lon_offset() const;
private:
bool _internal_has_lon_offset() const;
public:
void clear_lon_offset();
int64_t lon_offset() const;
void set_lon_offset(int64_t value);
private:
int64_t _internal_lon_offset() const;
void _internal_set_lon_offset(int64_t value);
public:
// optional int32 granularity = 17 [default = 100];
bool has_granularity() const;
private:
bool _internal_has_granularity() const;
public:
void clear_granularity();
int32_t granularity() const;
void set_granularity(int32_t value);
private:
int32_t _internal_granularity() const;
void _internal_set_granularity(int32_t value);
public:
// optional int32 date_granularity = 18 [default = 1000];
bool has_date_granularity() const;
private:
bool _internal_has_date_granularity() const;
public:
void clear_date_granularity();
int32_t date_granularity() const;
void set_date_granularity(int32_t value);
private:
int32_t _internal_date_granularity() const;
void _internal_set_date_granularity(int32_t value);
public:
// @@protoc_insertion_point(class_scope:OSMPBF.PrimitiveBlock)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::OSMPBF::PrimitiveGroup > primitivegroup_;
::OSMPBF::StringTable* stringtable_;
int64_t lat_offset_;
int64_t lon_offset_;
int32_t granularity_;
int32_t date_granularity_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_osmformat_2eproto;
};
// -------------------------------------------------------------------
class PrimitiveGroup final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:OSMPBF.PrimitiveGroup) */ {
public:
inline PrimitiveGroup() : PrimitiveGroup(nullptr) {}
~PrimitiveGroup() override;
explicit PROTOBUF_CONSTEXPR PrimitiveGroup(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
PrimitiveGroup(const PrimitiveGroup& from);
PrimitiveGroup(PrimitiveGroup&& from) noexcept
: PrimitiveGroup() {
*this = ::std::move(from);
}
inline PrimitiveGroup& operator=(const PrimitiveGroup& from) {
CopyFrom(from);
return *this;
}
inline PrimitiveGroup& operator=(PrimitiveGroup&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
}
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const PrimitiveGroup& default_instance() {
return *internal_default_instance();
}
static inline const PrimitiveGroup* internal_default_instance() {
return reinterpret_cast<const PrimitiveGroup*>(
&_PrimitiveGroup_default_instance_);
}
static constexpr int kIndexInFileMessages =
3;
friend void swap(PrimitiveGroup& a, PrimitiveGroup& b) {
a.Swap(&b);
}
inline void Swap(PrimitiveGroup* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(PrimitiveGroup* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
PrimitiveGroup* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<PrimitiveGroup>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const PrimitiveGroup& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const PrimitiveGroup& from) {
PrimitiveGroup::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(PrimitiveGroup* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "OSMPBF.PrimitiveGroup";
}