MapUnittestProto3.cs 78.1 KB
Newer Older
1 2 3 4
// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: map_unittest_proto3.proto
// </auto-generated>
5 6 7 8 9
#pragma warning disable 1591, 0612, 3021
#region Designer generated code

using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
10
using pbr = global::Google.Protobuf.Reflection;
11 12 13
using scg = global::System.Collections.Generic;
namespace Google.Protobuf.TestProtos {

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 21
      get { return descriptor; }
    }
22
    private static pbr::FileDescriptor descriptor;
23

24
    static MapUnittestProto3Reflection() {
25 26
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
            "ChltYXBfdW5pdHRlc3RfcHJvdG8zLnByb3RvEhJwcm90b2J1Zl91bml0dGVz",
            "dDMaFXVuaXR0ZXN0X3Byb3RvMy5wcm90byKpEgoHVGVzdE1hcBJHCg9tYXBf",
            "aW50MzJfaW50MzIYASADKAsyLi5wcm90b2J1Zl91bml0dGVzdDMuVGVzdE1h",
            "cC5NYXBJbnQzMkludDMyRW50cnkSRwoPbWFwX2ludDY0X2ludDY0GAIgAygL",
            "Mi4ucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RNYXAuTWFwSW50NjRJbnQ2NEVu",
            "dHJ5EksKEW1hcF91aW50MzJfdWludDMyGAMgAygLMjAucHJvdG9idWZfdW5p",
            "dHRlc3QzLlRlc3RNYXAuTWFwVWludDMyVWludDMyRW50cnkSSwoRbWFwX3Vp",
            "bnQ2NF91aW50NjQYBCADKAsyMC5wcm90b2J1Zl91bml0dGVzdDMuVGVzdE1h",
            "cC5NYXBVaW50NjRVaW50NjRFbnRyeRJLChFtYXBfc2ludDMyX3NpbnQzMhgF",
            "IAMoCzIwLnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0TWFwLk1hcFNpbnQzMlNp",
            "bnQzMkVudHJ5EksKEW1hcF9zaW50NjRfc2ludDY0GAYgAygLMjAucHJvdG9i",
            "dWZfdW5pdHRlc3QzLlRlc3RNYXAuTWFwU2ludDY0U2ludDY0RW50cnkSTwoT",
            "bWFwX2ZpeGVkMzJfZml4ZWQzMhgHIAMoCzIyLnByb3RvYnVmX3VuaXR0ZXN0",
            "My5UZXN0TWFwLk1hcEZpeGVkMzJGaXhlZDMyRW50cnkSTwoTbWFwX2ZpeGVk",
            "NjRfZml4ZWQ2NBgIIAMoCzIyLnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0TWFw",
            "Lk1hcEZpeGVkNjRGaXhlZDY0RW50cnkSUwoVbWFwX3NmaXhlZDMyX3NmaXhl",
            "ZDMyGAkgAygLMjQucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RNYXAuTWFwU2Zp",
            "eGVkMzJTZml4ZWQzMkVudHJ5ElMKFW1hcF9zZml4ZWQ2NF9zZml4ZWQ2NBgK",
            "IAMoCzI0LnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0TWFwLk1hcFNmaXhlZDY0",
            "U2ZpeGVkNjRFbnRyeRJHCg9tYXBfaW50MzJfZmxvYXQYCyADKAsyLi5wcm90",
            "b2J1Zl91bml0dGVzdDMuVGVzdE1hcC5NYXBJbnQzMkZsb2F0RW50cnkSSQoQ",
            "bWFwX2ludDMyX2RvdWJsZRgMIAMoCzIvLnByb3RvYnVmX3VuaXR0ZXN0My5U",
            "ZXN0TWFwLk1hcEludDMyRG91YmxlRW50cnkSQwoNbWFwX2Jvb2xfYm9vbBgN",
            "IAMoCzIsLnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0TWFwLk1hcEJvb2xCb29s",
            "RW50cnkSSwoRbWFwX3N0cmluZ19zdHJpbmcYDiADKAsyMC5wcm90b2J1Zl91",
            "bml0dGVzdDMuVGVzdE1hcC5NYXBTdHJpbmdTdHJpbmdFbnRyeRJHCg9tYXBf",
            "aW50MzJfYnl0ZXMYDyADKAsyLi5wcm90b2J1Zl91bml0dGVzdDMuVGVzdE1h",
            "cC5NYXBJbnQzMkJ5dGVzRW50cnkSRQoObWFwX2ludDMyX2VudW0YECADKAsy",
            "LS5wcm90b2J1Zl91bml0dGVzdDMuVGVzdE1hcC5NYXBJbnQzMkVudW1FbnRy",
            "eRJaChltYXBfaW50MzJfZm9yZWlnbl9tZXNzYWdlGBEgAygLMjcucHJvdG9i",
            "dWZfdW5pdHRlc3QzLlRlc3RNYXAuTWFwSW50MzJGb3JlaWduTWVzc2FnZUVu",
            "dHJ5GjQKEk1hcEludDMySW50MzJFbnRyeRILCgNrZXkYASABKAUSDQoFdmFs",
            "dWUYAiABKAU6AjgBGjQKEk1hcEludDY0SW50NjRFbnRyeRILCgNrZXkYASAB",
            "KAMSDQoFdmFsdWUYAiABKAM6AjgBGjYKFE1hcFVpbnQzMlVpbnQzMkVudHJ5",
            "EgsKA2tleRgBIAEoDRINCgV2YWx1ZRgCIAEoDToCOAEaNgoUTWFwVWludDY0",
            "VWludDY0RW50cnkSCwoDa2V5GAEgASgEEg0KBXZhbHVlGAIgASgEOgI4ARo2",
            "ChRNYXBTaW50MzJTaW50MzJFbnRyeRILCgNrZXkYASABKBESDQoFdmFsdWUY",
            "AiABKBE6AjgBGjYKFE1hcFNpbnQ2NFNpbnQ2NEVudHJ5EgsKA2tleRgBIAEo",
            "EhINCgV2YWx1ZRgCIAEoEjoCOAEaOAoWTWFwRml4ZWQzMkZpeGVkMzJFbnRy",
            "eRILCgNrZXkYASABKAcSDQoFdmFsdWUYAiABKAc6AjgBGjgKFk1hcEZpeGVk",
            "NjRGaXhlZDY0RW50cnkSCwoDa2V5GAEgASgGEg0KBXZhbHVlGAIgASgGOgI4",
            "ARo6ChhNYXBTZml4ZWQzMlNmaXhlZDMyRW50cnkSCwoDa2V5GAEgASgPEg0K",
            "BXZhbHVlGAIgASgPOgI4ARo6ChhNYXBTZml4ZWQ2NFNmaXhlZDY0RW50cnkS",
            "CwoDa2V5GAEgASgQEg0KBXZhbHVlGAIgASgQOgI4ARo0ChJNYXBJbnQzMkZs",
            "b2F0RW50cnkSCwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgCOgI4ARo1ChNN",
            "YXBJbnQzMkRvdWJsZUVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEo",
            "AToCOAEaMgoQTWFwQm9vbEJvb2xFbnRyeRILCgNrZXkYASABKAgSDQoFdmFs",
            "dWUYAiABKAg6AjgBGjYKFE1hcFN0cmluZ1N0cmluZ0VudHJ5EgsKA2tleRgB",
            "IAEoCRINCgV2YWx1ZRgCIAEoCToCOAEaNAoSTWFwSW50MzJCeXRlc0VudHJ5",
            "EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEoDDoCOAEaUAoRTWFwSW50MzJF",
            "bnVtRW50cnkSCwoDa2V5GAEgASgFEioKBXZhbHVlGAIgASgOMhsucHJvdG9i",
            "dWZfdW5pdHRlc3QzLk1hcEVudW06AjgBGmEKG01hcEludDMyRm9yZWlnbk1l",
            "c3NhZ2VFbnRyeRILCgNrZXkYASABKAUSMQoFdmFsdWUYAiABKAsyIi5wcm90",
            "b2J1Zl91bml0dGVzdDMuRm9yZWlnbk1lc3NhZ2U6AjgBIkIKEVRlc3RNYXBT",
            "dWJtZXNzYWdlEi0KCHRlc3RfbWFwGAEgASgLMhsucHJvdG9idWZfdW5pdHRl",
            "c3QzLlRlc3RNYXAivgEKDlRlc3RNZXNzYWdlTWFwElIKEW1hcF9pbnQzMl9t",
            "ZXNzYWdlGAEgAygLMjcucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RNZXNzYWdl",
            "TWFwLk1hcEludDMyTWVzc2FnZUVudHJ5GlgKFE1hcEludDMyTWVzc2FnZUVu",
            "dHJ5EgsKA2tleRgBIAEoBRIvCgV2YWx1ZRgCIAEoCzIgLnByb3RvYnVmX3Vu",
            "aXR0ZXN0My5UZXN0QWxsVHlwZXM6AjgBIuUBCg9UZXN0U2FtZVR5cGVNYXAS",
            "OwoEbWFwMRgBIAMoCzItLnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0U2FtZVR5",
            "cGVNYXAuTWFwMUVudHJ5EjsKBG1hcDIYAiADKAsyLS5wcm90b2J1Zl91bml0",
            "dGVzdDMuVGVzdFNhbWVUeXBlTWFwLk1hcDJFbnRyeRorCglNYXAxRW50cnkS",
            "CwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ARorCglNYXAyRW50cnkS",
            "CwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ASL1EAoMVGVzdEFyZW5h",
            "TWFwEkwKD21hcF9pbnQzMl9pbnQzMhgBIAMoCzIzLnByb3RvYnVmX3VuaXR0",
            "ZXN0My5UZXN0QXJlbmFNYXAuTWFwSW50MzJJbnQzMkVudHJ5EkwKD21hcF9p",
            "bnQ2NF9pbnQ2NBgCIAMoCzIzLnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0QXJl",
            "bmFNYXAuTWFwSW50NjRJbnQ2NEVudHJ5ElAKEW1hcF91aW50MzJfdWludDMy",
            "GAMgAygLMjUucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RBcmVuYU1hcC5NYXBV",
            "aW50MzJVaW50MzJFbnRyeRJQChFtYXBfdWludDY0X3VpbnQ2NBgEIAMoCzI1",
            "LnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0QXJlbmFNYXAuTWFwVWludDY0VWlu",
            "dDY0RW50cnkSUAoRbWFwX3NpbnQzMl9zaW50MzIYBSADKAsyNS5wcm90b2J1",
            "Zl91bml0dGVzdDMuVGVzdEFyZW5hTWFwLk1hcFNpbnQzMlNpbnQzMkVudHJ5",
            "ElAKEW1hcF9zaW50NjRfc2ludDY0GAYgAygLMjUucHJvdG9idWZfdW5pdHRl",
            "c3QzLlRlc3RBcmVuYU1hcC5NYXBTaW50NjRTaW50NjRFbnRyeRJUChNtYXBf",
            "Zml4ZWQzMl9maXhlZDMyGAcgAygLMjcucHJvdG9idWZfdW5pdHRlc3QzLlRl",
            "c3RBcmVuYU1hcC5NYXBGaXhlZDMyRml4ZWQzMkVudHJ5ElQKE21hcF9maXhl",
            "ZDY0X2ZpeGVkNjQYCCADKAsyNy5wcm90b2J1Zl91bml0dGVzdDMuVGVzdEFy",
            "ZW5hTWFwLk1hcEZpeGVkNjRGaXhlZDY0RW50cnkSWAoVbWFwX3NmaXhlZDMy",
            "X3NmaXhlZDMyGAkgAygLMjkucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RBcmVu",
            "YU1hcC5NYXBTZml4ZWQzMlNmaXhlZDMyRW50cnkSWAoVbWFwX3NmaXhlZDY0",
            "X3NmaXhlZDY0GAogAygLMjkucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RBcmVu",
            "YU1hcC5NYXBTZml4ZWQ2NFNmaXhlZDY0RW50cnkSTAoPbWFwX2ludDMyX2Zs",
            "b2F0GAsgAygLMjMucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RBcmVuYU1hcC5N",
            "YXBJbnQzMkZsb2F0RW50cnkSTgoQbWFwX2ludDMyX2RvdWJsZRgMIAMoCzI0",
            "LnByb3RvYnVmX3VuaXR0ZXN0My5UZXN0QXJlbmFNYXAuTWFwSW50MzJEb3Vi",
            "bGVFbnRyeRJICg1tYXBfYm9vbF9ib29sGA0gAygLMjEucHJvdG9idWZfdW5p",
            "dHRlc3QzLlRlc3RBcmVuYU1hcC5NYXBCb29sQm9vbEVudHJ5EkoKDm1hcF9p",
            "bnQzMl9lbnVtGA4gAygLMjIucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RBcmVu",
            "YU1hcC5NYXBJbnQzMkVudW1FbnRyeRJfChltYXBfaW50MzJfZm9yZWlnbl9t",
            "ZXNzYWdlGA8gAygLMjwucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RBcmVuYU1h",
            "cC5NYXBJbnQzMkZvcmVpZ25NZXNzYWdlRW50cnkaNAoSTWFwSW50MzJJbnQz",
            "MkVudHJ5EgsKA2tleRgBIAEoBRINCgV2YWx1ZRgCIAEoBToCOAEaNAoSTWFw",
            "SW50NjRJbnQ2NEVudHJ5EgsKA2tleRgBIAEoAxINCgV2YWx1ZRgCIAEoAzoC",
            "OAEaNgoUTWFwVWludDMyVWludDMyRW50cnkSCwoDa2V5GAEgASgNEg0KBXZh",
            "bHVlGAIgASgNOgI4ARo2ChRNYXBVaW50NjRVaW50NjRFbnRyeRILCgNrZXkY",
            "ASABKAQSDQoFdmFsdWUYAiABKAQ6AjgBGjYKFE1hcFNpbnQzMlNpbnQzMkVu",
            "dHJ5EgsKA2tleRgBIAEoERINCgV2YWx1ZRgCIAEoEToCOAEaNgoUTWFwU2lu",
            "dDY0U2ludDY0RW50cnkSCwoDa2V5GAEgASgSEg0KBXZhbHVlGAIgASgSOgI4",
            "ARo4ChZNYXBGaXhlZDMyRml4ZWQzMkVudHJ5EgsKA2tleRgBIAEoBxINCgV2",
            "YWx1ZRgCIAEoBzoCOAEaOAoWTWFwRml4ZWQ2NEZpeGVkNjRFbnRyeRILCgNr",
            "ZXkYASABKAYSDQoFdmFsdWUYAiABKAY6AjgBGjoKGE1hcFNmaXhlZDMyU2Zp",
            "eGVkMzJFbnRyeRILCgNrZXkYASABKA8SDQoFdmFsdWUYAiABKA86AjgBGjoK",
            "GE1hcFNmaXhlZDY0U2ZpeGVkNjRFbnRyeRILCgNrZXkYASABKBASDQoFdmFs",
            "dWUYAiABKBA6AjgBGjQKEk1hcEludDMyRmxvYXRFbnRyeRILCgNrZXkYASAB",
            "KAUSDQoFdmFsdWUYAiABKAI6AjgBGjUKE01hcEludDMyRG91YmxlRW50cnkS",
            "CwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgBOgI4ARoyChBNYXBCb29sQm9v",
            "bEVudHJ5EgsKA2tleRgBIAEoCBINCgV2YWx1ZRgCIAEoCDoCOAEaUAoRTWFw",
            "SW50MzJFbnVtRW50cnkSCwoDa2V5GAEgASgFEioKBXZhbHVlGAIgASgOMhsu",
            "cHJvdG9idWZfdW5pdHRlc3QzLk1hcEVudW06AjgBGmEKG01hcEludDMyRm9y",
            "ZWlnbk1lc3NhZ2VFbnRyeRILCgNrZXkYASABKAUSMQoFdmFsdWUYAiABKAsy",
            "Ii5wcm90b2J1Zl91bml0dGVzdDMuRm9yZWlnbk1lc3NhZ2U6AjgBIuYBCh9N",
            "ZXNzYWdlQ29udGFpbmluZ0VudW1DYWxsZWRUeXBlEksKBHR5cGUYASADKAsy",
            "PS5wcm90b2J1Zl91bml0dGVzdDMuTWVzc2FnZUNvbnRhaW5pbmdFbnVtQ2Fs",
            "bGVkVHlwZS5UeXBlRW50cnkaYAoJVHlwZUVudHJ5EgsKA2tleRgBIAEoBRJC",
            "CgV2YWx1ZRgCIAEoCzIzLnByb3RvYnVmX3VuaXR0ZXN0My5NZXNzYWdlQ29u",
            "dGFpbmluZ0VudW1DYWxsZWRUeXBlOgI4ASIUCgRUeXBlEgwKCFRZUEVfRk9P",
            "EAAingEKH01lc3NhZ2VDb250YWluaW5nTWFwQ2FsbGVkRW50cnkSTQoFZW50",
            "cnkYASADKAsyPi5wcm90b2J1Zl91bml0dGVzdDMuTWVzc2FnZUNvbnRhaW5p",
            "bmdNYXBDYWxsZWRFbnRyeS5FbnRyeUVudHJ5GiwKCkVudHJ5RW50cnkSCwoD",
            "a2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ASo/CgdNYXBFbnVtEhAKDE1B",
            "UF9FTlVNX0ZPTxAAEhAKDE1BUF9FTlVNX0JBUhABEhAKDE1BUF9FTlVNX0JB",
150
            "WhACQh2qAhpHb29nbGUuUHJvdG9idWYuVGVzdFByb3Rvc2IGcHJvdG8z"));
151
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
152
          new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor, },
153 154 155 156 157 158 159 160
          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.TestProtos.MapEnum), }, new pbr::GeneratedClrTypeInfo[] {
            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, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, }),
            new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMapSubmessage), global::Google.Protobuf.TestProtos.TestMapSubmessage.Parser, new[]{ "TestMap" }, null, null, null),
            new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMessageMap), global::Google.Protobuf.TestProtos.TestMessageMap.Parser, new[]{ "MapInt32Message" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
            new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestSameTypeMap), global::Google.Protobuf.TestProtos.TestSameTypeMap.Parser, new[]{ "Map1", "Map2" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }),
            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, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, }),
            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) }, new pbr::GeneratedClrTypeInfo[] { null, }),
            new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.MessageContainingMapCalledEntry), global::Google.Protobuf.TestProtos.MessageContainingMapCalledEntry.Parser, new[]{ "Entry" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
161
          }));
162 163 164 165 166 167
    }
    #endregion

  }
  #region Enums
  public enum MapEnum {
168 169 170
    [pbr::OriginalName("MAP_ENUM_FOO")] Foo = 0,
    [pbr::OriginalName("MAP_ENUM_BAR")] Bar = 1,
    [pbr::OriginalName("MAP_ENUM_BAZ")] Baz = 2,
171 172 173 174 175
  }

  #endregion

  #region Messages
176
  /// <summary>
177
  /// Tests maps.
178
  /// </summary>
179 180
  public sealed partial class TestMap : pb::IMessage<TestMap> {
    private static readonly pb::MessageParser<TestMap> _parser = new pb::MessageParser<TestMap>(() => new TestMap());
181
    private pb::UnknownFieldSet _unknownFields;
182
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
183 184
    public static pb::MessageParser<TestMap> Parser { get { return _parser; } }

185
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
186
    public static pbr::MessageDescriptor Descriptor {
187
      get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[0]; }
188 189
    }

190
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
191 192
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
193 194
    }

195
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
196 197 198 199 200
    public TestMap() {
      OnConstruction();
    }

    partial void OnConstruction();
201

202
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
203
    public TestMap(TestMap other) : this() {
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220
      mapInt32Int32_ = other.mapInt32Int32_.Clone();
      mapInt64Int64_ = other.mapInt64Int64_.Clone();
      mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
      mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
      mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
      mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
      mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
      mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
      mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
      mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
      mapInt32Float_ = other.mapInt32Float_.Clone();
      mapInt32Double_ = other.mapInt32Double_.Clone();
      mapBoolBool_ = other.mapBoolBool_.Clone();
      mapStringString_ = other.mapStringString_.Clone();
      mapInt32Bytes_ = other.mapInt32Bytes_.Clone();
      mapInt32Enum_ = other.mapInt32Enum_.Clone();
      mapInt32ForeignMessage_ = other.mapInt32ForeignMessage_.Clone();
221
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
222 223
    }

224
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
225 226 227 228
    public TestMap Clone() {
      return new TestMap(this);
    }

229
    /// <summary>Field number for the "map_int32_int32" field.</summary>
230 231 232 233
    public const int MapInt32Int32FieldNumber = 1;
    private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
        = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
    private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
234
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
235 236 237 238
    public pbc::MapField<int, int> MapInt32Int32 {
      get { return mapInt32Int32_; }
    }

239
    /// <summary>Field number for the "map_int64_int64" field.</summary>
240 241 242 243
    public const int MapInt64Int64FieldNumber = 2;
    private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
        = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8), pb::FieldCodec.ForInt64(16), 18);
    private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
244
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
245 246 247 248
    public pbc::MapField<long, long> MapInt64Int64 {
      get { return mapInt64Int64_; }
    }

249
    /// <summary>Field number for the "map_uint32_uint32" field.</summary>
250 251 252 253
    public const int MapUint32Uint32FieldNumber = 3;
    private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
        = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8), pb::FieldCodec.ForUInt32(16), 26);
    private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>();
254
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
255 256 257 258
    public pbc::MapField<uint, uint> MapUint32Uint32 {
      get { return mapUint32Uint32_; }
    }

259
    /// <summary>Field number for the "map_uint64_uint64" field.</summary>
260 261 262 263
    public const int MapUint64Uint64FieldNumber = 4;
    private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec
        = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8), pb::FieldCodec.ForUInt64(16), 34);
    private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>();
264
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
265 266 267 268
    public pbc::MapField<ulong, ulong> MapUint64Uint64 {
      get { return mapUint64Uint64_; }
    }

269
    /// <summary>Field number for the "map_sint32_sint32" field.</summary>
270 271 272 273
    public const int MapSint32Sint32FieldNumber = 5;
    private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec
        = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8), pb::FieldCodec.ForSInt32(16), 42);
    private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>();
274
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
275 276 277 278
    public pbc::MapField<int, int> MapSint32Sint32 {
      get { return mapSint32Sint32_; }
    }

279
    /// <summary>Field number for the "map_sint64_sint64" field.</summary>
280 281 282 283
    public const int MapSint64Sint64FieldNumber = 6;
    private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec
        = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8), pb::FieldCodec.ForSInt64(16), 50);
    private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>();
284
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
285 286 287 288
    public pbc::MapField<long, long> MapSint64Sint64 {
      get { return mapSint64Sint64_; }
    }

289
    /// <summary>Field number for the "map_fixed32_fixed32" field.</summary>
290 291 292 293
    public const int MapFixed32Fixed32FieldNumber = 7;
    private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec
        = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13), pb::FieldCodec.ForFixed32(21), 58);
    private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>();
294
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
295 296 297 298
    public pbc::MapField<uint, uint> MapFixed32Fixed32 {
      get { return mapFixed32Fixed32_; }
    }

299
    /// <summary>Field number for the "map_fixed64_fixed64" field.</summary>
300 301 302 303
    public const int MapFixed64Fixed64FieldNumber = 8;
    private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec
        = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9), pb::FieldCodec.ForFixed64(17), 66);
    private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>();
304
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
305 306 307 308
    public pbc::MapField<ulong, ulong> MapFixed64Fixed64 {
      get { return mapFixed64Fixed64_; }
    }

309
    /// <summary>Field number for the "map_sfixed32_sfixed32" field.</summary>
310 311 312 313
    public const int MapSfixed32Sfixed32FieldNumber = 9;
    private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec
        = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13), pb::FieldCodec.ForSFixed32(21), 74);
    private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>();
314
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
315 316 317 318
    public pbc::MapField<int, int> MapSfixed32Sfixed32 {
      get { return mapSfixed32Sfixed32_; }
    }

319
    /// <summary>Field number for the "map_sfixed64_sfixed64" field.</summary>
320 321 322 323
    public const int MapSfixed64Sfixed64FieldNumber = 10;
    private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec
        = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9), pb::FieldCodec.ForSFixed64(17), 82);
    private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>();
324
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
325 326 327 328
    public pbc::MapField<long, long> MapSfixed64Sfixed64 {
      get { return mapSfixed64Sfixed64_; }
    }

329
    /// <summary>Field number for the "map_int32_float" field.</summary>
330 331 332 333
    public const int MapInt32FloatFieldNumber = 11;
    private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec
        = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForFloat(21), 90);
    private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>();
334
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
335 336 337 338
    public pbc::MapField<int, float> MapInt32Float {
      get { return mapInt32Float_; }
    }

339
    /// <summary>Field number for the "map_int32_double" field.</summary>
340 341 342 343
    public const int MapInt32DoubleFieldNumber = 12;
    private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec
        = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForDouble(17), 98);
    private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>();
344
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
345 346 347 348
    public pbc::MapField<int, double> MapInt32Double {
      get { return mapInt32Double_; }
    }

349
    /// <summary>Field number for the "map_bool_bool" field.</summary>
350 351 352 353
    public const int MapBoolBoolFieldNumber = 13;
    private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec
        = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8), pb::FieldCodec.ForBool(16), 106);
    private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>();
354
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
355 356 357 358
    public pbc::MapField<bool, bool> MapBoolBool {
      get { return mapBoolBool_; }
    }

359
    /// <summary>Field number for the "map_string_string" field.</summary>
360 361 362 363
    public const int MapStringStringFieldNumber = 14;
    private static readonly pbc::MapField<string, string>.Codec _map_mapStringString_codec
        = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForString(18), 114);
    private readonly pbc::MapField<string, string> mapStringString_ = new pbc::MapField<string, string>();
364
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
365 366 367 368
    public pbc::MapField<string, string> MapStringString {
      get { return mapStringString_; }
    }

369
    /// <summary>Field number for the "map_int32_bytes" field.</summary>
370 371 372 373
    public const int MapInt32BytesFieldNumber = 15;
    private static readonly pbc::MapField<int, pb::ByteString>.Codec _map_mapInt32Bytes_codec
        = new pbc::MapField<int, pb::ByteString>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForBytes(18), 122);
    private readonly pbc::MapField<int, pb::ByteString> mapInt32Bytes_ = new pbc::MapField<int, pb::ByteString>();
374
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
375 376 377 378
    public pbc::MapField<int, pb::ByteString> MapInt32Bytes {
      get { return mapInt32Bytes_; }
    }

379
    /// <summary>Field number for the "map_int32_enum" field.</summary>
380 381 382 383
    public const int MapInt32EnumFieldNumber = 16;
    private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec _map_mapInt32Enum_codec
        = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Google.Protobuf.TestProtos.MapEnum) x), 130);
    private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> mapInt32Enum_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>();
384
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
385 386 387 388
    public pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> MapInt32Enum {
      get { return mapInt32Enum_; }
    }

389
    /// <summary>Field number for the "map_int32_foreign_message" field.</summary>
390 391 392 393
    public const int MapInt32ForeignMessageFieldNumber = 17;
    private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec _map_mapInt32ForeignMessage_codec
        = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.ForeignMessage.Parser), 138);
    private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> mapInt32ForeignMessage_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>();
394
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
395 396 397 398
    public pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> MapInt32ForeignMessage {
      get { return mapInt32ForeignMessage_; }
    }

399
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
400 401 402 403
    public override bool Equals(object other) {
      return Equals(other as TestMap);
    }

404
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428
    public bool Equals(TestMap other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
      if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
      if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
      if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
      if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
      if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
      if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
      if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
      if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
      if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
      if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
      if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
      if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
      if (!MapStringString.Equals(other.MapStringString)) return false;
      if (!MapInt32Bytes.Equals(other.MapInt32Bytes)) return false;
      if (!MapInt32Enum.Equals(other.MapInt32Enum)) return false;
      if (!MapInt32ForeignMessage.Equals(other.MapInt32ForeignMessage)) return false;
429
      return Equals(_unknownFields, other._unknownFields);
430 431
    }

432
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451
    public override int GetHashCode() {
      int hash = 1;
      hash ^= MapInt32Int32.GetHashCode();
      hash ^= MapInt64Int64.GetHashCode();
      hash ^= MapUint32Uint32.GetHashCode();
      hash ^= MapUint64Uint64.GetHashCode();
      hash ^= MapSint32Sint32.GetHashCode();
      hash ^= MapSint64Sint64.GetHashCode();
      hash ^= MapFixed32Fixed32.GetHashCode();
      hash ^= MapFixed64Fixed64.GetHashCode();
      hash ^= MapSfixed32Sfixed32.GetHashCode();
      hash ^= MapSfixed64Sfixed64.GetHashCode();
      hash ^= MapInt32Float.GetHashCode();
      hash ^= MapInt32Double.GetHashCode();
      hash ^= MapBoolBool.GetHashCode();
      hash ^= MapStringString.GetHashCode();
      hash ^= MapInt32Bytes.GetHashCode();
      hash ^= MapInt32Enum.GetHashCode();
      hash ^= MapInt32ForeignMessage.GetHashCode();
452 453 454
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
455 456 457
      return hash;
    }

458
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
459
    public override string ToString() {
460
      return pb::JsonFormatter.ToDiagnosticString(this);
461 462
    }

463
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481
    public void WriteTo(pb::CodedOutputStream output) {
      mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
      mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
      mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec);
      mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec);
      mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec);
      mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec);
      mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec);
      mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec);
      mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec);
      mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec);
      mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec);
      mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec);
      mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec);
      mapStringString_.WriteTo(output, _map_mapStringString_codec);
      mapInt32Bytes_.WriteTo(output, _map_mapInt32Bytes_codec);
      mapInt32Enum_.WriteTo(output, _map_mapInt32Enum_codec);
      mapInt32ForeignMessage_.WriteTo(output, _map_mapInt32ForeignMessage_codec);
482 483 484
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
485 486
    }

487
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506
    public int CalculateSize() {
      int size = 0;
      size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec);
      size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec);
      size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec);
      size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec);
      size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec);
      size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec);
      size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec);
      size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec);
      size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec);
      size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec);
      size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec);
      size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec);
      size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec);
      size += mapStringString_.CalculateSize(_map_mapStringString_codec);
      size += mapInt32Bytes_.CalculateSize(_map_mapInt32Bytes_codec);
      size += mapInt32Enum_.CalculateSize(_map_mapInt32Enum_codec);
      size += mapInt32ForeignMessage_.CalculateSize(_map_mapInt32ForeignMessage_codec);
507 508 509
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
510 511 512
      return size;
    }

513
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534
    public void MergeFrom(TestMap other) {
      if (other == null) {
        return;
      }
      mapInt32Int32_.Add(other.mapInt32Int32_);
      mapInt64Int64_.Add(other.mapInt64Int64_);
      mapUint32Uint32_.Add(other.mapUint32Uint32_);
      mapUint64Uint64_.Add(other.mapUint64Uint64_);
      mapSint32Sint32_.Add(other.mapSint32Sint32_);
      mapSint64Sint64_.Add(other.mapSint64Sint64_);
      mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_);
      mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_);
      mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_);
      mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_);
      mapInt32Float_.Add(other.mapInt32Float_);
      mapInt32Double_.Add(other.mapInt32Double_);
      mapBoolBool_.Add(other.mapBoolBool_);
      mapStringString_.Add(other.mapStringString_);
      mapInt32Bytes_.Add(other.mapInt32Bytes_);
      mapInt32Enum_.Add(other.mapInt32Enum_);
      mapInt32ForeignMessage_.Add(other.mapInt32ForeignMessage_);
535
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
536 537
    }

538
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
539 540
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
541
      while ((tag = input.ReadTag()) != 0) {
542 543
        switch(tag) {
          default:
544
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617
            break;
          case 10: {
            mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec);
            break;
          }
          case 18: {
            mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec);
            break;
          }
          case 26: {
            mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec);
            break;
          }
          case 34: {
            mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec);
            break;
          }
          case 42: {
            mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec);
            break;
          }
          case 50: {
            mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec);
            break;
          }
          case 58: {
            mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec);
            break;
          }
          case 66: {
            mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec);
            break;
          }
          case 74: {
            mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec);
            break;
          }
          case 82: {
            mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec);
            break;
          }
          case 90: {
            mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec);
            break;
          }
          case 98: {
            mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec);
            break;
          }
          case 106: {
            mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec);
            break;
          }
          case 114: {
            mapStringString_.AddEntriesFrom(input, _map_mapStringString_codec);
            break;
          }
          case 122: {
            mapInt32Bytes_.AddEntriesFrom(input, _map_mapInt32Bytes_codec);
            break;
          }
          case 130: {
            mapInt32Enum_.AddEntriesFrom(input, _map_mapInt32Enum_codec);
            break;
          }
          case 138: {
            mapInt32ForeignMessage_.AddEntriesFrom(input, _map_mapInt32ForeignMessage_codec);
            break;
          }
        }
      }
    }

618
  }
619

620 621
  public sealed partial class TestMapSubmessage : pb::IMessage<TestMapSubmessage> {
    private static readonly pb::MessageParser<TestMapSubmessage> _parser = new pb::MessageParser<TestMapSubmessage>(() => new TestMapSubmessage());
622
    private pb::UnknownFieldSet _unknownFields;
623
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
624
    public static pb::MessageParser<TestMapSubmessage> Parser { get { return _parser; } }
625

626
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
627
    public static pbr::MessageDescriptor Descriptor {
628
      get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[1]; }
629
    }
630

631
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
632 633
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
634
    }
635

636
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
637 638 639
    public TestMapSubmessage() {
      OnConstruction();
    }
640

641
    partial void OnConstruction();
642

643
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
644
    public TestMapSubmessage(TestMapSubmessage other) : this() {
645
      testMap_ = other.testMap_ != null ? other.testMap_.Clone() : null;
646
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
647
    }
648

649
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
650 651 652
    public TestMapSubmessage Clone() {
      return new TestMapSubmessage(this);
    }
653

654
    /// <summary>Field number for the "test_map" field.</summary>
655 656
    public const int TestMapFieldNumber = 1;
    private global::Google.Protobuf.TestProtos.TestMap testMap_;
657
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
658 659 660 661 662 663
    public global::Google.Protobuf.TestProtos.TestMap TestMap {
      get { return testMap_; }
      set {
        testMap_ = value;
      }
    }
664

665
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
666 667 668
    public override bool Equals(object other) {
      return Equals(other as TestMapSubmessage);
    }
669

670
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
671 672 673 674 675 676 677 678
    public bool Equals(TestMapSubmessage other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (!object.Equals(TestMap, other.TestMap)) return false;
679
      return Equals(_unknownFields, other._unknownFields);
680
    }
681

682
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
683 684 685
    public override int GetHashCode() {
      int hash = 1;
      if (testMap_ != null) hash ^= TestMap.GetHashCode();
686 687 688
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
689 690
      return hash;
    }
691

692
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
693
    public override string ToString() {
694
      return pb::JsonFormatter.ToDiagnosticString(this);
695
    }
696

697
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
698 699 700 701 702
    public void WriteTo(pb::CodedOutputStream output) {
      if (testMap_ != null) {
        output.WriteRawTag(10);
        output.WriteMessage(TestMap);
      }
703 704 705
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
706
    }
707

708
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
709 710 711 712 713
    public int CalculateSize() {
      int size = 0;
      if (testMap_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(TestMap);
      }
714 715 716
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
717 718 719
      return size;
    }

720
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
721 722 723 724 725 726 727
    public void MergeFrom(TestMapSubmessage other) {
      if (other == null) {
        return;
      }
      if (other.testMap_ != null) {
        if (testMap_ == null) {
          testMap_ = new global::Google.Protobuf.TestProtos.TestMap();
728
        }
729 730
        TestMap.MergeFrom(other.TestMap);
      }
731
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
732
    }
733

734
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
735 736
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
737
      while ((tag = input.ReadTag()) != 0) {
738 739
        switch(tag) {
          default:
740
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
741 742 743 744
            break;
          case 10: {
            if (testMap_ == null) {
              testMap_ = new global::Google.Protobuf.TestProtos.TestMap();
745
            }
746 747
            input.ReadMessage(testMap_);
            break;
748 749 750
          }
        }
      }
751
    }
752

753
  }
754

755 756
  public sealed partial class TestMessageMap : pb::IMessage<TestMessageMap> {
    private static readonly pb::MessageParser<TestMessageMap> _parser = new pb::MessageParser<TestMessageMap>(() => new TestMessageMap());
757
    private pb::UnknownFieldSet _unknownFields;
758
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
759
    public static pb::MessageParser<TestMessageMap> Parser { get { return _parser; } }
760

761
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
762
    public static pbr::MessageDescriptor Descriptor {
763
      get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[2]; }
764
    }
765

766
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
767 768
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
769
    }
770

771
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
772 773 774
    public TestMessageMap() {
      OnConstruction();
    }
775

776
    partial void OnConstruction();
777

778
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
779 780
    public TestMessageMap(TestMessageMap other) : this() {
      mapInt32Message_ = other.mapInt32Message_.Clone();
781
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
782
    }
783

784
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
785 786 787
    public TestMessageMap Clone() {
      return new TestMessageMap(this);
    }
788

789
    /// <summary>Field number for the "map_int32_message" field.</summary>
790 791 792 793
    public const int MapInt32MessageFieldNumber = 1;
    private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>.Codec _map_mapInt32Message_codec
        = new pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.TestAllTypes.Parser), 10);
    private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes> mapInt32Message_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>();
794
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
795 796 797
    public pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes> MapInt32Message {
      get { return mapInt32Message_; }
    }
798

799
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
800 801 802
    public override bool Equals(object other) {
      return Equals(other as TestMessageMap);
    }
803

804
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
805 806 807 808 809 810 811 812
    public bool Equals(TestMessageMap other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (!MapInt32Message.Equals(other.MapInt32Message)) return false;
813
      return Equals(_unknownFields, other._unknownFields);
814
    }
815

816
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
817 818 819
    public override int GetHashCode() {
      int hash = 1;
      hash ^= MapInt32Message.GetHashCode();
820 821 822
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
823 824
      return hash;
    }
825

826
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
827
    public override string ToString() {
828
      return pb::JsonFormatter.ToDiagnosticString(this);
829
    }
830

831
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
832 833
    public void WriteTo(pb::CodedOutputStream output) {
      mapInt32Message_.WriteTo(output, _map_mapInt32Message_codec);
834 835 836
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
837
    }
838

839
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
840 841 842
    public int CalculateSize() {
      int size = 0;
      size += mapInt32Message_.CalculateSize(_map_mapInt32Message_codec);
843 844 845
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
846 847
      return size;
    }
848

849
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
850 851 852 853 854
    public void MergeFrom(TestMessageMap other) {
      if (other == null) {
        return;
      }
      mapInt32Message_.Add(other.mapInt32Message_);
855
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
856
    }
857

858
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
859 860
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
861
      while ((tag = input.ReadTag()) != 0) {
862 863
        switch(tag) {
          default:
864
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
865 866 867 868
            break;
          case 10: {
            mapInt32Message_.AddEntriesFrom(input, _map_mapInt32Message_codec);
            break;
869 870 871
          }
        }
      }
872
    }
873

874
  }
875

876
  /// <summary>
877
  /// Two map fields share the same entry default instance.
878
  /// </summary>
879 880
  public sealed partial class TestSameTypeMap : pb::IMessage<TestSameTypeMap> {
    private static readonly pb::MessageParser<TestSameTypeMap> _parser = new pb::MessageParser<TestSameTypeMap>(() => new TestSameTypeMap());
881
    private pb::UnknownFieldSet _unknownFields;
882
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
883
    public static pb::MessageParser<TestSameTypeMap> Parser { get { return _parser; } }
884

885
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
886
    public static pbr::MessageDescriptor Descriptor {
887
      get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[3]; }
888
    }
889

890
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
891 892
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
893
    }
894

895
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
896 897 898
    public TestSameTypeMap() {
      OnConstruction();
    }
899

900
    partial void OnConstruction();
901

902
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
903 904 905
    public TestSameTypeMap(TestSameTypeMap other) : this() {
      map1_ = other.map1_.Clone();
      map2_ = other.map2_.Clone();
906
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
907
    }
908

909
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
910 911 912
    public TestSameTypeMap Clone() {
      return new TestSameTypeMap(this);
    }
913

914
    /// <summary>Field number for the "map1" field.</summary>
915 916 917 918
    public const int Map1FieldNumber = 1;
    private static readonly pbc::MapField<int, int>.Codec _map_map1_codec
        = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
    private readonly pbc::MapField<int, int> map1_ = new pbc::MapField<int, int>();
919
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
920 921 922
    public pbc::MapField<int, int> Map1 {
      get { return map1_; }
    }
923

924
    /// <summary>Field number for the "map2" field.</summary>
925 926 927 928
    public const int Map2FieldNumber = 2;
    private static readonly pbc::MapField<int, int>.Codec _map_map2_codec
        = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 18);
    private readonly pbc::MapField<int, int> map2_ = new pbc::MapField<int, int>();
929
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
930 931 932
    public pbc::MapField<int, int> Map2 {
      get { return map2_; }
    }
933

934
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
935 936 937
    public override bool Equals(object other) {
      return Equals(other as TestSameTypeMap);
    }
938

939
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
940 941 942
    public bool Equals(TestSameTypeMap other) {
      if (ReferenceEquals(other, null)) {
        return false;
943
      }
944 945 946 947 948
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (!Map1.Equals(other.Map1)) return false;
      if (!Map2.Equals(other.Map2)) return false;
949
      return Equals(_unknownFields, other._unknownFields);
950
    }
951

952
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
953 954 955 956
    public override int GetHashCode() {
      int hash = 1;
      hash ^= Map1.GetHashCode();
      hash ^= Map2.GetHashCode();
957 958 959
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
960 961
      return hash;
    }
962

963
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
964
    public override string ToString() {
965
      return pb::JsonFormatter.ToDiagnosticString(this);
966
    }
967

968
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
969 970 971
    public void WriteTo(pb::CodedOutputStream output) {
      map1_.WriteTo(output, _map_map1_codec);
      map2_.WriteTo(output, _map_map2_codec);
972 973 974
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
975
    }
976

977
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
978 979 980 981
    public int CalculateSize() {
      int size = 0;
      size += map1_.CalculateSize(_map_map1_codec);
      size += map2_.CalculateSize(_map_map2_codec);
982 983 984
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
985 986
      return size;
    }
987

988
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
989 990 991 992 993 994
    public void MergeFrom(TestSameTypeMap other) {
      if (other == null) {
        return;
      }
      map1_.Add(other.map1_);
      map2_.Add(other.map2_);
995
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
996
    }
997

998
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
999 1000
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
1001
      while ((tag = input.ReadTag()) != 0) {
1002 1003
        switch(tag) {
          default:
1004
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1005 1006 1007 1008
            break;
          case 10: {
            map1_.AddEntriesFrom(input, _map_map1_codec);
            break;
1009
          }
1010 1011 1012
          case 18: {
            map2_.AddEntriesFrom(input, _map_map2_codec);
            break;
1013 1014
          }
        }
1015 1016
      }
    }
1017

1018
  }
1019

1020 1021
  public sealed partial class TestArenaMap : pb::IMessage<TestArenaMap> {
    private static readonly pb::MessageParser<TestArenaMap> _parser = new pb::MessageParser<TestArenaMap>(() => new TestArenaMap());
1022
    private pb::UnknownFieldSet _unknownFields;
1023
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1024
    public static pb::MessageParser<TestArenaMap> Parser { get { return _parser; } }
1025

1026
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1027
    public static pbr::MessageDescriptor Descriptor {
1028
      get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[4]; }
1029
    }
1030

1031
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1032 1033
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
1034
    }
1035

1036
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1037 1038 1039
    public TestArenaMap() {
      OnConstruction();
    }
1040

1041
    partial void OnConstruction();
1042

1043
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059
    public TestArenaMap(TestArenaMap other) : this() {
      mapInt32Int32_ = other.mapInt32Int32_.Clone();
      mapInt64Int64_ = other.mapInt64Int64_.Clone();
      mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
      mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
      mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
      mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
      mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
      mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
      mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
      mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
      mapInt32Float_ = other.mapInt32Float_.Clone();
      mapInt32Double_ = other.mapInt32Double_.Clone();
      mapBoolBool_ = other.mapBoolBool_.Clone();
      mapInt32Enum_ = other.mapInt32Enum_.Clone();
      mapInt32ForeignMessage_ = other.mapInt32ForeignMessage_.Clone();
1060
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1061
    }
1062

1063
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1064 1065 1066
    public TestArenaMap Clone() {
      return new TestArenaMap(this);
    }
1067

1068
    /// <summary>Field number for the "map_int32_int32" field.</summary>
1069 1070 1071 1072
    public const int MapInt32Int32FieldNumber = 1;
    private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
        = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
    private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
1073
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1074 1075 1076
    public pbc::MapField<int, int> MapInt32Int32 {
      get { return mapInt32Int32_; }
    }
1077

1078
    /// <summary>Field number for the "map_int64_int64" field.</summary>
1079 1080 1081 1082
    public const int MapInt64Int64FieldNumber = 2;
    private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
        = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8), pb::FieldCodec.ForInt64(16), 18);
    private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
1083
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1084 1085 1086
    public pbc::MapField<long, long> MapInt64Int64 {
      get { return mapInt64Int64_; }
    }
1087

1088
    /// <summary>Field number for the "map_uint32_uint32" field.</summary>
1089 1090 1091 1092
    public const int MapUint32Uint32FieldNumber = 3;
    private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
        = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8), pb::FieldCodec.ForUInt32(16), 26);
    private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>();
1093
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1094 1095 1096
    public pbc::MapField<uint, uint> MapUint32Uint32 {
      get { return mapUint32Uint32_; }
    }
1097

1098
    /// <summary>Field number for the "map_uint64_uint64" field.</summary>
1099 1100 1101 1102
    public const int MapUint64Uint64FieldNumber = 4;
    private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec
        = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8), pb::FieldCodec.ForUInt64(16), 34);
    private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>();
1103
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1104 1105 1106
    public pbc::MapField<ulong, ulong> MapUint64Uint64 {
      get { return mapUint64Uint64_; }
    }
1107

1108
    /// <summary>Field number for the "map_sint32_sint32" field.</summary>
1109 1110 1111 1112
    public const int MapSint32Sint32FieldNumber = 5;
    private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec
        = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8), pb::FieldCodec.ForSInt32(16), 42);
    private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>();
1113
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1114 1115 1116
    public pbc::MapField<int, int> MapSint32Sint32 {
      get { return mapSint32Sint32_; }
    }
1117

1118
    /// <summary>Field number for the "map_sint64_sint64" field.</summary>
1119 1120 1121 1122
    public const int MapSint64Sint64FieldNumber = 6;
    private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec
        = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8), pb::FieldCodec.ForSInt64(16), 50);
    private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>();
1123
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1124 1125 1126
    public pbc::MapField<long, long> MapSint64Sint64 {
      get { return mapSint64Sint64_; }
    }
1127

1128
    /// <summary>Field number for the "map_fixed32_fixed32" field.</summary>
1129 1130 1131 1132
    public const int MapFixed32Fixed32FieldNumber = 7;
    private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec
        = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13), pb::FieldCodec.ForFixed32(21), 58);
    private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>();
1133
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1134 1135 1136
    public pbc::MapField<uint, uint> MapFixed32Fixed32 {
      get { return mapFixed32Fixed32_; }
    }
1137

1138
    /// <summary>Field number for the "map_fixed64_fixed64" field.</summary>
1139 1140 1141 1142
    public const int MapFixed64Fixed64FieldNumber = 8;
    private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec
        = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9), pb::FieldCodec.ForFixed64(17), 66);
    private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>();
1143
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1144 1145 1146
    public pbc::MapField<ulong, ulong> MapFixed64Fixed64 {
      get { return mapFixed64Fixed64_; }
    }
1147

1148
    /// <summary>Field number for the "map_sfixed32_sfixed32" field.</summary>
1149 1150 1151 1152
    public const int MapSfixed32Sfixed32FieldNumber = 9;
    private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec
        = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13), pb::FieldCodec.ForSFixed32(21), 74);
    private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>();
1153
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1154 1155 1156
    public pbc::MapField<int, int> MapSfixed32Sfixed32 {
      get { return mapSfixed32Sfixed32_; }
    }
1157

1158
    /// <summary>Field number for the "map_sfixed64_sfixed64" field.</summary>
1159 1160 1161 1162
    public const int MapSfixed64Sfixed64FieldNumber = 10;
    private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec
        = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9), pb::FieldCodec.ForSFixed64(17), 82);
    private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>();
1163
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1164 1165 1166
    public pbc::MapField<long, long> MapSfixed64Sfixed64 {
      get { return mapSfixed64Sfixed64_; }
    }
1167

1168
    /// <summary>Field number for the "map_int32_float" field.</summary>
1169 1170 1171 1172
    public const int MapInt32FloatFieldNumber = 11;
    private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec
        = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForFloat(21), 90);
    private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>();
1173
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1174 1175 1176
    public pbc::MapField<int, float> MapInt32Float {
      get { return mapInt32Float_; }
    }
1177

1178
    /// <summary>Field number for the "map_int32_double" field.</summary>
1179 1180 1181 1182
    public const int MapInt32DoubleFieldNumber = 12;
    private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec
        = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForDouble(17), 98);
    private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>();
1183
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1184 1185 1186
    public pbc::MapField<int, double> MapInt32Double {
      get { return mapInt32Double_; }
    }
1187

1188
    /// <summary>Field number for the "map_bool_bool" field.</summary>
1189 1190 1191 1192
    public const int MapBoolBoolFieldNumber = 13;
    private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec
        = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8), pb::FieldCodec.ForBool(16), 106);
    private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>();
1193
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1194 1195 1196
    public pbc::MapField<bool, bool> MapBoolBool {
      get { return mapBoolBool_; }
    }
1197

1198
    /// <summary>Field number for the "map_int32_enum" field.</summary>
1199 1200 1201 1202
    public const int MapInt32EnumFieldNumber = 14;
    private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec _map_mapInt32Enum_codec
        = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Google.Protobuf.TestProtos.MapEnum) x), 114);
    private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> mapInt32Enum_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>();
1203
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1204 1205 1206
    public pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> MapInt32Enum {
      get { return mapInt32Enum_; }
    }
1207

1208
    /// <summary>Field number for the "map_int32_foreign_message" field.</summary>
1209 1210 1211 1212
    public const int MapInt32ForeignMessageFieldNumber = 15;
    private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec _map_mapInt32ForeignMessage_codec
        = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.ForeignMessage.Parser), 122);
    private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> mapInt32ForeignMessage_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>();
1213
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1214 1215 1216
    public pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> MapInt32ForeignMessage {
      get { return mapInt32ForeignMessage_; }
    }
1217

1218
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1219 1220 1221
    public override bool Equals(object other) {
      return Equals(other as TestArenaMap);
    }
1222

1223
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1224 1225 1226
    public bool Equals(TestArenaMap other) {
      if (ReferenceEquals(other, null)) {
        return false;
1227
      }
1228 1229
      if (ReferenceEquals(other, this)) {
        return true;
1230
      }
1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245
      if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
      if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
      if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
      if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
      if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
      if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
      if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
      if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
      if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
      if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
      if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
      if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
      if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
      if (!MapInt32Enum.Equals(other.MapInt32Enum)) return false;
      if (!MapInt32ForeignMessage.Equals(other.MapInt32ForeignMessage)) return false;
1246
      return Equals(_unknownFields, other._unknownFields);
1247
    }
1248

1249
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266
    public override int GetHashCode() {
      int hash = 1;
      hash ^= MapInt32Int32.GetHashCode();
      hash ^= MapInt64Int64.GetHashCode();
      hash ^= MapUint32Uint32.GetHashCode();
      hash ^= MapUint64Uint64.GetHashCode();
      hash ^= MapSint32Sint32.GetHashCode();
      hash ^= MapSint64Sint64.GetHashCode();
      hash ^= MapFixed32Fixed32.GetHashCode();
      hash ^= MapFixed64Fixed64.GetHashCode();
      hash ^= MapSfixed32Sfixed32.GetHashCode();
      hash ^= MapSfixed64Sfixed64.GetHashCode();
      hash ^= MapInt32Float.GetHashCode();
      hash ^= MapInt32Double.GetHashCode();
      hash ^= MapBoolBool.GetHashCode();
      hash ^= MapInt32Enum.GetHashCode();
      hash ^= MapInt32ForeignMessage.GetHashCode();
1267 1268 1269
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
1270 1271
      return hash;
    }
1272

1273
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1274
    public override string ToString() {
1275
      return pb::JsonFormatter.ToDiagnosticString(this);
1276
    }
1277

1278
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294
    public void WriteTo(pb::CodedOutputStream output) {
      mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
      mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
      mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec);
      mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec);
      mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec);
      mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec);
      mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec);
      mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec);
      mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec);
      mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec);
      mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec);
      mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec);
      mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec);
      mapInt32Enum_.WriteTo(output, _map_mapInt32Enum_codec);
      mapInt32ForeignMessage_.WriteTo(output, _map_mapInt32ForeignMessage_codec);
1295 1296 1297
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
1298
    }
1299

1300
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317
    public int CalculateSize() {
      int size = 0;
      size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec);
      size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec);
      size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec);
      size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec);
      size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec);
      size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec);
      size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec);
      size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec);
      size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec);
      size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec);
      size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec);
      size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec);
      size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec);
      size += mapInt32Enum_.CalculateSize(_map_mapInt32Enum_codec);
      size += mapInt32ForeignMessage_.CalculateSize(_map_mapInt32ForeignMessage_codec);
1318 1319 1320
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
1321 1322
      return size;
    }
1323

1324
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343
    public void MergeFrom(TestArenaMap other) {
      if (other == null) {
        return;
      }
      mapInt32Int32_.Add(other.mapInt32Int32_);
      mapInt64Int64_.Add(other.mapInt64Int64_);
      mapUint32Uint32_.Add(other.mapUint32Uint32_);
      mapUint64Uint64_.Add(other.mapUint64Uint64_);
      mapSint32Sint32_.Add(other.mapSint32Sint32_);
      mapSint64Sint64_.Add(other.mapSint64Sint64_);
      mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_);
      mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_);
      mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_);
      mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_);
      mapInt32Float_.Add(other.mapInt32Float_);
      mapInt32Double_.Add(other.mapInt32Double_);
      mapBoolBool_.Add(other.mapBoolBool_);
      mapInt32Enum_.Add(other.mapInt32Enum_);
      mapInt32ForeignMessage_.Add(other.mapInt32ForeignMessage_);
1344
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1345
    }
1346

1347
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1348 1349
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
1350
      while ((tag = input.ReadTag()) != 0) {
1351 1352
        switch(tag) {
          default:
1353
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1354 1355 1356 1357
            break;
          case 10: {
            mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec);
            break;
1358
          }
1359 1360 1361
          case 18: {
            mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec);
            break;
1362
          }
1363 1364 1365
          case 26: {
            mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec);
            break;
1366
          }
1367 1368 1369
          case 34: {
            mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec);
            break;
1370
          }
1371 1372 1373
          case 42: {
            mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec);
            break;
1374
          }
1375 1376 1377
          case 50: {
            mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec);
            break;
1378
          }
1379 1380 1381
          case 58: {
            mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec);
            break;
1382
          }
1383 1384 1385
          case 66: {
            mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec);
            break;
1386
          }
1387 1388 1389
          case 74: {
            mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec);
            break;
1390
          }
1391 1392 1393
          case 82: {
            mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec);
            break;
1394
          }
1395 1396 1397
          case 90: {
            mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec);
            break;
1398
          }
1399 1400 1401
          case 98: {
            mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec);
            break;
1402
          }
1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413
          case 106: {
            mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec);
            break;
          }
          case 114: {
            mapInt32Enum_.AddEntriesFrom(input, _map_mapInt32Enum_codec);
            break;
          }
          case 122: {
            mapInt32ForeignMessage_.AddEntriesFrom(input, _map_mapInt32ForeignMessage_codec);
            break;
1414 1415 1416 1417 1418 1419 1420
          }
        }
      }
    }

  }

1421
  /// <summary>
1422 1423
  /// Previously, message containing enum called Type cannot be used as value of
  /// map field.
1424
  /// </summary>
1425 1426
  public sealed partial class MessageContainingEnumCalledType : pb::IMessage<MessageContainingEnumCalledType> {
    private static readonly pb::MessageParser<MessageContainingEnumCalledType> _parser = new pb::MessageParser<MessageContainingEnumCalledType>(() => new MessageContainingEnumCalledType());
1427
    private pb::UnknownFieldSet _unknownFields;
1428
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1429 1430
    public static pb::MessageParser<MessageContainingEnumCalledType> Parser { get { return _parser; } }

1431
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1432
    public static pbr::MessageDescriptor Descriptor {
1433
      get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[5]; }
1434 1435
    }

1436
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1437 1438
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
1439 1440
    }

1441
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1442 1443 1444 1445 1446
    public MessageContainingEnumCalledType() {
      OnConstruction();
    }

    partial void OnConstruction();
1447

1448
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1449
    public MessageContainingEnumCalledType(MessageContainingEnumCalledType other) : this() {
1450
      type_ = other.type_.Clone();
1451
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1452 1453
    }

1454
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1455 1456 1457 1458
    public MessageContainingEnumCalledType Clone() {
      return new MessageContainingEnumCalledType(this);
    }

1459
    /// <summary>Field number for the "type" field.</summary>
1460 1461 1462 1463
    public const int TypeFieldNumber = 1;
    private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>.Codec _map_type_codec
        = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType.Parser), 10);
    private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType> type_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>();
1464
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1465 1466 1467 1468
    public pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType> Type {
      get { return type_; }
    }

1469
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1470 1471 1472 1473
    public override bool Equals(object other) {
      return Equals(other as MessageContainingEnumCalledType);
    }

1474
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1475 1476 1477 1478 1479 1480 1481 1482
    public bool Equals(MessageContainingEnumCalledType other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (!Type.Equals(other.Type)) return false;
1483
      return Equals(_unknownFields, other._unknownFields);
1484 1485
    }

1486
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1487 1488 1489
    public override int GetHashCode() {
      int hash = 1;
      hash ^= Type.GetHashCode();
1490 1491 1492
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
1493 1494 1495
      return hash;
    }

1496
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1497
    public override string ToString() {
1498
      return pb::JsonFormatter.ToDiagnosticString(this);
1499 1500
    }

1501
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1502 1503
    public void WriteTo(pb::CodedOutputStream output) {
      type_.WriteTo(output, _map_type_codec);
1504 1505 1506
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
1507 1508
    }

1509
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1510 1511 1512
    public int CalculateSize() {
      int size = 0;
      size += type_.CalculateSize(_map_type_codec);
1513 1514 1515
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
1516 1517 1518
      return size;
    }

1519
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1520 1521 1522 1523 1524
    public void MergeFrom(MessageContainingEnumCalledType other) {
      if (other == null) {
        return;
      }
      type_.Add(other.type_);
1525
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1526 1527
    }

1528
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1529 1530
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
1531
      while ((tag = input.ReadTag()) != 0) {
1532 1533
        switch(tag) {
          default:
1534
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1535 1536 1537 1538 1539 1540 1541 1542 1543 1544
            break;
          case 10: {
            type_.AddEntriesFrom(input, _map_type_codec);
            break;
          }
        }
      }
    }

    #region Nested types
1545
    /// <summary>Container for nested types declared in the MessageContainingEnumCalledType message type.</summary>
1546
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1547 1548
    public static partial class Types {
      public enum Type {
1549
        [pbr::OriginalName("TYPE_FOO")] Foo = 0,
1550 1551 1552 1553 1554 1555 1556
      }

    }
    #endregion

  }

1557
  /// <summary>
1558
  /// Previously, message cannot contain map field called "entry".
1559
  /// </summary>
1560 1561
  public sealed partial class MessageContainingMapCalledEntry : pb::IMessage<MessageContainingMapCalledEntry> {
    private static readonly pb::MessageParser<MessageContainingMapCalledEntry> _parser = new pb::MessageParser<MessageContainingMapCalledEntry>(() => new MessageContainingMapCalledEntry());
1562
    private pb::UnknownFieldSet _unknownFields;
1563
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1564 1565
    public static pb::MessageParser<MessageContainingMapCalledEntry> Parser { get { return _parser; } }

1566
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1567
    public static pbr::MessageDescriptor Descriptor {
1568
      get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[6]; }
1569 1570
    }

1571
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1572 1573
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
1574 1575
    }

1576
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1577 1578 1579 1580 1581
    public MessageContainingMapCalledEntry() {
      OnConstruction();
    }

    partial void OnConstruction();
1582

1583
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1584
    public MessageContainingMapCalledEntry(MessageContainingMapCalledEntry other) : this() {
1585
      entry_ = other.entry_.Clone();
1586
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1587 1588
    }

1589
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1590 1591 1592 1593
    public MessageContainingMapCalledEntry Clone() {
      return new MessageContainingMapCalledEntry(this);
    }

1594
    /// <summary>Field number for the "entry" field.</summary>
1595 1596 1597 1598
    public const int EntryFieldNumber = 1;
    private static readonly pbc::MapField<int, int>.Codec _map_entry_codec
        = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
    private readonly pbc::MapField<int, int> entry_ = new pbc::MapField<int, int>();
1599
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1600 1601 1602 1603
    public pbc::MapField<int, int> Entry {
      get { return entry_; }
    }

1604
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1605 1606 1607 1608
    public override bool Equals(object other) {
      return Equals(other as MessageContainingMapCalledEntry);
    }

1609
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1610 1611 1612 1613 1614 1615 1616 1617
    public bool Equals(MessageContainingMapCalledEntry other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (!Entry.Equals(other.Entry)) return false;
1618
      return Equals(_unknownFields, other._unknownFields);
1619 1620
    }

1621
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1622 1623 1624
    public override int GetHashCode() {
      int hash = 1;
      hash ^= Entry.GetHashCode();
1625 1626 1627
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
1628 1629 1630
      return hash;
    }

1631
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1632
    public override string ToString() {
1633
      return pb::JsonFormatter.ToDiagnosticString(this);
1634 1635
    }

1636
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1637 1638
    public void WriteTo(pb::CodedOutputStream output) {
      entry_.WriteTo(output, _map_entry_codec);
1639 1640 1641
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
1642 1643
    }

1644
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1645 1646 1647
    public int CalculateSize() {
      int size = 0;
      size += entry_.CalculateSize(_map_entry_codec);
1648 1649 1650
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
1651 1652 1653
      return size;
    }

1654
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1655 1656 1657 1658 1659
    public void MergeFrom(MessageContainingMapCalledEntry other) {
      if (other == null) {
        return;
      }
      entry_.Add(other.entry_);
1660
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1661 1662
    }

1663
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1664 1665
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
1666
      while ((tag = input.ReadTag()) != 0) {
1667 1668
        switch(tag) {
          default:
1669
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685
            break;
          case 10: {
            entry_.AddEntriesFrom(input, _map_entry_codec);
            break;
          }
        }
      }
    }

  }

  #endregion

}

#endregion Designer generated code