pbf_parser 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/ext/pbf_parser/extconf.rb +29 -0
- data/ext/pbf_parser/fileformat.pb-c.c +248 -0
- data/ext/pbf_parser/fileformat.pb-c.h +110 -0
- data/ext/pbf_parser/osmformat.pb-c.c +1648 -0
- data/ext/pbf_parser/osmformat.pb-c.h +532 -0
- data/ext/pbf_parser/pbf_parser.c +665 -0
- data/ext/pbf_parser/pbf_parser.h +32 -0
- data/lib/pbf_parser.rb +1 -0
- metadata +82 -0
@@ -0,0 +1,1648 @@
|
|
1
|
+
/* Generated by the protocol buffer compiler. DO NOT EDIT! */
|
2
|
+
|
3
|
+
/* Do not generate deprecated warnings for self */
|
4
|
+
#ifndef PROTOBUF_C_NO_DEPRECATED
|
5
|
+
#define PROTOBUF_C_NO_DEPRECATED
|
6
|
+
#endif
|
7
|
+
|
8
|
+
#include "osmformat.pb-c.h"
|
9
|
+
void header_block__init
|
10
|
+
(HeaderBlock *message)
|
11
|
+
{
|
12
|
+
static HeaderBlock init_value = HEADER_BLOCK__INIT;
|
13
|
+
*message = init_value;
|
14
|
+
}
|
15
|
+
size_t header_block__get_packed_size
|
16
|
+
(const HeaderBlock *message)
|
17
|
+
{
|
18
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &header_block__descriptor);
|
19
|
+
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
20
|
+
}
|
21
|
+
size_t header_block__pack
|
22
|
+
(const HeaderBlock *message,
|
23
|
+
uint8_t *out)
|
24
|
+
{
|
25
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &header_block__descriptor);
|
26
|
+
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
27
|
+
}
|
28
|
+
size_t header_block__pack_to_buffer
|
29
|
+
(const HeaderBlock *message,
|
30
|
+
ProtobufCBuffer *buffer)
|
31
|
+
{
|
32
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &header_block__descriptor);
|
33
|
+
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
34
|
+
}
|
35
|
+
HeaderBlock *
|
36
|
+
header_block__unpack
|
37
|
+
(ProtobufCAllocator *allocator,
|
38
|
+
size_t len,
|
39
|
+
const uint8_t *data)
|
40
|
+
{
|
41
|
+
return (HeaderBlock *)
|
42
|
+
protobuf_c_message_unpack (&header_block__descriptor,
|
43
|
+
allocator, len, data);
|
44
|
+
}
|
45
|
+
void header_block__free_unpacked
|
46
|
+
(HeaderBlock *message,
|
47
|
+
ProtobufCAllocator *allocator)
|
48
|
+
{
|
49
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &header_block__descriptor);
|
50
|
+
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
51
|
+
}
|
52
|
+
void header_bbox__init
|
53
|
+
(HeaderBBox *message)
|
54
|
+
{
|
55
|
+
static HeaderBBox init_value = HEADER_BBOX__INIT;
|
56
|
+
*message = init_value;
|
57
|
+
}
|
58
|
+
size_t header_bbox__get_packed_size
|
59
|
+
(const HeaderBBox *message)
|
60
|
+
{
|
61
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &header_bbox__descriptor);
|
62
|
+
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
63
|
+
}
|
64
|
+
size_t header_bbox__pack
|
65
|
+
(const HeaderBBox *message,
|
66
|
+
uint8_t *out)
|
67
|
+
{
|
68
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &header_bbox__descriptor);
|
69
|
+
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
70
|
+
}
|
71
|
+
size_t header_bbox__pack_to_buffer
|
72
|
+
(const HeaderBBox *message,
|
73
|
+
ProtobufCBuffer *buffer)
|
74
|
+
{
|
75
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &header_bbox__descriptor);
|
76
|
+
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
77
|
+
}
|
78
|
+
HeaderBBox *
|
79
|
+
header_bbox__unpack
|
80
|
+
(ProtobufCAllocator *allocator,
|
81
|
+
size_t len,
|
82
|
+
const uint8_t *data)
|
83
|
+
{
|
84
|
+
return (HeaderBBox *)
|
85
|
+
protobuf_c_message_unpack (&header_bbox__descriptor,
|
86
|
+
allocator, len, data);
|
87
|
+
}
|
88
|
+
void header_bbox__free_unpacked
|
89
|
+
(HeaderBBox *message,
|
90
|
+
ProtobufCAllocator *allocator)
|
91
|
+
{
|
92
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &header_bbox__descriptor);
|
93
|
+
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
94
|
+
}
|
95
|
+
void primitive_block__init
|
96
|
+
(PrimitiveBlock *message)
|
97
|
+
{
|
98
|
+
static PrimitiveBlock init_value = PRIMITIVE_BLOCK__INIT;
|
99
|
+
*message = init_value;
|
100
|
+
}
|
101
|
+
size_t primitive_block__get_packed_size
|
102
|
+
(const PrimitiveBlock *message)
|
103
|
+
{
|
104
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &primitive_block__descriptor);
|
105
|
+
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
106
|
+
}
|
107
|
+
size_t primitive_block__pack
|
108
|
+
(const PrimitiveBlock *message,
|
109
|
+
uint8_t *out)
|
110
|
+
{
|
111
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &primitive_block__descriptor);
|
112
|
+
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
113
|
+
}
|
114
|
+
size_t primitive_block__pack_to_buffer
|
115
|
+
(const PrimitiveBlock *message,
|
116
|
+
ProtobufCBuffer *buffer)
|
117
|
+
{
|
118
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &primitive_block__descriptor);
|
119
|
+
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
120
|
+
}
|
121
|
+
PrimitiveBlock *
|
122
|
+
primitive_block__unpack
|
123
|
+
(ProtobufCAllocator *allocator,
|
124
|
+
size_t len,
|
125
|
+
const uint8_t *data)
|
126
|
+
{
|
127
|
+
return (PrimitiveBlock *)
|
128
|
+
protobuf_c_message_unpack (&primitive_block__descriptor,
|
129
|
+
allocator, len, data);
|
130
|
+
}
|
131
|
+
void primitive_block__free_unpacked
|
132
|
+
(PrimitiveBlock *message,
|
133
|
+
ProtobufCAllocator *allocator)
|
134
|
+
{
|
135
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &primitive_block__descriptor);
|
136
|
+
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
137
|
+
}
|
138
|
+
void primitive_group__init
|
139
|
+
(PrimitiveGroup *message)
|
140
|
+
{
|
141
|
+
static PrimitiveGroup init_value = PRIMITIVE_GROUP__INIT;
|
142
|
+
*message = init_value;
|
143
|
+
}
|
144
|
+
size_t primitive_group__get_packed_size
|
145
|
+
(const PrimitiveGroup *message)
|
146
|
+
{
|
147
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &primitive_group__descriptor);
|
148
|
+
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
149
|
+
}
|
150
|
+
size_t primitive_group__pack
|
151
|
+
(const PrimitiveGroup *message,
|
152
|
+
uint8_t *out)
|
153
|
+
{
|
154
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &primitive_group__descriptor);
|
155
|
+
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
156
|
+
}
|
157
|
+
size_t primitive_group__pack_to_buffer
|
158
|
+
(const PrimitiveGroup *message,
|
159
|
+
ProtobufCBuffer *buffer)
|
160
|
+
{
|
161
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &primitive_group__descriptor);
|
162
|
+
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
163
|
+
}
|
164
|
+
PrimitiveGroup *
|
165
|
+
primitive_group__unpack
|
166
|
+
(ProtobufCAllocator *allocator,
|
167
|
+
size_t len,
|
168
|
+
const uint8_t *data)
|
169
|
+
{
|
170
|
+
return (PrimitiveGroup *)
|
171
|
+
protobuf_c_message_unpack (&primitive_group__descriptor,
|
172
|
+
allocator, len, data);
|
173
|
+
}
|
174
|
+
void primitive_group__free_unpacked
|
175
|
+
(PrimitiveGroup *message,
|
176
|
+
ProtobufCAllocator *allocator)
|
177
|
+
{
|
178
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &primitive_group__descriptor);
|
179
|
+
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
180
|
+
}
|
181
|
+
void string_table__init
|
182
|
+
(StringTable *message)
|
183
|
+
{
|
184
|
+
static StringTable init_value = STRING_TABLE__INIT;
|
185
|
+
*message = init_value;
|
186
|
+
}
|
187
|
+
size_t string_table__get_packed_size
|
188
|
+
(const StringTable *message)
|
189
|
+
{
|
190
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &string_table__descriptor);
|
191
|
+
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
192
|
+
}
|
193
|
+
size_t string_table__pack
|
194
|
+
(const StringTable *message,
|
195
|
+
uint8_t *out)
|
196
|
+
{
|
197
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &string_table__descriptor);
|
198
|
+
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
199
|
+
}
|
200
|
+
size_t string_table__pack_to_buffer
|
201
|
+
(const StringTable *message,
|
202
|
+
ProtobufCBuffer *buffer)
|
203
|
+
{
|
204
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &string_table__descriptor);
|
205
|
+
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
206
|
+
}
|
207
|
+
StringTable *
|
208
|
+
string_table__unpack
|
209
|
+
(ProtobufCAllocator *allocator,
|
210
|
+
size_t len,
|
211
|
+
const uint8_t *data)
|
212
|
+
{
|
213
|
+
return (StringTable *)
|
214
|
+
protobuf_c_message_unpack (&string_table__descriptor,
|
215
|
+
allocator, len, data);
|
216
|
+
}
|
217
|
+
void string_table__free_unpacked
|
218
|
+
(StringTable *message,
|
219
|
+
ProtobufCAllocator *allocator)
|
220
|
+
{
|
221
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &string_table__descriptor);
|
222
|
+
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
223
|
+
}
|
224
|
+
void info__init
|
225
|
+
(Info *message)
|
226
|
+
{
|
227
|
+
static Info init_value = INFO__INIT;
|
228
|
+
*message = init_value;
|
229
|
+
}
|
230
|
+
size_t info__get_packed_size
|
231
|
+
(const Info *message)
|
232
|
+
{
|
233
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &info__descriptor);
|
234
|
+
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
235
|
+
}
|
236
|
+
size_t info__pack
|
237
|
+
(const Info *message,
|
238
|
+
uint8_t *out)
|
239
|
+
{
|
240
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &info__descriptor);
|
241
|
+
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
242
|
+
}
|
243
|
+
size_t info__pack_to_buffer
|
244
|
+
(const Info *message,
|
245
|
+
ProtobufCBuffer *buffer)
|
246
|
+
{
|
247
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &info__descriptor);
|
248
|
+
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
249
|
+
}
|
250
|
+
Info *
|
251
|
+
info__unpack
|
252
|
+
(ProtobufCAllocator *allocator,
|
253
|
+
size_t len,
|
254
|
+
const uint8_t *data)
|
255
|
+
{
|
256
|
+
return (Info *)
|
257
|
+
protobuf_c_message_unpack (&info__descriptor,
|
258
|
+
allocator, len, data);
|
259
|
+
}
|
260
|
+
void info__free_unpacked
|
261
|
+
(Info *message,
|
262
|
+
ProtobufCAllocator *allocator)
|
263
|
+
{
|
264
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &info__descriptor);
|
265
|
+
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
266
|
+
}
|
267
|
+
void dense_info__init
|
268
|
+
(DenseInfo *message)
|
269
|
+
{
|
270
|
+
static DenseInfo init_value = DENSE_INFO__INIT;
|
271
|
+
*message = init_value;
|
272
|
+
}
|
273
|
+
size_t dense_info__get_packed_size
|
274
|
+
(const DenseInfo *message)
|
275
|
+
{
|
276
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &dense_info__descriptor);
|
277
|
+
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
278
|
+
}
|
279
|
+
size_t dense_info__pack
|
280
|
+
(const DenseInfo *message,
|
281
|
+
uint8_t *out)
|
282
|
+
{
|
283
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &dense_info__descriptor);
|
284
|
+
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
285
|
+
}
|
286
|
+
size_t dense_info__pack_to_buffer
|
287
|
+
(const DenseInfo *message,
|
288
|
+
ProtobufCBuffer *buffer)
|
289
|
+
{
|
290
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &dense_info__descriptor);
|
291
|
+
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
292
|
+
}
|
293
|
+
DenseInfo *
|
294
|
+
dense_info__unpack
|
295
|
+
(ProtobufCAllocator *allocator,
|
296
|
+
size_t len,
|
297
|
+
const uint8_t *data)
|
298
|
+
{
|
299
|
+
return (DenseInfo *)
|
300
|
+
protobuf_c_message_unpack (&dense_info__descriptor,
|
301
|
+
allocator, len, data);
|
302
|
+
}
|
303
|
+
void dense_info__free_unpacked
|
304
|
+
(DenseInfo *message,
|
305
|
+
ProtobufCAllocator *allocator)
|
306
|
+
{
|
307
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &dense_info__descriptor);
|
308
|
+
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
309
|
+
}
|
310
|
+
void change_set__init
|
311
|
+
(ChangeSet *message)
|
312
|
+
{
|
313
|
+
static ChangeSet init_value = CHANGE_SET__INIT;
|
314
|
+
*message = init_value;
|
315
|
+
}
|
316
|
+
size_t change_set__get_packed_size
|
317
|
+
(const ChangeSet *message)
|
318
|
+
{
|
319
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &change_set__descriptor);
|
320
|
+
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
321
|
+
}
|
322
|
+
size_t change_set__pack
|
323
|
+
(const ChangeSet *message,
|
324
|
+
uint8_t *out)
|
325
|
+
{
|
326
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &change_set__descriptor);
|
327
|
+
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
328
|
+
}
|
329
|
+
size_t change_set__pack_to_buffer
|
330
|
+
(const ChangeSet *message,
|
331
|
+
ProtobufCBuffer *buffer)
|
332
|
+
{
|
333
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &change_set__descriptor);
|
334
|
+
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
335
|
+
}
|
336
|
+
ChangeSet *
|
337
|
+
change_set__unpack
|
338
|
+
(ProtobufCAllocator *allocator,
|
339
|
+
size_t len,
|
340
|
+
const uint8_t *data)
|
341
|
+
{
|
342
|
+
return (ChangeSet *)
|
343
|
+
protobuf_c_message_unpack (&change_set__descriptor,
|
344
|
+
allocator, len, data);
|
345
|
+
}
|
346
|
+
void change_set__free_unpacked
|
347
|
+
(ChangeSet *message,
|
348
|
+
ProtobufCAllocator *allocator)
|
349
|
+
{
|
350
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &change_set__descriptor);
|
351
|
+
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
352
|
+
}
|
353
|
+
void node__init
|
354
|
+
(Node *message)
|
355
|
+
{
|
356
|
+
static Node init_value = NODE__INIT;
|
357
|
+
*message = init_value;
|
358
|
+
}
|
359
|
+
size_t node__get_packed_size
|
360
|
+
(const Node *message)
|
361
|
+
{
|
362
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &node__descriptor);
|
363
|
+
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
364
|
+
}
|
365
|
+
size_t node__pack
|
366
|
+
(const Node *message,
|
367
|
+
uint8_t *out)
|
368
|
+
{
|
369
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &node__descriptor);
|
370
|
+
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
371
|
+
}
|
372
|
+
size_t node__pack_to_buffer
|
373
|
+
(const Node *message,
|
374
|
+
ProtobufCBuffer *buffer)
|
375
|
+
{
|
376
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &node__descriptor);
|
377
|
+
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
378
|
+
}
|
379
|
+
Node *
|
380
|
+
node__unpack
|
381
|
+
(ProtobufCAllocator *allocator,
|
382
|
+
size_t len,
|
383
|
+
const uint8_t *data)
|
384
|
+
{
|
385
|
+
return (Node *)
|
386
|
+
protobuf_c_message_unpack (&node__descriptor,
|
387
|
+
allocator, len, data);
|
388
|
+
}
|
389
|
+
void node__free_unpacked
|
390
|
+
(Node *message,
|
391
|
+
ProtobufCAllocator *allocator)
|
392
|
+
{
|
393
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &node__descriptor);
|
394
|
+
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
395
|
+
}
|
396
|
+
void dense_nodes__init
|
397
|
+
(DenseNodes *message)
|
398
|
+
{
|
399
|
+
static DenseNodes init_value = DENSE_NODES__INIT;
|
400
|
+
*message = init_value;
|
401
|
+
}
|
402
|
+
size_t dense_nodes__get_packed_size
|
403
|
+
(const DenseNodes *message)
|
404
|
+
{
|
405
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &dense_nodes__descriptor);
|
406
|
+
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
407
|
+
}
|
408
|
+
size_t dense_nodes__pack
|
409
|
+
(const DenseNodes *message,
|
410
|
+
uint8_t *out)
|
411
|
+
{
|
412
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &dense_nodes__descriptor);
|
413
|
+
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
414
|
+
}
|
415
|
+
size_t dense_nodes__pack_to_buffer
|
416
|
+
(const DenseNodes *message,
|
417
|
+
ProtobufCBuffer *buffer)
|
418
|
+
{
|
419
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &dense_nodes__descriptor);
|
420
|
+
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
421
|
+
}
|
422
|
+
DenseNodes *
|
423
|
+
dense_nodes__unpack
|
424
|
+
(ProtobufCAllocator *allocator,
|
425
|
+
size_t len,
|
426
|
+
const uint8_t *data)
|
427
|
+
{
|
428
|
+
return (DenseNodes *)
|
429
|
+
protobuf_c_message_unpack (&dense_nodes__descriptor,
|
430
|
+
allocator, len, data);
|
431
|
+
}
|
432
|
+
void dense_nodes__free_unpacked
|
433
|
+
(DenseNodes *message,
|
434
|
+
ProtobufCAllocator *allocator)
|
435
|
+
{
|
436
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &dense_nodes__descriptor);
|
437
|
+
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
438
|
+
}
|
439
|
+
void way__init
|
440
|
+
(Way *message)
|
441
|
+
{
|
442
|
+
static Way init_value = WAY__INIT;
|
443
|
+
*message = init_value;
|
444
|
+
}
|
445
|
+
size_t way__get_packed_size
|
446
|
+
(const Way *message)
|
447
|
+
{
|
448
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &way__descriptor);
|
449
|
+
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
450
|
+
}
|
451
|
+
size_t way__pack
|
452
|
+
(const Way *message,
|
453
|
+
uint8_t *out)
|
454
|
+
{
|
455
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &way__descriptor);
|
456
|
+
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
457
|
+
}
|
458
|
+
size_t way__pack_to_buffer
|
459
|
+
(const Way *message,
|
460
|
+
ProtobufCBuffer *buffer)
|
461
|
+
{
|
462
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &way__descriptor);
|
463
|
+
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
464
|
+
}
|
465
|
+
Way *
|
466
|
+
way__unpack
|
467
|
+
(ProtobufCAllocator *allocator,
|
468
|
+
size_t len,
|
469
|
+
const uint8_t *data)
|
470
|
+
{
|
471
|
+
return (Way *)
|
472
|
+
protobuf_c_message_unpack (&way__descriptor,
|
473
|
+
allocator, len, data);
|
474
|
+
}
|
475
|
+
void way__free_unpacked
|
476
|
+
(Way *message,
|
477
|
+
ProtobufCAllocator *allocator)
|
478
|
+
{
|
479
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &way__descriptor);
|
480
|
+
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
481
|
+
}
|
482
|
+
void relation__init
|
483
|
+
(Relation *message)
|
484
|
+
{
|
485
|
+
static Relation init_value = RELATION__INIT;
|
486
|
+
*message = init_value;
|
487
|
+
}
|
488
|
+
size_t relation__get_packed_size
|
489
|
+
(const Relation *message)
|
490
|
+
{
|
491
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &relation__descriptor);
|
492
|
+
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
493
|
+
}
|
494
|
+
size_t relation__pack
|
495
|
+
(const Relation *message,
|
496
|
+
uint8_t *out)
|
497
|
+
{
|
498
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &relation__descriptor);
|
499
|
+
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
500
|
+
}
|
501
|
+
size_t relation__pack_to_buffer
|
502
|
+
(const Relation *message,
|
503
|
+
ProtobufCBuffer *buffer)
|
504
|
+
{
|
505
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &relation__descriptor);
|
506
|
+
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
507
|
+
}
|
508
|
+
Relation *
|
509
|
+
relation__unpack
|
510
|
+
(ProtobufCAllocator *allocator,
|
511
|
+
size_t len,
|
512
|
+
const uint8_t *data)
|
513
|
+
{
|
514
|
+
return (Relation *)
|
515
|
+
protobuf_c_message_unpack (&relation__descriptor,
|
516
|
+
allocator, len, data);
|
517
|
+
}
|
518
|
+
void relation__free_unpacked
|
519
|
+
(Relation *message,
|
520
|
+
ProtobufCAllocator *allocator)
|
521
|
+
{
|
522
|
+
PROTOBUF_C_ASSERT (message->base.descriptor == &relation__descriptor);
|
523
|
+
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
524
|
+
}
|
525
|
+
static const ProtobufCFieldDescriptor header_block__field_descriptors[8] =
|
526
|
+
{
|
527
|
+
{
|
528
|
+
"bbox",
|
529
|
+
1,
|
530
|
+
PROTOBUF_C_LABEL_OPTIONAL,
|
531
|
+
PROTOBUF_C_TYPE_MESSAGE,
|
532
|
+
0, /* quantifier_offset */
|
533
|
+
PROTOBUF_C_OFFSETOF(HeaderBlock, bbox),
|
534
|
+
&header_bbox__descriptor,
|
535
|
+
NULL,
|
536
|
+
0, /* packed */
|
537
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
538
|
+
},
|
539
|
+
{
|
540
|
+
"required_features",
|
541
|
+
4,
|
542
|
+
PROTOBUF_C_LABEL_REPEATED,
|
543
|
+
PROTOBUF_C_TYPE_STRING,
|
544
|
+
PROTOBUF_C_OFFSETOF(HeaderBlock, n_required_features),
|
545
|
+
PROTOBUF_C_OFFSETOF(HeaderBlock, required_features),
|
546
|
+
NULL,
|
547
|
+
NULL,
|
548
|
+
0, /* packed */
|
549
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
550
|
+
},
|
551
|
+
{
|
552
|
+
"optional_features",
|
553
|
+
5,
|
554
|
+
PROTOBUF_C_LABEL_REPEATED,
|
555
|
+
PROTOBUF_C_TYPE_STRING,
|
556
|
+
PROTOBUF_C_OFFSETOF(HeaderBlock, n_optional_features),
|
557
|
+
PROTOBUF_C_OFFSETOF(HeaderBlock, optional_features),
|
558
|
+
NULL,
|
559
|
+
NULL,
|
560
|
+
0, /* packed */
|
561
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
562
|
+
},
|
563
|
+
{
|
564
|
+
"writingprogram",
|
565
|
+
16,
|
566
|
+
PROTOBUF_C_LABEL_OPTIONAL,
|
567
|
+
PROTOBUF_C_TYPE_STRING,
|
568
|
+
0, /* quantifier_offset */
|
569
|
+
PROTOBUF_C_OFFSETOF(HeaderBlock, writingprogram),
|
570
|
+
NULL,
|
571
|
+
NULL,
|
572
|
+
0, /* packed */
|
573
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
574
|
+
},
|
575
|
+
{
|
576
|
+
"source",
|
577
|
+
17,
|
578
|
+
PROTOBUF_C_LABEL_OPTIONAL,
|
579
|
+
PROTOBUF_C_TYPE_STRING,
|
580
|
+
0, /* quantifier_offset */
|
581
|
+
PROTOBUF_C_OFFSETOF(HeaderBlock, source),
|
582
|
+
NULL,
|
583
|
+
NULL,
|
584
|
+
0, /* packed */
|
585
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
586
|
+
},
|
587
|
+
{
|
588
|
+
"osmosis_replication_timestamp",
|
589
|
+
32,
|
590
|
+
PROTOBUF_C_LABEL_OPTIONAL,
|
591
|
+
PROTOBUF_C_TYPE_INT64,
|
592
|
+
PROTOBUF_C_OFFSETOF(HeaderBlock, has_osmosis_replication_timestamp),
|
593
|
+
PROTOBUF_C_OFFSETOF(HeaderBlock, osmosis_replication_timestamp),
|
594
|
+
NULL,
|
595
|
+
NULL,
|
596
|
+
0, /* packed */
|
597
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
598
|
+
},
|
599
|
+
{
|
600
|
+
"osmosis_replication_sequence_number",
|
601
|
+
33,
|
602
|
+
PROTOBUF_C_LABEL_OPTIONAL,
|
603
|
+
PROTOBUF_C_TYPE_INT64,
|
604
|
+
PROTOBUF_C_OFFSETOF(HeaderBlock, has_osmosis_replication_sequence_number),
|
605
|
+
PROTOBUF_C_OFFSETOF(HeaderBlock, osmosis_replication_sequence_number),
|
606
|
+
NULL,
|
607
|
+
NULL,
|
608
|
+
0, /* packed */
|
609
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
610
|
+
},
|
611
|
+
{
|
612
|
+
"osmosis_replication_base_url",
|
613
|
+
34,
|
614
|
+
PROTOBUF_C_LABEL_OPTIONAL,
|
615
|
+
PROTOBUF_C_TYPE_STRING,
|
616
|
+
0, /* quantifier_offset */
|
617
|
+
PROTOBUF_C_OFFSETOF(HeaderBlock, osmosis_replication_base_url),
|
618
|
+
NULL,
|
619
|
+
NULL,
|
620
|
+
0, /* packed */
|
621
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
622
|
+
},
|
623
|
+
};
|
624
|
+
static const unsigned header_block__field_indices_by_name[] = {
|
625
|
+
0, /* field[0] = bbox */
|
626
|
+
2, /* field[2] = optional_features */
|
627
|
+
7, /* field[7] = osmosis_replication_base_url */
|
628
|
+
6, /* field[6] = osmosis_replication_sequence_number */
|
629
|
+
5, /* field[5] = osmosis_replication_timestamp */
|
630
|
+
1, /* field[1] = required_features */
|
631
|
+
4, /* field[4] = source */
|
632
|
+
3, /* field[3] = writingprogram */
|
633
|
+
};
|
634
|
+
static const ProtobufCIntRange header_block__number_ranges[4 + 1] =
|
635
|
+
{
|
636
|
+
{ 1, 0 },
|
637
|
+
{ 4, 1 },
|
638
|
+
{ 16, 3 },
|
639
|
+
{ 32, 5 },
|
640
|
+
{ 0, 8 }
|
641
|
+
};
|
642
|
+
const ProtobufCMessageDescriptor header_block__descriptor =
|
643
|
+
{
|
644
|
+
PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC,
|
645
|
+
"HeaderBlock",
|
646
|
+
"HeaderBlock",
|
647
|
+
"HeaderBlock",
|
648
|
+
"",
|
649
|
+
sizeof(HeaderBlock),
|
650
|
+
8,
|
651
|
+
header_block__field_descriptors,
|
652
|
+
header_block__field_indices_by_name,
|
653
|
+
4, header_block__number_ranges,
|
654
|
+
(ProtobufCMessageInit) header_block__init,
|
655
|
+
NULL,NULL,NULL /* reserved[123] */
|
656
|
+
};
|
657
|
+
static const ProtobufCFieldDescriptor header_bbox__field_descriptors[4] =
|
658
|
+
{
|
659
|
+
{
|
660
|
+
"left",
|
661
|
+
1,
|
662
|
+
PROTOBUF_C_LABEL_REQUIRED,
|
663
|
+
PROTOBUF_C_TYPE_SINT64,
|
664
|
+
0, /* quantifier_offset */
|
665
|
+
PROTOBUF_C_OFFSETOF(HeaderBBox, left),
|
666
|
+
NULL,
|
667
|
+
NULL,
|
668
|
+
0, /* packed */
|
669
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
670
|
+
},
|
671
|
+
{
|
672
|
+
"right",
|
673
|
+
2,
|
674
|
+
PROTOBUF_C_LABEL_REQUIRED,
|
675
|
+
PROTOBUF_C_TYPE_SINT64,
|
676
|
+
0, /* quantifier_offset */
|
677
|
+
PROTOBUF_C_OFFSETOF(HeaderBBox, right),
|
678
|
+
NULL,
|
679
|
+
NULL,
|
680
|
+
0, /* packed */
|
681
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
682
|
+
},
|
683
|
+
{
|
684
|
+
"top",
|
685
|
+
3,
|
686
|
+
PROTOBUF_C_LABEL_REQUIRED,
|
687
|
+
PROTOBUF_C_TYPE_SINT64,
|
688
|
+
0, /* quantifier_offset */
|
689
|
+
PROTOBUF_C_OFFSETOF(HeaderBBox, top),
|
690
|
+
NULL,
|
691
|
+
NULL,
|
692
|
+
0, /* packed */
|
693
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
694
|
+
},
|
695
|
+
{
|
696
|
+
"bottom",
|
697
|
+
4,
|
698
|
+
PROTOBUF_C_LABEL_REQUIRED,
|
699
|
+
PROTOBUF_C_TYPE_SINT64,
|
700
|
+
0, /* quantifier_offset */
|
701
|
+
PROTOBUF_C_OFFSETOF(HeaderBBox, bottom),
|
702
|
+
NULL,
|
703
|
+
NULL,
|
704
|
+
0, /* packed */
|
705
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
706
|
+
},
|
707
|
+
};
|
708
|
+
static const unsigned header_bbox__field_indices_by_name[] = {
|
709
|
+
3, /* field[3] = bottom */
|
710
|
+
0, /* field[0] = left */
|
711
|
+
1, /* field[1] = right */
|
712
|
+
2, /* field[2] = top */
|
713
|
+
};
|
714
|
+
static const ProtobufCIntRange header_bbox__number_ranges[1 + 1] =
|
715
|
+
{
|
716
|
+
{ 1, 0 },
|
717
|
+
{ 0, 4 }
|
718
|
+
};
|
719
|
+
const ProtobufCMessageDescriptor header_bbox__descriptor =
|
720
|
+
{
|
721
|
+
PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC,
|
722
|
+
"HeaderBBox",
|
723
|
+
"HeaderBBox",
|
724
|
+
"HeaderBBox",
|
725
|
+
"",
|
726
|
+
sizeof(HeaderBBox),
|
727
|
+
4,
|
728
|
+
header_bbox__field_descriptors,
|
729
|
+
header_bbox__field_indices_by_name,
|
730
|
+
1, header_bbox__number_ranges,
|
731
|
+
(ProtobufCMessageInit) header_bbox__init,
|
732
|
+
NULL,NULL,NULL /* reserved[123] */
|
733
|
+
};
|
734
|
+
static const int32_t primitive_block__granularity__default_value = 100;
|
735
|
+
static const int64_t primitive_block__lat_offset__default_value = 0;
|
736
|
+
static const int64_t primitive_block__lon_offset__default_value = 0;
|
737
|
+
static const int32_t primitive_block__date_granularity__default_value = 1000;
|
738
|
+
static const ProtobufCFieldDescriptor primitive_block__field_descriptors[6] =
|
739
|
+
{
|
740
|
+
{
|
741
|
+
"stringtable",
|
742
|
+
1,
|
743
|
+
PROTOBUF_C_LABEL_REQUIRED,
|
744
|
+
PROTOBUF_C_TYPE_MESSAGE,
|
745
|
+
0, /* quantifier_offset */
|
746
|
+
PROTOBUF_C_OFFSETOF(PrimitiveBlock, stringtable),
|
747
|
+
&string_table__descriptor,
|
748
|
+
NULL,
|
749
|
+
0, /* packed */
|
750
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
751
|
+
},
|
752
|
+
{
|
753
|
+
"primitivegroup",
|
754
|
+
2,
|
755
|
+
PROTOBUF_C_LABEL_REPEATED,
|
756
|
+
PROTOBUF_C_TYPE_MESSAGE,
|
757
|
+
PROTOBUF_C_OFFSETOF(PrimitiveBlock, n_primitivegroup),
|
758
|
+
PROTOBUF_C_OFFSETOF(PrimitiveBlock, primitivegroup),
|
759
|
+
&primitive_group__descriptor,
|
760
|
+
NULL,
|
761
|
+
0, /* packed */
|
762
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
763
|
+
},
|
764
|
+
{
|
765
|
+
"granularity",
|
766
|
+
17,
|
767
|
+
PROTOBUF_C_LABEL_OPTIONAL,
|
768
|
+
PROTOBUF_C_TYPE_INT32,
|
769
|
+
PROTOBUF_C_OFFSETOF(PrimitiveBlock, has_granularity),
|
770
|
+
PROTOBUF_C_OFFSETOF(PrimitiveBlock, granularity),
|
771
|
+
NULL,
|
772
|
+
&primitive_block__granularity__default_value,
|
773
|
+
0, /* packed */
|
774
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
775
|
+
},
|
776
|
+
{
|
777
|
+
"date_granularity",
|
778
|
+
18,
|
779
|
+
PROTOBUF_C_LABEL_OPTIONAL,
|
780
|
+
PROTOBUF_C_TYPE_INT32,
|
781
|
+
PROTOBUF_C_OFFSETOF(PrimitiveBlock, has_date_granularity),
|
782
|
+
PROTOBUF_C_OFFSETOF(PrimitiveBlock, date_granularity),
|
783
|
+
NULL,
|
784
|
+
&primitive_block__date_granularity__default_value,
|
785
|
+
0, /* packed */
|
786
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
787
|
+
},
|
788
|
+
{
|
789
|
+
"lat_offset",
|
790
|
+
19,
|
791
|
+
PROTOBUF_C_LABEL_OPTIONAL,
|
792
|
+
PROTOBUF_C_TYPE_INT64,
|
793
|
+
PROTOBUF_C_OFFSETOF(PrimitiveBlock, has_lat_offset),
|
794
|
+
PROTOBUF_C_OFFSETOF(PrimitiveBlock, lat_offset),
|
795
|
+
NULL,
|
796
|
+
&primitive_block__lat_offset__default_value,
|
797
|
+
0, /* packed */
|
798
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
799
|
+
},
|
800
|
+
{
|
801
|
+
"lon_offset",
|
802
|
+
20,
|
803
|
+
PROTOBUF_C_LABEL_OPTIONAL,
|
804
|
+
PROTOBUF_C_TYPE_INT64,
|
805
|
+
PROTOBUF_C_OFFSETOF(PrimitiveBlock, has_lon_offset),
|
806
|
+
PROTOBUF_C_OFFSETOF(PrimitiveBlock, lon_offset),
|
807
|
+
NULL,
|
808
|
+
&primitive_block__lon_offset__default_value,
|
809
|
+
0, /* packed */
|
810
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
811
|
+
},
|
812
|
+
};
|
813
|
+
static const unsigned primitive_block__field_indices_by_name[] = {
|
814
|
+
3, /* field[3] = date_granularity */
|
815
|
+
2, /* field[2] = granularity */
|
816
|
+
4, /* field[4] = lat_offset */
|
817
|
+
5, /* field[5] = lon_offset */
|
818
|
+
1, /* field[1] = primitivegroup */
|
819
|
+
0, /* field[0] = stringtable */
|
820
|
+
};
|
821
|
+
static const ProtobufCIntRange primitive_block__number_ranges[2 + 1] =
|
822
|
+
{
|
823
|
+
{ 1, 0 },
|
824
|
+
{ 17, 2 },
|
825
|
+
{ 0, 6 }
|
826
|
+
};
|
827
|
+
const ProtobufCMessageDescriptor primitive_block__descriptor =
|
828
|
+
{
|
829
|
+
PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC,
|
830
|
+
"PrimitiveBlock",
|
831
|
+
"PrimitiveBlock",
|
832
|
+
"PrimitiveBlock",
|
833
|
+
"",
|
834
|
+
sizeof(PrimitiveBlock),
|
835
|
+
6,
|
836
|
+
primitive_block__field_descriptors,
|
837
|
+
primitive_block__field_indices_by_name,
|
838
|
+
2, primitive_block__number_ranges,
|
839
|
+
(ProtobufCMessageInit) primitive_block__init,
|
840
|
+
NULL,NULL,NULL /* reserved[123] */
|
841
|
+
};
|
842
|
+
static const ProtobufCFieldDescriptor primitive_group__field_descriptors[5] =
|
843
|
+
{
|
844
|
+
{
|
845
|
+
"nodes",
|
846
|
+
1,
|
847
|
+
PROTOBUF_C_LABEL_REPEATED,
|
848
|
+
PROTOBUF_C_TYPE_MESSAGE,
|
849
|
+
PROTOBUF_C_OFFSETOF(PrimitiveGroup, n_nodes),
|
850
|
+
PROTOBUF_C_OFFSETOF(PrimitiveGroup, nodes),
|
851
|
+
&node__descriptor,
|
852
|
+
NULL,
|
853
|
+
0, /* packed */
|
854
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
855
|
+
},
|
856
|
+
{
|
857
|
+
"dense",
|
858
|
+
2,
|
859
|
+
PROTOBUF_C_LABEL_OPTIONAL,
|
860
|
+
PROTOBUF_C_TYPE_MESSAGE,
|
861
|
+
0, /* quantifier_offset */
|
862
|
+
PROTOBUF_C_OFFSETOF(PrimitiveGroup, dense),
|
863
|
+
&dense_nodes__descriptor,
|
864
|
+
NULL,
|
865
|
+
0, /* packed */
|
866
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
867
|
+
},
|
868
|
+
{
|
869
|
+
"ways",
|
870
|
+
3,
|
871
|
+
PROTOBUF_C_LABEL_REPEATED,
|
872
|
+
PROTOBUF_C_TYPE_MESSAGE,
|
873
|
+
PROTOBUF_C_OFFSETOF(PrimitiveGroup, n_ways),
|
874
|
+
PROTOBUF_C_OFFSETOF(PrimitiveGroup, ways),
|
875
|
+
&way__descriptor,
|
876
|
+
NULL,
|
877
|
+
0, /* packed */
|
878
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
879
|
+
},
|
880
|
+
{
|
881
|
+
"relations",
|
882
|
+
4,
|
883
|
+
PROTOBUF_C_LABEL_REPEATED,
|
884
|
+
PROTOBUF_C_TYPE_MESSAGE,
|
885
|
+
PROTOBUF_C_OFFSETOF(PrimitiveGroup, n_relations),
|
886
|
+
PROTOBUF_C_OFFSETOF(PrimitiveGroup, relations),
|
887
|
+
&relation__descriptor,
|
888
|
+
NULL,
|
889
|
+
0, /* packed */
|
890
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
891
|
+
},
|
892
|
+
{
|
893
|
+
"changesets",
|
894
|
+
5,
|
895
|
+
PROTOBUF_C_LABEL_REPEATED,
|
896
|
+
PROTOBUF_C_TYPE_MESSAGE,
|
897
|
+
PROTOBUF_C_OFFSETOF(PrimitiveGroup, n_changesets),
|
898
|
+
PROTOBUF_C_OFFSETOF(PrimitiveGroup, changesets),
|
899
|
+
&change_set__descriptor,
|
900
|
+
NULL,
|
901
|
+
0, /* packed */
|
902
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
903
|
+
},
|
904
|
+
};
|
905
|
+
static const unsigned primitive_group__field_indices_by_name[] = {
|
906
|
+
4, /* field[4] = changesets */
|
907
|
+
1, /* field[1] = dense */
|
908
|
+
0, /* field[0] = nodes */
|
909
|
+
3, /* field[3] = relations */
|
910
|
+
2, /* field[2] = ways */
|
911
|
+
};
|
912
|
+
static const ProtobufCIntRange primitive_group__number_ranges[1 + 1] =
|
913
|
+
{
|
914
|
+
{ 1, 0 },
|
915
|
+
{ 0, 5 }
|
916
|
+
};
|
917
|
+
const ProtobufCMessageDescriptor primitive_group__descriptor =
|
918
|
+
{
|
919
|
+
PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC,
|
920
|
+
"PrimitiveGroup",
|
921
|
+
"PrimitiveGroup",
|
922
|
+
"PrimitiveGroup",
|
923
|
+
"",
|
924
|
+
sizeof(PrimitiveGroup),
|
925
|
+
5,
|
926
|
+
primitive_group__field_descriptors,
|
927
|
+
primitive_group__field_indices_by_name,
|
928
|
+
1, primitive_group__number_ranges,
|
929
|
+
(ProtobufCMessageInit) primitive_group__init,
|
930
|
+
NULL,NULL,NULL /* reserved[123] */
|
931
|
+
};
|
932
|
+
static const ProtobufCFieldDescriptor string_table__field_descriptors[1] =
|
933
|
+
{
|
934
|
+
{
|
935
|
+
"s",
|
936
|
+
1,
|
937
|
+
PROTOBUF_C_LABEL_REPEATED,
|
938
|
+
PROTOBUF_C_TYPE_BYTES,
|
939
|
+
PROTOBUF_C_OFFSETOF(StringTable, n_s),
|
940
|
+
PROTOBUF_C_OFFSETOF(StringTable, s),
|
941
|
+
NULL,
|
942
|
+
NULL,
|
943
|
+
0, /* packed */
|
944
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
945
|
+
},
|
946
|
+
};
|
947
|
+
static const unsigned string_table__field_indices_by_name[] = {
|
948
|
+
0, /* field[0] = s */
|
949
|
+
};
|
950
|
+
static const ProtobufCIntRange string_table__number_ranges[1 + 1] =
|
951
|
+
{
|
952
|
+
{ 1, 0 },
|
953
|
+
{ 0, 1 }
|
954
|
+
};
|
955
|
+
const ProtobufCMessageDescriptor string_table__descriptor =
|
956
|
+
{
|
957
|
+
PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC,
|
958
|
+
"StringTable",
|
959
|
+
"StringTable",
|
960
|
+
"StringTable",
|
961
|
+
"",
|
962
|
+
sizeof(StringTable),
|
963
|
+
1,
|
964
|
+
string_table__field_descriptors,
|
965
|
+
string_table__field_indices_by_name,
|
966
|
+
1, string_table__number_ranges,
|
967
|
+
(ProtobufCMessageInit) string_table__init,
|
968
|
+
NULL,NULL,NULL /* reserved[123] */
|
969
|
+
};
|
970
|
+
static const int32_t info__version__default_value = -1;
|
971
|
+
static const ProtobufCFieldDescriptor info__field_descriptors[6] =
|
972
|
+
{
|
973
|
+
{
|
974
|
+
"version",
|
975
|
+
1,
|
976
|
+
PROTOBUF_C_LABEL_OPTIONAL,
|
977
|
+
PROTOBUF_C_TYPE_INT32,
|
978
|
+
PROTOBUF_C_OFFSETOF(Info, has_version),
|
979
|
+
PROTOBUF_C_OFFSETOF(Info, version),
|
980
|
+
NULL,
|
981
|
+
&info__version__default_value,
|
982
|
+
0, /* packed */
|
983
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
984
|
+
},
|
985
|
+
{
|
986
|
+
"timestamp",
|
987
|
+
2,
|
988
|
+
PROTOBUF_C_LABEL_OPTIONAL,
|
989
|
+
PROTOBUF_C_TYPE_INT64,
|
990
|
+
PROTOBUF_C_OFFSETOF(Info, has_timestamp),
|
991
|
+
PROTOBUF_C_OFFSETOF(Info, timestamp),
|
992
|
+
NULL,
|
993
|
+
NULL,
|
994
|
+
0, /* packed */
|
995
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
996
|
+
},
|
997
|
+
{
|
998
|
+
"changeset",
|
999
|
+
3,
|
1000
|
+
PROTOBUF_C_LABEL_OPTIONAL,
|
1001
|
+
PROTOBUF_C_TYPE_INT64,
|
1002
|
+
PROTOBUF_C_OFFSETOF(Info, has_changeset),
|
1003
|
+
PROTOBUF_C_OFFSETOF(Info, changeset),
|
1004
|
+
NULL,
|
1005
|
+
NULL,
|
1006
|
+
0, /* packed */
|
1007
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1008
|
+
},
|
1009
|
+
{
|
1010
|
+
"uid",
|
1011
|
+
4,
|
1012
|
+
PROTOBUF_C_LABEL_OPTIONAL,
|
1013
|
+
PROTOBUF_C_TYPE_INT32,
|
1014
|
+
PROTOBUF_C_OFFSETOF(Info, has_uid),
|
1015
|
+
PROTOBUF_C_OFFSETOF(Info, uid),
|
1016
|
+
NULL,
|
1017
|
+
NULL,
|
1018
|
+
0, /* packed */
|
1019
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1020
|
+
},
|
1021
|
+
{
|
1022
|
+
"user_sid",
|
1023
|
+
5,
|
1024
|
+
PROTOBUF_C_LABEL_OPTIONAL,
|
1025
|
+
PROTOBUF_C_TYPE_UINT32,
|
1026
|
+
PROTOBUF_C_OFFSETOF(Info, has_user_sid),
|
1027
|
+
PROTOBUF_C_OFFSETOF(Info, user_sid),
|
1028
|
+
NULL,
|
1029
|
+
NULL,
|
1030
|
+
0, /* packed */
|
1031
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1032
|
+
},
|
1033
|
+
{
|
1034
|
+
"visible",
|
1035
|
+
6,
|
1036
|
+
PROTOBUF_C_LABEL_OPTIONAL,
|
1037
|
+
PROTOBUF_C_TYPE_BOOL,
|
1038
|
+
PROTOBUF_C_OFFSETOF(Info, has_visible),
|
1039
|
+
PROTOBUF_C_OFFSETOF(Info, visible),
|
1040
|
+
NULL,
|
1041
|
+
NULL,
|
1042
|
+
0, /* packed */
|
1043
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1044
|
+
},
|
1045
|
+
};
|
1046
|
+
static const unsigned info__field_indices_by_name[] = {
|
1047
|
+
2, /* field[2] = changeset */
|
1048
|
+
1, /* field[1] = timestamp */
|
1049
|
+
3, /* field[3] = uid */
|
1050
|
+
4, /* field[4] = user_sid */
|
1051
|
+
0, /* field[0] = version */
|
1052
|
+
5, /* field[5] = visible */
|
1053
|
+
};
|
1054
|
+
static const ProtobufCIntRange info__number_ranges[1 + 1] =
|
1055
|
+
{
|
1056
|
+
{ 1, 0 },
|
1057
|
+
{ 0, 6 }
|
1058
|
+
};
|
1059
|
+
const ProtobufCMessageDescriptor info__descriptor =
|
1060
|
+
{
|
1061
|
+
PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC,
|
1062
|
+
"Info",
|
1063
|
+
"Info",
|
1064
|
+
"Info",
|
1065
|
+
"",
|
1066
|
+
sizeof(Info),
|
1067
|
+
6,
|
1068
|
+
info__field_descriptors,
|
1069
|
+
info__field_indices_by_name,
|
1070
|
+
1, info__number_ranges,
|
1071
|
+
(ProtobufCMessageInit) info__init,
|
1072
|
+
NULL,NULL,NULL /* reserved[123] */
|
1073
|
+
};
|
1074
|
+
static const ProtobufCFieldDescriptor dense_info__field_descriptors[6] =
|
1075
|
+
{
|
1076
|
+
{
|
1077
|
+
"version",
|
1078
|
+
1,
|
1079
|
+
PROTOBUF_C_LABEL_REPEATED,
|
1080
|
+
PROTOBUF_C_TYPE_INT32,
|
1081
|
+
PROTOBUF_C_OFFSETOF(DenseInfo, n_version),
|
1082
|
+
PROTOBUF_C_OFFSETOF(DenseInfo, version),
|
1083
|
+
NULL,
|
1084
|
+
NULL,
|
1085
|
+
1, /* packed */
|
1086
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1087
|
+
},
|
1088
|
+
{
|
1089
|
+
"timestamp",
|
1090
|
+
2,
|
1091
|
+
PROTOBUF_C_LABEL_REPEATED,
|
1092
|
+
PROTOBUF_C_TYPE_SINT64,
|
1093
|
+
PROTOBUF_C_OFFSETOF(DenseInfo, n_timestamp),
|
1094
|
+
PROTOBUF_C_OFFSETOF(DenseInfo, timestamp),
|
1095
|
+
NULL,
|
1096
|
+
NULL,
|
1097
|
+
1, /* packed */
|
1098
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1099
|
+
},
|
1100
|
+
{
|
1101
|
+
"changeset",
|
1102
|
+
3,
|
1103
|
+
PROTOBUF_C_LABEL_REPEATED,
|
1104
|
+
PROTOBUF_C_TYPE_SINT64,
|
1105
|
+
PROTOBUF_C_OFFSETOF(DenseInfo, n_changeset),
|
1106
|
+
PROTOBUF_C_OFFSETOF(DenseInfo, changeset),
|
1107
|
+
NULL,
|
1108
|
+
NULL,
|
1109
|
+
1, /* packed */
|
1110
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1111
|
+
},
|
1112
|
+
{
|
1113
|
+
"uid",
|
1114
|
+
4,
|
1115
|
+
PROTOBUF_C_LABEL_REPEATED,
|
1116
|
+
PROTOBUF_C_TYPE_SINT32,
|
1117
|
+
PROTOBUF_C_OFFSETOF(DenseInfo, n_uid),
|
1118
|
+
PROTOBUF_C_OFFSETOF(DenseInfo, uid),
|
1119
|
+
NULL,
|
1120
|
+
NULL,
|
1121
|
+
1, /* packed */
|
1122
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1123
|
+
},
|
1124
|
+
{
|
1125
|
+
"user_sid",
|
1126
|
+
5,
|
1127
|
+
PROTOBUF_C_LABEL_REPEATED,
|
1128
|
+
PROTOBUF_C_TYPE_SINT32,
|
1129
|
+
PROTOBUF_C_OFFSETOF(DenseInfo, n_user_sid),
|
1130
|
+
PROTOBUF_C_OFFSETOF(DenseInfo, user_sid),
|
1131
|
+
NULL,
|
1132
|
+
NULL,
|
1133
|
+
1, /* packed */
|
1134
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1135
|
+
},
|
1136
|
+
{
|
1137
|
+
"visible",
|
1138
|
+
6,
|
1139
|
+
PROTOBUF_C_LABEL_REPEATED,
|
1140
|
+
PROTOBUF_C_TYPE_BOOL,
|
1141
|
+
PROTOBUF_C_OFFSETOF(DenseInfo, n_visible),
|
1142
|
+
PROTOBUF_C_OFFSETOF(DenseInfo, visible),
|
1143
|
+
NULL,
|
1144
|
+
NULL,
|
1145
|
+
1, /* packed */
|
1146
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1147
|
+
},
|
1148
|
+
};
|
1149
|
+
static const unsigned dense_info__field_indices_by_name[] = {
|
1150
|
+
2, /* field[2] = changeset */
|
1151
|
+
1, /* field[1] = timestamp */
|
1152
|
+
3, /* field[3] = uid */
|
1153
|
+
4, /* field[4] = user_sid */
|
1154
|
+
0, /* field[0] = version */
|
1155
|
+
5, /* field[5] = visible */
|
1156
|
+
};
|
1157
|
+
static const ProtobufCIntRange dense_info__number_ranges[1 + 1] =
|
1158
|
+
{
|
1159
|
+
{ 1, 0 },
|
1160
|
+
{ 0, 6 }
|
1161
|
+
};
|
1162
|
+
const ProtobufCMessageDescriptor dense_info__descriptor =
|
1163
|
+
{
|
1164
|
+
PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC,
|
1165
|
+
"DenseInfo",
|
1166
|
+
"DenseInfo",
|
1167
|
+
"DenseInfo",
|
1168
|
+
"",
|
1169
|
+
sizeof(DenseInfo),
|
1170
|
+
6,
|
1171
|
+
dense_info__field_descriptors,
|
1172
|
+
dense_info__field_indices_by_name,
|
1173
|
+
1, dense_info__number_ranges,
|
1174
|
+
(ProtobufCMessageInit) dense_info__init,
|
1175
|
+
NULL,NULL,NULL /* reserved[123] */
|
1176
|
+
};
|
1177
|
+
static const ProtobufCFieldDescriptor change_set__field_descriptors[1] =
|
1178
|
+
{
|
1179
|
+
{
|
1180
|
+
"id",
|
1181
|
+
1,
|
1182
|
+
PROTOBUF_C_LABEL_REQUIRED,
|
1183
|
+
PROTOBUF_C_TYPE_INT64,
|
1184
|
+
0, /* quantifier_offset */
|
1185
|
+
PROTOBUF_C_OFFSETOF(ChangeSet, id),
|
1186
|
+
NULL,
|
1187
|
+
NULL,
|
1188
|
+
0, /* packed */
|
1189
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1190
|
+
},
|
1191
|
+
};
|
1192
|
+
static const unsigned change_set__field_indices_by_name[] = {
|
1193
|
+
0, /* field[0] = id */
|
1194
|
+
};
|
1195
|
+
static const ProtobufCIntRange change_set__number_ranges[1 + 1] =
|
1196
|
+
{
|
1197
|
+
{ 1, 0 },
|
1198
|
+
{ 0, 1 }
|
1199
|
+
};
|
1200
|
+
const ProtobufCMessageDescriptor change_set__descriptor =
|
1201
|
+
{
|
1202
|
+
PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC,
|
1203
|
+
"ChangeSet",
|
1204
|
+
"ChangeSet",
|
1205
|
+
"ChangeSet",
|
1206
|
+
"",
|
1207
|
+
sizeof(ChangeSet),
|
1208
|
+
1,
|
1209
|
+
change_set__field_descriptors,
|
1210
|
+
change_set__field_indices_by_name,
|
1211
|
+
1, change_set__number_ranges,
|
1212
|
+
(ProtobufCMessageInit) change_set__init,
|
1213
|
+
NULL,NULL,NULL /* reserved[123] */
|
1214
|
+
};
|
1215
|
+
static const ProtobufCFieldDescriptor node__field_descriptors[6] =
|
1216
|
+
{
|
1217
|
+
{
|
1218
|
+
"id",
|
1219
|
+
1,
|
1220
|
+
PROTOBUF_C_LABEL_REQUIRED,
|
1221
|
+
PROTOBUF_C_TYPE_SINT64,
|
1222
|
+
0, /* quantifier_offset */
|
1223
|
+
PROTOBUF_C_OFFSETOF(Node, id),
|
1224
|
+
NULL,
|
1225
|
+
NULL,
|
1226
|
+
0, /* packed */
|
1227
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1228
|
+
},
|
1229
|
+
{
|
1230
|
+
"keys",
|
1231
|
+
2,
|
1232
|
+
PROTOBUF_C_LABEL_REPEATED,
|
1233
|
+
PROTOBUF_C_TYPE_UINT32,
|
1234
|
+
PROTOBUF_C_OFFSETOF(Node, n_keys),
|
1235
|
+
PROTOBUF_C_OFFSETOF(Node, keys),
|
1236
|
+
NULL,
|
1237
|
+
NULL,
|
1238
|
+
1, /* packed */
|
1239
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1240
|
+
},
|
1241
|
+
{
|
1242
|
+
"vals",
|
1243
|
+
3,
|
1244
|
+
PROTOBUF_C_LABEL_REPEATED,
|
1245
|
+
PROTOBUF_C_TYPE_UINT32,
|
1246
|
+
PROTOBUF_C_OFFSETOF(Node, n_vals),
|
1247
|
+
PROTOBUF_C_OFFSETOF(Node, vals),
|
1248
|
+
NULL,
|
1249
|
+
NULL,
|
1250
|
+
1, /* packed */
|
1251
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1252
|
+
},
|
1253
|
+
{
|
1254
|
+
"info",
|
1255
|
+
4,
|
1256
|
+
PROTOBUF_C_LABEL_OPTIONAL,
|
1257
|
+
PROTOBUF_C_TYPE_MESSAGE,
|
1258
|
+
0, /* quantifier_offset */
|
1259
|
+
PROTOBUF_C_OFFSETOF(Node, info),
|
1260
|
+
&info__descriptor,
|
1261
|
+
NULL,
|
1262
|
+
0, /* packed */
|
1263
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1264
|
+
},
|
1265
|
+
{
|
1266
|
+
"lat",
|
1267
|
+
8,
|
1268
|
+
PROTOBUF_C_LABEL_REQUIRED,
|
1269
|
+
PROTOBUF_C_TYPE_SINT64,
|
1270
|
+
0, /* quantifier_offset */
|
1271
|
+
PROTOBUF_C_OFFSETOF(Node, lat),
|
1272
|
+
NULL,
|
1273
|
+
NULL,
|
1274
|
+
0, /* packed */
|
1275
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1276
|
+
},
|
1277
|
+
{
|
1278
|
+
"lon",
|
1279
|
+
9,
|
1280
|
+
PROTOBUF_C_LABEL_REQUIRED,
|
1281
|
+
PROTOBUF_C_TYPE_SINT64,
|
1282
|
+
0, /* quantifier_offset */
|
1283
|
+
PROTOBUF_C_OFFSETOF(Node, lon),
|
1284
|
+
NULL,
|
1285
|
+
NULL,
|
1286
|
+
0, /* packed */
|
1287
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1288
|
+
},
|
1289
|
+
};
|
1290
|
+
static const unsigned node__field_indices_by_name[] = {
|
1291
|
+
0, /* field[0] = id */
|
1292
|
+
3, /* field[3] = info */
|
1293
|
+
1, /* field[1] = keys */
|
1294
|
+
4, /* field[4] = lat */
|
1295
|
+
5, /* field[5] = lon */
|
1296
|
+
2, /* field[2] = vals */
|
1297
|
+
};
|
1298
|
+
static const ProtobufCIntRange node__number_ranges[2 + 1] =
|
1299
|
+
{
|
1300
|
+
{ 1, 0 },
|
1301
|
+
{ 8, 4 },
|
1302
|
+
{ 0, 6 }
|
1303
|
+
};
|
1304
|
+
const ProtobufCMessageDescriptor node__descriptor =
|
1305
|
+
{
|
1306
|
+
PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC,
|
1307
|
+
"Node",
|
1308
|
+
"Node",
|
1309
|
+
"Node",
|
1310
|
+
"",
|
1311
|
+
sizeof(Node),
|
1312
|
+
6,
|
1313
|
+
node__field_descriptors,
|
1314
|
+
node__field_indices_by_name,
|
1315
|
+
2, node__number_ranges,
|
1316
|
+
(ProtobufCMessageInit) node__init,
|
1317
|
+
NULL,NULL,NULL /* reserved[123] */
|
1318
|
+
};
|
1319
|
+
static const ProtobufCFieldDescriptor dense_nodes__field_descriptors[5] =
|
1320
|
+
{
|
1321
|
+
{
|
1322
|
+
"id",
|
1323
|
+
1,
|
1324
|
+
PROTOBUF_C_LABEL_REPEATED,
|
1325
|
+
PROTOBUF_C_TYPE_SINT64,
|
1326
|
+
PROTOBUF_C_OFFSETOF(DenseNodes, n_id),
|
1327
|
+
PROTOBUF_C_OFFSETOF(DenseNodes, id),
|
1328
|
+
NULL,
|
1329
|
+
NULL,
|
1330
|
+
1, /* packed */
|
1331
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1332
|
+
},
|
1333
|
+
{
|
1334
|
+
"denseinfo",
|
1335
|
+
5,
|
1336
|
+
PROTOBUF_C_LABEL_OPTIONAL,
|
1337
|
+
PROTOBUF_C_TYPE_MESSAGE,
|
1338
|
+
0, /* quantifier_offset */
|
1339
|
+
PROTOBUF_C_OFFSETOF(DenseNodes, denseinfo),
|
1340
|
+
&dense_info__descriptor,
|
1341
|
+
NULL,
|
1342
|
+
0, /* packed */
|
1343
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1344
|
+
},
|
1345
|
+
{
|
1346
|
+
"lat",
|
1347
|
+
8,
|
1348
|
+
PROTOBUF_C_LABEL_REPEATED,
|
1349
|
+
PROTOBUF_C_TYPE_SINT64,
|
1350
|
+
PROTOBUF_C_OFFSETOF(DenseNodes, n_lat),
|
1351
|
+
PROTOBUF_C_OFFSETOF(DenseNodes, lat),
|
1352
|
+
NULL,
|
1353
|
+
NULL,
|
1354
|
+
1, /* packed */
|
1355
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1356
|
+
},
|
1357
|
+
{
|
1358
|
+
"lon",
|
1359
|
+
9,
|
1360
|
+
PROTOBUF_C_LABEL_REPEATED,
|
1361
|
+
PROTOBUF_C_TYPE_SINT64,
|
1362
|
+
PROTOBUF_C_OFFSETOF(DenseNodes, n_lon),
|
1363
|
+
PROTOBUF_C_OFFSETOF(DenseNodes, lon),
|
1364
|
+
NULL,
|
1365
|
+
NULL,
|
1366
|
+
1, /* packed */
|
1367
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1368
|
+
},
|
1369
|
+
{
|
1370
|
+
"keys_vals",
|
1371
|
+
10,
|
1372
|
+
PROTOBUF_C_LABEL_REPEATED,
|
1373
|
+
PROTOBUF_C_TYPE_INT32,
|
1374
|
+
PROTOBUF_C_OFFSETOF(DenseNodes, n_keys_vals),
|
1375
|
+
PROTOBUF_C_OFFSETOF(DenseNodes, keys_vals),
|
1376
|
+
NULL,
|
1377
|
+
NULL,
|
1378
|
+
1, /* packed */
|
1379
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1380
|
+
},
|
1381
|
+
};
|
1382
|
+
static const unsigned dense_nodes__field_indices_by_name[] = {
|
1383
|
+
1, /* field[1] = denseinfo */
|
1384
|
+
0, /* field[0] = id */
|
1385
|
+
4, /* field[4] = keys_vals */
|
1386
|
+
2, /* field[2] = lat */
|
1387
|
+
3, /* field[3] = lon */
|
1388
|
+
};
|
1389
|
+
static const ProtobufCIntRange dense_nodes__number_ranges[3 + 1] =
|
1390
|
+
{
|
1391
|
+
{ 1, 0 },
|
1392
|
+
{ 5, 1 },
|
1393
|
+
{ 8, 2 },
|
1394
|
+
{ 0, 5 }
|
1395
|
+
};
|
1396
|
+
const ProtobufCMessageDescriptor dense_nodes__descriptor =
|
1397
|
+
{
|
1398
|
+
PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC,
|
1399
|
+
"DenseNodes",
|
1400
|
+
"DenseNodes",
|
1401
|
+
"DenseNodes",
|
1402
|
+
"",
|
1403
|
+
sizeof(DenseNodes),
|
1404
|
+
5,
|
1405
|
+
dense_nodes__field_descriptors,
|
1406
|
+
dense_nodes__field_indices_by_name,
|
1407
|
+
3, dense_nodes__number_ranges,
|
1408
|
+
(ProtobufCMessageInit) dense_nodes__init,
|
1409
|
+
NULL,NULL,NULL /* reserved[123] */
|
1410
|
+
};
|
1411
|
+
static const ProtobufCFieldDescriptor way__field_descriptors[5] =
|
1412
|
+
{
|
1413
|
+
{
|
1414
|
+
"id",
|
1415
|
+
1,
|
1416
|
+
PROTOBUF_C_LABEL_REQUIRED,
|
1417
|
+
PROTOBUF_C_TYPE_INT64,
|
1418
|
+
0, /* quantifier_offset */
|
1419
|
+
PROTOBUF_C_OFFSETOF(Way, id),
|
1420
|
+
NULL,
|
1421
|
+
NULL,
|
1422
|
+
0, /* packed */
|
1423
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1424
|
+
},
|
1425
|
+
{
|
1426
|
+
"keys",
|
1427
|
+
2,
|
1428
|
+
PROTOBUF_C_LABEL_REPEATED,
|
1429
|
+
PROTOBUF_C_TYPE_UINT32,
|
1430
|
+
PROTOBUF_C_OFFSETOF(Way, n_keys),
|
1431
|
+
PROTOBUF_C_OFFSETOF(Way, keys),
|
1432
|
+
NULL,
|
1433
|
+
NULL,
|
1434
|
+
1, /* packed */
|
1435
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1436
|
+
},
|
1437
|
+
{
|
1438
|
+
"vals",
|
1439
|
+
3,
|
1440
|
+
PROTOBUF_C_LABEL_REPEATED,
|
1441
|
+
PROTOBUF_C_TYPE_UINT32,
|
1442
|
+
PROTOBUF_C_OFFSETOF(Way, n_vals),
|
1443
|
+
PROTOBUF_C_OFFSETOF(Way, vals),
|
1444
|
+
NULL,
|
1445
|
+
NULL,
|
1446
|
+
1, /* packed */
|
1447
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1448
|
+
},
|
1449
|
+
{
|
1450
|
+
"info",
|
1451
|
+
4,
|
1452
|
+
PROTOBUF_C_LABEL_OPTIONAL,
|
1453
|
+
PROTOBUF_C_TYPE_MESSAGE,
|
1454
|
+
0, /* quantifier_offset */
|
1455
|
+
PROTOBUF_C_OFFSETOF(Way, info),
|
1456
|
+
&info__descriptor,
|
1457
|
+
NULL,
|
1458
|
+
0, /* packed */
|
1459
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1460
|
+
},
|
1461
|
+
{
|
1462
|
+
"refs",
|
1463
|
+
8,
|
1464
|
+
PROTOBUF_C_LABEL_REPEATED,
|
1465
|
+
PROTOBUF_C_TYPE_SINT64,
|
1466
|
+
PROTOBUF_C_OFFSETOF(Way, n_refs),
|
1467
|
+
PROTOBUF_C_OFFSETOF(Way, refs),
|
1468
|
+
NULL,
|
1469
|
+
NULL,
|
1470
|
+
1, /* packed */
|
1471
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1472
|
+
},
|
1473
|
+
};
|
1474
|
+
static const unsigned way__field_indices_by_name[] = {
|
1475
|
+
0, /* field[0] = id */
|
1476
|
+
3, /* field[3] = info */
|
1477
|
+
1, /* field[1] = keys */
|
1478
|
+
4, /* field[4] = refs */
|
1479
|
+
2, /* field[2] = vals */
|
1480
|
+
};
|
1481
|
+
static const ProtobufCIntRange way__number_ranges[2 + 1] =
|
1482
|
+
{
|
1483
|
+
{ 1, 0 },
|
1484
|
+
{ 8, 4 },
|
1485
|
+
{ 0, 5 }
|
1486
|
+
};
|
1487
|
+
const ProtobufCMessageDescriptor way__descriptor =
|
1488
|
+
{
|
1489
|
+
PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC,
|
1490
|
+
"Way",
|
1491
|
+
"Way",
|
1492
|
+
"Way",
|
1493
|
+
"",
|
1494
|
+
sizeof(Way),
|
1495
|
+
5,
|
1496
|
+
way__field_descriptors,
|
1497
|
+
way__field_indices_by_name,
|
1498
|
+
2, way__number_ranges,
|
1499
|
+
(ProtobufCMessageInit) way__init,
|
1500
|
+
NULL,NULL,NULL /* reserved[123] */
|
1501
|
+
};
|
1502
|
+
const ProtobufCEnumValue relation__member_type__enum_values_by_number[3] =
|
1503
|
+
{
|
1504
|
+
{ "NODE", "RELATION__MEMBER_TYPE__NODE", 0 },
|
1505
|
+
{ "WAY", "RELATION__MEMBER_TYPE__WAY", 1 },
|
1506
|
+
{ "RELATION", "RELATION__MEMBER_TYPE__RELATION", 2 },
|
1507
|
+
};
|
1508
|
+
static const ProtobufCIntRange relation__member_type__value_ranges[] = {
|
1509
|
+
{0, 0},{0, 3}
|
1510
|
+
};
|
1511
|
+
const ProtobufCEnumValueIndex relation__member_type__enum_values_by_name[3] =
|
1512
|
+
{
|
1513
|
+
{ "NODE", 0 },
|
1514
|
+
{ "RELATION", 2 },
|
1515
|
+
{ "WAY", 1 },
|
1516
|
+
};
|
1517
|
+
const ProtobufCEnumDescriptor relation__member_type__descriptor =
|
1518
|
+
{
|
1519
|
+
PROTOBUF_C_ENUM_DESCRIPTOR_MAGIC,
|
1520
|
+
"Relation.MemberType",
|
1521
|
+
"MemberType",
|
1522
|
+
"Relation__MemberType",
|
1523
|
+
"",
|
1524
|
+
3,
|
1525
|
+
relation__member_type__enum_values_by_number,
|
1526
|
+
3,
|
1527
|
+
relation__member_type__enum_values_by_name,
|
1528
|
+
1,
|
1529
|
+
relation__member_type__value_ranges,
|
1530
|
+
NULL,NULL,NULL,NULL /* reserved[1234] */
|
1531
|
+
};
|
1532
|
+
static const ProtobufCFieldDescriptor relation__field_descriptors[7] =
|
1533
|
+
{
|
1534
|
+
{
|
1535
|
+
"id",
|
1536
|
+
1,
|
1537
|
+
PROTOBUF_C_LABEL_REQUIRED,
|
1538
|
+
PROTOBUF_C_TYPE_INT64,
|
1539
|
+
0, /* quantifier_offset */
|
1540
|
+
PROTOBUF_C_OFFSETOF(Relation, id),
|
1541
|
+
NULL,
|
1542
|
+
NULL,
|
1543
|
+
0, /* packed */
|
1544
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1545
|
+
},
|
1546
|
+
{
|
1547
|
+
"keys",
|
1548
|
+
2,
|
1549
|
+
PROTOBUF_C_LABEL_REPEATED,
|
1550
|
+
PROTOBUF_C_TYPE_UINT32,
|
1551
|
+
PROTOBUF_C_OFFSETOF(Relation, n_keys),
|
1552
|
+
PROTOBUF_C_OFFSETOF(Relation, keys),
|
1553
|
+
NULL,
|
1554
|
+
NULL,
|
1555
|
+
1, /* packed */
|
1556
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1557
|
+
},
|
1558
|
+
{
|
1559
|
+
"vals",
|
1560
|
+
3,
|
1561
|
+
PROTOBUF_C_LABEL_REPEATED,
|
1562
|
+
PROTOBUF_C_TYPE_UINT32,
|
1563
|
+
PROTOBUF_C_OFFSETOF(Relation, n_vals),
|
1564
|
+
PROTOBUF_C_OFFSETOF(Relation, vals),
|
1565
|
+
NULL,
|
1566
|
+
NULL,
|
1567
|
+
1, /* packed */
|
1568
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1569
|
+
},
|
1570
|
+
{
|
1571
|
+
"info",
|
1572
|
+
4,
|
1573
|
+
PROTOBUF_C_LABEL_OPTIONAL,
|
1574
|
+
PROTOBUF_C_TYPE_MESSAGE,
|
1575
|
+
0, /* quantifier_offset */
|
1576
|
+
PROTOBUF_C_OFFSETOF(Relation, info),
|
1577
|
+
&info__descriptor,
|
1578
|
+
NULL,
|
1579
|
+
0, /* packed */
|
1580
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1581
|
+
},
|
1582
|
+
{
|
1583
|
+
"roles_sid",
|
1584
|
+
8,
|
1585
|
+
PROTOBUF_C_LABEL_REPEATED,
|
1586
|
+
PROTOBUF_C_TYPE_INT32,
|
1587
|
+
PROTOBUF_C_OFFSETOF(Relation, n_roles_sid),
|
1588
|
+
PROTOBUF_C_OFFSETOF(Relation, roles_sid),
|
1589
|
+
NULL,
|
1590
|
+
NULL,
|
1591
|
+
1, /* packed */
|
1592
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1593
|
+
},
|
1594
|
+
{
|
1595
|
+
"memids",
|
1596
|
+
9,
|
1597
|
+
PROTOBUF_C_LABEL_REPEATED,
|
1598
|
+
PROTOBUF_C_TYPE_SINT64,
|
1599
|
+
PROTOBUF_C_OFFSETOF(Relation, n_memids),
|
1600
|
+
PROTOBUF_C_OFFSETOF(Relation, memids),
|
1601
|
+
NULL,
|
1602
|
+
NULL,
|
1603
|
+
1, /* packed */
|
1604
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1605
|
+
},
|
1606
|
+
{
|
1607
|
+
"types",
|
1608
|
+
10,
|
1609
|
+
PROTOBUF_C_LABEL_REPEATED,
|
1610
|
+
PROTOBUF_C_TYPE_ENUM,
|
1611
|
+
PROTOBUF_C_OFFSETOF(Relation, n_types),
|
1612
|
+
PROTOBUF_C_OFFSETOF(Relation, types),
|
1613
|
+
&relation__member_type__descriptor,
|
1614
|
+
NULL,
|
1615
|
+
1, /* packed */
|
1616
|
+
0,NULL,NULL /* reserved1,reserved2, etc */
|
1617
|
+
},
|
1618
|
+
};
|
1619
|
+
static const unsigned relation__field_indices_by_name[] = {
|
1620
|
+
0, /* field[0] = id */
|
1621
|
+
3, /* field[3] = info */
|
1622
|
+
1, /* field[1] = keys */
|
1623
|
+
5, /* field[5] = memids */
|
1624
|
+
4, /* field[4] = roles_sid */
|
1625
|
+
6, /* field[6] = types */
|
1626
|
+
2, /* field[2] = vals */
|
1627
|
+
};
|
1628
|
+
static const ProtobufCIntRange relation__number_ranges[2 + 1] =
|
1629
|
+
{
|
1630
|
+
{ 1, 0 },
|
1631
|
+
{ 8, 4 },
|
1632
|
+
{ 0, 7 }
|
1633
|
+
};
|
1634
|
+
const ProtobufCMessageDescriptor relation__descriptor =
|
1635
|
+
{
|
1636
|
+
PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC,
|
1637
|
+
"Relation",
|
1638
|
+
"Relation",
|
1639
|
+
"Relation",
|
1640
|
+
"",
|
1641
|
+
sizeof(Relation),
|
1642
|
+
7,
|
1643
|
+
relation__field_descriptors,
|
1644
|
+
relation__field_indices_by_name,
|
1645
|
+
2, relation__number_ranges,
|
1646
|
+
(ProtobufCMessageInit) relation__init,
|
1647
|
+
NULL,NULL,NULL /* reserved[123] */
|
1648
|
+
};
|