1 /* This file was generated by upbc (the upb compiler) from the input 2 * file: 3 * 4 * validate/validate.proto 5 * 6 * Do not edit -- your changes will be discarded when the file is 7 * regenerated. */ 8 9 #include <stddef.h> 10 #include "upb/msg.h" 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" 15 16 #include "upb/port_def.inc" 17 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, 41 }; 42 43 static const upb_msglayout_field validate_FieldRules__fields[22] = { 44 {1, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 8, 11, 1}, 45 {2, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 3, 11, 1}, 46 {3, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 9, 11, 1}, 47 {4, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 10, 11, 1}, 48 {5, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 20, 11, 1}, 49 {6, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 21, 11, 1}, 50 {7, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 16, 11, 1}, 51 {8, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 17, 11, 1}, 52 {9, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 6, 11, 1}, 53 {10, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 7, 11, 1}, 54 {11, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 14, 11, 1}, 55 {12, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 15, 11, 1}, 56 {13, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 1, 11, 1}, 57 {14, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 18, 11, 1}, 58 {15, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 2, 11, 1}, 59 {16, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 5, 11, 1}, 60 {17, UPB_SIZE(4, 8), 1, 12, 11, 1}, 61 {18, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 13, 11, 1}, 62 {19, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 11, 11, 1}, 63 {20, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 0, 11, 1}, 64 {21, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 4, 11, 1}, 65 {22, UPB_SIZE(8, 16), UPB_SIZE(-13, -25), 19, 11, 1}, 66 }; 67 68 const upb_msglayout validate_FieldRules_msginit = { 69 &validate_FieldRules_submsgs[0], 70 &validate_FieldRules__fields[0], 71 UPB_SIZE(16, 32), 22, false, 255, 72 }; 73 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}, 82 }; 83 84 const upb_msglayout validate_FloatRules_msginit = { 85 NULL, 86 &validate_FloatRules__fields[0], 87 UPB_SIZE(32, 40), 7, false, 255, 88 }; 89 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}, 98 }; 99 100 const upb_msglayout validate_DoubleRules_msginit = { 101 NULL, 102 &validate_DoubleRules__fields[0], 103 UPB_SIZE(56, 64), 7, false, 255, 104 }; 105 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}, 114 }; 115 116 const upb_msglayout validate_Int32Rules_msginit = { 117 NULL, 118 &validate_Int32Rules__fields[0], 119 UPB_SIZE(32, 40), 7, false, 255, 120 }; 121 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}, 130 }; 131 132 const upb_msglayout validate_Int64Rules_msginit = { 133 NULL, 134 &validate_Int64Rules__fields[0], 135 UPB_SIZE(56, 64), 7, false, 255, 136 }; 137 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}, 146 }; 147 148 const upb_msglayout validate_UInt32Rules_msginit = { 149 NULL, 150 &validate_UInt32Rules__fields[0], 151 UPB_SIZE(32, 40), 7, false, 255, 152 }; 153 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}, 162 }; 163 164 const upb_msglayout validate_UInt64Rules_msginit = { 165 NULL, 166 &validate_UInt64Rules__fields[0], 167 UPB_SIZE(56, 64), 7, false, 255, 168 }; 169 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}, 178 }; 179 180 const upb_msglayout validate_SInt32Rules_msginit = { 181 NULL, 182 &validate_SInt32Rules__fields[0], 183 UPB_SIZE(32, 40), 7, false, 255, 184 }; 185 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}, 194 }; 195 196 const upb_msglayout validate_SInt64Rules_msginit = { 197 NULL, 198 &validate_SInt64Rules__fields[0], 199 UPB_SIZE(56, 64), 7, false, 255, 200 }; 201 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}, 210 }; 211 212 const upb_msglayout validate_Fixed32Rules_msginit = { 213 NULL, 214 &validate_Fixed32Rules__fields[0], 215 UPB_SIZE(32, 40), 7, false, 255, 216 }; 217 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}, 226 }; 227 228 const upb_msglayout validate_Fixed64Rules_msginit = { 229 NULL, 230 &validate_Fixed64Rules__fields[0], 231 UPB_SIZE(56, 64), 7, false, 255, 232 }; 233 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}, 242 }; 243 244 const upb_msglayout validate_SFixed32Rules_msginit = { 245 NULL, 246 &validate_SFixed32Rules__fields[0], 247 UPB_SIZE(32, 40), 7, false, 255, 248 }; 249 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}, 258 }; 259 260 const upb_msglayout validate_SFixed64Rules_msginit = { 261 NULL, 262 &validate_SFixed64Rules__fields[0], 263 UPB_SIZE(56, 64), 7, false, 255, 264 }; 265 266 static const upb_msglayout_field validate_BoolRules__fields[1] = { 267 {1, UPB_SIZE(1, 1), 1, 0, 8, 1}, 268 }; 269 270 const upb_msglayout validate_BoolRules_msginit = { 271 NULL, 272 &validate_BoolRules__fields[0], 273 UPB_SIZE(8, 8), 1, false, 255, 274 }; 275 276 static const upb_msglayout_field validate_StringRules__fields[25] = { 277 {1, UPB_SIZE(60, 64), 1, 0, 12, 1}, 278 {2, UPB_SIZE(8, 8), 2, 0, 4, 1}, 279 {3, UPB_SIZE(16, 16), 3, 0, 4, 1}, 280 {4, UPB_SIZE(24, 24), 4, 0, 4, 1}, 281 {5, UPB_SIZE(32, 32), 5, 0, 4, 1}, 282 {6, UPB_SIZE(68, 80), 6, 0, 12, 1}, 283 {7, UPB_SIZE(76, 96), 7, 0, 12, 1}, 284 {8, UPB_SIZE(84, 112), 8, 0, 12, 1}, 285 {9, UPB_SIZE(92, 128), 9, 0, 12, 1}, 286 {10, UPB_SIZE(108, 160), 0, 0, 12, 3}, 287 {11, UPB_SIZE(112, 168), 0, 0, 12, 3}, 288 {12, UPB_SIZE(116, 176), UPB_SIZE(-121, -181), 0, 8, 1}, 289 {13, UPB_SIZE(116, 176), UPB_SIZE(-121, -181), 0, 8, 1}, 290 {14, UPB_SIZE(116, 176), UPB_SIZE(-121, -181), 0, 8, 1}, 291 {15, UPB_SIZE(116, 176), UPB_SIZE(-121, -181), 0, 8, 1}, 292 {16, UPB_SIZE(116, 176), UPB_SIZE(-121, -181), 0, 8, 1}, 293 {17, UPB_SIZE(116, 176), UPB_SIZE(-121, -181), 0, 8, 1}, 294 {18, UPB_SIZE(116, 176), UPB_SIZE(-121, -181), 0, 8, 1}, 295 {19, UPB_SIZE(40, 40), 10, 0, 4, 1}, 296 {20, UPB_SIZE(48, 48), 11, 0, 4, 1}, 297 {21, UPB_SIZE(116, 176), UPB_SIZE(-121, -181), 0, 8, 1}, 298 {22, UPB_SIZE(116, 176), UPB_SIZE(-121, -181), 0, 8, 1}, 299 {23, UPB_SIZE(100, 144), 12, 0, 12, 1}, 300 {24, UPB_SIZE(116, 176), UPB_SIZE(-121, -181), 0, 14, 1}, 301 {25, UPB_SIZE(56, 56), 13, 0, 8, 1}, 302 }; 303 304 const upb_msglayout validate_StringRules_msginit = { 305 NULL, 306 &validate_StringRules__fields[0], 307 UPB_SIZE(128, 192), 25, false, 255, 308 }; 309 310 static const upb_msglayout_field validate_BytesRules__fields[13] = { 311 {1, UPB_SIZE(32, 32), 1, 0, 12, 1}, 312 {2, UPB_SIZE(8, 8), 2, 0, 4, 1}, 313 {3, UPB_SIZE(16, 16), 3, 0, 4, 1}, 314 {4, UPB_SIZE(40, 48), 4, 0, 12, 1}, 315 {5, UPB_SIZE(48, 64), 5, 0, 12, 1}, 316 {6, UPB_SIZE(56, 80), 6, 0, 12, 1}, 317 {7, UPB_SIZE(64, 96), 7, 0, 12, 1}, 318 {8, UPB_SIZE(72, 112), 0, 0, 12, 3}, 319 {9, UPB_SIZE(76, 120), 0, 0, 12, 3}, 320 {10, UPB_SIZE(80, 128), UPB_SIZE(-85, -133), 0, 8, 1}, 321 {11, UPB_SIZE(80, 128), UPB_SIZE(-85, -133), 0, 8, 1}, 322 {12, UPB_SIZE(80, 128), UPB_SIZE(-85, -133), 0, 8, 1}, 323 {13, UPB_SIZE(24, 24), 8, 0, 4, 1}, 324 }; 325 326 const upb_msglayout validate_BytesRules_msginit = { 327 NULL, 328 &validate_BytesRules__fields[0], 329 UPB_SIZE(88, 144), 13, false, 255, 330 }; 331 332 static const upb_msglayout_field validate_EnumRules__fields[4] = { 333 {1, UPB_SIZE(4, 4), 1, 0, 5, 1}, 334 {2, UPB_SIZE(8, 8), 2, 0, 8, 1}, 335 {3, UPB_SIZE(12, 16), 0, 0, 5, 3}, 336 {4, UPB_SIZE(16, 24), 0, 0, 5, 3}, 337 }; 338 339 const upb_msglayout validate_EnumRules_msginit = { 340 NULL, 341 &validate_EnumRules__fields[0], 342 UPB_SIZE(24, 32), 4, false, 255, 343 }; 344 345 static const upb_msglayout_field validate_MessageRules__fields[2] = { 346 {1, UPB_SIZE(1, 1), 1, 0, 8, 1}, 347 {2, UPB_SIZE(2, 2), 2, 0, 8, 1}, 348 }; 349 350 const upb_msglayout validate_MessageRules_msginit = { 351 NULL, 352 &validate_MessageRules__fields[0], 353 UPB_SIZE(8, 8), 2, false, 255, 354 }; 355 356 static const upb_msglayout *const validate_RepeatedRules_submsgs[1] = { 357 &validate_FieldRules_msginit, 358 }; 359 360 static const upb_msglayout_field validate_RepeatedRules__fields[4] = { 361 {1, UPB_SIZE(8, 8), 1, 0, 4, 1}, 362 {2, UPB_SIZE(16, 16), 2, 0, 4, 1}, 363 {3, UPB_SIZE(24, 24), 3, 0, 8, 1}, 364 {4, UPB_SIZE(28, 32), 4, 0, 11, 1}, 365 }; 366 367 const upb_msglayout validate_RepeatedRules_msginit = { 368 &validate_RepeatedRules_submsgs[0], 369 &validate_RepeatedRules__fields[0], 370 UPB_SIZE(32, 40), 4, false, 255, 371 }; 372 373 static const upb_msglayout *const validate_MapRules_submsgs[1] = { 374 &validate_FieldRules_msginit, 375 }; 376 377 static const upb_msglayout_field validate_MapRules__fields[5] = { 378 {1, UPB_SIZE(8, 8), 1, 0, 4, 1}, 379 {2, UPB_SIZE(16, 16), 2, 0, 4, 1}, 380 {3, UPB_SIZE(24, 24), 3, 0, 8, 1}, 381 {4, UPB_SIZE(28, 32), 4, 0, 11, 1}, 382 {5, UPB_SIZE(32, 40), 5, 0, 11, 1}, 383 }; 384 385 const upb_msglayout validate_MapRules_msginit = { 386 &validate_MapRules_submsgs[0], 387 &validate_MapRules__fields[0], 388 UPB_SIZE(40, 48), 5, false, 255, 389 }; 390 391 static const upb_msglayout_field validate_AnyRules__fields[3] = { 392 {1, UPB_SIZE(1, 1), 1, 0, 8, 1}, 393 {2, UPB_SIZE(4, 8), 0, 0, 12, 3}, 394 {3, UPB_SIZE(8, 16), 0, 0, 12, 3}, 395 }; 396 397 const upb_msglayout validate_AnyRules_msginit = { 398 NULL, 399 &validate_AnyRules__fields[0], 400 UPB_SIZE(16, 24), 3, false, 255, 401 }; 402 403 static const upb_msglayout *const validate_DurationRules_submsgs[1] = { 404 &google_protobuf_Duration_msginit, 405 }; 406 407 static const upb_msglayout_field validate_DurationRules__fields[8] = { 408 {1, UPB_SIZE(1, 1), 1, 0, 8, 1}, 409 {2, UPB_SIZE(4, 8), 2, 0, 11, 1}, 410 {3, UPB_SIZE(8, 16), 3, 0, 11, 1}, 411 {4, UPB_SIZE(12, 24), 4, 0, 11, 1}, 412 {5, UPB_SIZE(16, 32), 5, 0, 11, 1}, 413 {6, UPB_SIZE(20, 40), 6, 0, 11, 1}, 414 {7, UPB_SIZE(24, 48), 0, 0, 11, 3}, 415 {8, UPB_SIZE(28, 56), 0, 0, 11, 3}, 416 }; 417 418 const upb_msglayout validate_DurationRules_msginit = { 419 &validate_DurationRules_submsgs[0], 420 &validate_DurationRules__fields[0], 421 UPB_SIZE(32, 64), 8, false, 255, 422 }; 423 424 static const upb_msglayout *const validate_TimestampRules_submsgs[2] = { 425 &google_protobuf_Duration_msginit, 426 &google_protobuf_Timestamp_msginit, 427 }; 428 429 static const upb_msglayout_field validate_TimestampRules__fields[9] = { 430 {1, UPB_SIZE(2, 2), 1, 0, 8, 1}, 431 {2, UPB_SIZE(8, 8), 2, 1, 11, 1}, 432 {3, UPB_SIZE(12, 16), 3, 1, 11, 1}, 433 {4, UPB_SIZE(16, 24), 4, 1, 11, 1}, 434 {5, UPB_SIZE(20, 32), 5, 1, 11, 1}, 435 {6, UPB_SIZE(24, 40), 6, 1, 11, 1}, 436 {7, UPB_SIZE(3, 3), 7, 0, 8, 1}, 437 {8, UPB_SIZE(4, 4), 8, 0, 8, 1}, 438 {9, UPB_SIZE(28, 48), 9, 0, 11, 1}, 439 }; 440 441 const upb_msglayout validate_TimestampRules_msginit = { 442 &validate_TimestampRules_submsgs[0], 443 &validate_TimestampRules__fields[0], 444 UPB_SIZE(32, 56), 9, false, 255, 445 }; 446 447 #include "upb/port_undef.inc" 448 449