4#ifndef PB_ALLTYPES_LEGACY_H_INCLUDED
5#define PB_ALLTYPES_LEGACY_H_INCLUDED
9#if PB_PROTO_HEADER_VERSION != 40
10#error Regenerate this file with the current version of nanopb generator.
18typedef enum _HugeEnum {
22#define _HugeEnum_MIN HugeEnum_Negative
23#define _HugeEnum_MAX HugeEnum_Positive
24#define _HugeEnum_ARRAYSIZE ((HugeEnum)(HugeEnum_Positive+1))
32#define _MyEnum_MIN MyEnum_Zero
33#define _MyEnum_MAX MyEnum_Truth
34#define _MyEnum_ARRAYSIZE ((MyEnum)(MyEnum_Truth+1))
37typedef struct _EmptyMessage {
43typedef struct _Limits {
58typedef struct _SubMessage {
70typedef struct _AllTypes {
113 double rep_double[5];
115 char rep_string[5][16];
117 AllTypes_rep_bytes_t rep_bytes[5];
163#define SubMessage_init_default {"1", 2, false, 3u}
164#define EmptyMessage_init_default {0}
165#define Limits_init_default {2147483647, -2147483647, 4294967295u, 0u, 9223372036854775807ll, -9223372036854775807ll, 18446744073709551615ull, 0ull, HugeEnum_Positive, HugeEnum_Negative}
166#define AllTypes_init_default {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "", {0, {0}}, SubMessage_init_default, _MyEnum_MIN, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {"", "", "", "", ""}, 0, {{0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}}, 0, {SubMessage_init_default, SubMessage_init_default, SubMessage_init_default, SubMessage_init_default, SubMessage_init_default}, 0, {_MyEnum_MIN, _MyEnum_MIN, _MyEnum_MIN, _MyEnum_MIN, _MyEnum_MIN}, false, 4041, false, 4042ll, false, 4043u, false, 4044ull, false, 4045, false, 4046, false, false, false, 4048u, false, 4049, false, 4050, false, 4051ull, false, 4052ll, false, 4053, false, "4054", false, {4, {0x34,0x30,0x35,0x35}}, false, SubMessage_init_default, false, MyEnum_Second, 0, NULL}
167#define SubMessage_init_zero {"", 0, false, 0}
168#define EmptyMessage_init_zero {0}
169#define Limits_init_zero {0, 0, 0, 0, 0, 0, 0, 0, _HugeEnum_MIN, _HugeEnum_MIN}
170#define AllTypes_init_zero {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "", {0, {0}}, SubMessage_init_zero, _MyEnum_MIN, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {0, 0, 0, 0, 0}, 0, {"", "", "", "", ""}, 0, {{0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}, {0, {0}}}, 0, {SubMessage_init_zero, SubMessage_init_zero, SubMessage_init_zero, SubMessage_init_zero, SubMessage_init_zero}, 0, {_MyEnum_MIN, _MyEnum_MIN, _MyEnum_MIN, _MyEnum_MIN, _MyEnum_MIN}, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, "", false, {0, {0}}, false, SubMessage_init_zero, false, _MyEnum_MIN, 0, NULL}
173#define Limits_int32_min_tag 1
174#define Limits_int32_max_tag 2
175#define Limits_uint32_min_tag 3
176#define Limits_uint32_max_tag 4
177#define Limits_int64_min_tag 5
178#define Limits_int64_max_tag 6
179#define Limits_uint64_min_tag 7
180#define Limits_uint64_max_tag 8
181#define Limits_enum_min_tag 9
182#define Limits_enum_max_tag 10
183#define SubMessage_substuff1_tag 1
184#define SubMessage_substuff2_tag 2
185#define SubMessage_substuff3_tag 3
186#define AllTypes_req_int32_tag 1
187#define AllTypes_req_int64_tag 2
188#define AllTypes_req_uint32_tag 3
189#define AllTypes_req_uint64_tag 4
190#define AllTypes_req_sint32_tag 5
191#define AllTypes_req_sint64_tag 6
192#define AllTypes_req_bool_tag 7
193#define AllTypes_req_fixed32_tag 8
194#define AllTypes_req_sfixed32_tag 9
195#define AllTypes_req_float_tag 10
196#define AllTypes_req_fixed64_tag 11
197#define AllTypes_req_sfixed64_tag 12
198#define AllTypes_req_double_tag 13
199#define AllTypes_req_string_tag 14
200#define AllTypes_req_bytes_tag 15
201#define AllTypes_req_submsg_tag 16
202#define AllTypes_req_enum_tag 17
203#define AllTypes_rep_int32_tag 21
204#define AllTypes_rep_int64_tag 22
205#define AllTypes_rep_uint32_tag 23
206#define AllTypes_rep_uint64_tag 24
207#define AllTypes_rep_sint32_tag 25
208#define AllTypes_rep_sint64_tag 26
209#define AllTypes_rep_bool_tag 27
210#define AllTypes_rep_fixed32_tag 28
211#define AllTypes_rep_sfixed32_tag 29
212#define AllTypes_rep_float_tag 30
213#define AllTypes_rep_fixed64_tag 31
214#define AllTypes_rep_sfixed64_tag 32
215#define AllTypes_rep_double_tag 33
216#define AllTypes_rep_string_tag 34
217#define AllTypes_rep_bytes_tag 35
218#define AllTypes_rep_submsg_tag 36
219#define AllTypes_rep_enum_tag 37
220#define AllTypes_opt_int32_tag 41
221#define AllTypes_opt_int64_tag 42
222#define AllTypes_opt_uint32_tag 43
223#define AllTypes_opt_uint64_tag 44
224#define AllTypes_opt_sint32_tag 45
225#define AllTypes_opt_sint64_tag 46
226#define AllTypes_opt_bool_tag 47
227#define AllTypes_opt_fixed32_tag 48
228#define AllTypes_opt_sfixed32_tag 49
229#define AllTypes_opt_float_tag 50
230#define AllTypes_opt_fixed64_tag 51
231#define AllTypes_opt_sfixed64_tag 52
232#define AllTypes_opt_double_tag 53
233#define AllTypes_opt_string_tag 54
234#define AllTypes_opt_bytes_tag 55
235#define AllTypes_opt_submsg_tag 56
236#define AllTypes_opt_enum_tag 57
237#define AllTypes_end_tag 99
240#define SubMessage_FIELDLIST(X, a) \
241X(a, STATIC, REQUIRED, STRING, substuff1, 1) \
242X(a, STATIC, REQUIRED, INT32, substuff2, 2) \
243X(a, STATIC, OPTIONAL, FIXED32, substuff3, 3)
244#define SubMessage_CALLBACK NULL
246#define EmptyMessage_FIELDLIST(X, a) \
248#define EmptyMessage_CALLBACK NULL
250#define Limits_FIELDLIST(X, a) \
251X(a, STATIC, REQUIRED, INT32, int32_min, 1) \
252X(a, STATIC, REQUIRED, INT32, int32_max, 2) \
253X(a, STATIC, REQUIRED, UINT32, uint32_min, 3) \
254X(a, STATIC, REQUIRED, UINT32, uint32_max, 4) \
255X(a, STATIC, REQUIRED, INT64, int64_min, 5) \
256X(a, STATIC, REQUIRED, INT64, int64_max, 6) \
257X(a, STATIC, REQUIRED, UINT64, uint64_min, 7) \
258X(a, STATIC, REQUIRED, UINT64, uint64_max, 8) \
259X(a, STATIC, REQUIRED, ENUM, enum_min, 9) \
260X(a, STATIC, REQUIRED, ENUM, enum_max, 10)
261#define Limits_CALLBACK NULL
263#define AllTypes_FIELDLIST(X, a) \
264X(a, STATIC, REQUIRED, INT32, req_int32, 1) \
265X(a, STATIC, REQUIRED, INT64, req_int64, 2) \
266X(a, STATIC, REQUIRED, UINT32, req_uint32, 3) \
267X(a, STATIC, REQUIRED, UINT64, req_uint64, 4) \
268X(a, STATIC, REQUIRED, SINT32, req_sint32, 5) \
269X(a, STATIC, REQUIRED, SINT64, req_sint64, 6) \
270X(a, STATIC, REQUIRED, BOOL, req_bool, 7) \
271X(a, STATIC, REQUIRED, FIXED32, req_fixed32, 8) \
272X(a, STATIC, REQUIRED, SFIXED32, req_sfixed32, 9) \
273X(a, STATIC, REQUIRED, FLOAT, req_float, 10) \
274X(a, STATIC, REQUIRED, FIXED64, req_fixed64, 11) \
275X(a, STATIC, REQUIRED, SFIXED64, req_sfixed64, 12) \
276X(a, STATIC, REQUIRED, DOUBLE, req_double, 13) \
277X(a, STATIC, REQUIRED, STRING, req_string, 14) \
278X(a, STATIC, REQUIRED, BYTES, req_bytes, 15) \
279X(a, STATIC, REQUIRED, MESSAGE, req_submsg, 16) \
280X(a, STATIC, REQUIRED, UENUM, req_enum, 17) \
281X(a, STATIC, REPEATED, INT32, rep_int32, 21) \
282X(a, STATIC, REPEATED, INT64, rep_int64, 22) \
283X(a, STATIC, REPEATED, UINT32, rep_uint32, 23) \
284X(a, STATIC, REPEATED, UINT64, rep_uint64, 24) \
285X(a, STATIC, REPEATED, SINT32, rep_sint32, 25) \
286X(a, STATIC, REPEATED, SINT64, rep_sint64, 26) \
287X(a, STATIC, REPEATED, BOOL, rep_bool, 27) \
288X(a, STATIC, REPEATED, FIXED32, rep_fixed32, 28) \
289X(a, STATIC, REPEATED, SFIXED32, rep_sfixed32, 29) \
290X(a, STATIC, REPEATED, FLOAT, rep_float, 30) \
291X(a, STATIC, REPEATED, FIXED64, rep_fixed64, 31) \
292X(a, STATIC, REPEATED, SFIXED64, rep_sfixed64, 32) \
293X(a, STATIC, REPEATED, DOUBLE, rep_double, 33) \
294X(a, STATIC, REPEATED, STRING, rep_string, 34) \
295X(a, STATIC, REPEATED, BYTES, rep_bytes, 35) \
296X(a, STATIC, REPEATED, MESSAGE, rep_submsg, 36) \
297X(a, STATIC, REPEATED, UENUM, rep_enum, 37) \
298X(a, STATIC, OPTIONAL, INT32, opt_int32, 41) \
299X(a, STATIC, OPTIONAL, INT64, opt_int64, 42) \
300X(a, STATIC, OPTIONAL, UINT32, opt_uint32, 43) \
301X(a, STATIC, OPTIONAL, UINT64, opt_uint64, 44) \
302X(a, STATIC, OPTIONAL, SINT32, opt_sint32, 45) \
303X(a, STATIC, OPTIONAL, SINT64, opt_sint64, 46) \
304X(a, STATIC, OPTIONAL, BOOL, opt_bool, 47) \
305X(a, STATIC, OPTIONAL, FIXED32, opt_fixed32, 48) \
306X(a, STATIC, OPTIONAL, SFIXED32, opt_sfixed32, 49) \
307X(a, STATIC, OPTIONAL, FLOAT, opt_float, 50) \
308X(a, STATIC, OPTIONAL, FIXED64, opt_fixed64, 51) \
309X(a, STATIC, OPTIONAL, SFIXED64, opt_sfixed64, 52) \
310X(a, STATIC, OPTIONAL, DOUBLE, opt_double, 53) \
311X(a, STATIC, OPTIONAL, STRING, opt_string, 54) \
312X(a, STATIC, OPTIONAL, BYTES, opt_bytes, 55) \
313X(a, STATIC, OPTIONAL, MESSAGE, opt_submsg, 56) \
314X(a, STATIC, OPTIONAL, UENUM, opt_enum, 57) \
315X(a, STATIC, REQUIRED, INT32, end, 99) \
316X(a, CALLBACK, OPTIONAL, EXTENSION, extensions, 200)
317#define AllTypes_CALLBACK pb_default_field_callback
318#define AllTypes_req_submsg_MSGTYPE SubMessage
319#define AllTypes_rep_submsg_MSGTYPE SubMessage
320#define AllTypes_opt_submsg_MSGTYPE SubMessage
332#define SubMessage_fields &SubMessage_msg
333#define EmptyMessage_fields &EmptyMessage_msg
334#define Limits_fields &Limits_msg
335#define AllTypes_fields &AllTypes_msg
338#define SubMessage_size 33
339#define EmptyMessage_size 0
340#define Limits_size 100
341#define AllTypes_size 1320
const pb_msgdesc_t SubMessage_msg
const pb_msgdesc_t Limits_msg
const pb_msgdesc_t AllTypes_msg
pb_byte_t Limits_default[]
pb_byte_t SubMessage_default[]
const pb_msgdesc_t EmptyMessage_msg
pb_byte_t EmptyMessage_default[]
pb_byte_t AllTypes_default[]
#define PB_BYTES_ARRAY_T(n)
unsigned long long uint64_t
pb_size_t rep_submsg_count
AllTypes_opt_bytes_t opt_bytes
pb_size_t rep_string_count
AllTypes_req_bytes_t req_bytes
pb_size_t rep_double_count
pb_extension_t * extensions
pb_size_t rep_fixed32_count
pb_size_t rep_int32_count
pb_size_t rep_float_count
pb_size_t rep_sfixed32_count
pb_size_t rep_fixed64_count
pb_size_t rep_bytes_count
pb_size_t rep_uint64_count
pb_size_t rep_sint64_count
pb_size_t rep_sfixed64_count
pb_size_t rep_uint32_count
pb_size_t rep_int64_count
pb_size_t rep_sint32_count