@@ -9400,12 +9400,28 @@ UPB_INLINE bool google_protobuf_EnumValueOptions_has_debug_redact(const google_p
9400
9400
const upb_MiniTableField field = {3, UPB_SIZE(16, 10), 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
9401
9401
return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
9402
9402
}
9403
+ UPB_INLINE void google_protobuf_EnumValueOptions_clear_feature_support(google_protobuf_EnumValueOptions* msg) {
9404
+ const upb_MiniTableField field = {4, UPB_SIZE(20, 24), 67, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
9405
+ upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
9406
+ }
9407
+ UPB_INLINE const google_protobuf_FieldOptions_FeatureSupport* google_protobuf_EnumValueOptions_feature_support(const google_protobuf_EnumValueOptions* msg) {
9408
+ const google_protobuf_FieldOptions_FeatureSupport* default_val = NULL;
9409
+ const google_protobuf_FieldOptions_FeatureSupport* ret;
9410
+ const upb_MiniTableField field = {4, UPB_SIZE(20, 24), 67, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
9411
+ _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
9412
+ &default_val, &ret);
9413
+ return ret;
9414
+ }
9415
+ UPB_INLINE bool google_protobuf_EnumValueOptions_has_feature_support(const google_protobuf_EnumValueOptions* msg) {
9416
+ const upb_MiniTableField field = {4, UPB_SIZE(20, 24), 67, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
9417
+ return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
9418
+ }
9403
9419
UPB_INLINE void google_protobuf_EnumValueOptions_clear_uninterpreted_option(google_protobuf_EnumValueOptions* msg) {
9404
- const upb_MiniTableField field = {999, UPB_SIZE(20, 24 ), 0, 1 , 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
9420
+ const upb_MiniTableField field = {999, UPB_SIZE(24, 32 ), 0, 2 , 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
9405
9421
upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
9406
9422
}
9407
9423
UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_EnumValueOptions_uninterpreted_option(const google_protobuf_EnumValueOptions* msg, size_t* size) {
9408
- const upb_MiniTableField field = {999, UPB_SIZE(20, 24 ), 0, 1 , 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
9424
+ const upb_MiniTableField field = {999, UPB_SIZE(24, 32 ), 0, 2 , 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
9409
9425
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
9410
9426
if (arr) {
9411
9427
if (size) *size = arr->UPB_PRIVATE(size);
@@ -9416,15 +9432,15 @@ UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_Enu
9416
9432
}
9417
9433
}
9418
9434
UPB_INLINE const upb_Array* _google_protobuf_EnumValueOptions_uninterpreted_option_upb_array(const google_protobuf_EnumValueOptions* msg, size_t* size) {
9419
- const upb_MiniTableField field = {999, UPB_SIZE(20, 24 ), 0, 1 , 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
9435
+ const upb_MiniTableField field = {999, UPB_SIZE(24, 32 ), 0, 2 , 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
9420
9436
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field);
9421
9437
if (size) {
9422
9438
*size = arr ? arr->UPB_PRIVATE(size) : 0;
9423
9439
}
9424
9440
return arr;
9425
9441
}
9426
9442
UPB_INLINE upb_Array* _google_protobuf_EnumValueOptions_uninterpreted_option_mutable_upb_array(google_protobuf_EnumValueOptions* msg, size_t* size, upb_Arena* arena) {
9427
- const upb_MiniTableField field = {999, UPB_SIZE(20, 24 ), 0, 1 , 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
9443
+ const upb_MiniTableField field = {999, UPB_SIZE(24, 32 ), 0, 2 , 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
9428
9444
upb_Array* arr = upb_Message_GetOrCreateMutableArray(UPB_UPCAST(msg),
9429
9445
&field, arena);
9430
9446
if (size) {
@@ -9453,8 +9469,20 @@ UPB_INLINE void google_protobuf_EnumValueOptions_set_debug_redact(google_protobu
9453
9469
const upb_MiniTableField field = {3, UPB_SIZE(16, 10), 66, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)};
9454
9470
upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
9455
9471
}
9472
+ UPB_INLINE void google_protobuf_EnumValueOptions_set_feature_support(google_protobuf_EnumValueOptions *msg, google_protobuf_FieldOptions_FeatureSupport* value) {
9473
+ const upb_MiniTableField field = {4, UPB_SIZE(20, 24), 67, 1, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
9474
+ upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
9475
+ }
9476
+ UPB_INLINE struct google_protobuf_FieldOptions_FeatureSupport* google_protobuf_EnumValueOptions_mutable_feature_support(google_protobuf_EnumValueOptions* msg, upb_Arena* arena) {
9477
+ struct google_protobuf_FieldOptions_FeatureSupport* sub = (struct google_protobuf_FieldOptions_FeatureSupport*)google_protobuf_EnumValueOptions_feature_support(msg);
9478
+ if (sub == NULL) {
9479
+ sub = (struct google_protobuf_FieldOptions_FeatureSupport*)_upb_Message_New(&google__protobuf__FieldOptions__FeatureSupport_msg_init, arena);
9480
+ if (sub) google_protobuf_EnumValueOptions_set_feature_support(msg, sub);
9481
+ }
9482
+ return sub;
9483
+ }
9456
9484
UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_EnumValueOptions_mutable_uninterpreted_option(google_protobuf_EnumValueOptions* msg, size_t* size) {
9457
- upb_MiniTableField field = {999, UPB_SIZE(20, 24 ), 0, 1 , 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
9485
+ upb_MiniTableField field = {999, UPB_SIZE(24, 32 ), 0, 2 , 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
9458
9486
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field);
9459
9487
if (arr) {
9460
9488
if (size) *size = arr->UPB_PRIVATE(size);
@@ -9465,12 +9493,12 @@ UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_EnumValueOption
9465
9493
}
9466
9494
}
9467
9495
UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_EnumValueOptions_resize_uninterpreted_option(google_protobuf_EnumValueOptions* msg, size_t size, upb_Arena* arena) {
9468
- upb_MiniTableField field = {999, UPB_SIZE(20, 24 ), 0, 1 , 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
9496
+ upb_MiniTableField field = {999, UPB_SIZE(24, 32 ), 0, 2 , 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
9469
9497
return (google_protobuf_UninterpretedOption**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg),
9470
9498
&field, size, arena);
9471
9499
}
9472
9500
UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_EnumValueOptions_add_uninterpreted_option(google_protobuf_EnumValueOptions* msg, upb_Arena* arena) {
9473
- upb_MiniTableField field = {999, UPB_SIZE(20, 24 ), 0, 1 , 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
9501
+ upb_MiniTableField field = {999, UPB_SIZE(24, 32 ), 0, 2 , 11, (int)kUpb_FieldMode_Array | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
9474
9502
upb_Array* arr = upb_Message_GetOrCreateMutableArray(
9475
9503
UPB_UPCAST(msg), &field, arena);
9476
9504
if (!arr || !UPB_PRIVATE(_upb_Array_ResizeUninitialized)(
0 commit comments