1 /* This file was generated by upb_generator from the input file:
2 *
3 * google/protobuf/descriptor.proto
4 *
5 * Do not edit -- your changes will be discarded when the file is
6 * regenerated. */
7
8 #ifndef GOOGLE_PROTOBUF_DESCRIPTOR_PROTO_UPBDEFS_H_
9 #define GOOGLE_PROTOBUF_DESCRIPTOR_PROTO_UPBDEFS_H_
10
11 #include "upb/reflection/def.h"
12 #include "upb/reflection/internal/def_pool.h"
13
14 #include "upb/port/def.inc" // Must be last.
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 extern _upb_DefPool_Init google_protobuf_descriptor_proto_upbdefinit;
20
google_protobuf_FileDescriptorSet_getmsgdef(upb_DefPool * s)21 UPB_INLINE const upb_MessageDef *google_protobuf_FileDescriptorSet_getmsgdef(upb_DefPool *s) {
22 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
23 return upb_DefPool_FindMessageByName(s, "google.protobuf.FileDescriptorSet");
24 }
25
google_protobuf_FileDescriptorProto_getmsgdef(upb_DefPool * s)26 UPB_INLINE const upb_MessageDef *google_protobuf_FileDescriptorProto_getmsgdef(upb_DefPool *s) {
27 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
28 return upb_DefPool_FindMessageByName(s, "google.protobuf.FileDescriptorProto");
29 }
30
google_protobuf_DescriptorProto_getmsgdef(upb_DefPool * s)31 UPB_INLINE const upb_MessageDef *google_protobuf_DescriptorProto_getmsgdef(upb_DefPool *s) {
32 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
33 return upb_DefPool_FindMessageByName(s, "google.protobuf.DescriptorProto");
34 }
35
google_protobuf_DescriptorProto_ExtensionRange_getmsgdef(upb_DefPool * s)36 UPB_INLINE const upb_MessageDef *google_protobuf_DescriptorProto_ExtensionRange_getmsgdef(upb_DefPool *s) {
37 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
38 return upb_DefPool_FindMessageByName(s, "google.protobuf.DescriptorProto.ExtensionRange");
39 }
40
google_protobuf_DescriptorProto_ReservedRange_getmsgdef(upb_DefPool * s)41 UPB_INLINE const upb_MessageDef *google_protobuf_DescriptorProto_ReservedRange_getmsgdef(upb_DefPool *s) {
42 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
43 return upb_DefPool_FindMessageByName(s, "google.protobuf.DescriptorProto.ReservedRange");
44 }
45
google_protobuf_ExtensionRangeOptions_getmsgdef(upb_DefPool * s)46 UPB_INLINE const upb_MessageDef *google_protobuf_ExtensionRangeOptions_getmsgdef(upb_DefPool *s) {
47 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
48 return upb_DefPool_FindMessageByName(s, "google.protobuf.ExtensionRangeOptions");
49 }
50
google_protobuf_ExtensionRangeOptions_Declaration_getmsgdef(upb_DefPool * s)51 UPB_INLINE const upb_MessageDef *google_protobuf_ExtensionRangeOptions_Declaration_getmsgdef(upb_DefPool *s) {
52 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
53 return upb_DefPool_FindMessageByName(s, "google.protobuf.ExtensionRangeOptions.Declaration");
54 }
55
google_protobuf_FieldDescriptorProto_getmsgdef(upb_DefPool * s)56 UPB_INLINE const upb_MessageDef *google_protobuf_FieldDescriptorProto_getmsgdef(upb_DefPool *s) {
57 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
58 return upb_DefPool_FindMessageByName(s, "google.protobuf.FieldDescriptorProto");
59 }
60
google_protobuf_OneofDescriptorProto_getmsgdef(upb_DefPool * s)61 UPB_INLINE const upb_MessageDef *google_protobuf_OneofDescriptorProto_getmsgdef(upb_DefPool *s) {
62 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
63 return upb_DefPool_FindMessageByName(s, "google.protobuf.OneofDescriptorProto");
64 }
65
google_protobuf_EnumDescriptorProto_getmsgdef(upb_DefPool * s)66 UPB_INLINE const upb_MessageDef *google_protobuf_EnumDescriptorProto_getmsgdef(upb_DefPool *s) {
67 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
68 return upb_DefPool_FindMessageByName(s, "google.protobuf.EnumDescriptorProto");
69 }
70
google_protobuf_EnumDescriptorProto_EnumReservedRange_getmsgdef(upb_DefPool * s)71 UPB_INLINE const upb_MessageDef *google_protobuf_EnumDescriptorProto_EnumReservedRange_getmsgdef(upb_DefPool *s) {
72 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
73 return upb_DefPool_FindMessageByName(s, "google.protobuf.EnumDescriptorProto.EnumReservedRange");
74 }
75
google_protobuf_EnumValueDescriptorProto_getmsgdef(upb_DefPool * s)76 UPB_INLINE const upb_MessageDef *google_protobuf_EnumValueDescriptorProto_getmsgdef(upb_DefPool *s) {
77 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
78 return upb_DefPool_FindMessageByName(s, "google.protobuf.EnumValueDescriptorProto");
79 }
80
google_protobuf_ServiceDescriptorProto_getmsgdef(upb_DefPool * s)81 UPB_INLINE const upb_MessageDef *google_protobuf_ServiceDescriptorProto_getmsgdef(upb_DefPool *s) {
82 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
83 return upb_DefPool_FindMessageByName(s, "google.protobuf.ServiceDescriptorProto");
84 }
85
google_protobuf_MethodDescriptorProto_getmsgdef(upb_DefPool * s)86 UPB_INLINE const upb_MessageDef *google_protobuf_MethodDescriptorProto_getmsgdef(upb_DefPool *s) {
87 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
88 return upb_DefPool_FindMessageByName(s, "google.protobuf.MethodDescriptorProto");
89 }
90
google_protobuf_FileOptions_getmsgdef(upb_DefPool * s)91 UPB_INLINE const upb_MessageDef *google_protobuf_FileOptions_getmsgdef(upb_DefPool *s) {
92 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
93 return upb_DefPool_FindMessageByName(s, "google.protobuf.FileOptions");
94 }
95
google_protobuf_MessageOptions_getmsgdef(upb_DefPool * s)96 UPB_INLINE const upb_MessageDef *google_protobuf_MessageOptions_getmsgdef(upb_DefPool *s) {
97 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
98 return upb_DefPool_FindMessageByName(s, "google.protobuf.MessageOptions");
99 }
100
google_protobuf_FieldOptions_getmsgdef(upb_DefPool * s)101 UPB_INLINE const upb_MessageDef *google_protobuf_FieldOptions_getmsgdef(upb_DefPool *s) {
102 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
103 return upb_DefPool_FindMessageByName(s, "google.protobuf.FieldOptions");
104 }
105
google_protobuf_FieldOptions_EditionDefault_getmsgdef(upb_DefPool * s)106 UPB_INLINE const upb_MessageDef *google_protobuf_FieldOptions_EditionDefault_getmsgdef(upb_DefPool *s) {
107 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
108 return upb_DefPool_FindMessageByName(s, "google.protobuf.FieldOptions.EditionDefault");
109 }
110
google_protobuf_OneofOptions_getmsgdef(upb_DefPool * s)111 UPB_INLINE const upb_MessageDef *google_protobuf_OneofOptions_getmsgdef(upb_DefPool *s) {
112 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
113 return upb_DefPool_FindMessageByName(s, "google.protobuf.OneofOptions");
114 }
115
google_protobuf_EnumOptions_getmsgdef(upb_DefPool * s)116 UPB_INLINE const upb_MessageDef *google_protobuf_EnumOptions_getmsgdef(upb_DefPool *s) {
117 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
118 return upb_DefPool_FindMessageByName(s, "google.protobuf.EnumOptions");
119 }
120
google_protobuf_EnumValueOptions_getmsgdef(upb_DefPool * s)121 UPB_INLINE const upb_MessageDef *google_protobuf_EnumValueOptions_getmsgdef(upb_DefPool *s) {
122 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
123 return upb_DefPool_FindMessageByName(s, "google.protobuf.EnumValueOptions");
124 }
125
google_protobuf_ServiceOptions_getmsgdef(upb_DefPool * s)126 UPB_INLINE const upb_MessageDef *google_protobuf_ServiceOptions_getmsgdef(upb_DefPool *s) {
127 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
128 return upb_DefPool_FindMessageByName(s, "google.protobuf.ServiceOptions");
129 }
130
google_protobuf_MethodOptions_getmsgdef(upb_DefPool * s)131 UPB_INLINE const upb_MessageDef *google_protobuf_MethodOptions_getmsgdef(upb_DefPool *s) {
132 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
133 return upb_DefPool_FindMessageByName(s, "google.protobuf.MethodOptions");
134 }
135
google_protobuf_UninterpretedOption_getmsgdef(upb_DefPool * s)136 UPB_INLINE const upb_MessageDef *google_protobuf_UninterpretedOption_getmsgdef(upb_DefPool *s) {
137 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
138 return upb_DefPool_FindMessageByName(s, "google.protobuf.UninterpretedOption");
139 }
140
google_protobuf_UninterpretedOption_NamePart_getmsgdef(upb_DefPool * s)141 UPB_INLINE const upb_MessageDef *google_protobuf_UninterpretedOption_NamePart_getmsgdef(upb_DefPool *s) {
142 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
143 return upb_DefPool_FindMessageByName(s, "google.protobuf.UninterpretedOption.NamePart");
144 }
145
google_protobuf_FeatureSet_getmsgdef(upb_DefPool * s)146 UPB_INLINE const upb_MessageDef *google_protobuf_FeatureSet_getmsgdef(upb_DefPool *s) {
147 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
148 return upb_DefPool_FindMessageByName(s, "google.protobuf.FeatureSet");
149 }
150
google_protobuf_FeatureSetDefaults_getmsgdef(upb_DefPool * s)151 UPB_INLINE const upb_MessageDef *google_protobuf_FeatureSetDefaults_getmsgdef(upb_DefPool *s) {
152 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
153 return upb_DefPool_FindMessageByName(s, "google.protobuf.FeatureSetDefaults");
154 }
155
google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_getmsgdef(upb_DefPool * s)156 UPB_INLINE const upb_MessageDef *google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_getmsgdef(upb_DefPool *s) {
157 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
158 return upb_DefPool_FindMessageByName(s, "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault");
159 }
160
google_protobuf_SourceCodeInfo_getmsgdef(upb_DefPool * s)161 UPB_INLINE const upb_MessageDef *google_protobuf_SourceCodeInfo_getmsgdef(upb_DefPool *s) {
162 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
163 return upb_DefPool_FindMessageByName(s, "google.protobuf.SourceCodeInfo");
164 }
165
google_protobuf_SourceCodeInfo_Location_getmsgdef(upb_DefPool * s)166 UPB_INLINE const upb_MessageDef *google_protobuf_SourceCodeInfo_Location_getmsgdef(upb_DefPool *s) {
167 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
168 return upb_DefPool_FindMessageByName(s, "google.protobuf.SourceCodeInfo.Location");
169 }
170
google_protobuf_GeneratedCodeInfo_getmsgdef(upb_DefPool * s)171 UPB_INLINE const upb_MessageDef *google_protobuf_GeneratedCodeInfo_getmsgdef(upb_DefPool *s) {
172 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
173 return upb_DefPool_FindMessageByName(s, "google.protobuf.GeneratedCodeInfo");
174 }
175
google_protobuf_GeneratedCodeInfo_Annotation_getmsgdef(upb_DefPool * s)176 UPB_INLINE const upb_MessageDef *google_protobuf_GeneratedCodeInfo_Annotation_getmsgdef(upb_DefPool *s) {
177 _upb_DefPool_LoadDefInit(s, &google_protobuf_descriptor_proto_upbdefinit);
178 return upb_DefPool_FindMessageByName(s, "google.protobuf.GeneratedCodeInfo.Annotation");
179 }
180
181 #ifdef __cplusplus
182 } /* extern "C" */
183 #endif
184
185 #include "upb/port/undef.inc"
186
187 #endif /* GOOGLE_PROTOBUF_DESCRIPTOR_PROTO_UPBDEFS_H_ */
188