1 /* This file was generated by upbc (the upb compiler) from the input
4 * validate/validate.proto
6 * Do not edit -- your changes will be discarded when the file is
11 #include "validate/validate.upb.h"
12 #include "google/protobuf/descriptor.upb.h"
13 #include "google/protobuf/duration.upb.h"
14 #include "google/protobuf/timestamp.upb.h"
16 #include "upb/port_def.inc"
18 static const upb_msglayout *const validate_FieldRules_submsgs[22] = {
19 &validate_AnyRules_msginit,
20 &validate_BoolRules_msginit,
21 &validate_BytesRules_msginit,
22 &validate_DoubleRules_msginit,
23 &validate_DurationRules_msginit,
24 &validate_EnumRules_msginit,
25 &validate_Fixed32Rules_msginit,
26 &validate_Fixed64Rules_msginit,
27 &validate_FloatRules_msginit,
28 &validate_Int32Rules_msginit,
29 &validate_Int64Rules_msginit,
30 &validate_MapRules_msginit,
31 &validate_MessageRules_msginit,
32 &validate_RepeatedRules_msginit,
33 &validate_SFixed32Rules_msginit,
34 &validate_SFixed64Rules_msginit,
35 &validate_SInt32Rules_msginit,
36 &validate_SInt64Rules_msginit,
37 &validate_StringRules_msginit,
38 &validate_TimestampRules_msginit,
39 &validate_UInt32Rules_msginit,
40 &validate_UInt64Rules_msginit,
43 static const upb_msglayout_field validate_FieldRules__fields[22] = {
44 {1, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 8, 11, 1},
45 {2, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 3, 11, 1},
46 {3, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 9, 11, 1},
47 {4, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 10, 11, 1},
48 {5, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 20, 11, 1},
49 {6, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 21, 11, 1},
50 {7, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 16, 11, 1},
51 {8, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 17, 11, 1},
52 {9, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 6, 11, 1},
53 {10, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 7, 11, 1},
54 {11, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 14, 11, 1},
55 {12, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 15, 11, 1},
56 {13, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 1, 11, 1},
57 {14, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 18, 11, 1},
58 {15, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 2, 11, 1},
59 {16, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 5, 11, 1},
60 {17, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 12, 11, 1},
61 {18, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 13, 11, 1},
62 {19, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 11, 11, 1},
63 {20, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 0, 11, 1},
64 {21, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 4, 11, 1},
65 {22, UPB_SIZE(0, 0), UPB_SIZE(-5, -9), 19, 11, 1},
68 const upb_msglayout validate_FieldRules_msginit = {
69 &validate_FieldRules_submsgs[0],
70 &validate_FieldRules__fields[0],
71 UPB_SIZE(8, 16), 22, false,
74 static const upb_msglayout_field validate_FloatRules__fields[7] = {
75 {1, UPB_SIZE(4, 4), 1, 0, 2, 1},
76 {2, UPB_SIZE(8, 8), 2, 0, 2, 1},
77 {3, UPB_SIZE(12, 12), 3, 0, 2, 1},
78 {4, UPB_SIZE(16, 16), 4, 0, 2, 1},
79 {5, UPB_SIZE(20, 20), 5, 0, 2, 1},
80 {6, UPB_SIZE(24, 24), 0, 0, 2, 3},
81 {7, UPB_SIZE(28, 32), 0, 0, 2, 3},
84 const upb_msglayout validate_FloatRules_msginit = {
86 &validate_FloatRules__fields[0],
87 UPB_SIZE(32, 40), 7, false,
90 static const upb_msglayout_field validate_DoubleRules__fields[7] = {
91 {1, UPB_SIZE(8, 8), 1, 0, 1, 1},
92 {2, UPB_SIZE(16, 16), 2, 0, 1, 1},
93 {3, UPB_SIZE(24, 24), 3, 0, 1, 1},
94 {4, UPB_SIZE(32, 32), 4, 0, 1, 1},
95 {5, UPB_SIZE(40, 40), 5, 0, 1, 1},
96 {6, UPB_SIZE(48, 48), 0, 0, 1, 3},
97 {7, UPB_SIZE(52, 56), 0, 0, 1, 3},
100 const upb_msglayout validate_DoubleRules_msginit = {
102 &validate_DoubleRules__fields[0],
103 UPB_SIZE(56, 64), 7, false,
106 static const upb_msglayout_field validate_Int32Rules__fields[7] = {
107 {1, UPB_SIZE(4, 4), 1, 0, 5, 1},
108 {2, UPB_SIZE(8, 8), 2, 0, 5, 1},
109 {3, UPB_SIZE(12, 12), 3, 0, 5, 1},
110 {4, UPB_SIZE(16, 16), 4, 0, 5, 1},
111 {5, UPB_SIZE(20, 20), 5, 0, 5, 1},
112 {6, UPB_SIZE(24, 24), 0, 0, 5, 3},
113 {7, UPB_SIZE(28, 32), 0, 0, 5, 3},
116 const upb_msglayout validate_Int32Rules_msginit = {
118 &validate_Int32Rules__fields[0],
119 UPB_SIZE(32, 40), 7, false,
122 static const upb_msglayout_field validate_Int64Rules__fields[7] = {
123 {1, UPB_SIZE(8, 8), 1, 0, 3, 1},
124 {2, UPB_SIZE(16, 16), 2, 0, 3, 1},
125 {3, UPB_SIZE(24, 24), 3, 0, 3, 1},
126 {4, UPB_SIZE(32, 32), 4, 0, 3, 1},
127 {5, UPB_SIZE(40, 40), 5, 0, 3, 1},
128 {6, UPB_SIZE(48, 48), 0, 0, 3, 3},
129 {7, UPB_SIZE(52, 56), 0, 0, 3, 3},
132 const upb_msglayout validate_Int64Rules_msginit = {
134 &validate_Int64Rules__fields[0],
135 UPB_SIZE(56, 64), 7, false,
138 static const upb_msglayout_field validate_UInt32Rules__fields[7] = {
139 {1, UPB_SIZE(4, 4), 1, 0, 13, 1},
140 {2, UPB_SIZE(8, 8), 2, 0, 13, 1},
141 {3, UPB_SIZE(12, 12), 3, 0, 13, 1},
142 {4, UPB_SIZE(16, 16), 4, 0, 13, 1},
143 {5, UPB_SIZE(20, 20), 5, 0, 13, 1},
144 {6, UPB_SIZE(24, 24), 0, 0, 13, 3},
145 {7, UPB_SIZE(28, 32), 0, 0, 13, 3},
148 const upb_msglayout validate_UInt32Rules_msginit = {
150 &validate_UInt32Rules__fields[0],
151 UPB_SIZE(32, 40), 7, false,
154 static const upb_msglayout_field validate_UInt64Rules__fields[7] = {
155 {1, UPB_SIZE(8, 8), 1, 0, 4, 1},
156 {2, UPB_SIZE(16, 16), 2, 0, 4, 1},
157 {3, UPB_SIZE(24, 24), 3, 0, 4, 1},
158 {4, UPB_SIZE(32, 32), 4, 0, 4, 1},
159 {5, UPB_SIZE(40, 40), 5, 0, 4, 1},
160 {6, UPB_SIZE(48, 48), 0, 0, 4, 3},
161 {7, UPB_SIZE(52, 56), 0, 0, 4, 3},
164 const upb_msglayout validate_UInt64Rules_msginit = {
166 &validate_UInt64Rules__fields[0],
167 UPB_SIZE(56, 64), 7, false,
170 static const upb_msglayout_field validate_SInt32Rules__fields[7] = {
171 {1, UPB_SIZE(4, 4), 1, 0, 17, 1},
172 {2, UPB_SIZE(8, 8), 2, 0, 17, 1},
173 {3, UPB_SIZE(12, 12), 3, 0, 17, 1},
174 {4, UPB_SIZE(16, 16), 4, 0, 17, 1},
175 {5, UPB_SIZE(20, 20), 5, 0, 17, 1},
176 {6, UPB_SIZE(24, 24), 0, 0, 17, 3},
177 {7, UPB_SIZE(28, 32), 0, 0, 17, 3},
180 const upb_msglayout validate_SInt32Rules_msginit = {
182 &validate_SInt32Rules__fields[0],
183 UPB_SIZE(32, 40), 7, false,
186 static const upb_msglayout_field validate_SInt64Rules__fields[7] = {
187 {1, UPB_SIZE(8, 8), 1, 0, 18, 1},
188 {2, UPB_SIZE(16, 16), 2, 0, 18, 1},
189 {3, UPB_SIZE(24, 24), 3, 0, 18, 1},
190 {4, UPB_SIZE(32, 32), 4, 0, 18, 1},
191 {5, UPB_SIZE(40, 40), 5, 0, 18, 1},
192 {6, UPB_SIZE(48, 48), 0, 0, 18, 3},
193 {7, UPB_SIZE(52, 56), 0, 0, 18, 3},
196 const upb_msglayout validate_SInt64Rules_msginit = {
198 &validate_SInt64Rules__fields[0],
199 UPB_SIZE(56, 64), 7, false,
202 static const upb_msglayout_field validate_Fixed32Rules__fields[7] = {
203 {1, UPB_SIZE(4, 4), 1, 0, 7, 1},
204 {2, UPB_SIZE(8, 8), 2, 0, 7, 1},
205 {3, UPB_SIZE(12, 12), 3, 0, 7, 1},
206 {4, UPB_SIZE(16, 16), 4, 0, 7, 1},
207 {5, UPB_SIZE(20, 20), 5, 0, 7, 1},
208 {6, UPB_SIZE(24, 24), 0, 0, 7, 3},
209 {7, UPB_SIZE(28, 32), 0, 0, 7, 3},
212 const upb_msglayout validate_Fixed32Rules_msginit = {
214 &validate_Fixed32Rules__fields[0],
215 UPB_SIZE(32, 40), 7, false,
218 static const upb_msglayout_field validate_Fixed64Rules__fields[7] = {
219 {1, UPB_SIZE(8, 8), 1, 0, 6, 1},
220 {2, UPB_SIZE(16, 16), 2, 0, 6, 1},
221 {3, UPB_SIZE(24, 24), 3, 0, 6, 1},
222 {4, UPB_SIZE(32, 32), 4, 0, 6, 1},
223 {5, UPB_SIZE(40, 40), 5, 0, 6, 1},
224 {6, UPB_SIZE(48, 48), 0, 0, 6, 3},
225 {7, UPB_SIZE(52, 56), 0, 0, 6, 3},
228 const upb_msglayout validate_Fixed64Rules_msginit = {
230 &validate_Fixed64Rules__fields[0],
231 UPB_SIZE(56, 64), 7, false,
234 static const upb_msglayout_field validate_SFixed32Rules__fields[7] = {
235 {1, UPB_SIZE(4, 4), 1, 0, 15, 1},
236 {2, UPB_SIZE(8, 8), 2, 0, 15, 1},
237 {3, UPB_SIZE(12, 12), 3, 0, 15, 1},
238 {4, UPB_SIZE(16, 16), 4, 0, 15, 1},
239 {5, UPB_SIZE(20, 20), 5, 0, 15, 1},
240 {6, UPB_SIZE(24, 24), 0, 0, 15, 3},
241 {7, UPB_SIZE(28, 32), 0, 0, 15, 3},
244 const upb_msglayout validate_SFixed32Rules_msginit = {
246 &validate_SFixed32Rules__fields[0],
247 UPB_SIZE(32, 40), 7, false,
250 static const upb_msglayout_field validate_SFixed64Rules__fields[7] = {
251 {1, UPB_SIZE(8, 8), 1, 0, 16, 1},
252 {2, UPB_SIZE(16, 16), 2, 0, 16, 1},
253 {3, UPB_SIZE(24, 24), 3, 0, 16, 1},
254 {4, UPB_SIZE(32, 32), 4, 0, 16, 1},
255 {5, UPB_SIZE(40, 40), 5, 0, 16, 1},
256 {6, UPB_SIZE(48, 48), 0, 0, 16, 3},
257 {7, UPB_SIZE(52, 56), 0, 0, 16, 3},
260 const upb_msglayout validate_SFixed64Rules_msginit = {
262 &validate_SFixed64Rules__fields[0],
263 UPB_SIZE(56, 64), 7, false,
266 static const upb_msglayout_field validate_BoolRules__fields[1] = {
267 {1, UPB_SIZE(1, 1), 1, 0, 8, 1},
270 const upb_msglayout validate_BoolRules_msginit = {
272 &validate_BoolRules__fields[0],
273 UPB_SIZE(2, 2), 1, false,
276 static const upb_msglayout_field validate_StringRules__fields[20] = {
277 {1, UPB_SIZE(56, 56), 7, 0, 9, 1},
278 {2, UPB_SIZE(8, 8), 1, 0, 4, 1},
279 {3, UPB_SIZE(16, 16), 2, 0, 4, 1},
280 {4, UPB_SIZE(24, 24), 3, 0, 4, 1},
281 {5, UPB_SIZE(32, 32), 4, 0, 4, 1},
282 {6, UPB_SIZE(64, 72), 8, 0, 9, 1},
283 {7, UPB_SIZE(72, 88), 9, 0, 9, 1},
284 {8, UPB_SIZE(80, 104), 10, 0, 9, 1},
285 {9, UPB_SIZE(88, 120), 11, 0, 9, 1},
286 {10, UPB_SIZE(96, 136), 0, 0, 9, 3},
287 {11, UPB_SIZE(100, 144), 0, 0, 9, 3},
288 {12, UPB_SIZE(104, 152), UPB_SIZE(-109, -157), 0, 8, 1},
289 {13, UPB_SIZE(104, 152), UPB_SIZE(-109, -157), 0, 8, 1},
290 {14, UPB_SIZE(104, 152), UPB_SIZE(-109, -157), 0, 8, 1},
291 {15, UPB_SIZE(104, 152), UPB_SIZE(-109, -157), 0, 8, 1},
292 {16, UPB_SIZE(104, 152), UPB_SIZE(-109, -157), 0, 8, 1},
293 {17, UPB_SIZE(104, 152), UPB_SIZE(-109, -157), 0, 8, 1},
294 {18, UPB_SIZE(104, 152), UPB_SIZE(-109, -157), 0, 8, 1},
295 {19, UPB_SIZE(40, 40), 5, 0, 4, 1},
296 {20, UPB_SIZE(48, 48), 6, 0, 4, 1},
299 const upb_msglayout validate_StringRules_msginit = {
301 &validate_StringRules__fields[0],
302 UPB_SIZE(112, 160), 20, false,
305 static const upb_msglayout_field validate_BytesRules__fields[13] = {
306 {1, UPB_SIZE(32, 32), 4, 0, 12, 1},
307 {2, UPB_SIZE(8, 8), 1, 0, 4, 1},
308 {3, UPB_SIZE(16, 16), 2, 0, 4, 1},
309 {4, UPB_SIZE(40, 48), 5, 0, 9, 1},
310 {5, UPB_SIZE(48, 64), 6, 0, 12, 1},
311 {6, UPB_SIZE(56, 80), 7, 0, 12, 1},
312 {7, UPB_SIZE(64, 96), 8, 0, 12, 1},
313 {8, UPB_SIZE(72, 112), 0, 0, 12, 3},
314 {9, UPB_SIZE(76, 120), 0, 0, 12, 3},
315 {10, UPB_SIZE(80, 128), UPB_SIZE(-85, -133), 0, 8, 1},
316 {11, UPB_SIZE(80, 128), UPB_SIZE(-85, -133), 0, 8, 1},
317 {12, UPB_SIZE(80, 128), UPB_SIZE(-85, -133), 0, 8, 1},
318 {13, UPB_SIZE(24, 24), 3, 0, 4, 1},
321 const upb_msglayout validate_BytesRules_msginit = {
323 &validate_BytesRules__fields[0],
324 UPB_SIZE(88, 144), 13, false,
327 static const upb_msglayout_field validate_EnumRules__fields[4] = {
328 {1, UPB_SIZE(4, 4), 1, 0, 5, 1},
329 {2, UPB_SIZE(8, 8), 2, 0, 8, 1},
330 {3, UPB_SIZE(12, 16), 0, 0, 5, 3},
331 {4, UPB_SIZE(16, 24), 0, 0, 5, 3},
334 const upb_msglayout validate_EnumRules_msginit = {
336 &validate_EnumRules__fields[0],
337 UPB_SIZE(20, 32), 4, false,
340 static const upb_msglayout_field validate_MessageRules__fields[2] = {
341 {1, UPB_SIZE(1, 1), 1, 0, 8, 1},
342 {2, UPB_SIZE(2, 2), 2, 0, 8, 1},
345 const upb_msglayout validate_MessageRules_msginit = {
347 &validate_MessageRules__fields[0],
348 UPB_SIZE(3, 3), 2, false,
351 static const upb_msglayout *const validate_RepeatedRules_submsgs[1] = {
352 &validate_FieldRules_msginit,
355 static const upb_msglayout_field validate_RepeatedRules__fields[4] = {
356 {1, UPB_SIZE(8, 8), 1, 0, 4, 1},
357 {2, UPB_SIZE(16, 16), 2, 0, 4, 1},
358 {3, UPB_SIZE(24, 24), 3, 0, 8, 1},
359 {4, UPB_SIZE(28, 32), 4, 0, 11, 1},
362 const upb_msglayout validate_RepeatedRules_msginit = {
363 &validate_RepeatedRules_submsgs[0],
364 &validate_RepeatedRules__fields[0],
365 UPB_SIZE(32, 40), 4, false,
368 static const upb_msglayout *const validate_MapRules_submsgs[2] = {
369 &validate_FieldRules_msginit,
372 static const upb_msglayout_field validate_MapRules__fields[5] = {
373 {1, UPB_SIZE(8, 8), 1, 0, 4, 1},
374 {2, UPB_SIZE(16, 16), 2, 0, 4, 1},
375 {3, UPB_SIZE(24, 24), 3, 0, 8, 1},
376 {4, UPB_SIZE(28, 32), 4, 0, 11, 1},
377 {5, UPB_SIZE(32, 40), 5, 0, 11, 1},
380 const upb_msglayout validate_MapRules_msginit = {
381 &validate_MapRules_submsgs[0],
382 &validate_MapRules__fields[0],
383 UPB_SIZE(40, 48), 5, false,
386 static const upb_msglayout_field validate_AnyRules__fields[3] = {
387 {1, UPB_SIZE(1, 1), 1, 0, 8, 1},
388 {2, UPB_SIZE(4, 8), 0, 0, 9, 3},
389 {3, UPB_SIZE(8, 16), 0, 0, 9, 3},
392 const upb_msglayout validate_AnyRules_msginit = {
394 &validate_AnyRules__fields[0],
395 UPB_SIZE(12, 24), 3, false,
398 static const upb_msglayout *const validate_DurationRules_submsgs[7] = {
399 &google_protobuf_Duration_msginit,
402 static const upb_msglayout_field validate_DurationRules__fields[8] = {
403 {1, UPB_SIZE(1, 1), 1, 0, 8, 1},
404 {2, UPB_SIZE(4, 8), 2, 0, 11, 1},
405 {3, UPB_SIZE(8, 16), 3, 0, 11, 1},
406 {4, UPB_SIZE(12, 24), 4, 0, 11, 1},
407 {5, UPB_SIZE(16, 32), 5, 0, 11, 1},
408 {6, UPB_SIZE(20, 40), 6, 0, 11, 1},
409 {7, UPB_SIZE(24, 48), 0, 0, 11, 3},
410 {8, UPB_SIZE(28, 56), 0, 0, 11, 3},
413 const upb_msglayout validate_DurationRules_msginit = {
414 &validate_DurationRules_submsgs[0],
415 &validate_DurationRules__fields[0],
416 UPB_SIZE(32, 64), 8, false,
419 static const upb_msglayout *const validate_TimestampRules_submsgs[6] = {
420 &google_protobuf_Duration_msginit,
421 &google_protobuf_Timestamp_msginit,
424 static const upb_msglayout_field validate_TimestampRules__fields[9] = {
425 {1, UPB_SIZE(2, 2), 1, 0, 8, 1},
426 {2, UPB_SIZE(8, 8), 4, 1, 11, 1},
427 {3, UPB_SIZE(12, 16), 5, 1, 11, 1},
428 {4, UPB_SIZE(16, 24), 6, 1, 11, 1},
429 {5, UPB_SIZE(20, 32), 7, 1, 11, 1},
430 {6, UPB_SIZE(24, 40), 8, 1, 11, 1},
431 {7, UPB_SIZE(3, 3), 2, 0, 8, 1},
432 {8, UPB_SIZE(4, 4), 3, 0, 8, 1},
433 {9, UPB_SIZE(28, 48), 9, 0, 11, 1},
436 const upb_msglayout validate_TimestampRules_msginit = {
437 &validate_TimestampRules_submsgs[0],
438 &validate_TimestampRules__fields[0],
439 UPB_SIZE(32, 56), 9, false,
442 #include "upb/port_undef.inc"