GRPC Core  18.0.0
Typedefs | Enumerations | Functions | Variables
struct.upb.h File Reference
#include "upb/msg.h"
#include "upb/decode.h"
#include "upb/decode_fast.h"
#include "upb/encode.h"
#include "upb/port_def.inc"
#include "upb/port_undef.inc"

Go to the source code of this file.

Typedefs

typedef struct google_protobuf_Struct google_protobuf_Struct
 
typedef struct google_protobuf_Struct_FieldsEntry google_protobuf_Struct_FieldsEntry
 
typedef struct google_protobuf_Value google_protobuf_Value
 
typedef struct google_protobuf_ListValue google_protobuf_ListValue
 

Enumerations

enum  google_protobuf_NullValue { google_protobuf_NULL_VALUE = 0 }
 
enum  google_protobuf_Value_kind_oneofcases {
  google_protobuf_Value_kind_null_value = 1 , google_protobuf_Value_kind_number_value = 2 , google_protobuf_Value_kind_string_value = 3 , google_protobuf_Value_kind_bool_value = 4 ,
  google_protobuf_Value_kind_struct_value = 5 , google_protobuf_Value_kind_list_value = 6 , google_protobuf_Value_kind_NOT_SET = 0
}
 

Functions

UPB_INLINE google_protobuf_Structgoogle_protobuf_Struct_new (upb_arena *arena)
 
UPB_INLINE google_protobuf_Structgoogle_protobuf_Struct_parse (const char *buf, size_t size, upb_arena *arena)
 
UPB_INLINE google_protobuf_Structgoogle_protobuf_Struct_parse_ex (const char *buf, size_t size, upb_arena *arena, int options)
 
UPB_INLINE char * google_protobuf_Struct_serialize (const google_protobuf_Struct *msg, upb_arena *arena, size_t *len)
 
UPB_INLINE bool google_protobuf_Struct_has_fields (const google_protobuf_Struct *msg)
 
UPB_INLINE size_t google_protobuf_Struct_fields_size (const google_protobuf_Struct *msg)
 
UPB_INLINE bool google_protobuf_Struct_fields_get (const google_protobuf_Struct *msg, upb_strview key, google_protobuf_Value **val)
 
UPB_INLINE const google_protobuf_Struct_FieldsEntrygoogle_protobuf_Struct_fields_next (const google_protobuf_Struct *msg, size_t *iter)
 
UPB_INLINE void google_protobuf_Struct_fields_clear (google_protobuf_Struct *msg)
 
UPB_INLINE bool google_protobuf_Struct_fields_set (google_protobuf_Struct *msg, upb_strview key, google_protobuf_Value *val, upb_arena *a)
 
UPB_INLINE bool google_protobuf_Struct_fields_delete (google_protobuf_Struct *msg, upb_strview key)
 
UPB_INLINE google_protobuf_Struct_FieldsEntrygoogle_protobuf_Struct_fields_nextmutable (google_protobuf_Struct *msg, size_t *iter)
 
UPB_INLINE upb_strview google_protobuf_Struct_FieldsEntry_key (const google_protobuf_Struct_FieldsEntry *msg)
 
UPB_INLINE bool google_protobuf_Struct_FieldsEntry_has_value (const google_protobuf_Struct_FieldsEntry *msg)
 
UPB_INLINE const google_protobuf_Valuegoogle_protobuf_Struct_FieldsEntry_value (const google_protobuf_Struct_FieldsEntry *msg)
 
UPB_INLINE void google_protobuf_Struct_FieldsEntry_set_value (google_protobuf_Struct_FieldsEntry *msg, google_protobuf_Value *value)
 
UPB_INLINE google_protobuf_Valuegoogle_protobuf_Value_new (upb_arena *arena)
 
UPB_INLINE google_protobuf_Valuegoogle_protobuf_Value_parse (const char *buf, size_t size, upb_arena *arena)
 
UPB_INLINE google_protobuf_Valuegoogle_protobuf_Value_parse_ex (const char *buf, size_t size, upb_arena *arena, int options)
 
UPB_INLINE char * google_protobuf_Value_serialize (const google_protobuf_Value *msg, upb_arena *arena, size_t *len)
 
UPB_INLINE google_protobuf_Value_kind_oneofcases google_protobuf_Value_kind_case (const google_protobuf_Value *msg)
 
UPB_INLINE bool google_protobuf_Value_has_null_value (const google_protobuf_Value *msg)
 
UPB_INLINE int32_t google_protobuf_Value_null_value (const google_protobuf_Value *msg)
 
UPB_INLINE bool google_protobuf_Value_has_number_value (const google_protobuf_Value *msg)
 
UPB_INLINE double google_protobuf_Value_number_value (const google_protobuf_Value *msg)
 
UPB_INLINE bool google_protobuf_Value_has_string_value (const google_protobuf_Value *msg)
 
UPB_INLINE upb_strview google_protobuf_Value_string_value (const google_protobuf_Value *msg)
 
UPB_INLINE bool google_protobuf_Value_has_bool_value (const google_protobuf_Value *msg)
 
UPB_INLINE bool google_protobuf_Value_bool_value (const google_protobuf_Value *msg)
 
UPB_INLINE bool google_protobuf_Value_has_struct_value (const google_protobuf_Value *msg)
 
UPB_INLINE const google_protobuf_Structgoogle_protobuf_Value_struct_value (const google_protobuf_Value *msg)
 
UPB_INLINE bool google_protobuf_Value_has_list_value (const google_protobuf_Value *msg)
 
UPB_INLINE const google_protobuf_ListValuegoogle_protobuf_Value_list_value (const google_protobuf_Value *msg)
 
UPB_INLINE void google_protobuf_Value_set_null_value (google_protobuf_Value *msg, int32_t value)
 
UPB_INLINE void google_protobuf_Value_set_number_value (google_protobuf_Value *msg, double value)
 
UPB_INLINE void google_protobuf_Value_set_string_value (google_protobuf_Value *msg, upb_strview value)
 
UPB_INLINE void google_protobuf_Value_set_bool_value (google_protobuf_Value *msg, bool value)
 
UPB_INLINE void google_protobuf_Value_set_struct_value (google_protobuf_Value *msg, google_protobuf_Struct *value)
 
UPB_INLINE struct google_protobuf_Structgoogle_protobuf_Value_mutable_struct_value (google_protobuf_Value *msg, upb_arena *arena)
 
UPB_INLINE void google_protobuf_Value_set_list_value (google_protobuf_Value *msg, google_protobuf_ListValue *value)
 
UPB_INLINE struct google_protobuf_ListValuegoogle_protobuf_Value_mutable_list_value (google_protobuf_Value *msg, upb_arena *arena)
 
UPB_INLINE google_protobuf_ListValuegoogle_protobuf_ListValue_new (upb_arena *arena)
 
UPB_INLINE google_protobuf_ListValuegoogle_protobuf_ListValue_parse (const char *buf, size_t size, upb_arena *arena)
 
UPB_INLINE google_protobuf_ListValuegoogle_protobuf_ListValue_parse_ex (const char *buf, size_t size, upb_arena *arena, int options)
 
UPB_INLINE char * google_protobuf_ListValue_serialize (const google_protobuf_ListValue *msg, upb_arena *arena, size_t *len)
 
UPB_INLINE bool google_protobuf_ListValue_has_values (const google_protobuf_ListValue *msg)
 
UPB_INLINE const google_protobuf_Value *const * google_protobuf_ListValue_values (const google_protobuf_ListValue *msg, size_t *len)
 
UPB_INLINE google_protobuf_Value ** google_protobuf_ListValue_mutable_values (google_protobuf_ListValue *msg, size_t *len)
 
UPB_INLINE google_protobuf_Value ** google_protobuf_ListValue_resize_values (google_protobuf_ListValue *msg, size_t len, upb_arena *arena)
 
UPB_INLINE struct google_protobuf_Valuegoogle_protobuf_ListValue_add_values (google_protobuf_ListValue *msg, upb_arena *arena)
 

Variables

const upb_msglayout google_protobuf_Struct_msginit
 
const upb_msglayout google_protobuf_Struct_FieldsEntry_msginit
 
const upb_msglayout google_protobuf_Value_msginit
 
const upb_msglayout google_protobuf_ListValue_msginit
 

Typedef Documentation

◆ google_protobuf_ListValue

◆ google_protobuf_Struct

◆ google_protobuf_Struct_FieldsEntry

◆ google_protobuf_Value

Enumeration Type Documentation

◆ google_protobuf_NullValue

Enumerator
google_protobuf_NULL_VALUE 

◆ google_protobuf_Value_kind_oneofcases

Enumerator
google_protobuf_Value_kind_null_value 
google_protobuf_Value_kind_number_value 
google_protobuf_Value_kind_string_value 
google_protobuf_Value_kind_bool_value 
google_protobuf_Value_kind_struct_value 
google_protobuf_Value_kind_list_value 
google_protobuf_Value_kind_NOT_SET 

Function Documentation

◆ google_protobuf_ListValue_add_values()

UPB_INLINE struct google_protobuf_Value* google_protobuf_ListValue_add_values ( google_protobuf_ListValue msg,
upb_arena *  arena 
)

◆ google_protobuf_ListValue_has_values()

UPB_INLINE bool google_protobuf_ListValue_has_values ( const google_protobuf_ListValue msg)

◆ google_protobuf_ListValue_mutable_values()

UPB_INLINE google_protobuf_Value** google_protobuf_ListValue_mutable_values ( google_protobuf_ListValue msg,
size_t *  len 
)

◆ google_protobuf_ListValue_new()

UPB_INLINE google_protobuf_ListValue* google_protobuf_ListValue_new ( upb_arena *  arena)

◆ google_protobuf_ListValue_parse()

UPB_INLINE google_protobuf_ListValue* google_protobuf_ListValue_parse ( const char *  buf,
size_t  size,
upb_arena *  arena 
)

◆ google_protobuf_ListValue_parse_ex()

UPB_INLINE google_protobuf_ListValue* google_protobuf_ListValue_parse_ex ( const char *  buf,
size_t  size,
upb_arena *  arena,
int  options 
)

◆ google_protobuf_ListValue_resize_values()

UPB_INLINE google_protobuf_Value** google_protobuf_ListValue_resize_values ( google_protobuf_ListValue msg,
size_t  len,
upb_arena *  arena 
)

◆ google_protobuf_ListValue_serialize()

UPB_INLINE char* google_protobuf_ListValue_serialize ( const google_protobuf_ListValue msg,
upb_arena *  arena,
size_t *  len 
)

◆ google_protobuf_ListValue_values()

UPB_INLINE const google_protobuf_Value* const* google_protobuf_ListValue_values ( const google_protobuf_ListValue msg,
size_t *  len 
)

◆ google_protobuf_Struct_fields_clear()

UPB_INLINE void google_protobuf_Struct_fields_clear ( google_protobuf_Struct msg)

◆ google_protobuf_Struct_fields_delete()

UPB_INLINE bool google_protobuf_Struct_fields_delete ( google_protobuf_Struct msg,
upb_strview  key 
)

◆ google_protobuf_Struct_fields_get()

UPB_INLINE bool google_protobuf_Struct_fields_get ( const google_protobuf_Struct msg,
upb_strview  key,
google_protobuf_Value **  val 
)

◆ google_protobuf_Struct_fields_next()

UPB_INLINE const google_protobuf_Struct_FieldsEntry* google_protobuf_Struct_fields_next ( const google_protobuf_Struct msg,
size_t *  iter 
)

◆ google_protobuf_Struct_fields_nextmutable()

UPB_INLINE google_protobuf_Struct_FieldsEntry* google_protobuf_Struct_fields_nextmutable ( google_protobuf_Struct msg,
size_t *  iter 
)

◆ google_protobuf_Struct_fields_set()

UPB_INLINE bool google_protobuf_Struct_fields_set ( google_protobuf_Struct msg,
upb_strview  key,
google_protobuf_Value val,
upb_arena *  a 
)

◆ google_protobuf_Struct_fields_size()

UPB_INLINE size_t google_protobuf_Struct_fields_size ( const google_protobuf_Struct msg)

◆ google_protobuf_Struct_FieldsEntry_has_value()

UPB_INLINE bool google_protobuf_Struct_FieldsEntry_has_value ( const google_protobuf_Struct_FieldsEntry msg)

◆ google_protobuf_Struct_FieldsEntry_key()

UPB_INLINE upb_strview google_protobuf_Struct_FieldsEntry_key ( const google_protobuf_Struct_FieldsEntry msg)

◆ google_protobuf_Struct_FieldsEntry_set_value()

UPB_INLINE void google_protobuf_Struct_FieldsEntry_set_value ( google_protobuf_Struct_FieldsEntry msg,
google_protobuf_Value value 
)

◆ google_protobuf_Struct_FieldsEntry_value()

UPB_INLINE const google_protobuf_Value* google_protobuf_Struct_FieldsEntry_value ( const google_protobuf_Struct_FieldsEntry msg)

◆ google_protobuf_Struct_has_fields()

UPB_INLINE bool google_protobuf_Struct_has_fields ( const google_protobuf_Struct msg)

◆ google_protobuf_Struct_new()

UPB_INLINE google_protobuf_Struct* google_protobuf_Struct_new ( upb_arena *  arena)

◆ google_protobuf_Struct_parse()

UPB_INLINE google_protobuf_Struct* google_protobuf_Struct_parse ( const char *  buf,
size_t  size,
upb_arena *  arena 
)

◆ google_protobuf_Struct_parse_ex()

UPB_INLINE google_protobuf_Struct* google_protobuf_Struct_parse_ex ( const char *  buf,
size_t  size,
upb_arena *  arena,
int  options 
)

◆ google_protobuf_Struct_serialize()

UPB_INLINE char* google_protobuf_Struct_serialize ( const google_protobuf_Struct msg,
upb_arena *  arena,
size_t *  len 
)

◆ google_protobuf_Value_bool_value()

UPB_INLINE bool google_protobuf_Value_bool_value ( const google_protobuf_Value msg)

◆ google_protobuf_Value_has_bool_value()

UPB_INLINE bool google_protobuf_Value_has_bool_value ( const google_protobuf_Value msg)

◆ google_protobuf_Value_has_list_value()

UPB_INLINE bool google_protobuf_Value_has_list_value ( const google_protobuf_Value msg)

◆ google_protobuf_Value_has_null_value()

UPB_INLINE bool google_protobuf_Value_has_null_value ( const google_protobuf_Value msg)

◆ google_protobuf_Value_has_number_value()

UPB_INLINE bool google_protobuf_Value_has_number_value ( const google_protobuf_Value msg)

◆ google_protobuf_Value_has_string_value()

UPB_INLINE bool google_protobuf_Value_has_string_value ( const google_protobuf_Value msg)

◆ google_protobuf_Value_has_struct_value()

UPB_INLINE bool google_protobuf_Value_has_struct_value ( const google_protobuf_Value msg)

◆ google_protobuf_Value_kind_case()

UPB_INLINE google_protobuf_Value_kind_oneofcases google_protobuf_Value_kind_case ( const google_protobuf_Value msg)

◆ google_protobuf_Value_list_value()

UPB_INLINE const google_protobuf_ListValue* google_protobuf_Value_list_value ( const google_protobuf_Value msg)

◆ google_protobuf_Value_mutable_list_value()

UPB_INLINE struct google_protobuf_ListValue* google_protobuf_Value_mutable_list_value ( google_protobuf_Value msg,
upb_arena *  arena 
)

◆ google_protobuf_Value_mutable_struct_value()

UPB_INLINE struct google_protobuf_Struct* google_protobuf_Value_mutable_struct_value ( google_protobuf_Value msg,
upb_arena *  arena 
)

◆ google_protobuf_Value_new()

UPB_INLINE google_protobuf_Value* google_protobuf_Value_new ( upb_arena *  arena)

◆ google_protobuf_Value_null_value()

UPB_INLINE int32_t google_protobuf_Value_null_value ( const google_protobuf_Value msg)

◆ google_protobuf_Value_number_value()

UPB_INLINE double google_protobuf_Value_number_value ( const google_protobuf_Value msg)

◆ google_protobuf_Value_parse()

UPB_INLINE google_protobuf_Value* google_protobuf_Value_parse ( const char *  buf,
size_t  size,
upb_arena *  arena 
)

◆ google_protobuf_Value_parse_ex()

UPB_INLINE google_protobuf_Value* google_protobuf_Value_parse_ex ( const char *  buf,
size_t  size,
upb_arena *  arena,
int  options 
)

◆ google_protobuf_Value_serialize()

UPB_INLINE char* google_protobuf_Value_serialize ( const google_protobuf_Value msg,
upb_arena *  arena,
size_t *  len 
)

◆ google_protobuf_Value_set_bool_value()

UPB_INLINE void google_protobuf_Value_set_bool_value ( google_protobuf_Value msg,
bool  value 
)

◆ google_protobuf_Value_set_list_value()

UPB_INLINE void google_protobuf_Value_set_list_value ( google_protobuf_Value msg,
google_protobuf_ListValue value 
)

◆ google_protobuf_Value_set_null_value()

UPB_INLINE void google_protobuf_Value_set_null_value ( google_protobuf_Value msg,
int32_t  value 
)

◆ google_protobuf_Value_set_number_value()

UPB_INLINE void google_protobuf_Value_set_number_value ( google_protobuf_Value msg,
double  value 
)

◆ google_protobuf_Value_set_string_value()

UPB_INLINE void google_protobuf_Value_set_string_value ( google_protobuf_Value msg,
upb_strview  value 
)

◆ google_protobuf_Value_set_struct_value()

UPB_INLINE void google_protobuf_Value_set_struct_value ( google_protobuf_Value msg,
google_protobuf_Struct value 
)

◆ google_protobuf_Value_string_value()

UPB_INLINE upb_strview google_protobuf_Value_string_value ( const google_protobuf_Value msg)

◆ google_protobuf_Value_struct_value()

UPB_INLINE const google_protobuf_Struct* google_protobuf_Value_struct_value ( const google_protobuf_Value msg)

Variable Documentation

◆ google_protobuf_ListValue_msginit

const upb_msglayout google_protobuf_ListValue_msginit
extern

◆ google_protobuf_Struct_FieldsEntry_msginit

const upb_msglayout google_protobuf_Struct_FieldsEntry_msginit
extern

◆ google_protobuf_Struct_msginit

const upb_msglayout google_protobuf_Struct_msginit
extern

◆ google_protobuf_Value_msginit

const upb_msglayout google_protobuf_Value_msginit
extern