upb/upb/def.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2009-2021, Google LLC
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  * * Redistributions of source code must retain the above copyright
8  * notice, this list of conditions and the following disclaimer.
9  * * Redistributions in binary form must reproduce the above copyright
10  * notice, this list of conditions and the following disclaimer in the
11  * documentation and/or other materials provided with the distribution.
12  * * Neither the name of Google LLC nor the
13  * names of its contributors may be used to endorse or promote products
14  * derived from this software without specific prior written permission.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19  * ARE DISCLAIMED. IN NO EVENT SHALL Google LLC BE LIABLE FOR ANY DIRECT,
20  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  */
27 
28 #ifndef UPB_DEF_H_
29 #define UPB_DEF_H_
30 
32 #include "upb/table_internal.h"
33 #include "upb/upb.h"
34 
35 /* Must be last. */
36 #include "upb/port_def.inc"
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif /* __cplusplus */
41 
42 struct upb_EnumDef;
43 typedef struct upb_EnumDef upb_EnumDef;
44 struct upb_EnumValueDef;
46 struct upb_ExtensionRange;
48 struct upb_FieldDef;
49 typedef struct upb_FieldDef upb_FieldDef;
50 struct upb_FileDef;
51 typedef struct upb_FileDef upb_FileDef;
52 struct upb_MethodDef;
54 struct upb_MessageDef;
56 struct upb_OneofDef;
57 typedef struct upb_OneofDef upb_OneofDef;
58 struct upb_ServiceDef;
60 struct upb_streamdef;
62 struct upb_DefPool;
63 typedef struct upb_DefPool upb_DefPool;
64 
66 
67 /* All the different kind of well known type messages. For simplicity of check,
68  * number wrappers and string wrappers are grouped together. Make sure the
69  * order and merber of these groups are not changed.
70  */
71 typedef enum {
77  /* number wrappers */
84  /* string wrappers */
92 
93 /* upb_FieldDef ***************************************************************/
94 
95 /* Maximum field number allowed for FieldDefs. This is an inherent limit of the
96  * protobuf wire format. */
97 #define kUpb_MaxFieldNumber ((1 << 29) - 1)
98 
101 const char* upb_FieldDef_FullName(const upb_FieldDef* f);
106 const char* upb_FieldDef_Name(const upb_FieldDef* f);
107 const char* upb_FieldDef_JsonName(const upb_FieldDef* f);
121 bool upb_FieldDef_IsMap(const upb_FieldDef* f);
129  const upb_FieldDef* f);
131 
132 /* upb_OneofDef ***************************************************************/
133 
136 const char* upb_OneofDef_Name(const upb_OneofDef* o);
141 const upb_FieldDef* upb_OneofDef_Field(const upb_OneofDef* o, int i);
142 
143 /* Oneof lookups:
144  * - ntof: look up a field by name.
145  * - ntofz: look up a field by name (as a null-terminated string).
146  * - itof: look up a field by number. */
148  const char* name,
149  size_t length);
151  const char* name) {
152  return upb_OneofDef_LookupNameWithSize(o, name, strlen(name));
153 }
155  uint32_t num);
156 
157 /* upb_MessageDef *************************************************************/
158 
159 /* Well-known field tag numbers for map-entry messages. */
160 #define kUpb_MapEntry_KeyFieldNumber 1
161 #define kUpb_MapEntry_ValueFieldNumber 2
162 
163 /* Well-known field tag numbers for Any messages. */
164 #define kUpb_Any_TypeFieldNumber 1
165 #define kUpb_Any_ValueFieldNumber 2
166 
167 /* Well-known field tag numbers for duration messages. */
168 #define kUpb_Duration_SecondsFieldNumber 1
169 #define kUpb_Duration_NanosFieldNumber 2
170 
171 /* Well-known field tag numbers for timestamp messages. */
172 #define kUpb_Timestamp_SecondsFieldNumber 1
173 #define kUpb_Timestamp_NanosFieldNumber 2
174 
176  const upb_MessageDef* m);
178 const char* upb_MessageDef_FullName(const upb_MessageDef* m);
181 const char* upb_MessageDef_Name(const upb_MessageDef* m);
188  int i);
192  uint32_t i);
194  const upb_MessageDef* m, const char* name, size_t len);
196  const upb_MessageDef* m, const char* name, size_t len);
198 
200  const upb_MessageDef* m, const char* name) {
202 }
203 
205  const upb_MessageDef* m, const char* name) {
207 }
208 
211 }
212 
213 /* Nested entities. */
218  int i);
221  int i);
222 
223 /* Lookup of either field or oneof by name. Returns whether either was found.
224  * If the return is true, then the found def will be set, and the non-found
225  * one set to NULL. */
227  const char* name, size_t len,
228  const upb_FieldDef** f,
229  const upb_OneofDef** o);
230 
232  const char* name,
233  const upb_FieldDef** f,
234  const upb_OneofDef** o) {
235  return upb_MessageDef_FindByNameWithSize(m, name, strlen(name), f, o);
236 }
237 
238 /* Returns a field by either JSON name or regular proto name. */
240  const upb_MessageDef* m, const char* name, size_t len);
242  const upb_MessageDef* m, const char* name) {
244 }
245 
246 /* upb_ExtensionRange *********************************************************/
247 
249  const upb_ExtensionRange* r);
253 
254 /* upb_EnumDef ****************************************************************/
255 
257 bool upb_EnumDef_HasOptions(const upb_EnumDef* e);
258 const char* upb_EnumDef_FullName(const upb_EnumDef* e);
259 const char* upb_EnumDef_Name(const upb_EnumDef* e);
260 const upb_FileDef* upb_EnumDef_File(const upb_EnumDef* e);
263 int upb_EnumDef_ValueCount(const upb_EnumDef* e);
264 const upb_EnumValueDef* upb_EnumDef_Value(const upb_EnumDef* e, int i);
265 
267  const upb_EnumDef* e, const char* name, size_t len);
269  int32_t num);
271 
272 // Convenience wrapper.
274  const upb_EnumDef* e, const char* name) {
275  return upb_EnumDef_FindValueByNameWithSize(e, name, strlen(name));
276 }
277 
278 /* upb_EnumValueDef ***********************************************************/
279 
281  const upb_EnumValueDef* e);
283 const char* upb_EnumValueDef_FullName(const upb_EnumValueDef* e);
284 const char* upb_EnumValueDef_Name(const upb_EnumValueDef* e);
288 
289 /* upb_FileDef ****************************************************************/
290 
293 const char* upb_FileDef_Name(const upb_FileDef* f);
294 const char* upb_FileDef_Package(const upb_FileDef* f);
303 const upb_FileDef* upb_FileDef_Dependency(const upb_FileDef* f, int i);
309 const upb_ServiceDef* upb_FileDef_Service(const upb_FileDef* f, int i);
313 
314 /* upb_MethodDef **************************************************************/
315 
317  const upb_MethodDef* m);
319 const char* upb_MethodDef_FullName(const upb_MethodDef* m);
321 const char* upb_MethodDef_Name(const upb_MethodDef* m);
327 
328 /* upb_ServiceDef *************************************************************/
329 
331  const upb_ServiceDef* s);
333 const char* upb_ServiceDef_FullName(const upb_ServiceDef* s);
334 const char* upb_ServiceDef_Name(const upb_ServiceDef* s);
340  const char* name);
341 
342 /* upb_DefPool ****************************************************************/
343 
347  const char* sym);
349  const upb_DefPool* s, const char* sym, size_t len);
351  const char* sym);
353  const char* sym);
355  const char* sym);
357  const upb_DefPool* s, const char* sym, size_t len);
359  const char* name);
361  const char* name);
363  const upb_DefPool* s, const char* name, size_t size);
365  const char* name);
367  const char* name,
368  size_t len);
371  upb_Status* status);
372 size_t _upb_DefPool_BytesLoaded(const upb_DefPool* s);
375  const upb_DefPool* s, const upb_MiniTable_Extension* ext);
377  const upb_MessageDef* m,
378  int32_t fieldnum);
380  const upb_DefPool* s);
382  const upb_MessageDef* m,
383  size_t* count);
384 
385 /* For generated code only: loads a generated descriptor. */
386 typedef struct _upb_DefPool_Init {
387  struct _upb_DefPool_Init** deps; /* Dependencies of this file. */
389  const char* filename;
390  upb_StringView descriptor; /* Serialized descriptor. */
392 
393 // Should only be directly called by tests. This variant lets us suppress
394 // the use of compiled-in tables, forcing a rebuild of the tables at runtime.
396  bool rebuild_minitable);
397 
399  const _upb_DefPool_Init* init) {
400  return _upb_DefPool_LoadDefInitEx(s, init, false);
401 }
402 
403 #include "upb/port_undef.inc"
404 
405 #ifdef __cplusplus
406 } /* extern "C" */
407 #endif /* __cplusplus */
408 
409 #endif /* UPB_DEF_H_ */
upb_FieldDef_Name
const char * upb_FieldDef_Name(const upb_FieldDef *f)
Definition: upb/upb/def.c:549
kUpb_WellKnown_StringValue
@ kUpb_WellKnown_StringValue
Definition: upb/upb/def.h:85
upb_FileDef_Name
const char * upb_FileDef_Name(const upb_FileDef *f)
Definition: upb/upb/def.c:920
upb_DefPool_ExtensionRegistry
const upb_ExtensionRegistry * upb_DefPool_ExtensionRegistry(const upb_DefPool *s)
Definition: upb/upb/def.c:3231
upb_EnumDef_HasOptions
bool upb_EnumDef_HasOptions(const upb_EnumDef *e)
Definition: upb/upb/def.c:386
upb_FieldDef_Label
upb_Label upb_FieldDef_Label(const upb_FieldDef *f)
Definition: upb/upb/def.c:539
upb_FieldType
upb_FieldType
Definition: upb/upb/upb.h:308
upb_DefPool_FindEnumByNameval
const upb_EnumValueDef * upb_DefPool_FindEnumByNameval(const upb_DefPool *s, const char *sym)
Definition: upb/upb/def.c:1140
upb_FieldDef_IsPrimitive
bool upb_FieldDef_IsPrimitive(const upb_FieldDef *f)
Definition: upb/upb/def.c:655
upb_CType
upb_CType
Definition: upb/upb/upb.h:286
init
const char * init
Definition: upb/upb/bindings/lua/main.c:49
_upb_DefPool_LoadDefInit
UPB_INLINE bool _upb_DefPool_LoadDefInit(upb_DefPool *s, const _upb_DefPool_Init *init)
Definition: upb/upb/def.h:398
upb_EnumDef_ContainingType
const upb_MessageDef * upb_EnumDef_ContainingType(const upb_EnumDef *e)
Definition: upb/upb/def.c:398
upb_FileDef_Service
const upb_ServiceDef * upb_FileDef_Service(const upb_FileDef *f, int i)
Definition: upb/upb/def.c:988
upb_MethodDef_Options
const google_protobuf_MethodOptions * upb_MethodDef_Options(const upb_MethodDef *m)
Definition: upb/upb/def.c:997
upb_MessageDef_MiniTable
const upb_MiniTable * upb_MessageDef_MiniTable(const upb_MessageDef *m)
Definition: upb/upb/def.c:818
upb_FileDef_TopLevelEnumCount
int upb_FileDef_TopLevelEnumCount(const upb_FileDef *f)
Definition: upb/upb/def.c:948
upb_FieldDef_Number
uint32_t upb_FieldDef_Number(const upb_FieldDef *f)
Definition: upb/upb/def.c:541
upb_OneofDef_ContainingType
const upb_MessageDef * upb_OneofDef_ContainingType(const upb_OneofDef *o)
Definition: upb/upb/def.c:874
upb_MessageDef_Oneof
const upb_OneofDef * upb_MessageDef_Oneof(const upb_MessageDef *m, int i)
Definition: upb/upb/def.c:833
upb_MethodDef_HasOptions
bool upb_MethodDef_HasOptions(const upb_MethodDef *m)
Definition: upb/upb/def.c:1002
upb_ExtensionRange_End
int32_t upb_ExtensionRange_End(const upb_ExtensionRange *r)
Definition: upb/upb/def.c:483
upb_FieldDef_HasOptions
bool upb_FieldDef_HasOptions(const upb_FieldDef *f)
Definition: upb/upb/def.c:492
upb_EnumDef_FindValueByNameWithSize
const upb_EnumValueDef * upb_EnumDef_FindValueByNameWithSize(const upb_EnumDef *e, const char *name, size_t len)
Definition: upb/upb/def.c:409
upb_FileDef_Options
const google_protobuf_FileOptions * upb_FileDef_Options(const upb_FileDef *f)
Definition: upb/upb/def.c:912
upb_MessageDef_NestedEnum
const upb_EnumDef * upb_MessageDef_NestedEnum(const upb_MessageDef *m, int i)
Definition: upb/upb/def.c:844
upb_MiniTable_Field
Definition: msg_internal.h:71
upb_EnumDef_Value
const upb_EnumValueDef * upb_EnumDef_Value(const upb_EnumDef *e, int i)
Definition: upb/upb/def.c:430
_upb_FileDef_PublicDependencyIndexes
const int32_t * _upb_FileDef_PublicDependencyIndexes(const upb_FileDef *f)
Definition: upb/upb/def.c:940
upb_FileDef_TopLevelMessageCount
int upb_FileDef_TopLevelMessageCount(const upb_FileDef *f)
Definition: upb/upb/def.c:926
upb_MethodDef_FullName
const char * upb_MethodDef_FullName(const upb_MethodDef *m)
Definition: upb/upb/def.c:1006
upb_FileDef_TopLevelMessage
const upb_MessageDef * upb_FileDef_TopLevelMessage(const upb_FileDef *f, int i)
Definition: upb/upb/def.c:973
upb_DefPool_New
upb_DefPool * upb_DefPool_New(void)
Definition: upb/upb/def.c:1086
upb_MessageDef
Definition: upb/upb/def.c:100
ext
void * ext
Definition: x509v3.h:87
upb_EnumDef_FullName
const char * upb_EnumDef_FullName(const upb_EnumDef *e)
Definition: upb/upb/def.c:390
upb_MessageDef_FindByName
UPB_INLINE bool upb_MessageDef_FindByName(const upb_MessageDef *m, const char *name, const upb_FieldDef **f, const upb_OneofDef **o)
Definition: upb/upb/def.h:231
_upb_DefPool_Init::deps
struct _upb_DefPool_Init ** deps
Definition: upb/upb/def.h:387
_upb_DefPool_Init::layout
const upb_MiniTable_File * layout
Definition: upb/upb/def.h:388
upb_MiniTable_Extension
Definition: msg_internal.h:202
upb_FileDef_ServiceCount
int upb_FileDef_ServiceCount(const upb_FileDef *f)
Definition: upb/upb/def.c:956
upb_DefPool_Free
void upb_DefPool_Free(upb_DefPool *s)
Definition: upb/upb/def.c:1081
upb_MethodDef
Definition: upb/upb/def.c:197
upb_EnumValueDef_Enum
const upb_EnumDef * upb_EnumValueDef_Enum(const upb_EnumValueDef *e)
Definition: upb/upb/def.c:446
upb_FieldDef_MiniTable
const upb_MiniTable_Field * upb_FieldDef_MiniTable(const upb_FieldDef *f)
Definition: upb/upb/def.c:627
upb_MethodDef_ServerStreaming
bool upb_MethodDef_ServerStreaming(const upb_MethodDef *m)
Definition: upb/upb/def.c:1032
file
Definition: bloaty/third_party/zlib/examples/gzappend.c:170
upb_MessageDef_NestedExtensionCount
int upb_MessageDef_NestedExtensionCount(const upb_MessageDef *m)
Definition: upb/upb/def.c:810
upb_OneofDef_HasOptions
bool upb_OneofDef_HasOptions(const upb_OneofDef *o)
Definition: upb/upb/def.c:866
upb_EnumValueDef_Name
const char * upb_EnumValueDef_Name(const upb_EnumValueDef *e)
Definition: upb/upb/def.c:454
upb_FieldDef_HasSubDef
bool upb_FieldDef_HasSubDef(const upb_FieldDef *f)
Definition: upb/upb/def.c:666
status
absl::Status status
Definition: rls.cc:251
upb_MiniTable
Definition: msg_internal.h:185
upb_MessageDef_FindByJsonNameWithSize
const upb_FieldDef * upb_MessageDef_FindByJsonNameWithSize(const upb_MessageDef *m, const char *name, size_t len)
Definition: upb/upb/def.c:767
setup.name
name
Definition: setup.py:542
upb_OneofDef
Definition: upb/upb/def.c:157
google_protobuf_EnumOptions
struct google_protobuf_EnumOptions google_protobuf_EnumOptions
Definition: descriptor.upb.h:67
upb_EnumDef_ValueCount
int upb_EnumDef_ValueCount(const upb_EnumDef *e)
Definition: upb/upb/def.c:407
upb_FieldDef_IsString
bool upb_FieldDef_IsString(const upb_FieldDef *f)
Definition: upb/upb/def.c:646
upb_MessageDef_OneofCount
int upb_MessageDef_OneofCount(const upb_MessageDef *m)
Definition: upb/upb/def.c:798
_upb_DefPool_LoadDefInitEx
bool _upb_DefPool_LoadDefInitEx(upb_DefPool *s, const _upb_DefPool_Init *init, bool rebuild_minitable)
Definition: upb/upb/def.c:3149
upb_MessageDef_Syntax
upb_Syntax upb_MessageDef_Syntax(const upb_MessageDef *m)
Definition: upb/upb/def.c:717
upb_MessageDef_FindFieldByNumber
const upb_FieldDef * upb_MessageDef_FindFieldByNumber(const upb_MessageDef *m, uint32_t i)
Definition: upb/upb/def.c:721
upb_EnumDef_CheckNumber
bool upb_EnumDef_CheckNumber(const upb_EnumDef *e, int32_t num)
Definition: upb/upb/def.c:424
upb_EnumValueDef_FullName
const char * upb_EnumValueDef_FullName(const upb_EnumValueDef *e)
Definition: upb/upb/def.c:450
upb_FieldDef_Index
uint32_t upb_FieldDef_Index(const upb_FieldDef *f)
Definition: upb/upb/def.c:537
upb_DefPool_FindServiceByName
const upb_ServiceDef * upb_DefPool_FindServiceByName(const upb_DefPool *s, const char *name)
Definition: upb/upb/def.c:1186
upb_FileDef_TopLevelExtensionCount
int upb_FileDef_TopLevelExtensionCount(const upb_FileDef *f)
Definition: upb/upb/def.c:952
upb_OneofDef_LookupNameWithSize
const upb_FieldDef * upb_OneofDef_LookupNameWithSize(const upb_OneofDef *o, const char *name, size_t length)
Definition: upb/upb/def.c:894
upb_WellKnown
upb_WellKnown
Definition: upb/upb/def.h:71
upb_OneofDef_FieldCount
int upb_OneofDef_FieldCount(const upb_OneofDef *o)
Definition: upb/upb/def.c:878
o
UnboundConversion o
Definition: third_party/abseil-cpp/absl/strings/internal/str_format/parser_test.cc:97
upb_MessageDef_FindOneofByNameWithSize
const upb_OneofDef * upb_MessageDef_FindOneofByNameWithSize(const upb_MessageDef *m, const char *name, size_t len)
Definition: upb/upb/def.c:739
kUpb_WellKnown_FloatValue
@ kUpb_WellKnown_FloatValue
Definition: upb/upb/def.h:79
uint32_t
unsigned int uint32_t
Definition: stdint-msvc2008.h:80
upb_ServiceDef
Definition: upb/upb/def.c:208
upb_FieldDef_IsPacked
bool upb_FieldDef_IsPacked(const upb_FieldDef *f)
Definition: upb/upb/def.c:547
upb_OneofDef_IsSynthetic
bool upb_OneofDef_IsSynthetic(const upb_OneofDef *o)
Definition: upb/upb/def.c:892
upb_FieldDef_HasPresence
bool upb_FieldDef_HasPresence(const upb_FieldDef *f)
Definition: upb/upb/def.c:671
upb_ExtensionRange_Start
int32_t upb_ExtensionRange_Start(const upb_ExtensionRange *r)
Definition: upb/upb/def.c:479
upb_MessageDef_IsMapEntry
UPB_INLINE bool upb_MessageDef_IsMapEntry(const upb_MessageDef *m)
Definition: upb/upb/def.h:209
autogen_x86imm.f
f
Definition: autogen_x86imm.py:9
upb_DefPool_FindExtensionByNameWithSize
const upb_FieldDef * upb_DefPool_FindExtensionByNameWithSize(const upb_DefPool *s, const char *sym, size_t len)
Definition: upb/upb/def.c:1162
upb_OneofDef_LookupName
const UPB_INLINE upb_FieldDef * upb_OneofDef_LookupName(const upb_OneofDef *o, const char *name)
Definition: upb/upb/def.h:150
upb_MessageDef_FieldCount
int upb_MessageDef_FieldCount(const upb_MessageDef *m)
Definition: upb/upb/def.c:794
descriptor.upb.h
upb_FileDef_Pool
const upb_DefPool * upb_FileDef_Pool(const upb_FileDef *f)
Definition: upb/upb/def.c:993
kUpb_WellKnown_BytesValue
@ kUpb_WellKnown_BytesValue
Definition: upb/upb/def.h:86
kUpb_WellKnown_Unspecified
@ kUpb_WellKnown_Unspecified
Definition: upb/upb/def.h:72
upb_ServiceDef_Options
const google_protobuf_ServiceOptions * upb_ServiceDef_Options(const upb_ServiceDef *s)
Definition: upb/upb/def.c:1038
google_protobuf_FieldOptions
struct google_protobuf_FieldOptions google_protobuf_FieldOptions
Definition: descriptor.upb.h:65
upb_FieldDef_ExtensionScope
const upb_MessageDef * upb_FieldDef_ExtensionScope(const upb_FieldDef *f)
Definition: upb/upb/def.c:567
kUpb_WellKnown_Timestamp
@ kUpb_WellKnown_Timestamp
Definition: upb/upb/def.h:76
upb_FieldDef_HasJsonName
bool upb_FieldDef_HasJsonName(const upb_FieldDef *f)
Definition: upb/upb/def.c:557
kUpb_Syntax_Proto2
@ kUpb_Syntax_Proto2
Definition: upb/upb/def.h:65
_upb_FieldDef_IsProto3Optional
bool _upb_FieldDef_IsProto3Optional(const upb_FieldDef *f)
Definition: upb/upb/def.c:638
upb_DefPool_FindFileByNameWithSize
const upb_FileDef * upb_DefPool_FindFileByNameWithSize(const upb_DefPool *s, const char *name, size_t len)
Definition: upb/upb/def.c:1153
upb_EnumDef_FindValueByNumber
const upb_EnumValueDef * upb_EnumDef_FindValueByNumber(const upb_EnumDef *e, int32_t num)
Definition: upb/upb/def.c:417
upb.h
upb_FileDef_WeakDependencyCount
int upb_FileDef_WeakDependencyCount(const upb_FileDef *f)
Definition: upb/upb/def.c:936
upb_FieldDef_IsExtension
bool upb_FieldDef_IsExtension(const upb_FieldDef *f)
Definition: upb/upb/def.c:543
upb_DefPool_FindMessageByName
const upb_MessageDef * upb_DefPool_FindMessageByName(const upb_DefPool *s, const char *sym)
Definition: upb/upb/def.c:1125
_upb_DefPool_Init
Definition: upb/upb/def.h:386
UPB_INLINE
#define UPB_INLINE
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/upb.c:53
upb_FileDef_HasOptions
bool upb_FileDef_HasOptions(const upb_FileDef *f)
Definition: upb/upb/def.c:916
table_internal.h
upb_EnumValueDef
Definition: upb/upb/def.c:150
upb_MethodDef_Name
const char * upb_MethodDef_Name(const upb_MethodDef *m)
Definition: upb/upb/def.c:1012
_upb_FileDef_WeakDependencyIndexes
const int32_t * _upb_FileDef_WeakDependencyIndexes(const upb_FileDef *f)
Definition: upb/upb/def.c:944
upb_MessageDef_ExtensionRangeCount
int upb_MessageDef_ExtensionRangeCount(const upb_MessageDef *m)
Definition: upb/upb/def.c:790
kUpb_WellKnown_UInt32Value
@ kUpb_WellKnown_UInt32Value
Definition: upb/upb/def.h:83
upb_ServiceDef_FindMethodByName
const upb_MethodDef * upb_ServiceDef_FindMethodByName(const upb_ServiceDef *s, const char *name)
Definition: upb/upb/def.c:1069
upb_FileDef_Dependency
const upb_FileDef * upb_FileDef_Dependency(const upb_FileDef *f, int i)
Definition: upb/upb/def.c:958
upb_Syntax
upb_Syntax
Definition: upb/upb/def.h:65
_upb_FieldDef_ExtensionMiniTable
const upb_MiniTable_Extension * _upb_FieldDef_ExtensionMiniTable(const upb_FieldDef *f)
Definition: upb/upb/def.c:632
upb_DefPool_FindFileByName
const upb_FileDef * upb_DefPool_FindFileByName(const upb_DefPool *s, const char *name)
Definition: upb/upb/def.c:1145
upb_FileDef_DependencyCount
int upb_FileDef_DependencyCount(const upb_FileDef *f)
Definition: upb/upb/def.c:930
upb_MiniTable_File
Definition: msg_internal.h:208
kUpb_WellKnown_BoolValue
@ kUpb_WellKnown_BoolValue
Definition: upb/upb/def.h:87
upb_FieldDef_File
const upb_FileDef * upb_FieldDef_File(const upb_FieldDef *f)
Definition: upb/upb/def.c:561
upb_MessageDef_FindFieldByName
const UPB_INLINE upb_FieldDef * upb_MessageDef_FindFieldByName(const upb_MessageDef *m, const char *name)
Definition: upb/upb/def.h:204
upb_Status
Definition: upb/upb/upb.h:52
upb_EnumDef_Options
const google_protobuf_EnumOptions * upb_EnumDef_Options(const upb_EnumDef *e)
Definition: upb/upb/def.c:382
upb_DefPool_FindServiceByNameWithSize
const upb_ServiceDef * upb_DefPool_FindServiceByNameWithSize(const upb_DefPool *s, const char *name, size_t size)
Definition: upb/upb/def.c:1191
upb_ExtensionRange_HasOptions
bool upb_ExtensionRange_HasOptions(const upb_ExtensionRange *r)
Definition: upb/upb/def.c:475
upb_ServiceDef_Index
int upb_ServiceDef_Index(const upb_ServiceDef *s)
Definition: upb/upb/def.c:1055
upb_MessageDef_NestedMessage
const upb_MessageDef * upb_MessageDef_NestedMessage(const upb_MessageDef *m, int i)
Definition: upb/upb/def.c:838
upb_DefPool_FindEnumByName
const upb_EnumDef * upb_DefPool_FindEnumByName(const upb_DefPool *s, const char *sym)
Definition: upb/upb/def.c:1135
upb_OneofDef_Field
const upb_FieldDef * upb_OneofDef_Field(const upb_OneofDef *o, int i)
Definition: upb/upb/def.c:880
upb_EnumDef_File
const upb_FileDef * upb_EnumDef_File(const upb_EnumDef *e)
Definition: upb/upb/def.c:396
upb_MessageDef_ExtensionRange
const upb_ExtensionRange * upb_MessageDef_ExtensionRange(const upb_MessageDef *m, int i)
Definition: upb/upb/def.c:822
upb_MethodDef_Index
int upb_MethodDef_Index(const upb_MethodDef *m)
Definition: upb/upb/def.c:1010
upb_FileDef_Package
const char * upb_FileDef_Package(const upb_FileDef *f)
Definition: upb/upb/def.c:922
upb_EnumDef_Default
int32_t upb_EnumDef_Default(const upb_EnumDef *e)
Definition: upb/upb/def.c:402
upb_DefPool_FindMessageByNameWithSize
const upb_MessageDef * upb_DefPool_FindMessageByNameWithSize(const upb_DefPool *s, const char *sym, size_t len)
Definition: upb/upb/def.c:1130
kUpb_WellKnown_Any
@ kUpb_WellKnown_Any
Definition: upb/upb/def.h:73
upb_MessageDef_Options
const google_protobuf_MessageOptions * upb_MessageDef_Options(const upb_MessageDef *m)
Definition: upb/upb/def.c:692
upb_FieldDef
Definition: upb/upb/def.c:56
upb_FieldDef_Options
const google_protobuf_FieldOptions * upb_FieldDef_Options(const upb_FieldDef *f)
Definition: upb/upb/def.c:487
upb_FileDef_Syntax
upb_Syntax upb_FileDef_Syntax(const upb_FileDef *f)
Definition: upb/upb/def.c:924
upb_ServiceDef_File
const upb_FileDef * upb_ServiceDef_File(const upb_ServiceDef *s)
Definition: upb/upb/def.c:1057
upb_MessageDef_NestedMessageCount
int upb_MessageDef_NestedMessageCount(const upb_MessageDef *m)
Definition: upb/upb/def.c:802
upb_MethodDef_InputType
const upb_MessageDef * upb_MethodDef_InputType(const upb_MethodDef *m)
Definition: upb/upb/def.c:1020
upb_OneofDef_LookupNumber
const upb_FieldDef * upb_OneofDef_LookupNumber(const upb_OneofDef *o, uint32_t num)
Definition: upb/upb/def.c:903
upb_MessageDef_FindByJsonName
const UPB_INLINE upb_FieldDef * upb_MessageDef_FindByJsonName(const upb_MessageDef *m, const char *name)
Definition: upb/upb/def.h:241
_upb_DefPool_Init::filename
const char * filename
Definition: upb/upb/def.h:389
_upb_DefPool_BytesLoaded
size_t _upb_DefPool_BytesLoaded(const upb_DefPool *s)
Definition: upb/upb/def.c:3201
upb_MethodDef_Service
const upb_ServiceDef * upb_MethodDef_Service(const upb_MethodDef *m)
Definition: upb/upb/def.c:1016
upb_MessageDef_FindByNameWithSize
bool upb_MessageDef_FindByNameWithSize(const upb_MessageDef *m, const char *name, size_t len, const upb_FieldDef **f, const upb_OneofDef **o)
Definition: upb/upb/def.c:750
upb_MessageDef_FullName
const char * upb_MessageDef_FullName(const upb_MessageDef *m)
Definition: upb/upb/def.c:701
upb_MessageDef_HasOptions
bool upb_MessageDef_HasOptions(const upb_MessageDef *m)
Definition: upb/upb/def.c:697
kUpb_WellKnown_UInt64Value
@ kUpb_WellKnown_UInt64Value
Definition: upb/upb/def.h:81
upb_MessageDef_File
const upb_FileDef * upb_MessageDef_File(const upb_MessageDef *m)
Definition: upb/upb/def.c:705
kUpb_WellKnown_Duration
@ kUpb_WellKnown_Duration
Definition: upb/upb/def.h:75
kUpb_WellKnown_Struct
@ kUpb_WellKnown_Struct
Definition: upb/upb/def.h:90
upb_EnumDef_Name
const char * upb_EnumDef_Name(const upb_EnumDef *e)
Definition: upb/upb/def.c:392
upb_MessageDef_WellKnownType
upb_WellKnown upb_MessageDef_WellKnownType(const upb_MessageDef *m)
Definition: upb/upb/def.c:855
upb_StringView
Definition: upb/upb/upb.h:72
upb_MessageDef_FindOneofByName
const UPB_INLINE upb_OneofDef * upb_MessageDef_FindOneofByName(const upb_MessageDef *m, const char *name)
Definition: upb/upb/def.h:199
upb_FileDef_TopLevelExtension
const upb_FieldDef * upb_FileDef_TopLevelExtension(const upb_FileDef *f, int i)
Definition: upb/upb/def.c:983
upb_FileDef
Definition: upb/upb/def.c:171
upb_FieldDef_HasDefault
bool upb_FieldDef_HasDefault(const upb_FieldDef *f)
Definition: upb/upb/def.c:664
count
int * count
Definition: bloaty/third_party/googletest/googlemock/test/gmock_stress_test.cc:96
upb_ExtensionRange
Definition: upb/upb/def.c:94
upb_FieldDef_ContainingType
const upb_MessageDef * upb_FieldDef_ContainingType(const upb_FieldDef *f)
Definition: upb/upb/def.c:563
upb_DefPool_AddFile
const upb_FileDef * upb_DefPool_AddFile(upb_DefPool *s, const google_protobuf_FileDescriptorProto *file, upb_Status *status)
Definition: upb/upb/def.c:3140
upb_FieldDef_MessageSubDef
const upb_MessageDef * upb_FieldDef_MessageSubDef(const upb_FieldDef *f)
Definition: upb/upb/def.c:619
upb_MethodDef_OutputType
const upb_MessageDef * upb_MethodDef_OutputType(const upb_MethodDef *m)
Definition: upb/upb/def.c:1024
_upb_DefPool_Init::descriptor
upb_StringView descriptor
Definition: upb/upb/def.h:390
fix_build_deps.r
r
Definition: fix_build_deps.py:491
google_protobuf_ExtensionRangeOptions
struct google_protobuf_ExtensionRangeOptions google_protobuf_ExtensionRangeOptions
Definition: descriptor.upb.h:55
upb_DefPool_FindExtensionByNumber
const upb_FieldDef * upb_DefPool_FindExtensionByNumber(const upb_DefPool *s, const upb_MessageDef *m, int32_t fieldnum)
Definition: upb/upb/def.c:3215
upb_EnumValueDef_HasOptions
bool upb_EnumValueDef_HasOptions(const upb_EnumValueDef *e)
Definition: upb/upb/def.c:442
upb_MessageDef_ContainingType
const upb_MessageDef * upb_MessageDef_ContainingType(const upb_MessageDef *m)
Definition: upb/upb/def.c:709
google_protobuf_OneofOptions
struct google_protobuf_OneofOptions google_protobuf_OneofOptions
Definition: descriptor.upb.h:66
xds_manager.num
num
Definition: xds_manager.py:56
upb_DefPool_FindFileContainingSymbol
const upb_FileDef * upb_DefPool_FindFileContainingSymbol(const upb_DefPool *s, const char *name)
Definition: upb/upb/def.c:1196
upb_MessageDef_Field
const upb_FieldDef * upb_MessageDef_Field(const upb_MessageDef *m, int i)
Definition: upb/upb/def.c:828
upb_streamdef
struct upb_streamdef upb_streamdef
Definition: upb/upb/def.h:61
upb_FieldDef_RealContainingOneof
const upb_OneofDef * upb_FieldDef_RealContainingOneof(const upb_FieldDef *f)
Definition: upb/upb/def.c:575
upb_FieldDef_ContainingOneof
const upb_OneofDef * upb_FieldDef_ContainingOneof(const upb_FieldDef *f)
Definition: upb/upb/def.c:571
kUpb_Syntax_Proto3
@ kUpb_Syntax_Proto3
Definition: upb/upb/def.h:65
kUpb_WellKnown_Value
@ kUpb_WellKnown_Value
Definition: upb/upb/def.h:88
kUpb_WellKnown_ListValue
@ kUpb_WellKnown_ListValue
Definition: upb/upb/def.h:89
upb_FileDef_TopLevelEnum
const upb_EnumDef * upb_FileDef_TopLevelEnum(const upb_FileDef *f, int i)
Definition: upb/upb/def.c:978
kUpb_WellKnown_Int64Value
@ kUpb_WellKnown_Int64Value
Definition: upb/upb/def.h:80
kUpb_WellKnown_DoubleValue
@ kUpb_WellKnown_DoubleValue
Definition: upb/upb/def.h:78
google_protobuf_MethodOptions
struct google_protobuf_MethodOptions google_protobuf_MethodOptions
Definition: descriptor.upb.h:70
upb_MessageDef_FindFieldByNameWithSize
const upb_FieldDef * upb_MessageDef_FindFieldByNameWithSize(const upb_MessageDef *m, const char *name, size_t len)
Definition: upb/upb/def.c:728
kUpb_WellKnown_Int32Value
@ kUpb_WellKnown_Int32Value
Definition: upb/upb/def.h:82
upb_FieldDef_JsonName
const char * upb_FieldDef_JsonName(const upb_FieldDef *f)
Definition: upb/upb/def.c:553
google_protobuf_EnumValueOptions
struct google_protobuf_EnumValueOptions google_protobuf_EnumValueOptions
Definition: descriptor.upb.h:68
google_protobuf_MessageOptions_map_entry
UPB_INLINE bool google_protobuf_MessageOptions_map_entry(const google_protobuf_MessageOptions *msg)
Definition: descriptor.upb.h:2046
upb_ServiceDef_Name
const char * upb_ServiceDef_Name(const upb_ServiceDef *s)
Definition: upb/upb/def.c:1051
upb_EnumDef
Definition: upb/upb/def.c:134
upb_MessageDef_NestedExtension
const upb_FieldDef * upb_MessageDef_NestedExtension(const upb_MessageDef *m, int i)
Definition: upb/upb/def.c:849
upb_FieldDef_IsRepeated
bool upb_FieldDef_IsRepeated(const upb_FieldDef *f)
Definition: upb/upb/def.c:651
upb_EnumValueDef_Options
const google_protobuf_EnumValueOptions * upb_EnumValueDef_Options(const upb_EnumValueDef *e)
Definition: upb/upb/def.c:437
upb_FieldDef_CType
upb_CType upb_FieldDef_CType(const upb_FieldDef *f)
Definition: upb/upb/def.c:500
_upb_DefPool_Arena
upb_Arena * _upb_DefPool_Arena(const upb_DefPool *s)
Definition: upb/upb/def.c:3205
upb_MessageDef_Name
const char * upb_MessageDef_Name(const upb_MessageDef *m)
Definition: upb/upb/def.c:713
upb_FieldDef_Type
upb_FieldType upb_FieldDef_Type(const upb_FieldDef *f)
Definition: upb/upb/def.c:535
upb_OneofDef_Options
const google_protobuf_OneofOptions * upb_OneofDef_Options(const upb_OneofDef *o)
Definition: upb/upb/def.c:861
len
int len
Definition: abseil-cpp/absl/base/internal/low_level_alloc_test.cc:46
google_protobuf_ServiceOptions
struct google_protobuf_ServiceOptions google_protobuf_ServiceOptions
Definition: descriptor.upb.h:69
upb_Label
upb_Label
Definition: upb/upb/upb.h:301
_upb_DefPool_FindExtensionByMiniTable
const upb_FieldDef * _upb_DefPool_FindExtensionByMiniTable(const upb_DefPool *s, const upb_MiniTable_Extension *ext)
Definition: upb/upb/def.c:3207
upb_FileDef_PublicDependencyCount
int upb_FileDef_PublicDependencyCount(const upb_FileDef *f)
Definition: upb/upb/def.c:932
upb_ExtensionRange_Options
const google_protobuf_ExtensionRangeOptions * upb_ExtensionRange_Options(const upb_ExtensionRange *r)
Definition: upb/upb/def.c:470
upb_FieldDef_IsMap
bool upb_FieldDef_IsMap(const upb_FieldDef *f)
Definition: upb/upb/def.c:659
upb_MessageDef_NestedEnumCount
int upb_MessageDef_NestedEnumCount(const upb_MessageDef *m)
Definition: upb/upb/def.c:806
size
voidpf void uLong size
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:136
length
std::size_t length
Definition: abseil-cpp/absl/time/internal/test_util.cc:57
upb_FieldDef_EnumSubDef
const upb_EnumDef * upb_FieldDef_EnumSubDef(const upb_FieldDef *f)
Definition: upb/upb/def.c:623
regress.m
m
Definition: regress/regress.py:25
int32_t
signed int int32_t
Definition: stdint-msvc2008.h:77
upb_FieldDef_FullName
const char * upb_FieldDef_FullName(const upb_FieldDef *f)
Definition: upb/upb/def.c:496
upb_DefPool_FindExtensionByName
const upb_FieldDef * upb_DefPool_FindExtensionByName(const upb_DefPool *s, const char *sym)
Definition: upb/upb/def.c:1181
upb_ServiceDef_Method
const upb_MethodDef * upb_ServiceDef_Method(const upb_ServiceDef *s, int i)
Definition: upb/upb/def.c:1065
upb_DefPool_GetAllExtensions
const upb_FieldDef ** upb_DefPool_GetAllExtensions(const upb_DefPool *s, const upb_MessageDef *m, size_t *count)
Definition: upb/upb/def.c:3236
_upb_DefPool_Init
struct _upb_DefPool_Init _upb_DefPool_Init
google_protobuf_FileDescriptorProto
struct google_protobuf_FileDescriptorProto google_protobuf_FileDescriptorProto
Definition: descriptor.upb.h:51
kUpb_WellKnown_FieldMask
@ kUpb_WellKnown_FieldMask
Definition: upb/upb/def.h:74
upb_DefPool
Definition: upb/upb/def.c:217
google_protobuf_FileOptions
struct google_protobuf_FileOptions google_protobuf_FileOptions
Definition: descriptor.upb.h:63
upb_Arena
Definition: upb_internal.h:36
google_protobuf_MessageOptions
struct google_protobuf_MessageOptions google_protobuf_MessageOptions
Definition: descriptor.upb.h:64
upb_EnumValueDef_Index
uint32_t upb_EnumValueDef_Index(const upb_EnumValueDef *e)
Definition: upb/upb/def.c:462
upb_MethodDef_ClientStreaming
bool upb_MethodDef_ClientStreaming(const upb_MethodDef *m)
Definition: upb/upb/def.c:1028
upb_OneofDef_Name
const char * upb_OneofDef_Name(const upb_OneofDef *o)
Definition: upb/upb/def.c:870
upb_FileDef_WeakDependency
const upb_FileDef * upb_FileDef_WeakDependency(const upb_FileDef *f, int i)
Definition: upb/upb/def.c:968
upb_ExtensionRegistry
Definition: msg.c:372
upb_FieldDef_IsSubMessage
bool upb_FieldDef_IsSubMessage(const upb_FieldDef *f)
Definition: upb/upb/def.c:642
upb_ServiceDef_MethodCount
int upb_ServiceDef_MethodCount(const upb_ServiceDef *s)
Definition: upb/upb/def.c:1061
i
uint64_t i
Definition: abseil-cpp/absl/container/btree_benchmark.cc:230
upb_EnumValueDef_Number
int32_t upb_EnumValueDef_Number(const upb_EnumValueDef *e)
Definition: upb/upb/def.c:458
upb_FileDef_PublicDependency
const upb_FileDef * upb_FileDef_PublicDependency(const upb_FileDef *f, int i)
Definition: upb/upb/def.c:963
upb_EnumDef_FindValueByName
const UPB_INLINE upb_EnumValueDef * upb_EnumDef_FindValueByName(const upb_EnumDef *e, const char *name)
Definition: upb/upb/def.h:273
upb_ServiceDef_FullName
const char * upb_ServiceDef_FullName(const upb_ServiceDef *s)
Definition: upb/upb/def.c:1047
upb_OneofDef_Index
uint32_t upb_OneofDef_Index(const upb_OneofDef *o)
Definition: upb/upb/def.c:887
upb_ServiceDef_HasOptions
bool upb_ServiceDef_HasOptions(const upb_ServiceDef *s)
Definition: upb/upb/def.c:1043


grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:09