|
|
|
@ -279,7 +279,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; |
|
|
|
@ -308,7 +308,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; |
|
|
|
@ -323,7 +323,7 @@ UPB_INLINE struct google_protobuf_FileDescriptorProto* google_protobuf_FileDescr |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FileDescriptorSet_msg_init(), 1); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -411,7 +411,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; |
|
|
|
@ -443,7 +443,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; |
|
|
|
@ -475,7 +475,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; |
|
|
|
@ -507,7 +507,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; |
|
|
|
@ -539,7 +539,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; |
|
|
|
@ -603,7 +603,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; |
|
|
|
@ -635,7 +635,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; |
|
|
|
@ -704,7 +704,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; |
|
|
|
@ -719,7 +719,7 @@ UPB_INLINE bool google_protobuf_FileDescriptorProto_add_dependency(google_protob |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FileDescriptorProto_msg_init(), 3); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -732,7 +732,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; |
|
|
|
@ -747,7 +747,7 @@ UPB_INLINE struct google_protobuf_DescriptorProto* google_protobuf_FileDescripto |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FileDescriptorProto_msg_init(), 4); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -762,7 +762,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; |
|
|
|
@ -777,7 +777,7 @@ UPB_INLINE struct google_protobuf_EnumDescriptorProto* google_protobuf_FileDescr |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FileDescriptorProto_msg_init(), 5); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -792,7 +792,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; |
|
|
|
@ -807,7 +807,7 @@ UPB_INLINE struct google_protobuf_ServiceDescriptorProto* google_protobuf_FileDe |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FileDescriptorProto_msg_init(), 6); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -822,7 +822,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; |
|
|
|
@ -837,7 +837,7 @@ UPB_INLINE struct google_protobuf_FieldDescriptorProto* google_protobuf_FileDesc |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FileDescriptorProto_msg_init(), 7); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -876,7 +876,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; |
|
|
|
@ -891,7 +891,7 @@ UPB_INLINE bool google_protobuf_FileDescriptorProto_add_public_dependency(google |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FileDescriptorProto_msg_init(), 10); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -904,7 +904,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; |
|
|
|
@ -919,7 +919,7 @@ UPB_INLINE bool google_protobuf_FileDescriptorProto_add_weak_dependency(google_p |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FileDescriptorProto_msg_init(), 11); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -997,7 +997,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; |
|
|
|
@ -1029,7 +1029,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; |
|
|
|
@ -1061,7 +1061,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; |
|
|
|
@ -1093,7 +1093,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; |
|
|
|
@ -1125,7 +1125,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; |
|
|
|
@ -1173,7 +1173,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; |
|
|
|
@ -1205,7 +1205,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; |
|
|
|
@ -1237,7 +1237,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; |
|
|
|
@ -1270,7 +1270,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; |
|
|
|
@ -1285,7 +1285,7 @@ UPB_INLINE struct google_protobuf_FieldDescriptorProto* google_protobuf_Descript |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__DescriptorProto_msg_init(), 2); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -1300,7 +1300,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; |
|
|
|
@ -1315,7 +1315,7 @@ UPB_INLINE struct google_protobuf_DescriptorProto* google_protobuf_DescriptorPro |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__DescriptorProto_msg_init(), 3); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -1330,7 +1330,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; |
|
|
|
@ -1345,7 +1345,7 @@ UPB_INLINE struct google_protobuf_EnumDescriptorProto* google_protobuf_Descripto |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__DescriptorProto_msg_init(), 4); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -1360,7 +1360,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; |
|
|
|
@ -1375,7 +1375,7 @@ UPB_INLINE struct google_protobuf_DescriptorProto_ExtensionRange* google_protobu |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__DescriptorProto_msg_init(), 5); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -1390,7 +1390,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; |
|
|
|
@ -1405,7 +1405,7 @@ UPB_INLINE struct google_protobuf_FieldDescriptorProto* google_protobuf_Descript |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__DescriptorProto_msg_init(), 6); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -1432,7 +1432,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; |
|
|
|
@ -1447,7 +1447,7 @@ UPB_INLINE struct google_protobuf_OneofDescriptorProto* google_protobuf_Descript |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__DescriptorProto_msg_init(), 8); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -1462,7 +1462,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; |
|
|
|
@ -1477,7 +1477,7 @@ UPB_INLINE struct google_protobuf_DescriptorProto_ReservedRange* google_protobuf |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__DescriptorProto_msg_init(), 9); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -1492,7 +1492,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; |
|
|
|
@ -1507,7 +1507,7 @@ UPB_INLINE bool google_protobuf_DescriptorProto_add_reserved_name(google_protobu |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__DescriptorProto_msg_init(), 10); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -1745,7 +1745,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; |
|
|
|
@ -1809,7 +1809,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; |
|
|
|
@ -1838,7 +1838,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; |
|
|
|
@ -1853,7 +1853,7 @@ UPB_INLINE struct google_protobuf_ExtensionRangeOptions_Declaration* google_prot |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__ExtensionRangeOptions_msg_init(), 2); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -1884,7 +1884,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; |
|
|
|
@ -1899,7 +1899,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_Extension |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__ExtensionRangeOptions_msg_init(), 999); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -2461,7 +2461,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; |
|
|
|
@ -2509,7 +2509,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; |
|
|
|
@ -2541,7 +2541,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; |
|
|
|
@ -2574,7 +2574,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; |
|
|
|
@ -2589,7 +2589,7 @@ UPB_INLINE struct google_protobuf_EnumValueDescriptorProto* google_protobuf_Enum |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__EnumDescriptorProto_msg_init(), 2); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -2616,7 +2616,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; |
|
|
|
@ -2631,7 +2631,7 @@ UPB_INLINE struct google_protobuf_EnumDescriptorProto_EnumReservedRange* google_ |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__EnumDescriptorProto_msg_init(), 4); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -2646,7 +2646,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; |
|
|
|
@ -2661,7 +2661,7 @@ UPB_INLINE bool google_protobuf_EnumDescriptorProto_add_reserved_name(google_pro |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__EnumDescriptorProto_msg_init(), 5); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -2915,7 +2915,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; |
|
|
|
@ -2964,7 +2964,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; |
|
|
|
@ -2979,7 +2979,7 @@ UPB_INLINE struct google_protobuf_MethodDescriptorProto* google_protobuf_Service |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__ServiceDescriptorProto_msg_init(), 2); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -3533,7 +3533,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; |
|
|
|
@ -3650,7 +3650,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; |
|
|
|
@ -3665,7 +3665,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_FileOptio |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FileOptions_msg_init(), 999); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -3817,7 +3817,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; |
|
|
|
@ -3878,7 +3878,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; |
|
|
|
@ -3893,7 +3893,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_MessageOp |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__MessageOptions_msg_init(), 999); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -4093,7 +4093,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; |
|
|
|
@ -4125,7 +4125,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; |
|
|
|
@ -4173,7 +4173,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; |
|
|
|
@ -4238,7 +4238,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; |
|
|
|
@ -4253,7 +4253,7 @@ UPB_INLINE bool google_protobuf_FieldOptions_add_targets(google_protobuf_FieldOp |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions_msg_init(), 19); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -4266,7 +4266,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; |
|
|
|
@ -4281,7 +4281,7 @@ UPB_INLINE struct google_protobuf_FieldOptions_EditionDefault* google_protobuf_F |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions_msg_init(), 20); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -4308,7 +4308,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; |
|
|
|
@ -4323,7 +4323,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_FieldOpti |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions_msg_init(), 999); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -4473,7 +4473,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; |
|
|
|
@ -4514,7 +4514,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; |
|
|
|
@ -4529,7 +4529,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_OneofOpti |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__OneofOptions_msg_init(), 999); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -4649,7 +4649,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; |
|
|
|
@ -4702,7 +4702,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; |
|
|
|
@ -4717,7 +4717,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_EnumOptio |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__EnumOptions_msg_init(), 999); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -4821,7 +4821,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; |
|
|
|
@ -4870,7 +4870,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; |
|
|
|
@ -4885,7 +4885,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_EnumValue |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__EnumValueOptions_msg_init(), 999); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -4973,7 +4973,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; |
|
|
|
@ -5018,7 +5018,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; |
|
|
|
@ -5033,7 +5033,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_ServiceOp |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__ServiceOptions_msg_init(), 999); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -5137,7 +5137,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; |
|
|
|
@ -5186,7 +5186,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; |
|
|
|
@ -5201,7 +5201,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_MethodOpt |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__MethodOptions_msg_init(), 999); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -5257,7 +5257,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; |
|
|
|
@ -5382,7 +5382,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; |
|
|
|
@ -5397,7 +5397,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption_NamePart* google_protobuf_ |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__UninterpretedOption_msg_init(), 2); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -5713,7 +5713,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; |
|
|
|
@ -5774,7 +5774,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; |
|
|
|
@ -5789,7 +5789,7 @@ UPB_INLINE struct google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* g |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FeatureSetDefaults_msg_init(), 1); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -5939,7 +5939,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; |
|
|
|
@ -5968,7 +5968,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; |
|
|
|
@ -5983,7 +5983,7 @@ UPB_INLINE struct google_protobuf_SourceCodeInfo_Location* google_protobuf_Sourc |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__SourceCodeInfo_msg_init(), 1); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -6039,7 +6039,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; |
|
|
|
@ -6071,7 +6071,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; |
|
|
|
@ -6135,7 +6135,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; |
|
|
|
@ -6164,7 +6164,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; |
|
|
|
@ -6179,7 +6179,7 @@ UPB_INLINE bool google_protobuf_SourceCodeInfo_Location_add_path(google_protobuf |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__SourceCodeInfo__Location_msg_init(), 1); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -6192,7 +6192,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; |
|
|
|
@ -6207,7 +6207,7 @@ UPB_INLINE bool google_protobuf_SourceCodeInfo_Location_add_span(google_protobuf |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__SourceCodeInfo__Location_msg_init(), 2); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -6228,7 +6228,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; |
|
|
|
@ -6243,7 +6243,7 @@ UPB_INLINE bool google_protobuf_SourceCodeInfo_Location_add_leading_detached_com |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__SourceCodeInfo__Location_msg_init(), 6); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -6297,7 +6297,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; |
|
|
|
@ -6326,7 +6326,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; |
|
|
|
@ -6341,7 +6341,7 @@ UPB_INLINE struct google_protobuf_GeneratedCodeInfo_Annotation* google_protobuf_ |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__GeneratedCodeInfo_msg_init(), 1); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
@ -6397,7 +6397,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; |
|
|
|
@ -6490,7 +6490,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; |
|
|
|
@ -6505,7 +6505,7 @@ UPB_INLINE bool google_protobuf_GeneratedCodeInfo_Annotation_add_path(google_pro |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__GeneratedCodeInfo__Annotation_msg_init(), 1); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
|