Auto-generate files after cl/696640453

pull/19269/head
Protobuf Team Bot 2 weeks ago
parent 750912c86c
commit 251f5ee66e
  1. 16
      php/ext/google/protobuf/php-upb.h
  2. 16
      ruby/ext/google/protobuf_c/ruby-upb.h

@ -4285,6 +4285,19 @@ UPB_API_INLINE struct upb_Message* upb_Message_GetExtensionMessage(
return ret;
}
// Repeated
UPB_API_INLINE const upb_Array* upb_Message_GetExtensionArray(
const struct upb_Message* msg, const upb_MiniTableExtension* e) {
UPB_ASSUME(UPB_PRIVATE(_upb_MiniTableField_GetRep)(&e->UPB_PRIVATE(field)) ==
kUpb_FieldRep_NativePointer);
UPB_ASSUME(upb_MiniTableField_IsArray(&e->UPB_PRIVATE(field)));
UPB_ASSUME(e->UPB_PRIVATE(field).presence == 0);
upb_Array* ret;
const upb_Array* default_val = NULL;
_upb_Message_GetExtensionField(msg, e, &default_val, &ret);
return ret;
}
#ifdef __cplusplus
} /* extern "C" */
#endif
@ -4623,6 +4636,9 @@ UPB_API_INLINE upb_Message* upb_Message_GetExtensionMessage(
const upb_Message* msg, const upb_MiniTableExtension* f,
struct upb_Message* default_val);
UPB_API_INLINE const upb_Array* upb_Message_GetExtensionArray(
const upb_Message* msg, const upb_MiniTableExtension* f);
// Extension Setters ///////////////////////////////////////////////////////////
UPB_API_INLINE bool upb_Message_SetExtension(upb_Message* msg,

@ -4287,6 +4287,19 @@ UPB_API_INLINE struct upb_Message* upb_Message_GetExtensionMessage(
return ret;
}
// Repeated
UPB_API_INLINE const upb_Array* upb_Message_GetExtensionArray(
const struct upb_Message* msg, const upb_MiniTableExtension* e) {
UPB_ASSUME(UPB_PRIVATE(_upb_MiniTableField_GetRep)(&e->UPB_PRIVATE(field)) ==
kUpb_FieldRep_NativePointer);
UPB_ASSUME(upb_MiniTableField_IsArray(&e->UPB_PRIVATE(field)));
UPB_ASSUME(e->UPB_PRIVATE(field).presence == 0);
upb_Array* ret;
const upb_Array* default_val = NULL;
_upb_Message_GetExtensionField(msg, e, &default_val, &ret);
return ret;
}
#ifdef __cplusplus
} /* extern "C" */
#endif
@ -4625,6 +4638,9 @@ UPB_API_INLINE upb_Message* upb_Message_GetExtensionMessage(
const upb_Message* msg, const upb_MiniTableExtension* f,
struct upb_Message* default_val);
UPB_API_INLINE const upb_Array* upb_Message_GetExtensionArray(
const upb_Message* msg, const upb_MiniTableExtension* f);
// Extension Setters ///////////////////////////////////////////////////////////
UPB_API_INLINE bool upb_Message_SetExtension(upb_Message* msg,

Loading…
Cancel
Save