-
Notifications
You must be signed in to change notification settings - Fork 32
/
gtfs-realtime.pb-c.c
2048 lines (2045 loc) · 74.2 KB
/
gtfs-realtime.pb-c.c
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
/* Copyright 2013 Bliksem Labs. See the LICENSE file at the top-level directory of this distribution and at https://github.com/bliksemlabs/rrrr/. */
/* Generated by the protocol buffer compiler. DO NOT EDIT! */
/* Do not generate deprecated warnings for self */
#ifndef PROTOBUF_C_NO_DEPRECATED
#define PROTOBUF_C_NO_DEPRECATED
#endif
#include "gtfs-realtime.pb-c.h"
void transit_realtime__feed_message__init
(TransitRealtime__FeedMessage *message)
{
static TransitRealtime__FeedMessage init_value = TRANSIT_REALTIME__FEED_MESSAGE__INIT;
*message = init_value;
}
size_t transit_realtime__feed_message__get_packed_size
(const TransitRealtime__FeedMessage *message)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__feed_message__descriptor);
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t transit_realtime__feed_message__pack
(const TransitRealtime__FeedMessage *message,
uint8_t *out)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__feed_message__descriptor);
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t transit_realtime__feed_message__pack_to_buffer
(const TransitRealtime__FeedMessage *message,
ProtobufCBuffer *buffer)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__feed_message__descriptor);
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
TransitRealtime__FeedMessage *
transit_realtime__feed_message__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data)
{
return (TransitRealtime__FeedMessage *)
protobuf_c_message_unpack (&transit_realtime__feed_message__descriptor,
allocator, len, data);
}
void transit_realtime__feed_message__free_unpacked
(TransitRealtime__FeedMessage *message,
ProtobufCAllocator *allocator)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__feed_message__descriptor);
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void transit_realtime__feed_header__init
(TransitRealtime__FeedHeader *message)
{
static TransitRealtime__FeedHeader init_value = TRANSIT_REALTIME__FEED_HEADER__INIT;
*message = init_value;
}
size_t transit_realtime__feed_header__get_packed_size
(const TransitRealtime__FeedHeader *message)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__feed_header__descriptor);
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t transit_realtime__feed_header__pack
(const TransitRealtime__FeedHeader *message,
uint8_t *out)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__feed_header__descriptor);
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t transit_realtime__feed_header__pack_to_buffer
(const TransitRealtime__FeedHeader *message,
ProtobufCBuffer *buffer)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__feed_header__descriptor);
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
TransitRealtime__FeedHeader *
transit_realtime__feed_header__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data)
{
return (TransitRealtime__FeedHeader *)
protobuf_c_message_unpack (&transit_realtime__feed_header__descriptor,
allocator, len, data);
}
void transit_realtime__feed_header__free_unpacked
(TransitRealtime__FeedHeader *message,
ProtobufCAllocator *allocator)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__feed_header__descriptor);
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void transit_realtime__feed_entity__init
(TransitRealtime__FeedEntity *message)
{
static TransitRealtime__FeedEntity init_value = TRANSIT_REALTIME__FEED_ENTITY__INIT;
*message = init_value;
}
size_t transit_realtime__feed_entity__get_packed_size
(const TransitRealtime__FeedEntity *message)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__feed_entity__descriptor);
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t transit_realtime__feed_entity__pack
(const TransitRealtime__FeedEntity *message,
uint8_t *out)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__feed_entity__descriptor);
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t transit_realtime__feed_entity__pack_to_buffer
(const TransitRealtime__FeedEntity *message,
ProtobufCBuffer *buffer)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__feed_entity__descriptor);
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
TransitRealtime__FeedEntity *
transit_realtime__feed_entity__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data)
{
return (TransitRealtime__FeedEntity *)
protobuf_c_message_unpack (&transit_realtime__feed_entity__descriptor,
allocator, len, data);
}
void transit_realtime__feed_entity__free_unpacked
(TransitRealtime__FeedEntity *message,
ProtobufCAllocator *allocator)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__feed_entity__descriptor);
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void transit_realtime__trip_update__stop_time_event__init
(TransitRealtime__TripUpdate__StopTimeEvent *message)
{
static TransitRealtime__TripUpdate__StopTimeEvent init_value = TRANSIT_REALTIME__TRIP_UPDATE__STOP_TIME_EVENT__INIT;
*message = init_value;
}
void transit_realtime__trip_update__stop_time_update__init
(TransitRealtime__TripUpdate__StopTimeUpdate *message)
{
static TransitRealtime__TripUpdate__StopTimeUpdate init_value = TRANSIT_REALTIME__TRIP_UPDATE__STOP_TIME_UPDATE__INIT;
*message = init_value;
}
void transit_realtime__trip_update__init
(TransitRealtime__TripUpdate *message)
{
static TransitRealtime__TripUpdate init_value = TRANSIT_REALTIME__TRIP_UPDATE__INIT;
*message = init_value;
}
size_t transit_realtime__trip_update__get_packed_size
(const TransitRealtime__TripUpdate *message)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__trip_update__descriptor);
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t transit_realtime__trip_update__pack
(const TransitRealtime__TripUpdate *message,
uint8_t *out)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__trip_update__descriptor);
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t transit_realtime__trip_update__pack_to_buffer
(const TransitRealtime__TripUpdate *message,
ProtobufCBuffer *buffer)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__trip_update__descriptor);
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
TransitRealtime__TripUpdate *
transit_realtime__trip_update__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data)
{
return (TransitRealtime__TripUpdate *)
protobuf_c_message_unpack (&transit_realtime__trip_update__descriptor,
allocator, len, data);
}
void transit_realtime__trip_update__free_unpacked
(TransitRealtime__TripUpdate *message,
ProtobufCAllocator *allocator)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__trip_update__descriptor);
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void transit_realtime__vehicle_position__init
(TransitRealtime__VehiclePosition *message)
{
static TransitRealtime__VehiclePosition init_value = TRANSIT_REALTIME__VEHICLE_POSITION__INIT;
*message = init_value;
}
size_t transit_realtime__vehicle_position__get_packed_size
(const TransitRealtime__VehiclePosition *message)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__vehicle_position__descriptor);
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t transit_realtime__vehicle_position__pack
(const TransitRealtime__VehiclePosition *message,
uint8_t *out)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__vehicle_position__descriptor);
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t transit_realtime__vehicle_position__pack_to_buffer
(const TransitRealtime__VehiclePosition *message,
ProtobufCBuffer *buffer)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__vehicle_position__descriptor);
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
TransitRealtime__VehiclePosition *
transit_realtime__vehicle_position__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data)
{
return (TransitRealtime__VehiclePosition *)
protobuf_c_message_unpack (&transit_realtime__vehicle_position__descriptor,
allocator, len, data);
}
void transit_realtime__vehicle_position__free_unpacked
(TransitRealtime__VehiclePosition *message,
ProtobufCAllocator *allocator)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__vehicle_position__descriptor);
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void transit_realtime__ovapi_vehicle_position__init
(TransitRealtime__OVapiVehiclePosition *message)
{
static TransitRealtime__OVapiVehiclePosition init_value = TRANSIT_REALTIME__OVAPI_VEHICLE_POSITION__INIT;
*message = init_value;
}
size_t transit_realtime__ovapi_vehicle_position__get_packed_size
(const TransitRealtime__OVapiVehiclePosition *message)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__ovapi_vehicle_position__descriptor);
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t transit_realtime__ovapi_vehicle_position__pack
(const TransitRealtime__OVapiVehiclePosition *message,
uint8_t *out)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__ovapi_vehicle_position__descriptor);
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t transit_realtime__ovapi_vehicle_position__pack_to_buffer
(const TransitRealtime__OVapiVehiclePosition *message,
ProtobufCBuffer *buffer)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__ovapi_vehicle_position__descriptor);
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
TransitRealtime__OVapiVehiclePosition *
transit_realtime__ovapi_vehicle_position__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data)
{
return (TransitRealtime__OVapiVehiclePosition *)
protobuf_c_message_unpack (&transit_realtime__ovapi_vehicle_position__descriptor,
allocator, len, data);
}
void transit_realtime__ovapi_vehicle_position__free_unpacked
(TransitRealtime__OVapiVehiclePosition *message,
ProtobufCAllocator *allocator)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__ovapi_vehicle_position__descriptor);
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void transit_realtime__alert__init
(TransitRealtime__Alert *message)
{
static TransitRealtime__Alert init_value = TRANSIT_REALTIME__ALERT__INIT;
*message = init_value;
}
size_t transit_realtime__alert__get_packed_size
(const TransitRealtime__Alert *message)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__alert__descriptor);
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t transit_realtime__alert__pack
(const TransitRealtime__Alert *message,
uint8_t *out)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__alert__descriptor);
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t transit_realtime__alert__pack_to_buffer
(const TransitRealtime__Alert *message,
ProtobufCBuffer *buffer)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__alert__descriptor);
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
TransitRealtime__Alert *
transit_realtime__alert__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data)
{
return (TransitRealtime__Alert *)
protobuf_c_message_unpack (&transit_realtime__alert__descriptor,
allocator, len, data);
}
void transit_realtime__alert__free_unpacked
(TransitRealtime__Alert *message,
ProtobufCAllocator *allocator)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__alert__descriptor);
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void transit_realtime__time_range__init
(TransitRealtime__TimeRange *message)
{
static TransitRealtime__TimeRange init_value = TRANSIT_REALTIME__TIME_RANGE__INIT;
*message = init_value;
}
size_t transit_realtime__time_range__get_packed_size
(const TransitRealtime__TimeRange *message)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__time_range__descriptor);
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t transit_realtime__time_range__pack
(const TransitRealtime__TimeRange *message,
uint8_t *out)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__time_range__descriptor);
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t transit_realtime__time_range__pack_to_buffer
(const TransitRealtime__TimeRange *message,
ProtobufCBuffer *buffer)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__time_range__descriptor);
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
TransitRealtime__TimeRange *
transit_realtime__time_range__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data)
{
return (TransitRealtime__TimeRange *)
protobuf_c_message_unpack (&transit_realtime__time_range__descriptor,
allocator, len, data);
}
void transit_realtime__time_range__free_unpacked
(TransitRealtime__TimeRange *message,
ProtobufCAllocator *allocator)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__time_range__descriptor);
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void transit_realtime__position__init
(TransitRealtime__Position *message)
{
static TransitRealtime__Position init_value = TRANSIT_REALTIME__POSITION__INIT;
*message = init_value;
}
size_t transit_realtime__position__get_packed_size
(const TransitRealtime__Position *message)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__position__descriptor);
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t transit_realtime__position__pack
(const TransitRealtime__Position *message,
uint8_t *out)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__position__descriptor);
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t transit_realtime__position__pack_to_buffer
(const TransitRealtime__Position *message,
ProtobufCBuffer *buffer)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__position__descriptor);
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
TransitRealtime__Position *
transit_realtime__position__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data)
{
return (TransitRealtime__Position *)
protobuf_c_message_unpack (&transit_realtime__position__descriptor,
allocator, len, data);
}
void transit_realtime__position__free_unpacked
(TransitRealtime__Position *message,
ProtobufCAllocator *allocator)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__position__descriptor);
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void transit_realtime__trip_descriptor__init
(TransitRealtime__TripDescriptor *message)
{
static TransitRealtime__TripDescriptor init_value = TRANSIT_REALTIME__TRIP_DESCRIPTOR__INIT;
*message = init_value;
}
size_t transit_realtime__trip_descriptor__get_packed_size
(const TransitRealtime__TripDescriptor *message)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__trip_descriptor__descriptor);
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t transit_realtime__trip_descriptor__pack
(const TransitRealtime__TripDescriptor *message,
uint8_t *out)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__trip_descriptor__descriptor);
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t transit_realtime__trip_descriptor__pack_to_buffer
(const TransitRealtime__TripDescriptor *message,
ProtobufCBuffer *buffer)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__trip_descriptor__descriptor);
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
TransitRealtime__TripDescriptor *
transit_realtime__trip_descriptor__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data)
{
return (TransitRealtime__TripDescriptor *)
protobuf_c_message_unpack (&transit_realtime__trip_descriptor__descriptor,
allocator, len, data);
}
void transit_realtime__trip_descriptor__free_unpacked
(TransitRealtime__TripDescriptor *message,
ProtobufCAllocator *allocator)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__trip_descriptor__descriptor);
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void transit_realtime__vehicle_descriptor__init
(TransitRealtime__VehicleDescriptor *message)
{
static TransitRealtime__VehicleDescriptor init_value = TRANSIT_REALTIME__VEHICLE_DESCRIPTOR__INIT;
*message = init_value;
}
size_t transit_realtime__vehicle_descriptor__get_packed_size
(const TransitRealtime__VehicleDescriptor *message)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__vehicle_descriptor__descriptor);
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t transit_realtime__vehicle_descriptor__pack
(const TransitRealtime__VehicleDescriptor *message,
uint8_t *out)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__vehicle_descriptor__descriptor);
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t transit_realtime__vehicle_descriptor__pack_to_buffer
(const TransitRealtime__VehicleDescriptor *message,
ProtobufCBuffer *buffer)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__vehicle_descriptor__descriptor);
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
TransitRealtime__VehicleDescriptor *
transit_realtime__vehicle_descriptor__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data)
{
return (TransitRealtime__VehicleDescriptor *)
protobuf_c_message_unpack (&transit_realtime__vehicle_descriptor__descriptor,
allocator, len, data);
}
void transit_realtime__vehicle_descriptor__free_unpacked
(TransitRealtime__VehicleDescriptor *message,
ProtobufCAllocator *allocator)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__vehicle_descriptor__descriptor);
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void transit_realtime__entity_selector__init
(TransitRealtime__EntitySelector *message)
{
static TransitRealtime__EntitySelector init_value = TRANSIT_REALTIME__ENTITY_SELECTOR__INIT;
*message = init_value;
}
size_t transit_realtime__entity_selector__get_packed_size
(const TransitRealtime__EntitySelector *message)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__entity_selector__descriptor);
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t transit_realtime__entity_selector__pack
(const TransitRealtime__EntitySelector *message,
uint8_t *out)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__entity_selector__descriptor);
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t transit_realtime__entity_selector__pack_to_buffer
(const TransitRealtime__EntitySelector *message,
ProtobufCBuffer *buffer)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__entity_selector__descriptor);
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
TransitRealtime__EntitySelector *
transit_realtime__entity_selector__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data)
{
return (TransitRealtime__EntitySelector *)
protobuf_c_message_unpack (&transit_realtime__entity_selector__descriptor,
allocator, len, data);
}
void transit_realtime__entity_selector__free_unpacked
(TransitRealtime__EntitySelector *message,
ProtobufCAllocator *allocator)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__entity_selector__descriptor);
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
void transit_realtime__translated_string__translation__init
(TransitRealtime__TranslatedString__Translation *message)
{
static TransitRealtime__TranslatedString__Translation init_value = TRANSIT_REALTIME__TRANSLATED_STRING__TRANSLATION__INIT;
*message = init_value;
}
void transit_realtime__translated_string__init
(TransitRealtime__TranslatedString *message)
{
static TransitRealtime__TranslatedString init_value = TRANSIT_REALTIME__TRANSLATED_STRING__INIT;
*message = init_value;
}
size_t transit_realtime__translated_string__get_packed_size
(const TransitRealtime__TranslatedString *message)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__translated_string__descriptor);
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t transit_realtime__translated_string__pack
(const TransitRealtime__TranslatedString *message,
uint8_t *out)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__translated_string__descriptor);
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t transit_realtime__translated_string__pack_to_buffer
(const TransitRealtime__TranslatedString *message,
ProtobufCBuffer *buffer)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__translated_string__descriptor);
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
TransitRealtime__TranslatedString *
transit_realtime__translated_string__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data)
{
return (TransitRealtime__TranslatedString *)
protobuf_c_message_unpack (&transit_realtime__translated_string__descriptor,
allocator, len, data);
}
void transit_realtime__translated_string__free_unpacked
(TransitRealtime__TranslatedString *message,
ProtobufCAllocator *allocator)
{
PROTOBUF_C_ASSERT (message->base.descriptor == &transit_realtime__translated_string__descriptor);
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor transit_realtime__feed_message__field_descriptors[2] =
{
{
"header",
1,
PROTOBUF_C_LABEL_REQUIRED,
PROTOBUF_C_TYPE_MESSAGE,
0, /* quantifier_offset */
PROTOBUF_C_OFFSETOF(TransitRealtime__FeedMessage, header),
&transit_realtime__feed_header__descriptor,
NULL,
0, /* packed */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"entity",
2,
PROTOBUF_C_LABEL_REPEATED,
PROTOBUF_C_TYPE_MESSAGE,
PROTOBUF_C_OFFSETOF(TransitRealtime__FeedMessage, n_entity),
PROTOBUF_C_OFFSETOF(TransitRealtime__FeedMessage, entity),
&transit_realtime__feed_entity__descriptor,
NULL,
0, /* packed */
0,NULL,NULL /* reserved1,reserved2, etc */
},
};
static const unsigned transit_realtime__feed_message__field_indices_by_name[] = {
1, /* field[1] = entity */
0, /* field[0] = header */
};
static const ProtobufCIntRange transit_realtime__feed_message__number_ranges[1 + 1] =
{
{ 1, 0 },
{ 0, 2 }
};
const ProtobufCMessageDescriptor transit_realtime__feed_message__descriptor =
{
PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC,
"transit_realtime.FeedMessage",
"FeedMessage",
"TransitRealtime__FeedMessage",
"transit_realtime",
sizeof(TransitRealtime__FeedMessage),
2,
transit_realtime__feed_message__field_descriptors,
transit_realtime__feed_message__field_indices_by_name,
1, transit_realtime__feed_message__number_ranges,
(ProtobufCMessageInit) transit_realtime__feed_message__init,
NULL,NULL,NULL /* reserved[123] */
};
const ProtobufCEnumValue transit_realtime__feed_header__incrementality__enum_values_by_number[2] =
{
{ "FULL_DATASET", "TRANSIT_REALTIME__FEED_HEADER__INCREMENTALITY__FULL_DATASET", 0 },
{ "DIFFERENTIAL", "TRANSIT_REALTIME__FEED_HEADER__INCREMENTALITY__DIFFERENTIAL", 1 },
};
static const ProtobufCIntRange transit_realtime__feed_header__incrementality__value_ranges[] = {
{0, 0},{0, 2}
};
const ProtobufCEnumValueIndex transit_realtime__feed_header__incrementality__enum_values_by_name[2] =
{
{ "DIFFERENTIAL", 1 },
{ "FULL_DATASET", 0 },
};
const ProtobufCEnumDescriptor transit_realtime__feed_header__incrementality__descriptor =
{
PROTOBUF_C_ENUM_DESCRIPTOR_MAGIC,
"transit_realtime.FeedHeader.Incrementality",
"Incrementality",
"TransitRealtime__FeedHeader__Incrementality",
"transit_realtime",
2,
transit_realtime__feed_header__incrementality__enum_values_by_number,
2,
transit_realtime__feed_header__incrementality__enum_values_by_name,
1,
transit_realtime__feed_header__incrementality__value_ranges,
NULL,NULL,NULL,NULL /* reserved[1234] */
};
static const TransitRealtime__FeedHeader__Incrementality transit_realtime__feed_header__incrementality__default_value = TRANSIT_REALTIME__FEED_HEADER__INCREMENTALITY__FULL_DATASET;
static const ProtobufCFieldDescriptor transit_realtime__feed_header__field_descriptors[3] =
{
{
"gtfs_realtime_version",
1,
PROTOBUF_C_LABEL_REQUIRED,
PROTOBUF_C_TYPE_STRING,
0, /* quantifier_offset */
PROTOBUF_C_OFFSETOF(TransitRealtime__FeedHeader, gtfs_realtime_version),
NULL,
NULL,
0, /* packed */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"incrementality",
2,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_ENUM,
PROTOBUF_C_OFFSETOF(TransitRealtime__FeedHeader, has_incrementality),
PROTOBUF_C_OFFSETOF(TransitRealtime__FeedHeader, incrementality),
&transit_realtime__feed_header__incrementality__descriptor,
&transit_realtime__feed_header__incrementality__default_value,
0, /* packed */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"timestamp",
3,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_UINT64,
PROTOBUF_C_OFFSETOF(TransitRealtime__FeedHeader, has_timestamp),
PROTOBUF_C_OFFSETOF(TransitRealtime__FeedHeader, timestamp),
NULL,
NULL,
0, /* packed */
0,NULL,NULL /* reserved1,reserved2, etc */
},
};
static const unsigned transit_realtime__feed_header__field_indices_by_name[] = {
0, /* field[0] = gtfs_realtime_version */
1, /* field[1] = incrementality */
2, /* field[2] = timestamp */
};
static const ProtobufCIntRange transit_realtime__feed_header__number_ranges[1 + 1] =
{
{ 1, 0 },
{ 0, 3 }
};
const ProtobufCMessageDescriptor transit_realtime__feed_header__descriptor =
{
PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC,
"transit_realtime.FeedHeader",
"FeedHeader",
"TransitRealtime__FeedHeader",
"transit_realtime",
sizeof(TransitRealtime__FeedHeader),
3,
transit_realtime__feed_header__field_descriptors,
transit_realtime__feed_header__field_indices_by_name,
1, transit_realtime__feed_header__number_ranges,
(ProtobufCMessageInit) transit_realtime__feed_header__init,
NULL,NULL,NULL /* reserved[123] */
};
static const protobuf_c_boolean transit_realtime__feed_entity__is_deleted__default_value = 0;
static const ProtobufCFieldDescriptor transit_realtime__feed_entity__field_descriptors[5] =
{
{
"id",
1,
PROTOBUF_C_LABEL_REQUIRED,
PROTOBUF_C_TYPE_STRING,
0, /* quantifier_offset */
PROTOBUF_C_OFFSETOF(TransitRealtime__FeedEntity, id),
NULL,
NULL,
0, /* packed */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"is_deleted",
2,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_BOOL,
PROTOBUF_C_OFFSETOF(TransitRealtime__FeedEntity, has_is_deleted),
PROTOBUF_C_OFFSETOF(TransitRealtime__FeedEntity, is_deleted),
NULL,
&transit_realtime__feed_entity__is_deleted__default_value,
0, /* packed */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"trip_update",
3,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_MESSAGE,
0, /* quantifier_offset */
PROTOBUF_C_OFFSETOF(TransitRealtime__FeedEntity, trip_update),
&transit_realtime__trip_update__descriptor,
NULL,
0, /* packed */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"vehicle",
4,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_MESSAGE,
0, /* quantifier_offset */
PROTOBUF_C_OFFSETOF(TransitRealtime__FeedEntity, vehicle),
&transit_realtime__vehicle_position__descriptor,
NULL,
0, /* packed */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"alert",
5,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_MESSAGE,
0, /* quantifier_offset */
PROTOBUF_C_OFFSETOF(TransitRealtime__FeedEntity, alert),
&transit_realtime__alert__descriptor,
NULL,
0, /* packed */
0,NULL,NULL /* reserved1,reserved2, etc */
},
};
static const unsigned transit_realtime__feed_entity__field_indices_by_name[] = {
4, /* field[4] = alert */
0, /* field[0] = id */
1, /* field[1] = is_deleted */
2, /* field[2] = trip_update */
3, /* field[3] = vehicle */
};
static const ProtobufCIntRange transit_realtime__feed_entity__number_ranges[1 + 1] =
{
{ 1, 0 },
{ 0, 5 }
};
const ProtobufCMessageDescriptor transit_realtime__feed_entity__descriptor =
{
PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC,
"transit_realtime.FeedEntity",
"FeedEntity",
"TransitRealtime__FeedEntity",
"transit_realtime",
sizeof(TransitRealtime__FeedEntity),
5,
transit_realtime__feed_entity__field_descriptors,
transit_realtime__feed_entity__field_indices_by_name,
1, transit_realtime__feed_entity__number_ranges,
(ProtobufCMessageInit) transit_realtime__feed_entity__init,
NULL,NULL,NULL /* reserved[123] */
};
static const ProtobufCFieldDescriptor transit_realtime__trip_update__stop_time_event__field_descriptors[3] =
{
{
"delay",
1,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_INT32,
PROTOBUF_C_OFFSETOF(TransitRealtime__TripUpdate__StopTimeEvent, has_delay),
PROTOBUF_C_OFFSETOF(TransitRealtime__TripUpdate__StopTimeEvent, delay),
NULL,
NULL,
0, /* packed */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"time",
2,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_INT64,
PROTOBUF_C_OFFSETOF(TransitRealtime__TripUpdate__StopTimeEvent, has_time),
PROTOBUF_C_OFFSETOF(TransitRealtime__TripUpdate__StopTimeEvent, time),
NULL,
NULL,
0, /* packed */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"uncertainty",
3,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_INT32,
PROTOBUF_C_OFFSETOF(TransitRealtime__TripUpdate__StopTimeEvent, has_uncertainty),
PROTOBUF_C_OFFSETOF(TransitRealtime__TripUpdate__StopTimeEvent, uncertainty),
NULL,
NULL,
0, /* packed */
0,NULL,NULL /* reserved1,reserved2, etc */
},
};
static const unsigned transit_realtime__trip_update__stop_time_event__field_indices_by_name[] = {
0, /* field[0] = delay */
1, /* field[1] = time */
2, /* field[2] = uncertainty */
};
static const ProtobufCIntRange transit_realtime__trip_update__stop_time_event__number_ranges[1 + 1] =
{
{ 1, 0 },
{ 0, 3 }
};
const ProtobufCMessageDescriptor transit_realtime__trip_update__stop_time_event__descriptor =
{
PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC,
"transit_realtime.TripUpdate.StopTimeEvent",
"StopTimeEvent",
"TransitRealtime__TripUpdate__StopTimeEvent",
"transit_realtime",
sizeof(TransitRealtime__TripUpdate__StopTimeEvent),
3,
transit_realtime__trip_update__stop_time_event__field_descriptors,
transit_realtime__trip_update__stop_time_event__field_indices_by_name,
1, transit_realtime__trip_update__stop_time_event__number_ranges,
(ProtobufCMessageInit) transit_realtime__trip_update__stop_time_event__init,
NULL,NULL,NULL /* reserved[123] */
};
const ProtobufCEnumValue transit_realtime__trip_update__stop_time_update__schedule_relationship__enum_values_by_number[3] =
{
{ "SCHEDULED", "TRANSIT_REALTIME__TRIP_UPDATE__STOP_TIME_UPDATE__SCHEDULE_RELATIONSHIP__SCHEDULED", 0 },
{ "SKIPPED", "TRANSIT_REALTIME__TRIP_UPDATE__STOP_TIME_UPDATE__SCHEDULE_RELATIONSHIP__SKIPPED", 1 },
{ "NO_DATA", "TRANSIT_REALTIME__TRIP_UPDATE__STOP_TIME_UPDATE__SCHEDULE_RELATIONSHIP__NO_DATA", 2 },
};
static const ProtobufCIntRange transit_realtime__trip_update__stop_time_update__schedule_relationship__value_ranges[] = {
{0, 0},{0, 3}
};
const ProtobufCEnumValueIndex transit_realtime__trip_update__stop_time_update__schedule_relationship__enum_values_by_name[3] =
{
{ "NO_DATA", 2 },
{ "SCHEDULED", 0 },
{ "SKIPPED", 1 },
};
const ProtobufCEnumDescriptor transit_realtime__trip_update__stop_time_update__schedule_relationship__descriptor =
{
PROTOBUF_C_ENUM_DESCRIPTOR_MAGIC,
"transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship",
"ScheduleRelationship",
"TransitRealtime__TripUpdate__StopTimeUpdate__ScheduleRelationship",
"transit_realtime",
3,
transit_realtime__trip_update__stop_time_update__schedule_relationship__enum_values_by_number,
3,
transit_realtime__trip_update__stop_time_update__schedule_relationship__enum_values_by_name,
1,
transit_realtime__trip_update__stop_time_update__schedule_relationship__value_ranges,
NULL,NULL,NULL,NULL /* reserved[1234] */
};
static const TransitRealtime__TripUpdate__StopTimeUpdate__ScheduleRelationship transit_realtime__trip_update__stop_time_update__schedule_relationship__default_value = TRANSIT_REALTIME__TRIP_UPDATE__STOP_TIME_UPDATE__SCHEDULE_RELATIONSHIP__SCHEDULED;
static const ProtobufCFieldDescriptor transit_realtime__trip_update__stop_time_update__field_descriptors[5] =
{
{
"stop_sequence",
1,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_UINT32,
PROTOBUF_C_OFFSETOF(TransitRealtime__TripUpdate__StopTimeUpdate, has_stop_sequence),
PROTOBUF_C_OFFSETOF(TransitRealtime__TripUpdate__StopTimeUpdate, stop_sequence),
NULL,
NULL,
0, /* packed */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"arrival",
2,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_MESSAGE,
0, /* quantifier_offset */
PROTOBUF_C_OFFSETOF(TransitRealtime__TripUpdate__StopTimeUpdate, arrival),
&transit_realtime__trip_update__stop_time_event__descriptor,
NULL,
0, /* packed */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"departure",
3,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_MESSAGE,
0, /* quantifier_offset */
PROTOBUF_C_OFFSETOF(TransitRealtime__TripUpdate__StopTimeUpdate, departure),
&transit_realtime__trip_update__stop_time_event__descriptor,
NULL,
0, /* packed */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"stop_id",
4,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_STRING,
0, /* quantifier_offset */
PROTOBUF_C_OFFSETOF(TransitRealtime__TripUpdate__StopTimeUpdate, stop_id),
NULL,
NULL,
0, /* packed */
0,NULL,NULL /* reserved1,reserved2, etc */
},
{
"schedule_relationship",
5,
PROTOBUF_C_LABEL_OPTIONAL,
PROTOBUF_C_TYPE_ENUM,
PROTOBUF_C_OFFSETOF(TransitRealtime__TripUpdate__StopTimeUpdate, has_schedule_relationship),
PROTOBUF_C_OFFSETOF(TransitRealtime__TripUpdate__StopTimeUpdate, schedule_relationship),
&transit_realtime__trip_update__stop_time_update__schedule_relationship__descriptor,
&transit_realtime__trip_update__stop_time_update__schedule_relationship__default_value,
0, /* packed */
0,NULL,NULL /* reserved1,reserved2, etc */
},
};
static const unsigned transit_realtime__trip_update__stop_time_update__field_indices_by_name[] = {
1, /* field[1] = arrival */
2, /* field[2] = departure */
4, /* field[4] = schedule_relationship */
3, /* field[3] = stop_id */
0, /* field[0] = stop_sequence */
};
static const ProtobufCIntRange transit_realtime__trip_update__stop_time_update__number_ranges[1 + 1] =
{
{ 1, 0 },
{ 0, 5 }
};
const ProtobufCMessageDescriptor transit_realtime__trip_update__stop_time_update__descriptor =
{
PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC,
"transit_realtime.TripUpdate.StopTimeUpdate",
"StopTimeUpdate",
"TransitRealtime__TripUpdate__StopTimeUpdate",
"transit_realtime",
sizeof(TransitRealtime__TripUpdate__StopTimeUpdate),