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