Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:13:17

0001 // Protocol Buffers - Google's data interchange format
0002 // Copyright 2023 Google LLC.  All rights reserved.
0003 //
0004 // Use of this source code is governed by a BSD-style
0005 // license that can be found in the LICENSE file or at
0006 // https://developers.google.com/open-source/licenses/bsd
0007 
0008 #ifndef UPB_MINI_DESCRIPTOR_INTERNAL_MODIFIERS_H_
0009 #define UPB_MINI_DESCRIPTOR_INTERNAL_MODIFIERS_H_
0010 
0011 // Must be last.
0012 #include "upb/port/def.inc"
0013 
0014 typedef enum {
0015   kUpb_FieldModifier_IsRepeated = 1 << 0,
0016   kUpb_FieldModifier_IsPacked = 1 << 1,
0017   kUpb_FieldModifier_IsClosedEnum = 1 << 2,
0018   kUpb_FieldModifier_IsProto3Singular = 1 << 3,
0019   kUpb_FieldModifier_IsRequired = 1 << 4,
0020   kUpb_FieldModifier_ValidateUtf8 = 1 << 5,
0021 } kUpb_FieldModifier;
0022 
0023 // These modifiers are also used on the wire.
0024 typedef enum {
0025   kUpb_MessageModifier_ValidateUtf8 = 1 << 0,
0026   kUpb_MessageModifier_DefaultIsPacked = 1 << 1,
0027   kUpb_MessageModifier_IsExtendable = 1 << 2,
0028 } kUpb_MessageModifier;
0029 
0030 #include "upb/port/undef.inc"
0031 
0032 #endif  // UPB_MINI_DESCRIPTOR_INTERNAL_MODIFIERS_H_