Debian Codegraph @

src/core/ext/upb-generated/google/protobuf/struct.upb.c

raw
1 /* This file was generated by upbc (the upb compiler) from the input
2 * file:
3 *
4 * google/protobuf/struct.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_internal.h"
11 #include "google/protobuf/struct.upb.h"
12
13 #include "upb/port_def.inc"
14
15 static const upb_MiniTable_Sub google_protobuf_Struct_submsgs[1] = {
16 {.submsg = &google_protobuf_Struct_FieldsEntry_msginit},
17 };
18
19 static const upb_MiniTable_Field google_protobuf_Struct__fields[1] = {
20 {1, UPB_SIZE(0, 0), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Map | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)},
21 };
22
23 const upb_MiniTable google_protobuf_Struct_msginit = {
24 &google_protobuf_Struct_submsgs[0],
25 &google_protobuf_Struct__fields[0],
26 UPB_SIZE(8, 8), 1, kUpb_ExtMode_NonExtendable, 1, 255, 0,
27 };
28
29 static const upb_MiniTable_Sub google_protobuf_Struct_FieldsEntry_submsgs[1] = {
30 {.submsg = &google_protobuf_Value_msginit},
31 };
32
33 static const upb_MiniTable_Field google_protobuf_Struct_FieldsEntry__fields[2] = {
34 {1, UPB_SIZE(0, 0), UPB_SIZE(0, 0), kUpb_NoSub, 12, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)},
35 {2, UPB_SIZE(8, 16), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)},
36 };
37
38 const upb_MiniTable google_protobuf_Struct_FieldsEntry_msginit = {
39 &google_protobuf_Struct_FieldsEntry_submsgs[0],
40 &google_protobuf_Struct_FieldsEntry__fields[0],
41 UPB_SIZE(16, 32), 2, kUpb_ExtMode_NonExtendable, 2, 255, 0,
42 };
43
44 static const upb_MiniTable_Sub google_protobuf_Value_submsgs[2] = {
45 {.submsg = &google_protobuf_Struct_msginit},
46 {.submsg = &google_protobuf_ListValue_msginit},
47 };
48
49 static const upb_MiniTable_Field google_protobuf_Value__fields[6] = {
50 {1, UPB_SIZE(8, 8), UPB_SIZE(-1, -1), kUpb_NoSub, 5, kUpb_FieldMode_Scalar | (kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)},
51 {2, UPB_SIZE(8, 8), UPB_SIZE(-1, -1), kUpb_NoSub, 1, kUpb_FieldMode_Scalar | (kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)},
52 {3, UPB_SIZE(8, 8), UPB_SIZE(-1, -1), kUpb_NoSub, 9, kUpb_FieldMode_Scalar | (kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)},
53 {4, UPB_SIZE(8, 8), UPB_SIZE(-1, -1), kUpb_NoSub, 8, kUpb_FieldMode_Scalar | (kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)},
54 {5, UPB_SIZE(8, 8), UPB_SIZE(-1, -1), 0, 11, kUpb_FieldMode_Scalar | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)},
55 {6, UPB_SIZE(8, 8), UPB_SIZE(-1, -1), 1, 11, kUpb_FieldMode_Scalar | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)},
56 };
57
58 const upb_MiniTable google_protobuf_Value_msginit = {
59 &google_protobuf_Value_submsgs[0],
60 &google_protobuf_Value__fields[0],
61 UPB_SIZE(16, 24), 6, kUpb_ExtMode_NonExtendable, 6, 255, 0,
62 };
63
64 static const upb_MiniTable_Sub google_protobuf_ListValue_submsgs[1] = {
65 {.submsg = &google_protobuf_Value_msginit},
66 };
67
68 static const upb_MiniTable_Field google_protobuf_ListValue__fields[1] = {
69 {1, UPB_SIZE(0, 0), UPB_SIZE(0, 0), 0, 11, kUpb_FieldMode_Array | (kUpb_FieldRep_Pointer << kUpb_FieldRep_Shift)},
70 };
71
72 const upb_MiniTable google_protobuf_ListValue_msginit = {
73 &google_protobuf_ListValue_submsgs[0],
74 &google_protobuf_ListValue__fields[0],
75 UPB_SIZE(8, 8), 1, kUpb_ExtMode_NonExtendable, 1, 255, 0,
76 };
77
78 static const upb_MiniTable *messages_layout[4] = {
79 &google_protobuf_Struct_msginit,
80 &google_protobuf_Struct_FieldsEntry_msginit,
81 &google_protobuf_Value_msginit,
82 &google_protobuf_ListValue_msginit,
83 };
84
85 const upb_MiniTable_File google_protobuf_struct_proto_upb_file_layout = {
86 messages_layout,
87 NULL,
88 NULL,
89 4,
90 0,
91 0,
92 };
93
94 #include "upb/port_undef.inc"
95