Skip to content

Commit

Permalink
Auto-generate files after cl/696346042
Browse files Browse the repository at this point in the history
  • Loading branch information
protobuf-team-bot committed Nov 14, 2024
1 parent 72111c3 commit f69ee66
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 14 deletions.
17 changes: 17 additions & 0 deletions csharp/src/Google.Protobuf/Reflection/FeatureSetDescriptor.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#region Copyright notice and license
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#endregion

namespace Google.Protobuf.Reflection;

internal sealed partial class FeatureSetDescriptor
{
// Canonical serialized form of the edition defaults, generated by embed_edition_defaults.
private const string DefaultsBase64 =
"ChMYhAciACoMCAEQAhgCIAMoATACChMY5wciACoMCAIQARgBIAIoATABChMY6AciDAgBEAEYASACKAEwASoAIOYHKOgH";
}
16 changes: 11 additions & 5 deletions php/ext/google/protobuf/php-upb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3603,13 +3603,19 @@ void upb_Array_Freeze(upb_Array* arr, const upb_MiniTable* m) {

// Must be last.

const upb_MiniTableExtension* upb_Message_ExtensionByIndex(
const upb_Message* msg, size_t index) {
bool upb_Message_NextExtension(const upb_Message* msg,
const upb_MiniTableExtension** result,
uintptr_t* iter) {
size_t count;
const upb_Extension* ext = UPB_PRIVATE(_upb_Message_Getexts)(msg, &count);

UPB_ASSERT(index < count);
return ext[index].ext;
size_t i = *iter;
if (i >= count) {
return false;
*result = NULL;
}
*result = ext[i].ext;
*iter = i + 1;
return true;
}

const upb_MiniTableExtension* upb_Message_FindExtensionByNumber(
Expand Down
6 changes: 4 additions & 2 deletions php/ext/google/protobuf/php-upb.h
Original file line number Diff line number Diff line change
Expand Up @@ -13571,9 +13571,11 @@ UPB_INLINE bool _upb_NonAtomic_CompareExchangeStrongP(void* addr,
extern "C" {
#endif

const upb_MiniTableExtension* upb_Message_ExtensionByIndex(
const upb_Message* msg, size_t index);
#define kUpb_Message_ExtensionBegin 0;

bool upb_Message_NextExtension(const upb_Message* msg,
const upb_MiniTableExtension** result,
uintptr_t* iter);
// Returns the minitable with the given field number, or NULL on failure.
const upb_MiniTableExtension* upb_Message_FindExtensionByNumber(
const upb_Message* msg, uint32_t field_number);
Expand Down
16 changes: 11 additions & 5 deletions ruby/ext/google/protobuf_c/ruby-upb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3603,13 +3603,19 @@ void upb_Array_Freeze(upb_Array* arr, const upb_MiniTable* m) {

// Must be last.

const upb_MiniTableExtension* upb_Message_ExtensionByIndex(
const upb_Message* msg, size_t index) {
bool upb_Message_NextExtension(const upb_Message* msg,
const upb_MiniTableExtension** result,
uintptr_t* iter) {
size_t count;
const upb_Extension* ext = UPB_PRIVATE(_upb_Message_Getexts)(msg, &count);

UPB_ASSERT(index < count);
return ext[index].ext;
size_t i = *iter;
if (i >= count) {
return false;
*result = NULL;
}
*result = ext[i].ext;
*iter = i + 1;
return true;
}

const upb_MiniTableExtension* upb_Message_FindExtensionByNumber(
Expand Down
6 changes: 4 additions & 2 deletions ruby/ext/google/protobuf_c/ruby-upb.h
Original file line number Diff line number Diff line change
Expand Up @@ -13573,9 +13573,11 @@ UPB_INLINE bool _upb_NonAtomic_CompareExchangeStrongP(void* addr,
extern "C" {
#endif

const upb_MiniTableExtension* upb_Message_ExtensionByIndex(
const upb_Message* msg, size_t index);
#define kUpb_Message_ExtensionBegin 0;

bool upb_Message_NextExtension(const upb_Message* msg,
const upb_MiniTableExtension** result,
uintptr_t* iter);
// Returns the minitable with the given field number, or NULL on failure.
const upb_MiniTableExtension* upb_Message_FindExtensionByNumber(
const upb_Message* msg, uint32_t field_number);
Expand Down

0 comments on commit f69ee66

Please sign in to comment.