|
|
|
@ -231,7 +231,7 @@ UPB_INLINE const google_protobuf_FileDescriptorProto* const* google_protobuf_Fil |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_FileDescriptorProto* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_FileDescriptorProto* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -260,7 +260,7 @@ UPB_INLINE google_protobuf_FileDescriptorProto** google_protobuf_FileDescriptorS |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_FileDescriptorProto**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_FileDescriptorProto**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -275,7 +275,7 @@ UPB_INLINE struct google_protobuf_FileDescriptorProto* google_protobuf_FileDescr |
|
|
|
|
upb_MiniTableField field = {1, 0, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -363,7 +363,7 @@ UPB_INLINE upb_StringView const* google_protobuf_FileDescriptorProto_dependency( |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (upb_StringView const*)_upb_array_constptr(arr); |
|
|
|
|
return (upb_StringView const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -395,7 +395,7 @@ UPB_INLINE const google_protobuf_DescriptorProto* const* google_protobuf_FileDes |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_DescriptorProto* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_DescriptorProto* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -427,7 +427,7 @@ UPB_INLINE const google_protobuf_EnumDescriptorProto* const* google_protobuf_Fil |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_EnumDescriptorProto* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_EnumDescriptorProto* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -459,7 +459,7 @@ UPB_INLINE const google_protobuf_ServiceDescriptorProto* const* google_protobuf_ |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_ServiceDescriptorProto* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_ServiceDescriptorProto* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -491,7 +491,7 @@ UPB_INLINE const google_protobuf_FieldDescriptorProto* const* google_protobuf_Fi |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_FieldDescriptorProto* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_FieldDescriptorProto* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -555,7 +555,7 @@ UPB_INLINE int32_t const* google_protobuf_FileDescriptorProto_public_dependency( |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (int32_t const*)_upb_array_constptr(arr); |
|
|
|
|
return (int32_t const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -587,7 +587,7 @@ UPB_INLINE int32_t const* google_protobuf_FileDescriptorProto_weak_dependency(co |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (int32_t const*)_upb_array_constptr(arr); |
|
|
|
|
return (int32_t const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -656,7 +656,7 @@ UPB_INLINE upb_StringView* google_protobuf_FileDescriptorProto_mutable_dependenc |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (upb_StringView*)_upb_array_ptr(arr); |
|
|
|
|
return (upb_StringView*)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -671,7 +671,7 @@ UPB_INLINE bool google_protobuf_FileDescriptorProto_add_dependency(google_protob |
|
|
|
|
upb_MiniTableField field = {3, UPB_SIZE(4, 40), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
@ -684,7 +684,7 @@ UPB_INLINE google_protobuf_DescriptorProto** google_protobuf_FileDescriptorProto |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_DescriptorProto**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_DescriptorProto**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -699,7 +699,7 @@ UPB_INLINE struct google_protobuf_DescriptorProto* google_protobuf_FileDescripto |
|
|
|
|
upb_MiniTableField field = {4, UPB_SIZE(8, 48), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -714,7 +714,7 @@ UPB_INLINE google_protobuf_EnumDescriptorProto** google_protobuf_FileDescriptorP |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_EnumDescriptorProto**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_EnumDescriptorProto**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -729,7 +729,7 @@ UPB_INLINE struct google_protobuf_EnumDescriptorProto* google_protobuf_FileDescr |
|
|
|
|
upb_MiniTableField field = {5, UPB_SIZE(12, 56), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -744,7 +744,7 @@ UPB_INLINE google_protobuf_ServiceDescriptorProto** google_protobuf_FileDescript |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_ServiceDescriptorProto**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_ServiceDescriptorProto**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -759,7 +759,7 @@ UPB_INLINE struct google_protobuf_ServiceDescriptorProto* google_protobuf_FileDe |
|
|
|
|
upb_MiniTableField field = {6, UPB_SIZE(16, 64), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -774,7 +774,7 @@ UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_FileDescriptor |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_FieldDescriptorProto**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_FieldDescriptorProto**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -789,7 +789,7 @@ UPB_INLINE struct google_protobuf_FieldDescriptorProto* google_protobuf_FileDesc |
|
|
|
|
upb_MiniTableField field = {7, UPB_SIZE(20, 72), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -828,7 +828,7 @@ UPB_INLINE int32_t* google_protobuf_FileDescriptorProto_mutable_public_dependenc |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (int32_t*)_upb_array_ptr(arr); |
|
|
|
|
return (int32_t*)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -843,7 +843,7 @@ UPB_INLINE bool google_protobuf_FileDescriptorProto_add_public_dependency(google |
|
|
|
|
upb_MiniTableField field = {10, UPB_SIZE(32, 96), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
@ -856,7 +856,7 @@ UPB_INLINE int32_t* google_protobuf_FileDescriptorProto_mutable_weak_dependency( |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (int32_t*)_upb_array_ptr(arr); |
|
|
|
|
return (int32_t*)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -871,7 +871,7 @@ UPB_INLINE bool google_protobuf_FileDescriptorProto_add_weak_dependency(google_p |
|
|
|
|
upb_MiniTableField field = {11, UPB_SIZE(36, 104), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
@ -949,7 +949,7 @@ UPB_INLINE const google_protobuf_FieldDescriptorProto* const* google_protobuf_De |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_FieldDescriptorProto* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_FieldDescriptorProto* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -981,7 +981,7 @@ UPB_INLINE const google_protobuf_DescriptorProto* const* google_protobuf_Descrip |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_DescriptorProto* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_DescriptorProto* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -1013,7 +1013,7 @@ UPB_INLINE const google_protobuf_EnumDescriptorProto* const* google_protobuf_Des |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_EnumDescriptorProto* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_EnumDescriptorProto* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -1045,7 +1045,7 @@ UPB_INLINE const google_protobuf_DescriptorProto_ExtensionRange* const* google_p |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_DescriptorProto_ExtensionRange* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_DescriptorProto_ExtensionRange* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -1077,7 +1077,7 @@ UPB_INLINE const google_protobuf_FieldDescriptorProto* const* google_protobuf_De |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_FieldDescriptorProto* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_FieldDescriptorProto* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -1125,7 +1125,7 @@ UPB_INLINE const google_protobuf_OneofDescriptorProto* const* google_protobuf_De |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_OneofDescriptorProto* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_OneofDescriptorProto* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -1157,7 +1157,7 @@ UPB_INLINE const google_protobuf_DescriptorProto_ReservedRange* const* google_pr |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_DescriptorProto_ReservedRange* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_DescriptorProto_ReservedRange* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -1189,7 +1189,7 @@ UPB_INLINE upb_StringView const* google_protobuf_DescriptorProto_reserved_name(c |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (upb_StringView const*)_upb_array_constptr(arr); |
|
|
|
|
return (upb_StringView const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -1222,7 +1222,7 @@ UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_DescriptorProt |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_FieldDescriptorProto**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_FieldDescriptorProto**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -1237,7 +1237,7 @@ UPB_INLINE struct google_protobuf_FieldDescriptorProto* google_protobuf_Descript |
|
|
|
|
upb_MiniTableField field = {2, UPB_SIZE(4, 24), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -1252,7 +1252,7 @@ UPB_INLINE google_protobuf_DescriptorProto** google_protobuf_DescriptorProto_mut |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_DescriptorProto**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_DescriptorProto**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -1267,7 +1267,7 @@ UPB_INLINE struct google_protobuf_DescriptorProto* google_protobuf_DescriptorPro |
|
|
|
|
upb_MiniTableField field = {3, UPB_SIZE(8, 32), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -1282,7 +1282,7 @@ UPB_INLINE google_protobuf_EnumDescriptorProto** google_protobuf_DescriptorProto |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_EnumDescriptorProto**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_EnumDescriptorProto**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -1297,7 +1297,7 @@ UPB_INLINE struct google_protobuf_EnumDescriptorProto* google_protobuf_Descripto |
|
|
|
|
upb_MiniTableField field = {4, UPB_SIZE(12, 40), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -1312,7 +1312,7 @@ UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange** google_protobuf_Desc |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_DescriptorProto_ExtensionRange**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_DescriptorProto_ExtensionRange**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -1327,7 +1327,7 @@ UPB_INLINE struct google_protobuf_DescriptorProto_ExtensionRange* google_protobu |
|
|
|
|
upb_MiniTableField field = {5, UPB_SIZE(16, 48), 0, 3, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -1342,7 +1342,7 @@ UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_DescriptorProt |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_FieldDescriptorProto**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_FieldDescriptorProto**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -1357,7 +1357,7 @@ UPB_INLINE struct google_protobuf_FieldDescriptorProto* google_protobuf_Descript |
|
|
|
|
upb_MiniTableField field = {6, UPB_SIZE(20, 56), 0, 4, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -1384,7 +1384,7 @@ UPB_INLINE google_protobuf_OneofDescriptorProto** google_protobuf_DescriptorProt |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_OneofDescriptorProto**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_OneofDescriptorProto**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -1399,7 +1399,7 @@ UPB_INLINE struct google_protobuf_OneofDescriptorProto* google_protobuf_Descript |
|
|
|
|
upb_MiniTableField field = {8, UPB_SIZE(28, 72), 0, 6, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -1414,7 +1414,7 @@ UPB_INLINE google_protobuf_DescriptorProto_ReservedRange** google_protobuf_Descr |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_DescriptorProto_ReservedRange**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_DescriptorProto_ReservedRange**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -1429,7 +1429,7 @@ UPB_INLINE struct google_protobuf_DescriptorProto_ReservedRange* google_protobuf |
|
|
|
|
upb_MiniTableField field = {9, UPB_SIZE(32, 80), 0, 7, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -1444,7 +1444,7 @@ UPB_INLINE upb_StringView* google_protobuf_DescriptorProto_mutable_reserved_name |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (upb_StringView*)_upb_array_ptr(arr); |
|
|
|
|
return (upb_StringView*)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -1459,7 +1459,7 @@ UPB_INLINE bool google_protobuf_DescriptorProto_add_reserved_name(google_protobu |
|
|
|
|
upb_MiniTableField field = {10, UPB_SIZE(36, 88), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
@ -1697,7 +1697,7 @@ UPB_INLINE const google_protobuf_ExtensionRangeOptions_Declaration* const* googl |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_ExtensionRangeOptions_Declaration* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_ExtensionRangeOptions_Declaration* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -1761,7 +1761,7 @@ UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_Ext |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_UninterpretedOption* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -1790,7 +1790,7 @@ UPB_INLINE google_protobuf_ExtensionRangeOptions_Declaration** google_protobuf_E |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_ExtensionRangeOptions_Declaration**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_ExtensionRangeOptions_Declaration**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -1805,7 +1805,7 @@ UPB_INLINE struct google_protobuf_ExtensionRangeOptions_Declaration* google_prot |
|
|
|
|
upb_MiniTableField field = {2, UPB_SIZE(4, 8), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -1836,7 +1836,7 @@ UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_ExtensionRangeO |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_UninterpretedOption**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -1851,7 +1851,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_Extension |
|
|
|
|
upb_MiniTableField field = {999, UPB_SIZE(16, 24), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -2413,7 +2413,7 @@ UPB_INLINE const google_protobuf_EnumValueDescriptorProto* const* google_protobu |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_EnumValueDescriptorProto* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_EnumValueDescriptorProto* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -2461,7 +2461,7 @@ UPB_INLINE const google_protobuf_EnumDescriptorProto_EnumReservedRange* const* g |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_EnumDescriptorProto_EnumReservedRange* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_EnumDescriptorProto_EnumReservedRange* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -2493,7 +2493,7 @@ UPB_INLINE upb_StringView const* google_protobuf_EnumDescriptorProto_reserved_na |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (upb_StringView const*)_upb_array_constptr(arr); |
|
|
|
|
return (upb_StringView const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -2526,7 +2526,7 @@ UPB_INLINE google_protobuf_EnumValueDescriptorProto** google_protobuf_EnumDescri |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_EnumValueDescriptorProto**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_EnumValueDescriptorProto**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -2541,7 +2541,7 @@ UPB_INLINE struct google_protobuf_EnumValueDescriptorProto* google_protobuf_Enum |
|
|
|
|
upb_MiniTableField field = {2, UPB_SIZE(4, 24), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -2568,7 +2568,7 @@ UPB_INLINE google_protobuf_EnumDescriptorProto_EnumReservedRange** google_protob |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_EnumDescriptorProto_EnumReservedRange**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_EnumDescriptorProto_EnumReservedRange**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -2583,7 +2583,7 @@ UPB_INLINE struct google_protobuf_EnumDescriptorProto_EnumReservedRange* google_ |
|
|
|
|
upb_MiniTableField field = {4, UPB_SIZE(12, 40), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -2598,7 +2598,7 @@ UPB_INLINE upb_StringView* google_protobuf_EnumDescriptorProto_mutable_reserved_ |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (upb_StringView*)_upb_array_ptr(arr); |
|
|
|
|
return (upb_StringView*)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -2613,7 +2613,7 @@ UPB_INLINE bool google_protobuf_EnumDescriptorProto_add_reserved_name(google_pro |
|
|
|
|
upb_MiniTableField field = {5, UPB_SIZE(16, 48), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
@ -2867,7 +2867,7 @@ UPB_INLINE const google_protobuf_MethodDescriptorProto* const* google_protobuf_S |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_MethodDescriptorProto* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_MethodDescriptorProto* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -2916,7 +2916,7 @@ UPB_INLINE google_protobuf_MethodDescriptorProto** google_protobuf_ServiceDescri |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_MethodDescriptorProto**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_MethodDescriptorProto**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -2931,7 +2931,7 @@ UPB_INLINE struct google_protobuf_MethodDescriptorProto* google_protobuf_Service |
|
|
|
|
upb_MiniTableField field = {2, UPB_SIZE(4, 24), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -3485,7 +3485,7 @@ UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_Fil |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_UninterpretedOption* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -3602,7 +3602,7 @@ UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_FileOptions_mut |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_UninterpretedOption**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -3617,7 +3617,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_FileOptio |
|
|
|
|
upb_MiniTableField field = {999, UPB_SIZE(20, 184), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -3769,7 +3769,7 @@ UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_Mes |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_UninterpretedOption* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -3830,7 +3830,7 @@ UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_MessageOptions_ |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_UninterpretedOption**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -3845,7 +3845,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_MessageOp |
|
|
|
|
upb_MiniTableField field = {999, UPB_SIZE(12, 16), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -4045,7 +4045,7 @@ UPB_INLINE int32_t const* google_protobuf_FieldOptions_targets(const google_prot |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (int32_t const*)_upb_array_constptr(arr); |
|
|
|
|
return (int32_t const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -4077,7 +4077,7 @@ UPB_INLINE const google_protobuf_FieldOptions_EditionDefault* const* google_prot |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_FieldOptions_EditionDefault* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_FieldOptions_EditionDefault* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -4125,7 +4125,7 @@ UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_Fie |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_UninterpretedOption* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -4190,7 +4190,7 @@ UPB_INLINE int32_t* google_protobuf_FieldOptions_mutable_targets(google_protobuf |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (int32_t*)_upb_array_ptr(arr); |
|
|
|
|
return (int32_t*)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -4205,7 +4205,7 @@ UPB_INLINE bool google_protobuf_FieldOptions_add_targets(google_protobuf_FieldOp |
|
|
|
|
upb_MiniTableField field = {19, 24, 0, 6, 14, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
@ -4218,7 +4218,7 @@ UPB_INLINE google_protobuf_FieldOptions_EditionDefault** google_protobuf_FieldOp |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_FieldOptions_EditionDefault**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_FieldOptions_EditionDefault**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -4233,7 +4233,7 @@ UPB_INLINE struct google_protobuf_FieldOptions_EditionDefault* google_protobuf_F |
|
|
|
|
upb_MiniTableField field = {20, UPB_SIZE(28, 32), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -4260,7 +4260,7 @@ UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_FieldOptions_mu |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_UninterpretedOption**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -4275,7 +4275,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_FieldOpti |
|
|
|
|
upb_MiniTableField field = {999, UPB_SIZE(36, 48), 0, 2, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -4425,7 +4425,7 @@ UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_One |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_UninterpretedOption* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -4466,7 +4466,7 @@ UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_OneofOptions_mu |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_UninterpretedOption**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -4481,7 +4481,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_OneofOpti |
|
|
|
|
upb_MiniTableField field = {999, UPB_SIZE(8, 16), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -4601,7 +4601,7 @@ UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_Enu |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_UninterpretedOption* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -4654,7 +4654,7 @@ UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_EnumOptions_mut |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_UninterpretedOption**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -4669,7 +4669,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_EnumOptio |
|
|
|
|
upb_MiniTableField field = {999, UPB_SIZE(8, 16), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -4773,7 +4773,7 @@ UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_Enu |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_UninterpretedOption* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -4822,7 +4822,7 @@ UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_EnumValueOption |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_UninterpretedOption**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -4837,7 +4837,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_EnumValue |
|
|
|
|
upb_MiniTableField field = {999, UPB_SIZE(12, 16), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -4925,7 +4925,7 @@ UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_Ser |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_UninterpretedOption* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -4970,7 +4970,7 @@ UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_ServiceOptions_ |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_UninterpretedOption**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -4985,7 +4985,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_ServiceOp |
|
|
|
|
upb_MiniTableField field = {999, UPB_SIZE(8, 16), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -5089,7 +5089,7 @@ UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_Met |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_UninterpretedOption* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_UninterpretedOption* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -5138,7 +5138,7 @@ UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_MethodOptions_m |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_UninterpretedOption**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_UninterpretedOption**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -5153,7 +5153,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_MethodOpt |
|
|
|
|
upb_MiniTableField field = {999, UPB_SIZE(12, 16), 0, 1, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -5209,7 +5209,7 @@ UPB_INLINE const google_protobuf_UninterpretedOption_NamePart* const* google_pro |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_UninterpretedOption_NamePart* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_UninterpretedOption_NamePart* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -5334,7 +5334,7 @@ UPB_INLINE google_protobuf_UninterpretedOption_NamePart** google_protobuf_Uninte |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_UninterpretedOption_NamePart**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_UninterpretedOption_NamePart**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -5349,7 +5349,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption_NamePart* google_protobuf_ |
|
|
|
|
upb_MiniTableField field = {2, UPB_SIZE(4, 8), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -5665,7 +5665,7 @@ UPB_INLINE const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* co |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -5726,7 +5726,7 @@ UPB_INLINE google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault** google_ |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -5741,7 +5741,7 @@ UPB_INLINE struct google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* g |
|
|
|
|
upb_MiniTableField field = {1, UPB_SIZE(4, 16), 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -5891,7 +5891,7 @@ UPB_INLINE const google_protobuf_SourceCodeInfo_Location* const* google_protobuf |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_SourceCodeInfo_Location* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_SourceCodeInfo_Location* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -5920,7 +5920,7 @@ UPB_INLINE google_protobuf_SourceCodeInfo_Location** google_protobuf_SourceCodeI |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_SourceCodeInfo_Location**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_SourceCodeInfo_Location**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -5935,7 +5935,7 @@ UPB_INLINE struct google_protobuf_SourceCodeInfo_Location* google_protobuf_Sourc |
|
|
|
|
upb_MiniTableField field = {1, 0, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -5991,7 +5991,7 @@ UPB_INLINE int32_t const* google_protobuf_SourceCodeInfo_Location_path(const goo |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (int32_t const*)_upb_array_constptr(arr); |
|
|
|
|
return (int32_t const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -6023,7 +6023,7 @@ UPB_INLINE int32_t const* google_protobuf_SourceCodeInfo_Location_span(const goo |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (int32_t const*)_upb_array_constptr(arr); |
|
|
|
|
return (int32_t const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -6087,7 +6087,7 @@ UPB_INLINE upb_StringView const* google_protobuf_SourceCodeInfo_Location_leading |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (upb_StringView const*)_upb_array_constptr(arr); |
|
|
|
|
return (upb_StringView const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -6116,7 +6116,7 @@ UPB_INLINE int32_t* google_protobuf_SourceCodeInfo_Location_mutable_path(google_ |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (int32_t*)_upb_array_ptr(arr); |
|
|
|
|
return (int32_t*)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -6131,7 +6131,7 @@ UPB_INLINE bool google_protobuf_SourceCodeInfo_Location_add_path(google_protobuf |
|
|
|
|
upb_MiniTableField field = {1, UPB_SIZE(4, 8), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
@ -6144,7 +6144,7 @@ UPB_INLINE int32_t* google_protobuf_SourceCodeInfo_Location_mutable_span(google_ |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (int32_t*)_upb_array_ptr(arr); |
|
|
|
|
return (int32_t*)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -6159,7 +6159,7 @@ UPB_INLINE bool google_protobuf_SourceCodeInfo_Location_add_span(google_protobuf |
|
|
|
|
upb_MiniTableField field = {2, UPB_SIZE(8, 16), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
@ -6180,7 +6180,7 @@ UPB_INLINE upb_StringView* google_protobuf_SourceCodeInfo_Location_mutable_leadi |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (upb_StringView*)_upb_array_ptr(arr); |
|
|
|
|
return (upb_StringView*)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -6195,7 +6195,7 @@ UPB_INLINE bool google_protobuf_SourceCodeInfo_Location_add_leading_detached_com |
|
|
|
|
upb_MiniTableField field = {6, UPB_SIZE(12, 56), 0, kUpb_NoSub, 12, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsAlternate | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
@ -6249,7 +6249,7 @@ UPB_INLINE const google_protobuf_GeneratedCodeInfo_Annotation* const* google_pro |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_GeneratedCodeInfo_Annotation* const*)_upb_array_constptr(arr); |
|
|
|
|
return (const google_protobuf_GeneratedCodeInfo_Annotation* const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -6278,7 +6278,7 @@ UPB_INLINE google_protobuf_GeneratedCodeInfo_Annotation** google_protobuf_Genera |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_GeneratedCodeInfo_Annotation**)_upb_array_ptr(arr); |
|
|
|
|
return (google_protobuf_GeneratedCodeInfo_Annotation**)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -6293,7 +6293,7 @@ UPB_INLINE struct google_protobuf_GeneratedCodeInfo_Annotation* google_protobuf_ |
|
|
|
|
upb_MiniTableField field = {1, 0, 0, 0, 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
@ -6349,7 +6349,7 @@ UPB_INLINE int32_t const* google_protobuf_GeneratedCodeInfo_Annotation_path(cons |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (int32_t const*)_upb_array_constptr(arr); |
|
|
|
|
return (int32_t const*)upb_Array_DataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -6442,7 +6442,7 @@ UPB_INLINE int32_t* google_protobuf_GeneratedCodeInfo_Annotation_mutable_path(go |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (int32_t*)_upb_array_ptr(arr); |
|
|
|
|
return (int32_t*)upb_Array_MutableDataPtr(arr); |
|
|
|
|
} else { |
|
|
|
|
if (size) *size = 0; |
|
|
|
|
return NULL; |
|
|
|
@ -6457,7 +6457,7 @@ UPB_INLINE bool google_protobuf_GeneratedCodeInfo_Annotation_add_path(google_pro |
|
|
|
|
upb_MiniTableField field = {1, UPB_SIZE(4, 16), 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Array | (int)kUpb_LabelFlags_IsPacked | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)}; |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|