mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
Internal
PiperOrigin-RevId: 912205927
This commit is contained in:
parent
79129d9e0e
commit
524aa7fda7
2 changed files with 14 additions and 0 deletions
|
|
@ -156,6 +156,10 @@ UPB_API_INLINE void upb_Message_SetBaseFieldArray(struct upb_Message* msg,
|
|||
upb_Array* arr,
|
||||
const upb_MiniTable* arr_mt);
|
||||
|
||||
UPB_API_INLINE void upb_Message_SetBaseFieldMap(
|
||||
struct upb_Message* msg, const upb_MiniTableField* f, struct upb_Map* map,
|
||||
const upb_MiniTable* map_entry_mt);
|
||||
|
||||
UPB_API_INLINE void upb_Message_SetBaseFieldString(struct upb_Message* msg,
|
||||
const upb_MiniTableField* f,
|
||||
upb_StringView value);
|
||||
|
|
|
|||
|
|
@ -626,6 +626,16 @@ UPB_API_INLINE void upb_Message_SetBaseFieldArray(struct upb_Message* msg,
|
|||
upb_Message_SetBaseField(msg, f, &arr);
|
||||
}
|
||||
|
||||
UPB_API_INLINE void upb_Message_SetBaseFieldMap(
|
||||
struct upb_Message* msg, const upb_MiniTableField* f, struct upb_Map* map,
|
||||
const upb_MiniTable* map_entry_mt) {
|
||||
UPB_ASSERT(upb_MiniTableField_IsMap(f));
|
||||
UPB_ASSERT(map_entry_mt == upb_MiniTable_MapEntrySubMessage(f));
|
||||
UPB_ASSUME(UPB_PRIVATE(_upb_MiniTableField_GetRep)(f) ==
|
||||
kUpb_FieldRep_NativePointer);
|
||||
upb_Message_SetBaseField(msg, f, &map);
|
||||
}
|
||||
|
||||
UPB_API_INLINE void upb_Message_SetBaseFieldString(struct upb_Message* msg,
|
||||
const upb_MiniTableField* f,
|
||||
upb_StringView value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue