xref: /aosp_15_r20/external/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/MapUnittestProto3.cs (revision 1b3f573f81763fcece89efc2b6a5209149e44ab8)
1 // <auto-generated>
2 //     Generated by the protocol buffer compiler.  DO NOT EDIT!
3 //     source: map_unittest_proto3.proto
4 // </auto-generated>
5 #pragma warning disable 1591, 0612, 3021, 8981
6 #region Designer generated code
7 
8 using pb = global::Google.Protobuf;
9 using pbc = global::Google.Protobuf.Collections;
10 using pbr = global::Google.Protobuf.Reflection;
11 using scg = global::System.Collections.Generic;
12 namespace Google.Protobuf.TestProtos {
13 
14   /// <summary>Holder for reflection information generated from map_unittest_proto3.proto</summary>
15   public static partial class MapUnittestProto3Reflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for map_unittest_proto3.proto</summary>
19     public static pbr::FileDescriptor Descriptor {
20       get { return descriptor; }
21     }
22     private static pbr::FileDescriptor descriptor;
23 
MapUnittestProto3Reflection()24     static MapUnittestProto3Reflection() {
25       byte[] descriptorData = global::System.Convert.FromBase64String(
26           string.Concat(
27             "ChltYXBfdW5pdHRlc3RfcHJvdG8zLnByb3RvEhJwcm90b2J1Zl91bml0dGVz",
28             "dDMaFXVuaXR0ZXN0X3Byb3RvMy5wcm90byKpEgoHVGVzdE1hcBJHCg9tYXBf",
29             "aW50MzJfaW50MzIYASADKAsyLi5wcm90b2J1Zl91bml0dGVzdDMuVGVzdE1h",
30             "cC5NYXBJbnQzMkludDMyRW50cnkSRwoPbWFwX2ludDY0X2ludDY0GAIgAygL",
31             "Mi4ucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RNYXAuTWFwSW50NjRJbnQ2NEVu",
32             "dHJ5EksKEW1hcF91aW50MzJfdWludDMyGAMgAygLMjAucHJvdG9idWZfdW5p",
33             "dHRlc3QzLlRlc3RNYXAuTWFwVWludDMyVWludDMyRW50cnkSSwoRbWFwX3Vp",
34             "bnQ2NF91aW50NjQYBCADKAsyMC5wcm90b2J1Zl91bml0dGVzdDMuVGVzdE1h",
35             "cC5NYXBVaW50NjRVaW50NjRFbnRyeRJLChFtYXBfc2ludDMyX3NpbnQzMhgF",
36             "IAMoCzIwLnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0TWFwLk1hcFNpbnQzMlNp",
37             "bnQzMkVudHJ5EksKEW1hcF9zaW50NjRfc2ludDY0GAYgAygLMjAucHJvdG9i",
38             "dWZfdW5pdHRlc3QzLlRlc3RNYXAuTWFwU2ludDY0U2ludDY0RW50cnkSTwoT",
39             "bWFwX2ZpeGVkMzJfZml4ZWQzMhgHIAMoCzIyLnByb3RvYnVmX3VuaXR0ZXN0",
40             "My5UZXN0TWFwLk1hcEZpeGVkMzJGaXhlZDMyRW50cnkSTwoTbWFwX2ZpeGVk",
41             "NjRfZml4ZWQ2NBgIIAMoCzIyLnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0TWFw",
42             "Lk1hcEZpeGVkNjRGaXhlZDY0RW50cnkSUwoVbWFwX3NmaXhlZDMyX3NmaXhl",
43             "ZDMyGAkgAygLMjQucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RNYXAuTWFwU2Zp",
44             "eGVkMzJTZml4ZWQzMkVudHJ5ElMKFW1hcF9zZml4ZWQ2NF9zZml4ZWQ2NBgK",
45             "IAMoCzI0LnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0TWFwLk1hcFNmaXhlZDY0",
46             "U2ZpeGVkNjRFbnRyeRJHCg9tYXBfaW50MzJfZmxvYXQYCyADKAsyLi5wcm90",
47             "b2J1Zl91bml0dGVzdDMuVGVzdE1hcC5NYXBJbnQzMkZsb2F0RW50cnkSSQoQ",
48             "bWFwX2ludDMyX2RvdWJsZRgMIAMoCzIvLnByb3RvYnVmX3VuaXR0ZXN0My5U",
49             "ZXN0TWFwLk1hcEludDMyRG91YmxlRW50cnkSQwoNbWFwX2Jvb2xfYm9vbBgN",
50             "IAMoCzIsLnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0TWFwLk1hcEJvb2xCb29s",
51             "RW50cnkSSwoRbWFwX3N0cmluZ19zdHJpbmcYDiADKAsyMC5wcm90b2J1Zl91",
52             "bml0dGVzdDMuVGVzdE1hcC5NYXBTdHJpbmdTdHJpbmdFbnRyeRJHCg9tYXBf",
53             "aW50MzJfYnl0ZXMYDyADKAsyLi5wcm90b2J1Zl91bml0dGVzdDMuVGVzdE1h",
54             "cC5NYXBJbnQzMkJ5dGVzRW50cnkSRQoObWFwX2ludDMyX2VudW0YECADKAsy",
55             "LS5wcm90b2J1Zl91bml0dGVzdDMuVGVzdE1hcC5NYXBJbnQzMkVudW1FbnRy",
56             "eRJaChltYXBfaW50MzJfZm9yZWlnbl9tZXNzYWdlGBEgAygLMjcucHJvdG9i",
57             "dWZfdW5pdHRlc3QzLlRlc3RNYXAuTWFwSW50MzJGb3JlaWduTWVzc2FnZUVu",
58             "dHJ5GjQKEk1hcEludDMySW50MzJFbnRyeRILCgNrZXkYASABKAUSDQoFdmFs",
59             "dWUYAiABKAU6AjgBGjQKEk1hcEludDY0SW50NjRFbnRyeRILCgNrZXkYASAB",
60             "KAMSDQoFdmFsdWUYAiABKAM6AjgBGjYKFE1hcFVpbnQzMlVpbnQzMkVudHJ5",
61             "EgsKA2tleRgBIAEoDRINCgV2YWx1ZRgCIAEoDToCOAEaNgoUTWFwVWludDY0",
62             "VWludDY0RW50cnkSCwoDa2V5GAEgASgEEg0KBXZhbHVlGAIgASgEOgI4ARo2",
63             "ChRNYXBTaW50MzJTaW50MzJFbnRyeRILCgNrZXkYASABKBESDQoFdmFsdWUY",
64             "AiABKBE6AjgBGjYKFE1hcFNpbnQ2NFNpbnQ2NEVudHJ5EgsKA2tleRgBIAEo",
65             "EhINCgV2YWx1ZRgCIAEoEjoCOAEaOAoWTWFwRml4ZWQzMkZpeGVkMzJFbnRy",
66             "eRILCgNrZXkYASABKAcSDQoFdmFsdWUYAiABKAc6AjgBGjgKFk1hcEZpeGVk",
67             "NjRGaXhlZDY0RW50cnkSCwoDa2V5GAEgASgGEg0KBXZhbHVlGAIgASgGOgI4",
68             "ARo6ChhNYXBTZml4ZWQzMlNmaXhlZDMyRW50cnkSCwoDa2V5GAEgASgPEg0K",
69             "BXZhbHVlGAIgASgPOgI4ARo6ChhNYXBTZml4ZWQ2NFNmaXhlZDY0RW50cnkS",
70             "CwoDa2V5GAEgASgQEg0KBXZhbHVlGAIgASgQOgI4ARo0ChJNYXBJbnQzMkZs",
71             "b2F0RW50cnkSCwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgCOgI4ARo1ChNN",
72             "YXBJbnQzMkRvdWJsZUVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEo",
73             "AToCOAEaMgoQTWFwQm9vbEJvb2xFbnRyeRILCgNrZXkYASABKAgSDQoFdmFs",
74             "dWUYAiABKAg6AjgBGjYKFE1hcFN0cmluZ1N0cmluZ0VudHJ5EgsKA2tleRgB",
75             "IAEoCRINCgV2YWx1ZRgCIAEoCToCOAEaNAoSTWFwSW50MzJCeXRlc0VudHJ5",
76             "EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEoDDoCOAEaUAoRTWFwSW50MzJF",
77             "bnVtRW50cnkSCwoDa2V5GAEgASgFEioKBXZhbHVlGAIgASgOMhsucHJvdG9i",
78             "dWZfdW5pdHRlc3QzLk1hcEVudW06AjgBGmEKG01hcEludDMyRm9yZWlnbk1l",
79             "c3NhZ2VFbnRyeRILCgNrZXkYASABKAUSMQoFdmFsdWUYAiABKAsyIi5wcm90",
80             "b2J1Zl91bml0dGVzdDMuRm9yZWlnbk1lc3NhZ2U6AjgBIkIKEVRlc3RNYXBT",
81             "dWJtZXNzYWdlEi0KCHRlc3RfbWFwGAEgASgLMhsucHJvdG9idWZfdW5pdHRl",
82             "c3QzLlRlc3RNYXAivgEKDlRlc3RNZXNzYWdlTWFwElIKEW1hcF9pbnQzMl9t",
83             "ZXNzYWdlGAEgAygLMjcucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RNZXNzYWdl",
84             "TWFwLk1hcEludDMyTWVzc2FnZUVudHJ5GlgKFE1hcEludDMyTWVzc2FnZUVu",
85             "dHJ5EgsKA2tleRgBIAEoBRIvCgV2YWx1ZRgCIAEoCzIgLnByb3RvYnVmX3Vu",
86             "aXR0ZXN0My5UZXN0QWxsVHlwZXM6AjgBIuUBCg9UZXN0U2FtZVR5cGVNYXAS",
87             "OwoEbWFwMRgBIAMoCzItLnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0U2FtZVR5",
88             "cGVNYXAuTWFwMUVudHJ5EjsKBG1hcDIYAiADKAsyLS5wcm90b2J1Zl91bml0",
89             "dGVzdDMuVGVzdFNhbWVUeXBlTWFwLk1hcDJFbnRyeRorCglNYXAxRW50cnkS",
90             "CwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ARorCglNYXAyRW50cnkS",
91             "CwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ASL1EAoMVGVzdEFyZW5h",
92             "TWFwEkwKD21hcF9pbnQzMl9pbnQzMhgBIAMoCzIzLnByb3RvYnVmX3VuaXR0",
93             "ZXN0My5UZXN0QXJlbmFNYXAuTWFwSW50MzJJbnQzMkVudHJ5EkwKD21hcF9p",
94             "bnQ2NF9pbnQ2NBgCIAMoCzIzLnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0QXJl",
95             "bmFNYXAuTWFwSW50NjRJbnQ2NEVudHJ5ElAKEW1hcF91aW50MzJfdWludDMy",
96             "GAMgAygLMjUucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RBcmVuYU1hcC5NYXBV",
97             "aW50MzJVaW50MzJFbnRyeRJQChFtYXBfdWludDY0X3VpbnQ2NBgEIAMoCzI1",
98             "LnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0QXJlbmFNYXAuTWFwVWludDY0VWlu",
99             "dDY0RW50cnkSUAoRbWFwX3NpbnQzMl9zaW50MzIYBSADKAsyNS5wcm90b2J1",
100             "Zl91bml0dGVzdDMuVGVzdEFyZW5hTWFwLk1hcFNpbnQzMlNpbnQzMkVudHJ5",
101             "ElAKEW1hcF9zaW50NjRfc2ludDY0GAYgAygLMjUucHJvdG9idWZfdW5pdHRl",
102             "c3QzLlRlc3RBcmVuYU1hcC5NYXBTaW50NjRTaW50NjRFbnRyeRJUChNtYXBf",
103             "Zml4ZWQzMl9maXhlZDMyGAcgAygLMjcucHJvdG9idWZfdW5pdHRlc3QzLlRl",
104             "c3RBcmVuYU1hcC5NYXBGaXhlZDMyRml4ZWQzMkVudHJ5ElQKE21hcF9maXhl",
105             "ZDY0X2ZpeGVkNjQYCCADKAsyNy5wcm90b2J1Zl91bml0dGVzdDMuVGVzdEFy",
106             "ZW5hTWFwLk1hcEZpeGVkNjRGaXhlZDY0RW50cnkSWAoVbWFwX3NmaXhlZDMy",
107             "X3NmaXhlZDMyGAkgAygLMjkucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RBcmVu",
108             "YU1hcC5NYXBTZml4ZWQzMlNmaXhlZDMyRW50cnkSWAoVbWFwX3NmaXhlZDY0",
109             "X3NmaXhlZDY0GAogAygLMjkucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RBcmVu",
110             "YU1hcC5NYXBTZml4ZWQ2NFNmaXhlZDY0RW50cnkSTAoPbWFwX2ludDMyX2Zs",
111             "b2F0GAsgAygLMjMucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RBcmVuYU1hcC5N",
112             "YXBJbnQzMkZsb2F0RW50cnkSTgoQbWFwX2ludDMyX2RvdWJsZRgMIAMoCzI0",
113             "LnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0QXJlbmFNYXAuTWFwSW50MzJEb3Vi",
114             "bGVFbnRyeRJICg1tYXBfYm9vbF9ib29sGA0gAygLMjEucHJvdG9idWZfdW5p",
115             "dHRlc3QzLlRlc3RBcmVuYU1hcC5NYXBCb29sQm9vbEVudHJ5EkoKDm1hcF9p",
116             "bnQzMl9lbnVtGA4gAygLMjIucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RBcmVu",
117             "YU1hcC5NYXBJbnQzMkVudW1FbnRyeRJfChltYXBfaW50MzJfZm9yZWlnbl9t",
118             "ZXNzYWdlGA8gAygLMjwucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RBcmVuYU1h",
119             "cC5NYXBJbnQzMkZvcmVpZ25NZXNzYWdlRW50cnkaNAoSTWFwSW50MzJJbnQz",
120             "MkVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEoBToCOAEaNAoSTWFw",
121             "SW50NjRJbnQ2NEVudHJ5EgsKA2tleRgBIAEoAxINCgV2YWx1ZRgCIAEoAzoC",
122             "OAEaNgoUTWFwVWludDMyVWludDMyRW50cnkSCwoDa2V5GAEgASgNEg0KBXZh",
123             "bHVlGAIgASgNOgI4ARo2ChRNYXBVaW50NjRVaW50NjRFbnRyeRILCgNrZXkY",
124             "ASABKAQSDQoFdmFsdWUYAiABKAQ6AjgBGjYKFE1hcFNpbnQzMlNpbnQzMkVu",
125             "dHJ5EgsKA2tleRgBIAEoERINCgV2YWx1ZRgCIAEoEToCOAEaNgoUTWFwU2lu",
126             "dDY0U2ludDY0RW50cnkSCwoDa2V5GAEgASgSEg0KBXZhbHVlGAIgASgSOgI4",
127             "ARo4ChZNYXBGaXhlZDMyRml4ZWQzMkVudHJ5EgsKA2tleRgBIAEoBxINCgV2",
128             "YWx1ZRgCIAEoBzoCOAEaOAoWTWFwRml4ZWQ2NEZpeGVkNjRFbnRyeRILCgNr",
129             "ZXkYASABKAYSDQoFdmFsdWUYAiABKAY6AjgBGjoKGE1hcFNmaXhlZDMyU2Zp",
130             "eGVkMzJFbnRyeRILCgNrZXkYASABKA8SDQoFdmFsdWUYAiABKA86AjgBGjoK",
131             "GE1hcFNmaXhlZDY0U2ZpeGVkNjRFbnRyeRILCgNrZXkYASABKBASDQoFdmFs",
132             "dWUYAiABKBA6AjgBGjQKEk1hcEludDMyRmxvYXRFbnRyeRILCgNrZXkYASAB",
133             "KAUSDQoFdmFsdWUYAiABKAI6AjgBGjUKE01hcEludDMyRG91YmxlRW50cnkS",
134             "CwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgBOgI4ARoyChBNYXBCb29sQm9v",
135             "bEVudHJ5EgsKA2tleRgBIAEoCBINCgV2YWx1ZRgCIAEoCDoCOAEaUAoRTWFw",
136             "SW50MzJFbnVtRW50cnkSCwoDa2V5GAEgASgFEioKBXZhbHVlGAIgASgOMhsu",
137             "cHJvdG9idWZfdW5pdHRlc3QzLk1hcEVudW06AjgBGmEKG01hcEludDMyRm9y",
138             "ZWlnbk1lc3NhZ2VFbnRyeRILCgNrZXkYASABKAUSMQoFdmFsdWUYAiABKAsy",
139             "Ii5wcm90b2J1Zl91bml0dGVzdDMuRm9yZWlnbk1lc3NhZ2U6AjgBIuYBCh9N",
140             "ZXNzYWdlQ29udGFpbmluZ0VudW1DYWxsZWRUeXBlEksKBHR5cGUYASADKAsy",
141             "PS5wcm90b2J1Zl91bml0dGVzdDMuTWVzc2FnZUNvbnRhaW5pbmdFbnVtQ2Fs",
142             "bGVkVHlwZS5UeXBlRW50cnkaYAoJVHlwZUVudHJ5EgsKA2tleRgBIAEoBRJC",
143             "CgV2YWx1ZRgCIAEoCzIzLnByb3RvYnVmX3VuaXR0ZXN0My5NZXNzYWdlQ29u",
144             "dGFpbmluZ0VudW1DYWxsZWRUeXBlOgI4ASIUCgRUeXBlEgwKCFRZUEVfRk9P",
145             "EAAingEKH01lc3NhZ2VDb250YWluaW5nTWFwQ2FsbGVkRW50cnkSTQoFZW50",
146             "cnkYASADKAsyPi5wcm90b2J1Zl91bml0dGVzdDMuTWVzc2FnZUNvbnRhaW5p",
147             "bmdNYXBDYWxsZWRFbnRyeS5FbnRyeUVudHJ5GiwKCkVudHJ5RW50cnkSCwoD",
148             "a2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ASo/CgdNYXBFbnVtEhAKDE1B",
149             "UF9FTlVNX0ZPTxAAEhAKDE1BUF9FTlVNX0JBUhABEhAKDE1BUF9FTlVNX0JB",
150             "WhACQh2qAhpHb29nbGUuUHJvdG9idWYuVGVzdFByb3Rvc2IGcHJvdG8z"));
151       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
152           new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor, },
153           new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.TestProtos.MapEnum), }, null, new pbr::GeneratedClrTypeInfo[] {
154             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMap), global::Google.Protobuf.TestProtos.TestMap.Parser, new[]{ "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapStringString", "MapInt32Bytes", "MapInt32Enum", "MapInt32ForeignMessage" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, }),
155             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMapSubmessage), global::Google.Protobuf.TestProtos.TestMapSubmessage.Parser, new[]{ "TestMap" }, null, null, null, null),
156             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMessageMap), global::Google.Protobuf.TestProtos.TestMessageMap.Parser, new[]{ "MapInt32Message" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
157             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestSameTypeMap), global::Google.Protobuf.TestProtos.TestSameTypeMap.Parser, new[]{ "Map1", "Map2" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }),
158             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestArenaMap), global::Google.Protobuf.TestProtos.TestArenaMap.Parser, new[]{ "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapInt32Enum", "MapInt32ForeignMessage" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, }),
159             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType), global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType.Parser, new[]{ "Type" }, null, new[]{ typeof(global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType.Types.Type) }, null, new pbr::GeneratedClrTypeInfo[] { null, }),
160             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.MessageContainingMapCalledEntry), global::Google.Protobuf.TestProtos.MessageContainingMapCalledEntry.Parser, new[]{ "Entry" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
161           }));
162     }
163     #endregion
164 
165   }
166   #region Enums
167   public enum MapEnum {
168     [pbr::OriginalName("MAP_ENUM_FOO")] Foo = 0,
169     [pbr::OriginalName("MAP_ENUM_BAR")] Bar = 1,
170     [pbr::OriginalName("MAP_ENUM_BAZ")] Baz = 2,
171   }
172 
173   #endregion
174 
175   #region Messages
176   /// <summary>
177   /// Tests maps.
178   /// </summary>
179   public sealed partial class TestMap : pb::IMessage<TestMap>
180   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
181       , pb::IBufferMessage
182   #endif
183   {
184     private static readonly pb::MessageParser<TestMap> _parser = new pb::MessageParser<TestMap>(() => new TestMap());
185     private pb::UnknownFieldSet _unknownFields;
186     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
187     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
188     public static pb::MessageParser<TestMap> Parser { get { return _parser; } }
189 
190     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
191     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
192     public static pbr::MessageDescriptor Descriptor {
193       get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[0]; }
194     }
195 
196     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
197     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
198     pbr::MessageDescriptor pb::IMessage.Descriptor {
199       get { return Descriptor; }
200     }
201 
202     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
203     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestMap()204     public TestMap() {
205       OnConstruction();
206     }
207 
OnConstruction()208     partial void OnConstruction();
209 
210     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
211     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestMap(TestMap other)212     public TestMap(TestMap other) : this() {
213       mapInt32Int32_ = other.mapInt32Int32_.Clone();
214       mapInt64Int64_ = other.mapInt64Int64_.Clone();
215       mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
216       mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
217       mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
218       mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
219       mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
220       mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
221       mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
222       mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
223       mapInt32Float_ = other.mapInt32Float_.Clone();
224       mapInt32Double_ = other.mapInt32Double_.Clone();
225       mapBoolBool_ = other.mapBoolBool_.Clone();
226       mapStringString_ = other.mapStringString_.Clone();
227       mapInt32Bytes_ = other.mapInt32Bytes_.Clone();
228       mapInt32Enum_ = other.mapInt32Enum_.Clone();
229       mapInt32ForeignMessage_ = other.mapInt32ForeignMessage_.Clone();
230       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
231     }
232 
233     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
234     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()235     public TestMap Clone() {
236       return new TestMap(this);
237     }
238 
239     /// <summary>Field number for the "map_int32_int32" field.</summary>
240     public const int MapInt32Int32FieldNumber = 1;
241     private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
242         = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 10);
243     private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
244     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
245     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
246     public pbc::MapField<int, int> MapInt32Int32 {
247       get { return mapInt32Int32_; }
248     }
249 
250     /// <summary>Field number for the "map_int64_int64" field.</summary>
251     public const int MapInt64Int64FieldNumber = 2;
252     private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
253         = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8, 0L), pb::FieldCodec.ForInt64(16, 0L), 18);
254     private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
255     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
256     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
257     public pbc::MapField<long, long> MapInt64Int64 {
258       get { return mapInt64Int64_; }
259     }
260 
261     /// <summary>Field number for the "map_uint32_uint32" field.</summary>
262     public const int MapUint32Uint32FieldNumber = 3;
263     private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
264         = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 26);
265     private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>();
266     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
267     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
268     public pbc::MapField<uint, uint> MapUint32Uint32 {
269       get { return mapUint32Uint32_; }
270     }
271 
272     /// <summary>Field number for the "map_uint64_uint64" field.</summary>
273     public const int MapUint64Uint64FieldNumber = 4;
274     private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec
275         = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8, 0UL), pb::FieldCodec.ForUInt64(16, 0UL), 34);
276     private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>();
277     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
278     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
279     public pbc::MapField<ulong, ulong> MapUint64Uint64 {
280       get { return mapUint64Uint64_; }
281     }
282 
283     /// <summary>Field number for the "map_sint32_sint32" field.</summary>
284     public const int MapSint32Sint32FieldNumber = 5;
285     private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec
286         = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8, 0), pb::FieldCodec.ForSInt32(16, 0), 42);
287     private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>();
288     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
289     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
290     public pbc::MapField<int, int> MapSint32Sint32 {
291       get { return mapSint32Sint32_; }
292     }
293 
294     /// <summary>Field number for the "map_sint64_sint64" field.</summary>
295     public const int MapSint64Sint64FieldNumber = 6;
296     private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec
297         = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8, 0L), pb::FieldCodec.ForSInt64(16, 0L), 50);
298     private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>();
299     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
300     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
301     public pbc::MapField<long, long> MapSint64Sint64 {
302       get { return mapSint64Sint64_; }
303     }
304 
305     /// <summary>Field number for the "map_fixed32_fixed32" field.</summary>
306     public const int MapFixed32Fixed32FieldNumber = 7;
307     private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec
308         = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13, 0), pb::FieldCodec.ForFixed32(21, 0), 58);
309     private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>();
310     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
311     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
312     public pbc::MapField<uint, uint> MapFixed32Fixed32 {
313       get { return mapFixed32Fixed32_; }
314     }
315 
316     /// <summary>Field number for the "map_fixed64_fixed64" field.</summary>
317     public const int MapFixed64Fixed64FieldNumber = 8;
318     private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec
319         = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9, 0UL), pb::FieldCodec.ForFixed64(17, 0UL), 66);
320     private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>();
321     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
322     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
323     public pbc::MapField<ulong, ulong> MapFixed64Fixed64 {
324       get { return mapFixed64Fixed64_; }
325     }
326 
327     /// <summary>Field number for the "map_sfixed32_sfixed32" field.</summary>
328     public const int MapSfixed32Sfixed32FieldNumber = 9;
329     private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec
330         = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13, 0), pb::FieldCodec.ForSFixed32(21, 0), 74);
331     private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>();
332     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
333     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
334     public pbc::MapField<int, int> MapSfixed32Sfixed32 {
335       get { return mapSfixed32Sfixed32_; }
336     }
337 
338     /// <summary>Field number for the "map_sfixed64_sfixed64" field.</summary>
339     public const int MapSfixed64Sfixed64FieldNumber = 10;
340     private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec
341         = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9, 0L), pb::FieldCodec.ForSFixed64(17, 0L), 82);
342     private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>();
343     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
344     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
345     public pbc::MapField<long, long> MapSfixed64Sfixed64 {
346       get { return mapSfixed64Sfixed64_; }
347     }
348 
349     /// <summary>Field number for the "map_int32_float" field.</summary>
350     public const int MapInt32FloatFieldNumber = 11;
351     private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec
352         = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForFloat(21, 0F), 90);
353     private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>();
354     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
355     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
356     public pbc::MapField<int, float> MapInt32Float {
357       get { return mapInt32Float_; }
358     }
359 
360     /// <summary>Field number for the "map_int32_double" field.</summary>
361     public const int MapInt32DoubleFieldNumber = 12;
362     private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec
363         = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForDouble(17, 0D), 98);
364     private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>();
365     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
366     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
367     public pbc::MapField<int, double> MapInt32Double {
368       get { return mapInt32Double_; }
369     }
370 
371     /// <summary>Field number for the "map_bool_bool" field.</summary>
372     public const int MapBoolBoolFieldNumber = 13;
373     private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec
374         = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8, false), pb::FieldCodec.ForBool(16, false), 106);
375     private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>();
376     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
377     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
378     public pbc::MapField<bool, bool> MapBoolBool {
379       get { return mapBoolBool_; }
380     }
381 
382     /// <summary>Field number for the "map_string_string" field.</summary>
383     public const int MapStringStringFieldNumber = 14;
384     private static readonly pbc::MapField<string, string>.Codec _map_mapStringString_codec
385         = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 114);
386     private readonly pbc::MapField<string, string> mapStringString_ = new pbc::MapField<string, string>();
387     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
388     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
389     public pbc::MapField<string, string> MapStringString {
390       get { return mapStringString_; }
391     }
392 
393     /// <summary>Field number for the "map_int32_bytes" field.</summary>
394     public const int MapInt32BytesFieldNumber = 15;
395     private static readonly pbc::MapField<int, pb::ByteString>.Codec _map_mapInt32Bytes_codec
396         = new pbc::MapField<int, pb::ByteString>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForBytes(18, pb::ByteString.Empty), 122);
397     private readonly pbc::MapField<int, pb::ByteString> mapInt32Bytes_ = new pbc::MapField<int, pb::ByteString>();
398     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
399     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
400     public pbc::MapField<int, pb::ByteString> MapInt32Bytes {
401       get { return mapInt32Bytes_; }
402     }
403 
404     /// <summary>Field number for the "map_int32_enum" field.</summary>
405     public const int MapInt32EnumFieldNumber = 16;
406     private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec _map_mapInt32Enum_codec
407         = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Google.Protobuf.TestProtos.MapEnum) x, global::Google.Protobuf.TestProtos.MapEnum.Foo), 130);
408     private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> mapInt32Enum_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>();
409     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
410     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
411     public pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> MapInt32Enum {
412       get { return mapInt32Enum_; }
413     }
414 
415     /// <summary>Field number for the "map_int32_foreign_message" field.</summary>
416     public const int MapInt32ForeignMessageFieldNumber = 17;
417     private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec _map_mapInt32ForeignMessage_codec
418         = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.ForeignMessage.Parser), 138);
419     private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> mapInt32ForeignMessage_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>();
420     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
421     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
422     public pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> MapInt32ForeignMessage {
423       get { return mapInt32ForeignMessage_; }
424     }
425 
426     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
427     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)428     public override bool Equals(object other) {
429       return Equals(other as TestMap);
430     }
431 
432     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
433     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestMap other)434     public bool Equals(TestMap other) {
435       if (ReferenceEquals(other, null)) {
436         return false;
437       }
438       if (ReferenceEquals(other, this)) {
439         return true;
440       }
441       if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
442       if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
443       if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
444       if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
445       if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
446       if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
447       if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
448       if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
449       if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
450       if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
451       if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
452       if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
453       if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
454       if (!MapStringString.Equals(other.MapStringString)) return false;
455       if (!MapInt32Bytes.Equals(other.MapInt32Bytes)) return false;
456       if (!MapInt32Enum.Equals(other.MapInt32Enum)) return false;
457       if (!MapInt32ForeignMessage.Equals(other.MapInt32ForeignMessage)) return false;
458       return Equals(_unknownFields, other._unknownFields);
459     }
460 
461     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
462     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()463     public override int GetHashCode() {
464       int hash = 1;
465       hash ^= MapInt32Int32.GetHashCode();
466       hash ^= MapInt64Int64.GetHashCode();
467       hash ^= MapUint32Uint32.GetHashCode();
468       hash ^= MapUint64Uint64.GetHashCode();
469       hash ^= MapSint32Sint32.GetHashCode();
470       hash ^= MapSint64Sint64.GetHashCode();
471       hash ^= MapFixed32Fixed32.GetHashCode();
472       hash ^= MapFixed64Fixed64.GetHashCode();
473       hash ^= MapSfixed32Sfixed32.GetHashCode();
474       hash ^= MapSfixed64Sfixed64.GetHashCode();
475       hash ^= MapInt32Float.GetHashCode();
476       hash ^= MapInt32Double.GetHashCode();
477       hash ^= MapBoolBool.GetHashCode();
478       hash ^= MapStringString.GetHashCode();
479       hash ^= MapInt32Bytes.GetHashCode();
480       hash ^= MapInt32Enum.GetHashCode();
481       hash ^= MapInt32ForeignMessage.GetHashCode();
482       if (_unknownFields != null) {
483         hash ^= _unknownFields.GetHashCode();
484       }
485       return hash;
486     }
487 
488     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
489     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()490     public override string ToString() {
491       return pb::JsonFormatter.ToDiagnosticString(this);
492     }
493 
494     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
495     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)496     public void WriteTo(pb::CodedOutputStream output) {
497     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
498       output.WriteRawMessage(this);
499     #else
500       mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
501       mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
502       mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec);
503       mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec);
504       mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec);
505       mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec);
506       mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec);
507       mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec);
508       mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec);
509       mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec);
510       mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec);
511       mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec);
512       mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec);
513       mapStringString_.WriteTo(output, _map_mapStringString_codec);
514       mapInt32Bytes_.WriteTo(output, _map_mapInt32Bytes_codec);
515       mapInt32Enum_.WriteTo(output, _map_mapInt32Enum_codec);
516       mapInt32ForeignMessage_.WriteTo(output, _map_mapInt32ForeignMessage_codec);
517       if (_unknownFields != null) {
518         _unknownFields.WriteTo(output);
519       }
520     #endif
521     }
522 
523     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
524     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
525     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)526     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
527       mapInt32Int32_.WriteTo(ref output, _map_mapInt32Int32_codec);
528       mapInt64Int64_.WriteTo(ref output, _map_mapInt64Int64_codec);
529       mapUint32Uint32_.WriteTo(ref output, _map_mapUint32Uint32_codec);
530       mapUint64Uint64_.WriteTo(ref output, _map_mapUint64Uint64_codec);
531       mapSint32Sint32_.WriteTo(ref output, _map_mapSint32Sint32_codec);
532       mapSint64Sint64_.WriteTo(ref output, _map_mapSint64Sint64_codec);
533       mapFixed32Fixed32_.WriteTo(ref output, _map_mapFixed32Fixed32_codec);
534       mapFixed64Fixed64_.WriteTo(ref output, _map_mapFixed64Fixed64_codec);
535       mapSfixed32Sfixed32_.WriteTo(ref output, _map_mapSfixed32Sfixed32_codec);
536       mapSfixed64Sfixed64_.WriteTo(ref output, _map_mapSfixed64Sfixed64_codec);
537       mapInt32Float_.WriteTo(ref output, _map_mapInt32Float_codec);
538       mapInt32Double_.WriteTo(ref output, _map_mapInt32Double_codec);
539       mapBoolBool_.WriteTo(ref output, _map_mapBoolBool_codec);
540       mapStringString_.WriteTo(ref output, _map_mapStringString_codec);
541       mapInt32Bytes_.WriteTo(ref output, _map_mapInt32Bytes_codec);
542       mapInt32Enum_.WriteTo(ref output, _map_mapInt32Enum_codec);
543       mapInt32ForeignMessage_.WriteTo(ref output, _map_mapInt32ForeignMessage_codec);
544       if (_unknownFields != null) {
545         _unknownFields.WriteTo(ref output);
546       }
547     }
548     #endif
549 
550     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
551     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()552     public int CalculateSize() {
553       int size = 0;
554       size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec);
555       size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec);
556       size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec);
557       size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec);
558       size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec);
559       size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec);
560       size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec);
561       size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec);
562       size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec);
563       size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec);
564       size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec);
565       size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec);
566       size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec);
567       size += mapStringString_.CalculateSize(_map_mapStringString_codec);
568       size += mapInt32Bytes_.CalculateSize(_map_mapInt32Bytes_codec);
569       size += mapInt32Enum_.CalculateSize(_map_mapInt32Enum_codec);
570       size += mapInt32ForeignMessage_.CalculateSize(_map_mapInt32ForeignMessage_codec);
571       if (_unknownFields != null) {
572         size += _unknownFields.CalculateSize();
573       }
574       return size;
575     }
576 
577     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
578     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestMap other)579     public void MergeFrom(TestMap other) {
580       if (other == null) {
581         return;
582       }
583       mapInt32Int32_.Add(other.mapInt32Int32_);
584       mapInt64Int64_.Add(other.mapInt64Int64_);
585       mapUint32Uint32_.Add(other.mapUint32Uint32_);
586       mapUint64Uint64_.Add(other.mapUint64Uint64_);
587       mapSint32Sint32_.Add(other.mapSint32Sint32_);
588       mapSint64Sint64_.Add(other.mapSint64Sint64_);
589       mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_);
590       mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_);
591       mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_);
592       mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_);
593       mapInt32Float_.Add(other.mapInt32Float_);
594       mapInt32Double_.Add(other.mapInt32Double_);
595       mapBoolBool_.Add(other.mapBoolBool_);
596       mapStringString_.Add(other.mapStringString_);
597       mapInt32Bytes_.Add(other.mapInt32Bytes_);
598       mapInt32Enum_.Add(other.mapInt32Enum_);
599       mapInt32ForeignMessage_.Add(other.mapInt32ForeignMessage_);
600       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
601     }
602 
603     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
604     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)605     public void MergeFrom(pb::CodedInputStream input) {
606     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
607       input.ReadRawMessage(this);
608     #else
609       uint tag;
610       while ((tag = input.ReadTag()) != 0) {
611         switch(tag) {
612           default:
613             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
614             break;
615           case 10: {
616             mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec);
617             break;
618           }
619           case 18: {
620             mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec);
621             break;
622           }
623           case 26: {
624             mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec);
625             break;
626           }
627           case 34: {
628             mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec);
629             break;
630           }
631           case 42: {
632             mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec);
633             break;
634           }
635           case 50: {
636             mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec);
637             break;
638           }
639           case 58: {
640             mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec);
641             break;
642           }
643           case 66: {
644             mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec);
645             break;
646           }
647           case 74: {
648             mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec);
649             break;
650           }
651           case 82: {
652             mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec);
653             break;
654           }
655           case 90: {
656             mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec);
657             break;
658           }
659           case 98: {
660             mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec);
661             break;
662           }
663           case 106: {
664             mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec);
665             break;
666           }
667           case 114: {
668             mapStringString_.AddEntriesFrom(input, _map_mapStringString_codec);
669             break;
670           }
671           case 122: {
672             mapInt32Bytes_.AddEntriesFrom(input, _map_mapInt32Bytes_codec);
673             break;
674           }
675           case 130: {
676             mapInt32Enum_.AddEntriesFrom(input, _map_mapInt32Enum_codec);
677             break;
678           }
679           case 138: {
680             mapInt32ForeignMessage_.AddEntriesFrom(input, _map_mapInt32ForeignMessage_codec);
681             break;
682           }
683         }
684       }
685     #endif
686     }
687 
688     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
689     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
690     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)691     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
692       uint tag;
693       while ((tag = input.ReadTag()) != 0) {
694         switch(tag) {
695           default:
696             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
697             break;
698           case 10: {
699             mapInt32Int32_.AddEntriesFrom(ref input, _map_mapInt32Int32_codec);
700             break;
701           }
702           case 18: {
703             mapInt64Int64_.AddEntriesFrom(ref input, _map_mapInt64Int64_codec);
704             break;
705           }
706           case 26: {
707             mapUint32Uint32_.AddEntriesFrom(ref input, _map_mapUint32Uint32_codec);
708             break;
709           }
710           case 34: {
711             mapUint64Uint64_.AddEntriesFrom(ref input, _map_mapUint64Uint64_codec);
712             break;
713           }
714           case 42: {
715             mapSint32Sint32_.AddEntriesFrom(ref input, _map_mapSint32Sint32_codec);
716             break;
717           }
718           case 50: {
719             mapSint64Sint64_.AddEntriesFrom(ref input, _map_mapSint64Sint64_codec);
720             break;
721           }
722           case 58: {
723             mapFixed32Fixed32_.AddEntriesFrom(ref input, _map_mapFixed32Fixed32_codec);
724             break;
725           }
726           case 66: {
727             mapFixed64Fixed64_.AddEntriesFrom(ref input, _map_mapFixed64Fixed64_codec);
728             break;
729           }
730           case 74: {
731             mapSfixed32Sfixed32_.AddEntriesFrom(ref input, _map_mapSfixed32Sfixed32_codec);
732             break;
733           }
734           case 82: {
735             mapSfixed64Sfixed64_.AddEntriesFrom(ref input, _map_mapSfixed64Sfixed64_codec);
736             break;
737           }
738           case 90: {
739             mapInt32Float_.AddEntriesFrom(ref input, _map_mapInt32Float_codec);
740             break;
741           }
742           case 98: {
743             mapInt32Double_.AddEntriesFrom(ref input, _map_mapInt32Double_codec);
744             break;
745           }
746           case 106: {
747             mapBoolBool_.AddEntriesFrom(ref input, _map_mapBoolBool_codec);
748             break;
749           }
750           case 114: {
751             mapStringString_.AddEntriesFrom(ref input, _map_mapStringString_codec);
752             break;
753           }
754           case 122: {
755             mapInt32Bytes_.AddEntriesFrom(ref input, _map_mapInt32Bytes_codec);
756             break;
757           }
758           case 130: {
759             mapInt32Enum_.AddEntriesFrom(ref input, _map_mapInt32Enum_codec);
760             break;
761           }
762           case 138: {
763             mapInt32ForeignMessage_.AddEntriesFrom(ref input, _map_mapInt32ForeignMessage_codec);
764             break;
765           }
766         }
767       }
768     }
769     #endif
770 
771   }
772 
773   public sealed partial class TestMapSubmessage : pb::IMessage<TestMapSubmessage>
774   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
775       , pb::IBufferMessage
776   #endif
777   {
778     private static readonly pb::MessageParser<TestMapSubmessage> _parser = new pb::MessageParser<TestMapSubmessage>(() => new TestMapSubmessage());
779     private pb::UnknownFieldSet _unknownFields;
780     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
781     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
782     public static pb::MessageParser<TestMapSubmessage> Parser { get { return _parser; } }
783 
784     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
785     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
786     public static pbr::MessageDescriptor Descriptor {
787       get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[1]; }
788     }
789 
790     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
791     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
792     pbr::MessageDescriptor pb::IMessage.Descriptor {
793       get { return Descriptor; }
794     }
795 
796     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
797     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestMapSubmessage()798     public TestMapSubmessage() {
799       OnConstruction();
800     }
801 
OnConstruction()802     partial void OnConstruction();
803 
804     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
805     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestMapSubmessage(TestMapSubmessage other)806     public TestMapSubmessage(TestMapSubmessage other) : this() {
807       testMap_ = other.testMap_ != null ? other.testMap_.Clone() : null;
808       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
809     }
810 
811     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
812     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()813     public TestMapSubmessage Clone() {
814       return new TestMapSubmessage(this);
815     }
816 
817     /// <summary>Field number for the "test_map" field.</summary>
818     public const int TestMapFieldNumber = 1;
819     private global::Google.Protobuf.TestProtos.TestMap testMap_;
820     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
821     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
822     public global::Google.Protobuf.TestProtos.TestMap TestMap {
823       get { return testMap_; }
824       set {
825         testMap_ = value;
826       }
827     }
828 
829     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
830     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)831     public override bool Equals(object other) {
832       return Equals(other as TestMapSubmessage);
833     }
834 
835     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
836     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestMapSubmessage other)837     public bool Equals(TestMapSubmessage other) {
838       if (ReferenceEquals(other, null)) {
839         return false;
840       }
841       if (ReferenceEquals(other, this)) {
842         return true;
843       }
844       if (!object.Equals(TestMap, other.TestMap)) return false;
845       return Equals(_unknownFields, other._unknownFields);
846     }
847 
848     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
849     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()850     public override int GetHashCode() {
851       int hash = 1;
852       if (testMap_ != null) hash ^= TestMap.GetHashCode();
853       if (_unknownFields != null) {
854         hash ^= _unknownFields.GetHashCode();
855       }
856       return hash;
857     }
858 
859     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
860     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()861     public override string ToString() {
862       return pb::JsonFormatter.ToDiagnosticString(this);
863     }
864 
865     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
866     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)867     public void WriteTo(pb::CodedOutputStream output) {
868     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
869       output.WriteRawMessage(this);
870     #else
871       if (testMap_ != null) {
872         output.WriteRawTag(10);
873         output.WriteMessage(TestMap);
874       }
875       if (_unknownFields != null) {
876         _unknownFields.WriteTo(output);
877       }
878     #endif
879     }
880 
881     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
882     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
883     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)884     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
885       if (testMap_ != null) {
886         output.WriteRawTag(10);
887         output.WriteMessage(TestMap);
888       }
889       if (_unknownFields != null) {
890         _unknownFields.WriteTo(ref output);
891       }
892     }
893     #endif
894 
895     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
896     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()897     public int CalculateSize() {
898       int size = 0;
899       if (testMap_ != null) {
900         size += 1 + pb::CodedOutputStream.ComputeMessageSize(TestMap);
901       }
902       if (_unknownFields != null) {
903         size += _unknownFields.CalculateSize();
904       }
905       return size;
906     }
907 
908     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
909     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestMapSubmessage other)910     public void MergeFrom(TestMapSubmessage other) {
911       if (other == null) {
912         return;
913       }
914       if (other.testMap_ != null) {
915         if (testMap_ == null) {
916           TestMap = new global::Google.Protobuf.TestProtos.TestMap();
917         }
918         TestMap.MergeFrom(other.TestMap);
919       }
920       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
921     }
922 
923     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
924     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)925     public void MergeFrom(pb::CodedInputStream input) {
926     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
927       input.ReadRawMessage(this);
928     #else
929       uint tag;
930       while ((tag = input.ReadTag()) != 0) {
931         switch(tag) {
932           default:
933             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
934             break;
935           case 10: {
936             if (testMap_ == null) {
937               TestMap = new global::Google.Protobuf.TestProtos.TestMap();
938             }
939             input.ReadMessage(TestMap);
940             break;
941           }
942         }
943       }
944     #endif
945     }
946 
947     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
948     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
949     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)950     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
951       uint tag;
952       while ((tag = input.ReadTag()) != 0) {
953         switch(tag) {
954           default:
955             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
956             break;
957           case 10: {
958             if (testMap_ == null) {
959               TestMap = new global::Google.Protobuf.TestProtos.TestMap();
960             }
961             input.ReadMessage(TestMap);
962             break;
963           }
964         }
965       }
966     }
967     #endif
968 
969   }
970 
971   public sealed partial class TestMessageMap : pb::IMessage<TestMessageMap>
972   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
973       , pb::IBufferMessage
974   #endif
975   {
976     private static readonly pb::MessageParser<TestMessageMap> _parser = new pb::MessageParser<TestMessageMap>(() => new TestMessageMap());
977     private pb::UnknownFieldSet _unknownFields;
978     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
979     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
980     public static pb::MessageParser<TestMessageMap> Parser { get { return _parser; } }
981 
982     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
983     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
984     public static pbr::MessageDescriptor Descriptor {
985       get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[2]; }
986     }
987 
988     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
989     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
990     pbr::MessageDescriptor pb::IMessage.Descriptor {
991       get { return Descriptor; }
992     }
993 
994     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
995     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestMessageMap()996     public TestMessageMap() {
997       OnConstruction();
998     }
999 
OnConstruction()1000     partial void OnConstruction();
1001 
1002     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1003     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestMessageMap(TestMessageMap other)1004     public TestMessageMap(TestMessageMap other) : this() {
1005       mapInt32Message_ = other.mapInt32Message_.Clone();
1006       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1007     }
1008 
1009     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1010     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()1011     public TestMessageMap Clone() {
1012       return new TestMessageMap(this);
1013     }
1014 
1015     /// <summary>Field number for the "map_int32_message" field.</summary>
1016     public const int MapInt32MessageFieldNumber = 1;
1017     private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>.Codec _map_mapInt32Message_codec
1018         = new pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.TestAllTypes.Parser), 10);
1019     private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes> mapInt32Message_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>();
1020     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1021     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1022     public pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes> MapInt32Message {
1023       get { return mapInt32Message_; }
1024     }
1025 
1026     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1027     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)1028     public override bool Equals(object other) {
1029       return Equals(other as TestMessageMap);
1030     }
1031 
1032     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1033     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestMessageMap other)1034     public bool Equals(TestMessageMap other) {
1035       if (ReferenceEquals(other, null)) {
1036         return false;
1037       }
1038       if (ReferenceEquals(other, this)) {
1039         return true;
1040       }
1041       if (!MapInt32Message.Equals(other.MapInt32Message)) return false;
1042       return Equals(_unknownFields, other._unknownFields);
1043     }
1044 
1045     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1046     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()1047     public override int GetHashCode() {
1048       int hash = 1;
1049       hash ^= MapInt32Message.GetHashCode();
1050       if (_unknownFields != null) {
1051         hash ^= _unknownFields.GetHashCode();
1052       }
1053       return hash;
1054     }
1055 
1056     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1057     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()1058     public override string ToString() {
1059       return pb::JsonFormatter.ToDiagnosticString(this);
1060     }
1061 
1062     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1063     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)1064     public void WriteTo(pb::CodedOutputStream output) {
1065     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1066       output.WriteRawMessage(this);
1067     #else
1068       mapInt32Message_.WriteTo(output, _map_mapInt32Message_codec);
1069       if (_unknownFields != null) {
1070         _unknownFields.WriteTo(output);
1071       }
1072     #endif
1073     }
1074 
1075     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1076     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1077     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1078     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1079       mapInt32Message_.WriteTo(ref output, _map_mapInt32Message_codec);
1080       if (_unknownFields != null) {
1081         _unknownFields.WriteTo(ref output);
1082       }
1083     }
1084     #endif
1085 
1086     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1087     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()1088     public int CalculateSize() {
1089       int size = 0;
1090       size += mapInt32Message_.CalculateSize(_map_mapInt32Message_codec);
1091       if (_unknownFields != null) {
1092         size += _unknownFields.CalculateSize();
1093       }
1094       return size;
1095     }
1096 
1097     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1098     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestMessageMap other)1099     public void MergeFrom(TestMessageMap other) {
1100       if (other == null) {
1101         return;
1102       }
1103       mapInt32Message_.Add(other.mapInt32Message_);
1104       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1105     }
1106 
1107     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1108     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)1109     public void MergeFrom(pb::CodedInputStream input) {
1110     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1111       input.ReadRawMessage(this);
1112     #else
1113       uint tag;
1114       while ((tag = input.ReadTag()) != 0) {
1115         switch(tag) {
1116           default:
1117             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1118             break;
1119           case 10: {
1120             mapInt32Message_.AddEntriesFrom(input, _map_mapInt32Message_codec);
1121             break;
1122           }
1123         }
1124       }
1125     #endif
1126     }
1127 
1128     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1129     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1130     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1131     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1132       uint tag;
1133       while ((tag = input.ReadTag()) != 0) {
1134         switch(tag) {
1135           default:
1136             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1137             break;
1138           case 10: {
1139             mapInt32Message_.AddEntriesFrom(ref input, _map_mapInt32Message_codec);
1140             break;
1141           }
1142         }
1143       }
1144     }
1145     #endif
1146 
1147   }
1148 
1149   /// <summary>
1150   /// Two map fields share the same entry default instance.
1151   /// </summary>
1152   public sealed partial class TestSameTypeMap : pb::IMessage<TestSameTypeMap>
1153   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1154       , pb::IBufferMessage
1155   #endif
1156   {
1157     private static readonly pb::MessageParser<TestSameTypeMap> _parser = new pb::MessageParser<TestSameTypeMap>(() => new TestSameTypeMap());
1158     private pb::UnknownFieldSet _unknownFields;
1159     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1160     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1161     public static pb::MessageParser<TestSameTypeMap> Parser { get { return _parser; } }
1162 
1163     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1164     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1165     public static pbr::MessageDescriptor Descriptor {
1166       get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[3]; }
1167     }
1168 
1169     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1170     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1171     pbr::MessageDescriptor pb::IMessage.Descriptor {
1172       get { return Descriptor; }
1173     }
1174 
1175     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1176     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestSameTypeMap()1177     public TestSameTypeMap() {
1178       OnConstruction();
1179     }
1180 
OnConstruction()1181     partial void OnConstruction();
1182 
1183     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1184     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestSameTypeMap(TestSameTypeMap other)1185     public TestSameTypeMap(TestSameTypeMap other) : this() {
1186       map1_ = other.map1_.Clone();
1187       map2_ = other.map2_.Clone();
1188       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1189     }
1190 
1191     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1192     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()1193     public TestSameTypeMap Clone() {
1194       return new TestSameTypeMap(this);
1195     }
1196 
1197     /// <summary>Field number for the "map1" field.</summary>
1198     public const int Map1FieldNumber = 1;
1199     private static readonly pbc::MapField<int, int>.Codec _map_map1_codec
1200         = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 10);
1201     private readonly pbc::MapField<int, int> map1_ = new pbc::MapField<int, int>();
1202     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1203     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1204     public pbc::MapField<int, int> Map1 {
1205       get { return map1_; }
1206     }
1207 
1208     /// <summary>Field number for the "map2" field.</summary>
1209     public const int Map2FieldNumber = 2;
1210     private static readonly pbc::MapField<int, int>.Codec _map_map2_codec
1211         = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 18);
1212     private readonly pbc::MapField<int, int> map2_ = new pbc::MapField<int, int>();
1213     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1214     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1215     public pbc::MapField<int, int> Map2 {
1216       get { return map2_; }
1217     }
1218 
1219     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1220     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)1221     public override bool Equals(object other) {
1222       return Equals(other as TestSameTypeMap);
1223     }
1224 
1225     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1226     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestSameTypeMap other)1227     public bool Equals(TestSameTypeMap other) {
1228       if (ReferenceEquals(other, null)) {
1229         return false;
1230       }
1231       if (ReferenceEquals(other, this)) {
1232         return true;
1233       }
1234       if (!Map1.Equals(other.Map1)) return false;
1235       if (!Map2.Equals(other.Map2)) return false;
1236       return Equals(_unknownFields, other._unknownFields);
1237     }
1238 
1239     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1240     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()1241     public override int GetHashCode() {
1242       int hash = 1;
1243       hash ^= Map1.GetHashCode();
1244       hash ^= Map2.GetHashCode();
1245       if (_unknownFields != null) {
1246         hash ^= _unknownFields.GetHashCode();
1247       }
1248       return hash;
1249     }
1250 
1251     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1252     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()1253     public override string ToString() {
1254       return pb::JsonFormatter.ToDiagnosticString(this);
1255     }
1256 
1257     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1258     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)1259     public void WriteTo(pb::CodedOutputStream output) {
1260     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1261       output.WriteRawMessage(this);
1262     #else
1263       map1_.WriteTo(output, _map_map1_codec);
1264       map2_.WriteTo(output, _map_map2_codec);
1265       if (_unknownFields != null) {
1266         _unknownFields.WriteTo(output);
1267       }
1268     #endif
1269     }
1270 
1271     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1272     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1273     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1274     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1275       map1_.WriteTo(ref output, _map_map1_codec);
1276       map2_.WriteTo(ref output, _map_map2_codec);
1277       if (_unknownFields != null) {
1278         _unknownFields.WriteTo(ref output);
1279       }
1280     }
1281     #endif
1282 
1283     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1284     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()1285     public int CalculateSize() {
1286       int size = 0;
1287       size += map1_.CalculateSize(_map_map1_codec);
1288       size += map2_.CalculateSize(_map_map2_codec);
1289       if (_unknownFields != null) {
1290         size += _unknownFields.CalculateSize();
1291       }
1292       return size;
1293     }
1294 
1295     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1296     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestSameTypeMap other)1297     public void MergeFrom(TestSameTypeMap other) {
1298       if (other == null) {
1299         return;
1300       }
1301       map1_.Add(other.map1_);
1302       map2_.Add(other.map2_);
1303       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1304     }
1305 
1306     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1307     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)1308     public void MergeFrom(pb::CodedInputStream input) {
1309     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1310       input.ReadRawMessage(this);
1311     #else
1312       uint tag;
1313       while ((tag = input.ReadTag()) != 0) {
1314         switch(tag) {
1315           default:
1316             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1317             break;
1318           case 10: {
1319             map1_.AddEntriesFrom(input, _map_map1_codec);
1320             break;
1321           }
1322           case 18: {
1323             map2_.AddEntriesFrom(input, _map_map2_codec);
1324             break;
1325           }
1326         }
1327       }
1328     #endif
1329     }
1330 
1331     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1332     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1333     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1334     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1335       uint tag;
1336       while ((tag = input.ReadTag()) != 0) {
1337         switch(tag) {
1338           default:
1339             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1340             break;
1341           case 10: {
1342             map1_.AddEntriesFrom(ref input, _map_map1_codec);
1343             break;
1344           }
1345           case 18: {
1346             map2_.AddEntriesFrom(ref input, _map_map2_codec);
1347             break;
1348           }
1349         }
1350       }
1351     }
1352     #endif
1353 
1354   }
1355 
1356   public sealed partial class TestArenaMap : pb::IMessage<TestArenaMap>
1357   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1358       , pb::IBufferMessage
1359   #endif
1360   {
1361     private static readonly pb::MessageParser<TestArenaMap> _parser = new pb::MessageParser<TestArenaMap>(() => new TestArenaMap());
1362     private pb::UnknownFieldSet _unknownFields;
1363     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1364     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1365     public static pb::MessageParser<TestArenaMap> Parser { get { return _parser; } }
1366 
1367     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1368     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1369     public static pbr::MessageDescriptor Descriptor {
1370       get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[4]; }
1371     }
1372 
1373     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1374     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1375     pbr::MessageDescriptor pb::IMessage.Descriptor {
1376       get { return Descriptor; }
1377     }
1378 
1379     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1380     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestArenaMap()1381     public TestArenaMap() {
1382       OnConstruction();
1383     }
1384 
OnConstruction()1385     partial void OnConstruction();
1386 
1387     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1388     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
TestArenaMap(TestArenaMap other)1389     public TestArenaMap(TestArenaMap other) : this() {
1390       mapInt32Int32_ = other.mapInt32Int32_.Clone();
1391       mapInt64Int64_ = other.mapInt64Int64_.Clone();
1392       mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
1393       mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
1394       mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
1395       mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
1396       mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
1397       mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
1398       mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
1399       mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
1400       mapInt32Float_ = other.mapInt32Float_.Clone();
1401       mapInt32Double_ = other.mapInt32Double_.Clone();
1402       mapBoolBool_ = other.mapBoolBool_.Clone();
1403       mapInt32Enum_ = other.mapInt32Enum_.Clone();
1404       mapInt32ForeignMessage_ = other.mapInt32ForeignMessage_.Clone();
1405       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1406     }
1407 
1408     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1409     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()1410     public TestArenaMap Clone() {
1411       return new TestArenaMap(this);
1412     }
1413 
1414     /// <summary>Field number for the "map_int32_int32" field.</summary>
1415     public const int MapInt32Int32FieldNumber = 1;
1416     private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
1417         = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 10);
1418     private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
1419     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1420     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1421     public pbc::MapField<int, int> MapInt32Int32 {
1422       get { return mapInt32Int32_; }
1423     }
1424 
1425     /// <summary>Field number for the "map_int64_int64" field.</summary>
1426     public const int MapInt64Int64FieldNumber = 2;
1427     private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
1428         = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8, 0L), pb::FieldCodec.ForInt64(16, 0L), 18);
1429     private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
1430     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1431     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1432     public pbc::MapField<long, long> MapInt64Int64 {
1433       get { return mapInt64Int64_; }
1434     }
1435 
1436     /// <summary>Field number for the "map_uint32_uint32" field.</summary>
1437     public const int MapUint32Uint32FieldNumber = 3;
1438     private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
1439         = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16, 0), 26);
1440     private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>();
1441     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1442     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1443     public pbc::MapField<uint, uint> MapUint32Uint32 {
1444       get { return mapUint32Uint32_; }
1445     }
1446 
1447     /// <summary>Field number for the "map_uint64_uint64" field.</summary>
1448     public const int MapUint64Uint64FieldNumber = 4;
1449     private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec
1450         = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8, 0UL), pb::FieldCodec.ForUInt64(16, 0UL), 34);
1451     private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>();
1452     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1453     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1454     public pbc::MapField<ulong, ulong> MapUint64Uint64 {
1455       get { return mapUint64Uint64_; }
1456     }
1457 
1458     /// <summary>Field number for the "map_sint32_sint32" field.</summary>
1459     public const int MapSint32Sint32FieldNumber = 5;
1460     private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec
1461         = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8, 0), pb::FieldCodec.ForSInt32(16, 0), 42);
1462     private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>();
1463     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1464     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1465     public pbc::MapField<int, int> MapSint32Sint32 {
1466       get { return mapSint32Sint32_; }
1467     }
1468 
1469     /// <summary>Field number for the "map_sint64_sint64" field.</summary>
1470     public const int MapSint64Sint64FieldNumber = 6;
1471     private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec
1472         = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8, 0L), pb::FieldCodec.ForSInt64(16, 0L), 50);
1473     private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>();
1474     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1475     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1476     public pbc::MapField<long, long> MapSint64Sint64 {
1477       get { return mapSint64Sint64_; }
1478     }
1479 
1480     /// <summary>Field number for the "map_fixed32_fixed32" field.</summary>
1481     public const int MapFixed32Fixed32FieldNumber = 7;
1482     private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec
1483         = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13, 0), pb::FieldCodec.ForFixed32(21, 0), 58);
1484     private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>();
1485     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1486     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1487     public pbc::MapField<uint, uint> MapFixed32Fixed32 {
1488       get { return mapFixed32Fixed32_; }
1489     }
1490 
1491     /// <summary>Field number for the "map_fixed64_fixed64" field.</summary>
1492     public const int MapFixed64Fixed64FieldNumber = 8;
1493     private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec
1494         = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9, 0UL), pb::FieldCodec.ForFixed64(17, 0UL), 66);
1495     private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>();
1496     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1497     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1498     public pbc::MapField<ulong, ulong> MapFixed64Fixed64 {
1499       get { return mapFixed64Fixed64_; }
1500     }
1501 
1502     /// <summary>Field number for the "map_sfixed32_sfixed32" field.</summary>
1503     public const int MapSfixed32Sfixed32FieldNumber = 9;
1504     private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec
1505         = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13, 0), pb::FieldCodec.ForSFixed32(21, 0), 74);
1506     private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>();
1507     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1508     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1509     public pbc::MapField<int, int> MapSfixed32Sfixed32 {
1510       get { return mapSfixed32Sfixed32_; }
1511     }
1512 
1513     /// <summary>Field number for the "map_sfixed64_sfixed64" field.</summary>
1514     public const int MapSfixed64Sfixed64FieldNumber = 10;
1515     private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec
1516         = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9, 0L), pb::FieldCodec.ForSFixed64(17, 0L), 82);
1517     private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>();
1518     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1519     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1520     public pbc::MapField<long, long> MapSfixed64Sfixed64 {
1521       get { return mapSfixed64Sfixed64_; }
1522     }
1523 
1524     /// <summary>Field number for the "map_int32_float" field.</summary>
1525     public const int MapInt32FloatFieldNumber = 11;
1526     private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec
1527         = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForFloat(21, 0F), 90);
1528     private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>();
1529     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1530     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1531     public pbc::MapField<int, float> MapInt32Float {
1532       get { return mapInt32Float_; }
1533     }
1534 
1535     /// <summary>Field number for the "map_int32_double" field.</summary>
1536     public const int MapInt32DoubleFieldNumber = 12;
1537     private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec
1538         = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForDouble(17, 0D), 98);
1539     private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>();
1540     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1541     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1542     public pbc::MapField<int, double> MapInt32Double {
1543       get { return mapInt32Double_; }
1544     }
1545 
1546     /// <summary>Field number for the "map_bool_bool" field.</summary>
1547     public const int MapBoolBoolFieldNumber = 13;
1548     private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec
1549         = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8, false), pb::FieldCodec.ForBool(16, false), 106);
1550     private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>();
1551     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1552     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1553     public pbc::MapField<bool, bool> MapBoolBool {
1554       get { return mapBoolBool_; }
1555     }
1556 
1557     /// <summary>Field number for the "map_int32_enum" field.</summary>
1558     public const int MapInt32EnumFieldNumber = 14;
1559     private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec _map_mapInt32Enum_codec
1560         = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Google.Protobuf.TestProtos.MapEnum) x, global::Google.Protobuf.TestProtos.MapEnum.Foo), 114);
1561     private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> mapInt32Enum_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>();
1562     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1563     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1564     public pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> MapInt32Enum {
1565       get { return mapInt32Enum_; }
1566     }
1567 
1568     /// <summary>Field number for the "map_int32_foreign_message" field.</summary>
1569     public const int MapInt32ForeignMessageFieldNumber = 15;
1570     private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec _map_mapInt32ForeignMessage_codec
1571         = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.ForeignMessage.Parser), 122);
1572     private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> mapInt32ForeignMessage_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>();
1573     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1574     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1575     public pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> MapInt32ForeignMessage {
1576       get { return mapInt32ForeignMessage_; }
1577     }
1578 
1579     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1580     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)1581     public override bool Equals(object other) {
1582       return Equals(other as TestArenaMap);
1583     }
1584 
1585     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1586     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(TestArenaMap other)1587     public bool Equals(TestArenaMap other) {
1588       if (ReferenceEquals(other, null)) {
1589         return false;
1590       }
1591       if (ReferenceEquals(other, this)) {
1592         return true;
1593       }
1594       if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
1595       if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
1596       if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
1597       if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
1598       if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
1599       if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
1600       if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
1601       if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
1602       if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
1603       if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
1604       if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
1605       if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
1606       if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
1607       if (!MapInt32Enum.Equals(other.MapInt32Enum)) return false;
1608       if (!MapInt32ForeignMessage.Equals(other.MapInt32ForeignMessage)) return false;
1609       return Equals(_unknownFields, other._unknownFields);
1610     }
1611 
1612     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1613     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()1614     public override int GetHashCode() {
1615       int hash = 1;
1616       hash ^= MapInt32Int32.GetHashCode();
1617       hash ^= MapInt64Int64.GetHashCode();
1618       hash ^= MapUint32Uint32.GetHashCode();
1619       hash ^= MapUint64Uint64.GetHashCode();
1620       hash ^= MapSint32Sint32.GetHashCode();
1621       hash ^= MapSint64Sint64.GetHashCode();
1622       hash ^= MapFixed32Fixed32.GetHashCode();
1623       hash ^= MapFixed64Fixed64.GetHashCode();
1624       hash ^= MapSfixed32Sfixed32.GetHashCode();
1625       hash ^= MapSfixed64Sfixed64.GetHashCode();
1626       hash ^= MapInt32Float.GetHashCode();
1627       hash ^= MapInt32Double.GetHashCode();
1628       hash ^= MapBoolBool.GetHashCode();
1629       hash ^= MapInt32Enum.GetHashCode();
1630       hash ^= MapInt32ForeignMessage.GetHashCode();
1631       if (_unknownFields != null) {
1632         hash ^= _unknownFields.GetHashCode();
1633       }
1634       return hash;
1635     }
1636 
1637     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1638     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()1639     public override string ToString() {
1640       return pb::JsonFormatter.ToDiagnosticString(this);
1641     }
1642 
1643     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1644     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)1645     public void WriteTo(pb::CodedOutputStream output) {
1646     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1647       output.WriteRawMessage(this);
1648     #else
1649       mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
1650       mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
1651       mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec);
1652       mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec);
1653       mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec);
1654       mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec);
1655       mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec);
1656       mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec);
1657       mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec);
1658       mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec);
1659       mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec);
1660       mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec);
1661       mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec);
1662       mapInt32Enum_.WriteTo(output, _map_mapInt32Enum_codec);
1663       mapInt32ForeignMessage_.WriteTo(output, _map_mapInt32ForeignMessage_codec);
1664       if (_unknownFields != null) {
1665         _unknownFields.WriteTo(output);
1666       }
1667     #endif
1668     }
1669 
1670     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1671     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1672     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1673     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1674       mapInt32Int32_.WriteTo(ref output, _map_mapInt32Int32_codec);
1675       mapInt64Int64_.WriteTo(ref output, _map_mapInt64Int64_codec);
1676       mapUint32Uint32_.WriteTo(ref output, _map_mapUint32Uint32_codec);
1677       mapUint64Uint64_.WriteTo(ref output, _map_mapUint64Uint64_codec);
1678       mapSint32Sint32_.WriteTo(ref output, _map_mapSint32Sint32_codec);
1679       mapSint64Sint64_.WriteTo(ref output, _map_mapSint64Sint64_codec);
1680       mapFixed32Fixed32_.WriteTo(ref output, _map_mapFixed32Fixed32_codec);
1681       mapFixed64Fixed64_.WriteTo(ref output, _map_mapFixed64Fixed64_codec);
1682       mapSfixed32Sfixed32_.WriteTo(ref output, _map_mapSfixed32Sfixed32_codec);
1683       mapSfixed64Sfixed64_.WriteTo(ref output, _map_mapSfixed64Sfixed64_codec);
1684       mapInt32Float_.WriteTo(ref output, _map_mapInt32Float_codec);
1685       mapInt32Double_.WriteTo(ref output, _map_mapInt32Double_codec);
1686       mapBoolBool_.WriteTo(ref output, _map_mapBoolBool_codec);
1687       mapInt32Enum_.WriteTo(ref output, _map_mapInt32Enum_codec);
1688       mapInt32ForeignMessage_.WriteTo(ref output, _map_mapInt32ForeignMessage_codec);
1689       if (_unknownFields != null) {
1690         _unknownFields.WriteTo(ref output);
1691       }
1692     }
1693     #endif
1694 
1695     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1696     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()1697     public int CalculateSize() {
1698       int size = 0;
1699       size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec);
1700       size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec);
1701       size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec);
1702       size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec);
1703       size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec);
1704       size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec);
1705       size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec);
1706       size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec);
1707       size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec);
1708       size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec);
1709       size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec);
1710       size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec);
1711       size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec);
1712       size += mapInt32Enum_.CalculateSize(_map_mapInt32Enum_codec);
1713       size += mapInt32ForeignMessage_.CalculateSize(_map_mapInt32ForeignMessage_codec);
1714       if (_unknownFields != null) {
1715         size += _unknownFields.CalculateSize();
1716       }
1717       return size;
1718     }
1719 
1720     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1721     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(TestArenaMap other)1722     public void MergeFrom(TestArenaMap other) {
1723       if (other == null) {
1724         return;
1725       }
1726       mapInt32Int32_.Add(other.mapInt32Int32_);
1727       mapInt64Int64_.Add(other.mapInt64Int64_);
1728       mapUint32Uint32_.Add(other.mapUint32Uint32_);
1729       mapUint64Uint64_.Add(other.mapUint64Uint64_);
1730       mapSint32Sint32_.Add(other.mapSint32Sint32_);
1731       mapSint64Sint64_.Add(other.mapSint64Sint64_);
1732       mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_);
1733       mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_);
1734       mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_);
1735       mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_);
1736       mapInt32Float_.Add(other.mapInt32Float_);
1737       mapInt32Double_.Add(other.mapInt32Double_);
1738       mapBoolBool_.Add(other.mapBoolBool_);
1739       mapInt32Enum_.Add(other.mapInt32Enum_);
1740       mapInt32ForeignMessage_.Add(other.mapInt32ForeignMessage_);
1741       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1742     }
1743 
1744     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1745     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)1746     public void MergeFrom(pb::CodedInputStream input) {
1747     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1748       input.ReadRawMessage(this);
1749     #else
1750       uint tag;
1751       while ((tag = input.ReadTag()) != 0) {
1752         switch(tag) {
1753           default:
1754             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1755             break;
1756           case 10: {
1757             mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec);
1758             break;
1759           }
1760           case 18: {
1761             mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec);
1762             break;
1763           }
1764           case 26: {
1765             mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec);
1766             break;
1767           }
1768           case 34: {
1769             mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec);
1770             break;
1771           }
1772           case 42: {
1773             mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec);
1774             break;
1775           }
1776           case 50: {
1777             mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec);
1778             break;
1779           }
1780           case 58: {
1781             mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec);
1782             break;
1783           }
1784           case 66: {
1785             mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec);
1786             break;
1787           }
1788           case 74: {
1789             mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec);
1790             break;
1791           }
1792           case 82: {
1793             mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec);
1794             break;
1795           }
1796           case 90: {
1797             mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec);
1798             break;
1799           }
1800           case 98: {
1801             mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec);
1802             break;
1803           }
1804           case 106: {
1805             mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec);
1806             break;
1807           }
1808           case 114: {
1809             mapInt32Enum_.AddEntriesFrom(input, _map_mapInt32Enum_codec);
1810             break;
1811           }
1812           case 122: {
1813             mapInt32ForeignMessage_.AddEntriesFrom(input, _map_mapInt32ForeignMessage_codec);
1814             break;
1815           }
1816         }
1817       }
1818     #endif
1819     }
1820 
1821     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1822     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1823     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1824     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1825       uint tag;
1826       while ((tag = input.ReadTag()) != 0) {
1827         switch(tag) {
1828           default:
1829             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1830             break;
1831           case 10: {
1832             mapInt32Int32_.AddEntriesFrom(ref input, _map_mapInt32Int32_codec);
1833             break;
1834           }
1835           case 18: {
1836             mapInt64Int64_.AddEntriesFrom(ref input, _map_mapInt64Int64_codec);
1837             break;
1838           }
1839           case 26: {
1840             mapUint32Uint32_.AddEntriesFrom(ref input, _map_mapUint32Uint32_codec);
1841             break;
1842           }
1843           case 34: {
1844             mapUint64Uint64_.AddEntriesFrom(ref input, _map_mapUint64Uint64_codec);
1845             break;
1846           }
1847           case 42: {
1848             mapSint32Sint32_.AddEntriesFrom(ref input, _map_mapSint32Sint32_codec);
1849             break;
1850           }
1851           case 50: {
1852             mapSint64Sint64_.AddEntriesFrom(ref input, _map_mapSint64Sint64_codec);
1853             break;
1854           }
1855           case 58: {
1856             mapFixed32Fixed32_.AddEntriesFrom(ref input, _map_mapFixed32Fixed32_codec);
1857             break;
1858           }
1859           case 66: {
1860             mapFixed64Fixed64_.AddEntriesFrom(ref input, _map_mapFixed64Fixed64_codec);
1861             break;
1862           }
1863           case 74: {
1864             mapSfixed32Sfixed32_.AddEntriesFrom(ref input, _map_mapSfixed32Sfixed32_codec);
1865             break;
1866           }
1867           case 82: {
1868             mapSfixed64Sfixed64_.AddEntriesFrom(ref input, _map_mapSfixed64Sfixed64_codec);
1869             break;
1870           }
1871           case 90: {
1872             mapInt32Float_.AddEntriesFrom(ref input, _map_mapInt32Float_codec);
1873             break;
1874           }
1875           case 98: {
1876             mapInt32Double_.AddEntriesFrom(ref input, _map_mapInt32Double_codec);
1877             break;
1878           }
1879           case 106: {
1880             mapBoolBool_.AddEntriesFrom(ref input, _map_mapBoolBool_codec);
1881             break;
1882           }
1883           case 114: {
1884             mapInt32Enum_.AddEntriesFrom(ref input, _map_mapInt32Enum_codec);
1885             break;
1886           }
1887           case 122: {
1888             mapInt32ForeignMessage_.AddEntriesFrom(ref input, _map_mapInt32ForeignMessage_codec);
1889             break;
1890           }
1891         }
1892       }
1893     }
1894     #endif
1895 
1896   }
1897 
1898   /// <summary>
1899   /// Previously, message containing enum called Type cannot be used as value of
1900   /// map field.
1901   /// </summary>
1902   public sealed partial class MessageContainingEnumCalledType : pb::IMessage<MessageContainingEnumCalledType>
1903   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1904       , pb::IBufferMessage
1905   #endif
1906   {
1907     private static readonly pb::MessageParser<MessageContainingEnumCalledType> _parser = new pb::MessageParser<MessageContainingEnumCalledType>(() => new MessageContainingEnumCalledType());
1908     private pb::UnknownFieldSet _unknownFields;
1909     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1910     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1911     public static pb::MessageParser<MessageContainingEnumCalledType> Parser { get { return _parser; } }
1912 
1913     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1914     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1915     public static pbr::MessageDescriptor Descriptor {
1916       get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[5]; }
1917     }
1918 
1919     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1920     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1921     pbr::MessageDescriptor pb::IMessage.Descriptor {
1922       get { return Descriptor; }
1923     }
1924 
1925     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1926     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageContainingEnumCalledType()1927     public MessageContainingEnumCalledType() {
1928       OnConstruction();
1929     }
1930 
OnConstruction()1931     partial void OnConstruction();
1932 
1933     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1934     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageContainingEnumCalledType(MessageContainingEnumCalledType other)1935     public MessageContainingEnumCalledType(MessageContainingEnumCalledType other) : this() {
1936       type_ = other.type_.Clone();
1937       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1938     }
1939 
1940     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1941     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()1942     public MessageContainingEnumCalledType Clone() {
1943       return new MessageContainingEnumCalledType(this);
1944     }
1945 
1946     /// <summary>Field number for the "type" field.</summary>
1947     public const int TypeFieldNumber = 1;
1948     private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>.Codec _map_type_codec
1949         = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType.Parser), 10);
1950     private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType> type_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>();
1951     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1952     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1953     public pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType> Type {
1954       get { return type_; }
1955     }
1956 
1957     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1958     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)1959     public override bool Equals(object other) {
1960       return Equals(other as MessageContainingEnumCalledType);
1961     }
1962 
1963     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1964     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(MessageContainingEnumCalledType other)1965     public bool Equals(MessageContainingEnumCalledType other) {
1966       if (ReferenceEquals(other, null)) {
1967         return false;
1968       }
1969       if (ReferenceEquals(other, this)) {
1970         return true;
1971       }
1972       if (!Type.Equals(other.Type)) return false;
1973       return Equals(_unknownFields, other._unknownFields);
1974     }
1975 
1976     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1977     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()1978     public override int GetHashCode() {
1979       int hash = 1;
1980       hash ^= Type.GetHashCode();
1981       if (_unknownFields != null) {
1982         hash ^= _unknownFields.GetHashCode();
1983       }
1984       return hash;
1985     }
1986 
1987     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1988     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()1989     public override string ToString() {
1990       return pb::JsonFormatter.ToDiagnosticString(this);
1991     }
1992 
1993     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1994     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)1995     public void WriteTo(pb::CodedOutputStream output) {
1996     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1997       output.WriteRawMessage(this);
1998     #else
1999       type_.WriteTo(output, _map_type_codec);
2000       if (_unknownFields != null) {
2001         _unknownFields.WriteTo(output);
2002       }
2003     #endif
2004     }
2005 
2006     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2007     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2008     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)2009     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2010       type_.WriteTo(ref output, _map_type_codec);
2011       if (_unknownFields != null) {
2012         _unknownFields.WriteTo(ref output);
2013       }
2014     }
2015     #endif
2016 
2017     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2018     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()2019     public int CalculateSize() {
2020       int size = 0;
2021       size += type_.CalculateSize(_map_type_codec);
2022       if (_unknownFields != null) {
2023         size += _unknownFields.CalculateSize();
2024       }
2025       return size;
2026     }
2027 
2028     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2029     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(MessageContainingEnumCalledType other)2030     public void MergeFrom(MessageContainingEnumCalledType other) {
2031       if (other == null) {
2032         return;
2033       }
2034       type_.Add(other.type_);
2035       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2036     }
2037 
2038     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2039     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)2040     public void MergeFrom(pb::CodedInputStream input) {
2041     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2042       input.ReadRawMessage(this);
2043     #else
2044       uint tag;
2045       while ((tag = input.ReadTag()) != 0) {
2046         switch(tag) {
2047           default:
2048             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2049             break;
2050           case 10: {
2051             type_.AddEntriesFrom(input, _map_type_codec);
2052             break;
2053           }
2054         }
2055       }
2056     #endif
2057     }
2058 
2059     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2060     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2061     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)2062     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2063       uint tag;
2064       while ((tag = input.ReadTag()) != 0) {
2065         switch(tag) {
2066           default:
2067             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2068             break;
2069           case 10: {
2070             type_.AddEntriesFrom(ref input, _map_type_codec);
2071             break;
2072           }
2073         }
2074       }
2075     }
2076     #endif
2077 
2078     #region Nested types
2079     /// <summary>Container for nested types declared in the MessageContainingEnumCalledType message type.</summary>
2080     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2081     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2082     public static partial class Types {
2083       public enum Type {
2084         [pbr::OriginalName("TYPE_FOO")] Foo = 0,
2085       }
2086 
2087     }
2088     #endregion
2089 
2090   }
2091 
2092   /// <summary>
2093   /// Previously, message cannot contain map field called "entry".
2094   /// </summary>
2095   public sealed partial class MessageContainingMapCalledEntry : pb::IMessage<MessageContainingMapCalledEntry>
2096   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2097       , pb::IBufferMessage
2098   #endif
2099   {
2100     private static readonly pb::MessageParser<MessageContainingMapCalledEntry> _parser = new pb::MessageParser<MessageContainingMapCalledEntry>(() => new MessageContainingMapCalledEntry());
2101     private pb::UnknownFieldSet _unknownFields;
2102     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2103     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2104     public static pb::MessageParser<MessageContainingMapCalledEntry> Parser { get { return _parser; } }
2105 
2106     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2107     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2108     public static pbr::MessageDescriptor Descriptor {
2109       get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[6]; }
2110     }
2111 
2112     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2113     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2114     pbr::MessageDescriptor pb::IMessage.Descriptor {
2115       get { return Descriptor; }
2116     }
2117 
2118     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2119     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageContainingMapCalledEntry()2120     public MessageContainingMapCalledEntry() {
2121       OnConstruction();
2122     }
2123 
OnConstruction()2124     partial void OnConstruction();
2125 
2126     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2127     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageContainingMapCalledEntry(MessageContainingMapCalledEntry other)2128     public MessageContainingMapCalledEntry(MessageContainingMapCalledEntry other) : this() {
2129       entry_ = other.entry_.Clone();
2130       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2131     }
2132 
2133     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2134     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()2135     public MessageContainingMapCalledEntry Clone() {
2136       return new MessageContainingMapCalledEntry(this);
2137     }
2138 
2139     /// <summary>Field number for the "entry" field.</summary>
2140     public const int EntryFieldNumber = 1;
2141     private static readonly pbc::MapField<int, int>.Codec _map_entry_codec
2142         = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0), 10);
2143     private readonly pbc::MapField<int, int> entry_ = new pbc::MapField<int, int>();
2144     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2145     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2146     public pbc::MapField<int, int> Entry {
2147       get { return entry_; }
2148     }
2149 
2150     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2151     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)2152     public override bool Equals(object other) {
2153       return Equals(other as MessageContainingMapCalledEntry);
2154     }
2155 
2156     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2157     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(MessageContainingMapCalledEntry other)2158     public bool Equals(MessageContainingMapCalledEntry other) {
2159       if (ReferenceEquals(other, null)) {
2160         return false;
2161       }
2162       if (ReferenceEquals(other, this)) {
2163         return true;
2164       }
2165       if (!Entry.Equals(other.Entry)) return false;
2166       return Equals(_unknownFields, other._unknownFields);
2167     }
2168 
2169     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2170     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()2171     public override int GetHashCode() {
2172       int hash = 1;
2173       hash ^= Entry.GetHashCode();
2174       if (_unknownFields != null) {
2175         hash ^= _unknownFields.GetHashCode();
2176       }
2177       return hash;
2178     }
2179 
2180     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2181     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()2182     public override string ToString() {
2183       return pb::JsonFormatter.ToDiagnosticString(this);
2184     }
2185 
2186     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2187     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)2188     public void WriteTo(pb::CodedOutputStream output) {
2189     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2190       output.WriteRawMessage(this);
2191     #else
2192       entry_.WriteTo(output, _map_entry_codec);
2193       if (_unknownFields != null) {
2194         _unknownFields.WriteTo(output);
2195       }
2196     #endif
2197     }
2198 
2199     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2200     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2201     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)2202     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2203       entry_.WriteTo(ref output, _map_entry_codec);
2204       if (_unknownFields != null) {
2205         _unknownFields.WriteTo(ref output);
2206       }
2207     }
2208     #endif
2209 
2210     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2211     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()2212     public int CalculateSize() {
2213       int size = 0;
2214       size += entry_.CalculateSize(_map_entry_codec);
2215       if (_unknownFields != null) {
2216         size += _unknownFields.CalculateSize();
2217       }
2218       return size;
2219     }
2220 
2221     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2222     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(MessageContainingMapCalledEntry other)2223     public void MergeFrom(MessageContainingMapCalledEntry other) {
2224       if (other == null) {
2225         return;
2226       }
2227       entry_.Add(other.entry_);
2228       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2229     }
2230 
2231     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2232     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)2233     public void MergeFrom(pb::CodedInputStream input) {
2234     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2235       input.ReadRawMessage(this);
2236     #else
2237       uint tag;
2238       while ((tag = input.ReadTag()) != 0) {
2239         switch(tag) {
2240           default:
2241             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2242             break;
2243           case 10: {
2244             entry_.AddEntriesFrom(input, _map_entry_codec);
2245             break;
2246           }
2247         }
2248       }
2249     #endif
2250     }
2251 
2252     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2253     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2254     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)2255     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2256       uint tag;
2257       while ((tag = input.ReadTag()) != 0) {
2258         switch(tag) {
2259           default:
2260             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2261             break;
2262           case 10: {
2263             entry_.AddEntriesFrom(ref input, _map_entry_codec);
2264             break;
2265           }
2266         }
2267       }
2268     }
2269     #endif
2270 
2271   }
2272 
2273   #endregion
2274 
2275 }
2276 
2277 #endregion Designer generated code
2278