Auto-generate files after cl/696258062

pull/19255/head
Protobuf Team Bot 2 months ago
parent e802d88cfe
commit 3e7719c393
  1. 8
      php/ext/google/protobuf/php-upb.c
  2. 2
      php/ext/google/protobuf/php-upb.h
  3. 8
      ruby/ext/google/protobuf_c/ruby-upb.c
  4. 2
      ruby/ext/google/protobuf_c/ruby-upb.h

@ -3944,6 +3944,14 @@ bool upb_Message_NextUnknown(const upb_Message* msg, upb_StringView* data,
return false;
}
bool upb_Message_HasUnknown(const upb_Message* msg) {
const upb_Message_Internal* in = UPB_PRIVATE(_upb_Message_GetInternal)(msg);
if (in) {
return in->unknown_end > message_overhead;
}
return false;
}
const char* upb_Message_GetUnknown(const upb_Message* msg, size_t* len) {
upb_Message_Internal* in = UPB_PRIVATE(_upb_Message_GetInternal)(msg);
if (in) {

@ -2403,6 +2403,8 @@ UPB_API upb_Message* upb_Message_New(const upb_MiniTable* m, upb_Arena* arena);
bool upb_Message_NextUnknown(const upb_Message* msg, upb_StringView* data,
uintptr_t* iter);
bool upb_Message_HasUnknown(const upb_Message* msg);
// Returns a reference to the message's unknown data.
const char* upb_Message_GetUnknown(const upb_Message* msg, size_t* len);

@ -3944,6 +3944,14 @@ bool upb_Message_NextUnknown(const upb_Message* msg, upb_StringView* data,
return false;
}
bool upb_Message_HasUnknown(const upb_Message* msg) {
const upb_Message_Internal* in = UPB_PRIVATE(_upb_Message_GetInternal)(msg);
if (in) {
return in->unknown_end > message_overhead;
}
return false;
}
const char* upb_Message_GetUnknown(const upb_Message* msg, size_t* len) {
upb_Message_Internal* in = UPB_PRIVATE(_upb_Message_GetInternal)(msg);
if (in) {

@ -2405,6 +2405,8 @@ UPB_API upb_Message* upb_Message_New(const upb_MiniTable* m, upb_Arena* arena);
bool upb_Message_NextUnknown(const upb_Message* msg, upb_StringView* data,
uintptr_t* iter);
bool upb_Message_HasUnknown(const upb_Message* msg);
// Returns a reference to the message's unknown data.
const char* upb_Message_GetUnknown(const upb_Message* msg, size_t* len);

Loading…
Cancel
Save