diff --git a/php/ext/google/protobuf/php-upb.c b/php/ext/google/protobuf/php-upb.c index d637a5852099..51d44d8694c1 100644 --- a/php/ext/google/protobuf/php-upb.c +++ b/php/ext/google/protobuf/php-upb.c @@ -13489,6 +13489,10 @@ upb_FieldType upb_FieldDef_Type(const upb_FieldDef* f) { uint32_t upb_FieldDef_Index(const upb_FieldDef* f) { return f->index_; } +uint32_t upb_FieldDef_LayoutIndex(const upb_FieldDef* f) { + return f->layout_index; +} + upb_Label upb_FieldDef_Label(const upb_FieldDef* f) { // TODO: remove once we can deprecate kUpb_Label_Required. if (UPB_DESC(FeatureSet_field_presence)(f->resolved_features) == diff --git a/php/ext/google/protobuf/php-upb.h b/php/ext/google/protobuf/php-upb.h index 663667c7ebdc..27e4fd206c48 100644 --- a/php/ext/google/protobuf/php-upb.h +++ b/php/ext/google/protobuf/php-upb.h @@ -11259,6 +11259,7 @@ bool upb_FieldDef_IsString(const upb_FieldDef* f); UPB_API bool upb_FieldDef_IsSubMessage(const upb_FieldDef* f); UPB_API const char* upb_FieldDef_JsonName(const upb_FieldDef* f); UPB_API upb_Label upb_FieldDef_Label(const upb_FieldDef* f); +uint32_t upb_FieldDef_LayoutIndex(const upb_FieldDef* f); UPB_API const upb_MessageDef* upb_FieldDef_MessageSubDef(const upb_FieldDef* f); bool _upb_FieldDef_ValidateUtf8(const upb_FieldDef* f); diff --git a/ruby/ext/google/protobuf_c/ruby-upb.c b/ruby/ext/google/protobuf_c/ruby-upb.c index 8cdd4c270af4..4f015970fba4 100644 --- a/ruby/ext/google/protobuf_c/ruby-upb.c +++ b/ruby/ext/google/protobuf_c/ruby-upb.c @@ -13003,6 +13003,10 @@ upb_FieldType upb_FieldDef_Type(const upb_FieldDef* f) { uint32_t upb_FieldDef_Index(const upb_FieldDef* f) { return f->index_; } +uint32_t upb_FieldDef_LayoutIndex(const upb_FieldDef* f) { + return f->layout_index; +} + upb_Label upb_FieldDef_Label(const upb_FieldDef* f) { // TODO: remove once we can deprecate kUpb_Label_Required. if (UPB_DESC(FeatureSet_field_presence)(f->resolved_features) == diff --git a/ruby/ext/google/protobuf_c/ruby-upb.h b/ruby/ext/google/protobuf_c/ruby-upb.h index b8647b98de50..d79920f2c0b3 100755 --- a/ruby/ext/google/protobuf_c/ruby-upb.h +++ b/ruby/ext/google/protobuf_c/ruby-upb.h @@ -11661,6 +11661,7 @@ bool upb_FieldDef_IsString(const upb_FieldDef* f); UPB_API bool upb_FieldDef_IsSubMessage(const upb_FieldDef* f); UPB_API const char* upb_FieldDef_JsonName(const upb_FieldDef* f); UPB_API upb_Label upb_FieldDef_Label(const upb_FieldDef* f); +uint32_t upb_FieldDef_LayoutIndex(const upb_FieldDef* f); UPB_API const upb_MessageDef* upb_FieldDef_MessageSubDef(const upb_FieldDef* f); bool _upb_FieldDef_ValidateUtf8(const upb_FieldDef* f);