Classes | Macros | Functions
upb/upb/reflection.h File Reference
#include "upb/def.h"
#include "upb/msg.h"
#include "upb/port_def.inc"
#include "upb/upb.h"
#include "upb/port_undef.inc"
Include dependency graph for upb/upb/reflection.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  upb_MessageValue
 
union  upb_MutableMessageValue
 

Macros

#define kUpb_Message_Begin   -1
 

Functions

bool upb_Array_Append (upb_Array *array, upb_MessageValue val, upb_Arena *arena)
 
void upb_Array_Delete (upb_Array *array, size_t i, size_t count)
 
upb_MessageValue upb_Array_Get (const upb_Array *arr, size_t i)
 
bool upb_Array_Insert (upb_Array *array, size_t i, size_t count, upb_Arena *arena)
 
void upb_Array_Move (upb_Array *array, size_t dst_idx, size_t src_idx, size_t count)
 
upb_Arrayupb_Array_New (upb_Arena *a, upb_CType type)
 
bool upb_Array_Resize (upb_Array *array, size_t size, upb_Arena *arena)
 
void upb_Array_Set (upb_Array *arr, size_t i, upb_MessageValue val)
 
size_t upb_Array_Size (const upb_Array *arr)
 
upb_MessageValue upb_FieldDef_Default (const upb_FieldDef *f)
 
void upb_Map_Clear (upb_Map *map)
 
bool upb_Map_Delete (upb_Map *map, upb_MessageValue key)
 
bool upb_Map_Get (const upb_Map *map, upb_MessageValue key, upb_MessageValue *val)
 
upb_Mapupb_Map_New (upb_Arena *a, upb_CType key_type, upb_CType value_type)
 
bool upb_Map_Set (upb_Map *map, upb_MessageValue key, upb_MessageValue val, upb_Arena *arena)
 
size_t upb_Map_Size (const upb_Map *map)
 
bool upb_MapIterator_Done (const upb_Map *map, size_t iter)
 
upb_MessageValue upb_MapIterator_Key (const upb_Map *map, size_t iter)
 
bool upb_MapIterator_Next (const upb_Map *map, size_t *iter)
 
void upb_MapIterator_SetValue (upb_Map *map, size_t iter, upb_MessageValue value)
 
upb_MessageValue upb_MapIterator_Value (const upb_Map *map, size_t iter)
 
void upb_Message_Clear (upb_Message *msg, const upb_MessageDef *m)
 
void upb_Message_ClearField (upb_Message *msg, const upb_FieldDef *f)
 
bool upb_Message_DiscardUnknown (upb_Message *msg, const upb_MessageDef *m, int maxdepth)
 
upb_MessageValue upb_Message_Get (const upb_Message *msg, const upb_FieldDef *f)
 
bool upb_Message_Has (const upb_Message *msg, const upb_FieldDef *f)
 
upb_MutableMessageValue upb_Message_Mutable (upb_Message *msg, const upb_FieldDef *f, upb_Arena *a)
 
upb_Messageupb_Message_New (const upb_MessageDef *m, upb_Arena *a)
 
bool upb_Message_Next (const upb_Message *msg, const upb_MessageDef *m, const upb_DefPool *ext_pool, const upb_FieldDef **f, upb_MessageValue *val, size_t *iter)
 
bool upb_Message_Set (upb_Message *msg, const upb_FieldDef *f, upb_MessageValue val, upb_Arena *a)
 
const upb_FieldDefupb_Message_WhichOneof (const upb_Message *msg, const upb_OneofDef *o)
 

Macro Definition Documentation

◆ kUpb_Message_Begin

#define kUpb_Message_Begin   -1

Definition at line 113 of file upb/upb/reflection.h.

Function Documentation

◆ upb_Array_Append()

bool upb_Array_Append ( upb_Array array,
upb_MessageValue  val,
upb_Arena arena 
)

Definition at line 380 of file reflection.c.

◆ upb_Array_Delete()

void upb_Array_Delete ( upb_Array array,
size_t  i,
size_t  count 
)

Definition at line 411 of file reflection.c.

◆ upb_Array_Get()

upb_MessageValue upb_Array_Get ( const upb_Array arr,
size_t  i 
)

Definition at line 364 of file reflection.c.

◆ upb_Array_Insert()

bool upb_Array_Insert ( upb_Array array,
size_t  i,
size_t  count,
upb_Arena arena 
)

Definition at line 395 of file reflection.c.

◆ upb_Array_Move()

void upb_Array_Move ( upb_Array array,
size_t  dst_idx,
size_t  src_idx,
size_t  count 
)

Definition at line 388 of file reflection.c.

◆ upb_Array_New()

upb_Array* upb_Array_New ( upb_Arena a,
upb_CType  type 
)

upb_Array

Definition at line 358 of file reflection.c.

◆ upb_Array_Resize()

bool upb_Array_Resize ( upb_Array array,
size_t  size,
upb_Arena arena 
)

Definition at line 419 of file reflection.c.

◆ upb_Array_Set()

void upb_Array_Set ( upb_Array arr,
size_t  i,
upb_MessageValue  val 
)

Definition at line 373 of file reflection.c.

◆ upb_Array_Size()

size_t upb_Array_Size ( const upb_Array arr)

Definition at line 362 of file reflection.c.

◆ upb_FieldDef_Default()

upb_MessageValue upb_FieldDef_Default ( const upb_FieldDef f)

Definition at line 581 of file upb/upb/def.c.

◆ upb_Map_Clear()

void upb_Map_Clear ( upb_Map map)

Definition at line 437 of file reflection.c.

◆ upb_Map_Delete()

bool upb_Map_Delete ( upb_Map map,
upb_MessageValue  key 
)

Definition at line 444 of file reflection.c.

◆ upb_Map_Get()

bool upb_Map_Get ( const upb_Map map,
upb_MessageValue  key,
upb_MessageValue val 
)

Definition at line 432 of file reflection.c.

◆ upb_Map_New()

upb_Map* upb_Map_New ( upb_Arena a,
upb_CType  key_type,
upb_CType  value_type 
)

upb_Map

Definition at line 425 of file reflection.c.

◆ upb_Map_Set()

bool upb_Map_Set ( upb_Map map,
upb_MessageValue  key,
upb_MessageValue  val,
upb_Arena arena 
)

Definition at line 439 of file reflection.c.

◆ upb_Map_Size()

size_t upb_Map_Size ( const upb_Map map)

Definition at line 430 of file reflection.c.

◆ upb_MapIterator_Done()

bool upb_MapIterator_Done ( const upb_Map map,
size_t  iter 
)

Definition at line 452 of file reflection.c.

◆ upb_MapIterator_Key()

upb_MessageValue upb_MapIterator_Key ( const upb_Map map,
size_t  iter 
)

Definition at line 461 of file reflection.c.

◆ upb_MapIterator_Next()

bool upb_MapIterator_Next ( const upb_Map map,
size_t *  iter 
)

Definition at line 448 of file reflection.c.

◆ upb_MapIterator_SetValue()

void upb_MapIterator_SetValue ( upb_Map map,
size_t  iter,
upb_MessageValue  value 
)

◆ upb_MapIterator_Value()

upb_MessageValue upb_MapIterator_Value ( const upb_Map map,
size_t  iter 
)

Definition at line 470 of file reflection.c.

◆ upb_Message_Clear()

void upb_Message_Clear ( upb_Message msg,
const upb_MessageDef m 
)

Definition at line 241 of file reflection.c.

◆ upb_Message_ClearField()

void upb_Message_ClearField ( upb_Message msg,
const upb_FieldDef f 
)

Definition at line 222 of file reflection.c.

◆ upb_Message_DiscardUnknown()

bool upb_Message_DiscardUnknown ( upb_Message msg,
const upb_MessageDef m,
int  maxdepth 
)

Definition at line 351 of file reflection.c.

◆ upb_Message_Get()

upb_MessageValue upb_Message_Get ( const upb_Message msg,
const upb_FieldDef f 
)

Definition at line 146 of file reflection.c.

◆ upb_Message_Has()

bool upb_Message_Has ( const upb_Message msg,
const upb_FieldDef f 
)

Definition at line 112 of file reflection.c.

◆ upb_Message_Mutable()

upb_MutableMessageValue upb_Message_Mutable ( upb_Message msg,
const upb_FieldDef f,
upb_Arena a 
)

Definition at line 164 of file reflection.c.

◆ upb_Message_New()

upb_Message* upb_Message_New ( const upb_MessageDef m,
upb_Arena a 
)

upb_Message

Definition at line 95 of file reflection.c.

◆ upb_Message_Next()

bool upb_Message_Next ( const upb_Message msg,
const upb_MessageDef m,
const upb_DefPool ext_pool,
const upb_FieldDef **  f,
upb_MessageValue val,
size_t *  iter 
)

Definition at line 245 of file reflection.c.

◆ upb_Message_Set()

bool upb_Message_Set ( upb_Message msg,
const upb_FieldDef f,
upb_MessageValue  val,
upb_Arena a 
)

Definition at line 202 of file reflection.c.

◆ upb_Message_WhichOneof()

const upb_FieldDef* upb_Message_WhichOneof ( const upb_Message msg,
const upb_OneofDef o 
)

Definition at line 131 of file reflection.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:28