Auto-generate files after cl/698010022

pull/19304/head
Protobuf Team Bot 3 weeks ago
parent cd837fd6bf
commit 347e0bb525
  1. 17
      csharp/src/Google.Protobuf/Reflection/FeatureSetDescriptor.g.cs
  2. 16
      php/ext/google/protobuf/php-upb.h
  3. 16
      ruby/ext/google/protobuf_c/ruby-upb.h

@ -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";
}

@ -4314,6 +4314,19 @@ UPB_API_INLINE const upb_Array* upb_Message_GetExtensionArray(
return ret; return ret;
} }
UPB_API_INLINE upb_Array* upb_Message_GetExtensionMutableArray(
struct upb_Message* msg, const upb_MiniTableExtension* e) {
UPB_ASSERT(!upb_Message_IsFrozen(msg));
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;
upb_Array* default_val = NULL;
_upb_Message_GetExtensionField(msg, e, &default_val, &ret);
return ret;
}
#ifdef __cplusplus #ifdef __cplusplus
} /* extern "C" */ } /* extern "C" */
#endif #endif
@ -4655,6 +4668,9 @@ UPB_API_INLINE upb_Message* upb_Message_GetExtensionMessage(
UPB_API_INLINE const upb_Array* upb_Message_GetExtensionArray( UPB_API_INLINE const upb_Array* upb_Message_GetExtensionArray(
const upb_Message* msg, const upb_MiniTableExtension* f); const upb_Message* msg, const upb_MiniTableExtension* f);
UPB_API_INLINE upb_Array* upb_Message_GetExtensionMutableArray(
upb_Message* msg, const upb_MiniTableExtension* f);
// Extension Setters /////////////////////////////////////////////////////////// // Extension Setters ///////////////////////////////////////////////////////////
UPB_API_INLINE bool upb_Message_SetExtension(upb_Message* msg, UPB_API_INLINE bool upb_Message_SetExtension(upb_Message* msg,

@ -4316,6 +4316,19 @@ UPB_API_INLINE const upb_Array* upb_Message_GetExtensionArray(
return ret; return ret;
} }
UPB_API_INLINE upb_Array* upb_Message_GetExtensionMutableArray(
struct upb_Message* msg, const upb_MiniTableExtension* e) {
UPB_ASSERT(!upb_Message_IsFrozen(msg));
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;
upb_Array* default_val = NULL;
_upb_Message_GetExtensionField(msg, e, &default_val, &ret);
return ret;
}
#ifdef __cplusplus #ifdef __cplusplus
} /* extern "C" */ } /* extern "C" */
#endif #endif
@ -4657,6 +4670,9 @@ UPB_API_INLINE upb_Message* upb_Message_GetExtensionMessage(
UPB_API_INLINE const upb_Array* upb_Message_GetExtensionArray( UPB_API_INLINE const upb_Array* upb_Message_GetExtensionArray(
const upb_Message* msg, const upb_MiniTableExtension* f); const upb_Message* msg, const upb_MiniTableExtension* f);
UPB_API_INLINE upb_Array* upb_Message_GetExtensionMutableArray(
upb_Message* msg, const upb_MiniTableExtension* f);
// Extension Setters /////////////////////////////////////////////////////////// // Extension Setters ///////////////////////////////////////////////////////////
UPB_API_INLINE bool upb_Message_SetExtension(upb_Message* msg, UPB_API_INLINE bool upb_Message_SetExtension(upb_Message* msg,

Loading…
Cancel
Save