1 // Protocol Buffers - Google's data interchange format 2 // Copyright 2023 Google LLC. All rights reserved. 3 // 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file or at 6 // https://developers.google.com/open-source/licenses/bsd 7 8 #ifndef UPB_WIRE_INTERNAL_CONSTANTS_H_ 9 #define UPB_WIRE_INTERNAL_CONSTANTS_H_ 10 11 #define kUpb_WireFormat_DefaultDepthLimit 100 12 13 // MessageSet wire format is: 14 // message MessageSet { 15 // repeated group Item = 1 { 16 // required int32 type_id = 2; 17 // required bytes message = 3; 18 // } 19 // } 20 21 enum { 22 kUpb_MsgSet_Item = 1, 23 kUpb_MsgSet_TypeId = 2, 24 kUpb_MsgSet_Message = 3, 25 }; 26 27 #endif /* UPB_WIRE_INTERNAL_CONSTANTS_H_ */ 28