Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1 | // <auto-generated> |
| 2 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | // source: map_unittest_proto3.proto |
| 4 | // </auto-generated> |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 5 | #pragma warning disable 1591, 0612, 3021 |
| 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 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 14 | /// <summary>Holder for reflection information generated from map_unittest_proto3.proto</summary> |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 15 | public static partial class MapUnittestProto3Reflection { |
| 16 | |
| 17 | #region Descriptor |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 18 | /// <summary>File descriptor for map_unittest_proto3.proto</summary> |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 19 | public static pbr::FileDescriptor Descriptor { |
| 20 | get { return descriptor; } |
| 21 | } |
| 22 | private static pbr::FileDescriptor descriptor; |
| 23 | |
| 24 | static MapUnittestProto3Reflection() { |
| 25 | byte[] descriptorData = global::System.Convert.FromBase64String( |
| 26 | string.Concat( |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 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")); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 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), }, 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, 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), |
| 156 | new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMessageMap), global::Google.Protobuf.TestProtos.TestMessageMap.Parser, new[]{ "MapInt32Message" }, 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, 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, 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) }, new pbr::GeneratedClrTypeInfo[] { null, }), |
| 160 | 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 | #endregion |
| 164 | |
| 165 | } |
| 166 | #region Enums |
| 167 | public enum MapEnum { |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 168 | [pbr::OriginalName("MAP_ENUM_FOO")] Foo = 0, |
| 169 | [pbr::OriginalName("MAP_ENUM_BAR")] Bar = 1, |
| 170 | [pbr::OriginalName("MAP_ENUM_BAZ")] Baz = 2, |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 171 | } |
| 172 | |
| 173 | #endregion |
| 174 | |
| 175 | #region Messages |
| 176 | /// <summary> |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 177 | /// Tests maps. |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 178 | /// </summary> |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 179 | public sealed partial class TestMap : pb::IMessage<TestMap> { |
| 180 | private static readonly pb::MessageParser<TestMap> _parser = new pb::MessageParser<TestMap>(() => new TestMap()); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 181 | private pb::UnknownFieldSet _unknownFields; |
| 182 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 183 | public static pb::MessageParser<TestMap> Parser { get { return _parser; } } |
| 184 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 185 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 186 | public static pbr::MessageDescriptor Descriptor { |
| 187 | get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[0]; } |
| 188 | } |
| 189 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 190 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 191 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 192 | get { return Descriptor; } |
| 193 | } |
| 194 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 195 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 196 | public TestMap() { |
| 197 | OnConstruction(); |
| 198 | } |
| 199 | |
| 200 | partial void OnConstruction(); |
| 201 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 202 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 203 | public TestMap(TestMap other) : this() { |
| 204 | mapInt32Int32_ = other.mapInt32Int32_.Clone(); |
| 205 | mapInt64Int64_ = other.mapInt64Int64_.Clone(); |
| 206 | mapUint32Uint32_ = other.mapUint32Uint32_.Clone(); |
| 207 | mapUint64Uint64_ = other.mapUint64Uint64_.Clone(); |
| 208 | mapSint32Sint32_ = other.mapSint32Sint32_.Clone(); |
| 209 | mapSint64Sint64_ = other.mapSint64Sint64_.Clone(); |
| 210 | mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone(); |
| 211 | mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone(); |
| 212 | mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone(); |
| 213 | mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone(); |
| 214 | mapInt32Float_ = other.mapInt32Float_.Clone(); |
| 215 | mapInt32Double_ = other.mapInt32Double_.Clone(); |
| 216 | mapBoolBool_ = other.mapBoolBool_.Clone(); |
| 217 | mapStringString_ = other.mapStringString_.Clone(); |
| 218 | mapInt32Bytes_ = other.mapInt32Bytes_.Clone(); |
| 219 | mapInt32Enum_ = other.mapInt32Enum_.Clone(); |
| 220 | mapInt32ForeignMessage_ = other.mapInt32ForeignMessage_.Clone(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 221 | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 222 | } |
| 223 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 224 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 225 | public TestMap Clone() { |
| 226 | return new TestMap(this); |
| 227 | } |
| 228 | |
| 229 | /// <summary>Field number for the "map_int32_int32" field.</summary> |
| 230 | public const int MapInt32Int32FieldNumber = 1; |
| 231 | private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec |
| 232 | = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10); |
| 233 | private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 234 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 235 | public pbc::MapField<int, int> MapInt32Int32 { |
| 236 | get { return mapInt32Int32_; } |
| 237 | } |
| 238 | |
| 239 | /// <summary>Field number for the "map_int64_int64" field.</summary> |
| 240 | public const int MapInt64Int64FieldNumber = 2; |
| 241 | private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec |
| 242 | = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8), pb::FieldCodec.ForInt64(16), 18); |
| 243 | private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 244 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 245 | public pbc::MapField<long, long> MapInt64Int64 { |
| 246 | get { return mapInt64Int64_; } |
| 247 | } |
| 248 | |
| 249 | /// <summary>Field number for the "map_uint32_uint32" field.</summary> |
| 250 | public const int MapUint32Uint32FieldNumber = 3; |
| 251 | private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec |
| 252 | = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8), pb::FieldCodec.ForUInt32(16), 26); |
| 253 | private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 254 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 255 | public pbc::MapField<uint, uint> MapUint32Uint32 { |
| 256 | get { return mapUint32Uint32_; } |
| 257 | } |
| 258 | |
| 259 | /// <summary>Field number for the "map_uint64_uint64" field.</summary> |
| 260 | public const int MapUint64Uint64FieldNumber = 4; |
| 261 | private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec |
| 262 | = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8), pb::FieldCodec.ForUInt64(16), 34); |
| 263 | private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 264 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 265 | public pbc::MapField<ulong, ulong> MapUint64Uint64 { |
| 266 | get { return mapUint64Uint64_; } |
| 267 | } |
| 268 | |
| 269 | /// <summary>Field number for the "map_sint32_sint32" field.</summary> |
| 270 | public const int MapSint32Sint32FieldNumber = 5; |
| 271 | private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec |
| 272 | = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8), pb::FieldCodec.ForSInt32(16), 42); |
| 273 | private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 274 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 275 | public pbc::MapField<int, int> MapSint32Sint32 { |
| 276 | get { return mapSint32Sint32_; } |
| 277 | } |
| 278 | |
| 279 | /// <summary>Field number for the "map_sint64_sint64" field.</summary> |
| 280 | public const int MapSint64Sint64FieldNumber = 6; |
| 281 | private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec |
| 282 | = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8), pb::FieldCodec.ForSInt64(16), 50); |
| 283 | private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 284 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 285 | public pbc::MapField<long, long> MapSint64Sint64 { |
| 286 | get { return mapSint64Sint64_; } |
| 287 | } |
| 288 | |
| 289 | /// <summary>Field number for the "map_fixed32_fixed32" field.</summary> |
| 290 | public const int MapFixed32Fixed32FieldNumber = 7; |
| 291 | private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec |
| 292 | = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13), pb::FieldCodec.ForFixed32(21), 58); |
| 293 | private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 294 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 295 | public pbc::MapField<uint, uint> MapFixed32Fixed32 { |
| 296 | get { return mapFixed32Fixed32_; } |
| 297 | } |
| 298 | |
| 299 | /// <summary>Field number for the "map_fixed64_fixed64" field.</summary> |
| 300 | public const int MapFixed64Fixed64FieldNumber = 8; |
| 301 | private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec |
| 302 | = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9), pb::FieldCodec.ForFixed64(17), 66); |
| 303 | private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 304 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 305 | public pbc::MapField<ulong, ulong> MapFixed64Fixed64 { |
| 306 | get { return mapFixed64Fixed64_; } |
| 307 | } |
| 308 | |
| 309 | /// <summary>Field number for the "map_sfixed32_sfixed32" field.</summary> |
| 310 | public const int MapSfixed32Sfixed32FieldNumber = 9; |
| 311 | private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec |
| 312 | = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13), pb::FieldCodec.ForSFixed32(21), 74); |
| 313 | private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 314 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 315 | public pbc::MapField<int, int> MapSfixed32Sfixed32 { |
| 316 | get { return mapSfixed32Sfixed32_; } |
| 317 | } |
| 318 | |
| 319 | /// <summary>Field number for the "map_sfixed64_sfixed64" field.</summary> |
| 320 | public const int MapSfixed64Sfixed64FieldNumber = 10; |
| 321 | private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec |
| 322 | = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9), pb::FieldCodec.ForSFixed64(17), 82); |
| 323 | private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 324 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 325 | public pbc::MapField<long, long> MapSfixed64Sfixed64 { |
| 326 | get { return mapSfixed64Sfixed64_; } |
| 327 | } |
| 328 | |
| 329 | /// <summary>Field number for the "map_int32_float" field.</summary> |
| 330 | public const int MapInt32FloatFieldNumber = 11; |
| 331 | private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec |
| 332 | = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForFloat(21), 90); |
| 333 | private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 334 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 335 | public pbc::MapField<int, float> MapInt32Float { |
| 336 | get { return mapInt32Float_; } |
| 337 | } |
| 338 | |
| 339 | /// <summary>Field number for the "map_int32_double" field.</summary> |
| 340 | public const int MapInt32DoubleFieldNumber = 12; |
| 341 | private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec |
| 342 | = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForDouble(17), 98); |
| 343 | private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 344 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 345 | public pbc::MapField<int, double> MapInt32Double { |
| 346 | get { return mapInt32Double_; } |
| 347 | } |
| 348 | |
| 349 | /// <summary>Field number for the "map_bool_bool" field.</summary> |
| 350 | public const int MapBoolBoolFieldNumber = 13; |
| 351 | private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec |
| 352 | = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8), pb::FieldCodec.ForBool(16), 106); |
| 353 | private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 354 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 355 | public pbc::MapField<bool, bool> MapBoolBool { |
| 356 | get { return mapBoolBool_; } |
| 357 | } |
| 358 | |
| 359 | /// <summary>Field number for the "map_string_string" field.</summary> |
| 360 | public const int MapStringStringFieldNumber = 14; |
| 361 | private static readonly pbc::MapField<string, string>.Codec _map_mapStringString_codec |
| 362 | = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForString(18), 114); |
| 363 | private readonly pbc::MapField<string, string> mapStringString_ = new pbc::MapField<string, string>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 364 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 365 | public pbc::MapField<string, string> MapStringString { |
| 366 | get { return mapStringString_; } |
| 367 | } |
| 368 | |
| 369 | /// <summary>Field number for the "map_int32_bytes" field.</summary> |
| 370 | public const int MapInt32BytesFieldNumber = 15; |
| 371 | private static readonly pbc::MapField<int, pb::ByteString>.Codec _map_mapInt32Bytes_codec |
| 372 | = new pbc::MapField<int, pb::ByteString>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForBytes(18), 122); |
| 373 | private readonly pbc::MapField<int, pb::ByteString> mapInt32Bytes_ = new pbc::MapField<int, pb::ByteString>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 374 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 375 | public pbc::MapField<int, pb::ByteString> MapInt32Bytes { |
| 376 | get { return mapInt32Bytes_; } |
| 377 | } |
| 378 | |
| 379 | /// <summary>Field number for the "map_int32_enum" field.</summary> |
| 380 | public const int MapInt32EnumFieldNumber = 16; |
| 381 | private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec _map_mapInt32Enum_codec |
| 382 | = 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); |
| 383 | private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> mapInt32Enum_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 384 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 385 | public pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> MapInt32Enum { |
| 386 | get { return mapInt32Enum_; } |
| 387 | } |
| 388 | |
| 389 | /// <summary>Field number for the "map_int32_foreign_message" field.</summary> |
| 390 | public const int MapInt32ForeignMessageFieldNumber = 17; |
| 391 | private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec _map_mapInt32ForeignMessage_codec |
| 392 | = 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); |
| 393 | private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> mapInt32ForeignMessage_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 394 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 395 | public pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> MapInt32ForeignMessage { |
| 396 | get { return mapInt32ForeignMessage_; } |
| 397 | } |
| 398 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 399 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 400 | public override bool Equals(object other) { |
| 401 | return Equals(other as TestMap); |
| 402 | } |
| 403 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 404 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 405 | public bool Equals(TestMap other) { |
| 406 | if (ReferenceEquals(other, null)) { |
| 407 | return false; |
| 408 | } |
| 409 | if (ReferenceEquals(other, this)) { |
| 410 | return true; |
| 411 | } |
| 412 | if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false; |
| 413 | if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false; |
| 414 | if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false; |
| 415 | if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false; |
| 416 | if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false; |
| 417 | if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false; |
| 418 | if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false; |
| 419 | if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false; |
| 420 | if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false; |
| 421 | if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false; |
| 422 | if (!MapInt32Float.Equals(other.MapInt32Float)) return false; |
| 423 | if (!MapInt32Double.Equals(other.MapInt32Double)) return false; |
| 424 | if (!MapBoolBool.Equals(other.MapBoolBool)) return false; |
| 425 | if (!MapStringString.Equals(other.MapStringString)) return false; |
| 426 | if (!MapInt32Bytes.Equals(other.MapInt32Bytes)) return false; |
| 427 | if (!MapInt32Enum.Equals(other.MapInt32Enum)) return false; |
| 428 | if (!MapInt32ForeignMessage.Equals(other.MapInt32ForeignMessage)) return false; |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 429 | return Equals(_unknownFields, other._unknownFields); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 430 | } |
| 431 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 432 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 433 | public override int GetHashCode() { |
| 434 | int hash = 1; |
| 435 | hash ^= MapInt32Int32.GetHashCode(); |
| 436 | hash ^= MapInt64Int64.GetHashCode(); |
| 437 | hash ^= MapUint32Uint32.GetHashCode(); |
| 438 | hash ^= MapUint64Uint64.GetHashCode(); |
| 439 | hash ^= MapSint32Sint32.GetHashCode(); |
| 440 | hash ^= MapSint64Sint64.GetHashCode(); |
| 441 | hash ^= MapFixed32Fixed32.GetHashCode(); |
| 442 | hash ^= MapFixed64Fixed64.GetHashCode(); |
| 443 | hash ^= MapSfixed32Sfixed32.GetHashCode(); |
| 444 | hash ^= MapSfixed64Sfixed64.GetHashCode(); |
| 445 | hash ^= MapInt32Float.GetHashCode(); |
| 446 | hash ^= MapInt32Double.GetHashCode(); |
| 447 | hash ^= MapBoolBool.GetHashCode(); |
| 448 | hash ^= MapStringString.GetHashCode(); |
| 449 | hash ^= MapInt32Bytes.GetHashCode(); |
| 450 | hash ^= MapInt32Enum.GetHashCode(); |
| 451 | hash ^= MapInt32ForeignMessage.GetHashCode(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 452 | if (_unknownFields != null) { |
| 453 | hash ^= _unknownFields.GetHashCode(); |
| 454 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 455 | return hash; |
| 456 | } |
| 457 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 458 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 459 | public override string ToString() { |
| 460 | return pb::JsonFormatter.ToDiagnosticString(this); |
| 461 | } |
| 462 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 463 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 464 | public void WriteTo(pb::CodedOutputStream output) { |
| 465 | mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec); |
| 466 | mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec); |
| 467 | mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec); |
| 468 | mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec); |
| 469 | mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec); |
| 470 | mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec); |
| 471 | mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec); |
| 472 | mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec); |
| 473 | mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec); |
| 474 | mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec); |
| 475 | mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec); |
| 476 | mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec); |
| 477 | mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec); |
| 478 | mapStringString_.WriteTo(output, _map_mapStringString_codec); |
| 479 | mapInt32Bytes_.WriteTo(output, _map_mapInt32Bytes_codec); |
| 480 | mapInt32Enum_.WriteTo(output, _map_mapInt32Enum_codec); |
| 481 | mapInt32ForeignMessage_.WriteTo(output, _map_mapInt32ForeignMessage_codec); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 482 | if (_unknownFields != null) { |
| 483 | _unknownFields.WriteTo(output); |
| 484 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 485 | } |
| 486 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 487 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 488 | public int CalculateSize() { |
| 489 | int size = 0; |
| 490 | size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec); |
| 491 | size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec); |
| 492 | size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec); |
| 493 | size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec); |
| 494 | size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec); |
| 495 | size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec); |
| 496 | size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec); |
| 497 | size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec); |
| 498 | size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec); |
| 499 | size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec); |
| 500 | size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec); |
| 501 | size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec); |
| 502 | size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec); |
| 503 | size += mapStringString_.CalculateSize(_map_mapStringString_codec); |
| 504 | size += mapInt32Bytes_.CalculateSize(_map_mapInt32Bytes_codec); |
| 505 | size += mapInt32Enum_.CalculateSize(_map_mapInt32Enum_codec); |
| 506 | size += mapInt32ForeignMessage_.CalculateSize(_map_mapInt32ForeignMessage_codec); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 507 | if (_unknownFields != null) { |
| 508 | size += _unknownFields.CalculateSize(); |
| 509 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 510 | return size; |
| 511 | } |
| 512 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 513 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 514 | public void MergeFrom(TestMap other) { |
| 515 | if (other == null) { |
| 516 | return; |
| 517 | } |
| 518 | mapInt32Int32_.Add(other.mapInt32Int32_); |
| 519 | mapInt64Int64_.Add(other.mapInt64Int64_); |
| 520 | mapUint32Uint32_.Add(other.mapUint32Uint32_); |
| 521 | mapUint64Uint64_.Add(other.mapUint64Uint64_); |
| 522 | mapSint32Sint32_.Add(other.mapSint32Sint32_); |
| 523 | mapSint64Sint64_.Add(other.mapSint64Sint64_); |
| 524 | mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_); |
| 525 | mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_); |
| 526 | mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_); |
| 527 | mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_); |
| 528 | mapInt32Float_.Add(other.mapInt32Float_); |
| 529 | mapInt32Double_.Add(other.mapInt32Double_); |
| 530 | mapBoolBool_.Add(other.mapBoolBool_); |
| 531 | mapStringString_.Add(other.mapStringString_); |
| 532 | mapInt32Bytes_.Add(other.mapInt32Bytes_); |
| 533 | mapInt32Enum_.Add(other.mapInt32Enum_); |
| 534 | mapInt32ForeignMessage_.Add(other.mapInt32ForeignMessage_); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 535 | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 536 | } |
| 537 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 538 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 539 | public void MergeFrom(pb::CodedInputStream input) { |
| 540 | uint tag; |
| 541 | while ((tag = input.ReadTag()) != 0) { |
| 542 | switch(tag) { |
| 543 | default: |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 544 | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 545 | break; |
| 546 | case 10: { |
| 547 | mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec); |
| 548 | break; |
| 549 | } |
| 550 | case 18: { |
| 551 | mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec); |
| 552 | break; |
| 553 | } |
| 554 | case 26: { |
| 555 | mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec); |
| 556 | break; |
| 557 | } |
| 558 | case 34: { |
| 559 | mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec); |
| 560 | break; |
| 561 | } |
| 562 | case 42: { |
| 563 | mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec); |
| 564 | break; |
| 565 | } |
| 566 | case 50: { |
| 567 | mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec); |
| 568 | break; |
| 569 | } |
| 570 | case 58: { |
| 571 | mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec); |
| 572 | break; |
| 573 | } |
| 574 | case 66: { |
| 575 | mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec); |
| 576 | break; |
| 577 | } |
| 578 | case 74: { |
| 579 | mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec); |
| 580 | break; |
| 581 | } |
| 582 | case 82: { |
| 583 | mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec); |
| 584 | break; |
| 585 | } |
| 586 | case 90: { |
| 587 | mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec); |
| 588 | break; |
| 589 | } |
| 590 | case 98: { |
| 591 | mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec); |
| 592 | break; |
| 593 | } |
| 594 | case 106: { |
| 595 | mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec); |
| 596 | break; |
| 597 | } |
| 598 | case 114: { |
| 599 | mapStringString_.AddEntriesFrom(input, _map_mapStringString_codec); |
| 600 | break; |
| 601 | } |
| 602 | case 122: { |
| 603 | mapInt32Bytes_.AddEntriesFrom(input, _map_mapInt32Bytes_codec); |
| 604 | break; |
| 605 | } |
| 606 | case 130: { |
| 607 | mapInt32Enum_.AddEntriesFrom(input, _map_mapInt32Enum_codec); |
| 608 | break; |
| 609 | } |
| 610 | case 138: { |
| 611 | mapInt32ForeignMessage_.AddEntriesFrom(input, _map_mapInt32ForeignMessage_codec); |
| 612 | break; |
| 613 | } |
| 614 | } |
| 615 | } |
| 616 | } |
| 617 | |
| 618 | } |
| 619 | |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 620 | public sealed partial class TestMapSubmessage : pb::IMessage<TestMapSubmessage> { |
| 621 | private static readonly pb::MessageParser<TestMapSubmessage> _parser = new pb::MessageParser<TestMapSubmessage>(() => new TestMapSubmessage()); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 622 | private pb::UnknownFieldSet _unknownFields; |
| 623 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 624 | public static pb::MessageParser<TestMapSubmessage> Parser { get { return _parser; } } |
| 625 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 626 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 627 | public static pbr::MessageDescriptor Descriptor { |
| 628 | get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[1]; } |
| 629 | } |
| 630 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 631 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 632 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 633 | get { return Descriptor; } |
| 634 | } |
| 635 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 636 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 637 | public TestMapSubmessage() { |
| 638 | OnConstruction(); |
| 639 | } |
| 640 | |
| 641 | partial void OnConstruction(); |
| 642 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 643 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 644 | public TestMapSubmessage(TestMapSubmessage other) : this() { |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 645 | testMap_ = other.testMap_ != null ? other.testMap_.Clone() : null; |
| 646 | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 647 | } |
| 648 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 649 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 650 | public TestMapSubmessage Clone() { |
| 651 | return new TestMapSubmessage(this); |
| 652 | } |
| 653 | |
| 654 | /// <summary>Field number for the "test_map" field.</summary> |
| 655 | public const int TestMapFieldNumber = 1; |
| 656 | private global::Google.Protobuf.TestProtos.TestMap testMap_; |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 657 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 658 | public global::Google.Protobuf.TestProtos.TestMap TestMap { |
| 659 | get { return testMap_; } |
| 660 | set { |
| 661 | testMap_ = value; |
| 662 | } |
| 663 | } |
| 664 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 665 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 666 | public override bool Equals(object other) { |
| 667 | return Equals(other as TestMapSubmessage); |
| 668 | } |
| 669 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 670 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 671 | public bool Equals(TestMapSubmessage other) { |
| 672 | if (ReferenceEquals(other, null)) { |
| 673 | return false; |
| 674 | } |
| 675 | if (ReferenceEquals(other, this)) { |
| 676 | return true; |
| 677 | } |
| 678 | if (!object.Equals(TestMap, other.TestMap)) return false; |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 679 | return Equals(_unknownFields, other._unknownFields); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 680 | } |
| 681 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 682 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 683 | public override int GetHashCode() { |
| 684 | int hash = 1; |
| 685 | if (testMap_ != null) hash ^= TestMap.GetHashCode(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 686 | if (_unknownFields != null) { |
| 687 | hash ^= _unknownFields.GetHashCode(); |
| 688 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 689 | return hash; |
| 690 | } |
| 691 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 692 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 693 | public override string ToString() { |
| 694 | return pb::JsonFormatter.ToDiagnosticString(this); |
| 695 | } |
| 696 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 697 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 698 | public void WriteTo(pb::CodedOutputStream output) { |
| 699 | if (testMap_ != null) { |
| 700 | output.WriteRawTag(10); |
| 701 | output.WriteMessage(TestMap); |
| 702 | } |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 703 | if (_unknownFields != null) { |
| 704 | _unknownFields.WriteTo(output); |
| 705 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 706 | } |
| 707 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 708 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 709 | public int CalculateSize() { |
| 710 | int size = 0; |
| 711 | if (testMap_ != null) { |
| 712 | size += 1 + pb::CodedOutputStream.ComputeMessageSize(TestMap); |
| 713 | } |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 714 | if (_unknownFields != null) { |
| 715 | size += _unknownFields.CalculateSize(); |
| 716 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 717 | return size; |
| 718 | } |
| 719 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 720 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 721 | public void MergeFrom(TestMapSubmessage other) { |
| 722 | if (other == null) { |
| 723 | return; |
| 724 | } |
| 725 | if (other.testMap_ != null) { |
| 726 | if (testMap_ == null) { |
| 727 | testMap_ = new global::Google.Protobuf.TestProtos.TestMap(); |
| 728 | } |
| 729 | TestMap.MergeFrom(other.TestMap); |
| 730 | } |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 731 | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 732 | } |
| 733 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 734 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 735 | public void MergeFrom(pb::CodedInputStream input) { |
| 736 | uint tag; |
| 737 | while ((tag = input.ReadTag()) != 0) { |
| 738 | switch(tag) { |
| 739 | default: |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 740 | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 741 | break; |
| 742 | case 10: { |
| 743 | if (testMap_ == null) { |
| 744 | testMap_ = new global::Google.Protobuf.TestProtos.TestMap(); |
| 745 | } |
| 746 | input.ReadMessage(testMap_); |
| 747 | break; |
| 748 | } |
| 749 | } |
| 750 | } |
| 751 | } |
| 752 | |
| 753 | } |
| 754 | |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 755 | public sealed partial class TestMessageMap : pb::IMessage<TestMessageMap> { |
| 756 | private static readonly pb::MessageParser<TestMessageMap> _parser = new pb::MessageParser<TestMessageMap>(() => new TestMessageMap()); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 757 | private pb::UnknownFieldSet _unknownFields; |
| 758 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 759 | public static pb::MessageParser<TestMessageMap> Parser { get { return _parser; } } |
| 760 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 761 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 762 | public static pbr::MessageDescriptor Descriptor { |
| 763 | get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[2]; } |
| 764 | } |
| 765 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 766 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 767 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 768 | get { return Descriptor; } |
| 769 | } |
| 770 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 771 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 772 | public TestMessageMap() { |
| 773 | OnConstruction(); |
| 774 | } |
| 775 | |
| 776 | partial void OnConstruction(); |
| 777 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 778 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 779 | public TestMessageMap(TestMessageMap other) : this() { |
| 780 | mapInt32Message_ = other.mapInt32Message_.Clone(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 781 | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 782 | } |
| 783 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 784 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 785 | public TestMessageMap Clone() { |
| 786 | return new TestMessageMap(this); |
| 787 | } |
| 788 | |
| 789 | /// <summary>Field number for the "map_int32_message" field.</summary> |
| 790 | public const int MapInt32MessageFieldNumber = 1; |
| 791 | private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>.Codec _map_mapInt32Message_codec |
| 792 | = 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); |
| 793 | private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes> mapInt32Message_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 794 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 795 | public pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes> MapInt32Message { |
| 796 | get { return mapInt32Message_; } |
| 797 | } |
| 798 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 799 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 800 | public override bool Equals(object other) { |
| 801 | return Equals(other as TestMessageMap); |
| 802 | } |
| 803 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 804 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 805 | public bool Equals(TestMessageMap other) { |
| 806 | if (ReferenceEquals(other, null)) { |
| 807 | return false; |
| 808 | } |
| 809 | if (ReferenceEquals(other, this)) { |
| 810 | return true; |
| 811 | } |
| 812 | if (!MapInt32Message.Equals(other.MapInt32Message)) return false; |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 813 | return Equals(_unknownFields, other._unknownFields); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 814 | } |
| 815 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 816 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 817 | public override int GetHashCode() { |
| 818 | int hash = 1; |
| 819 | hash ^= MapInt32Message.GetHashCode(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 820 | if (_unknownFields != null) { |
| 821 | hash ^= _unknownFields.GetHashCode(); |
| 822 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 823 | return hash; |
| 824 | } |
| 825 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 826 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 827 | public override string ToString() { |
| 828 | return pb::JsonFormatter.ToDiagnosticString(this); |
| 829 | } |
| 830 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 831 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 832 | public void WriteTo(pb::CodedOutputStream output) { |
| 833 | mapInt32Message_.WriteTo(output, _map_mapInt32Message_codec); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 834 | if (_unknownFields != null) { |
| 835 | _unknownFields.WriteTo(output); |
| 836 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 837 | } |
| 838 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 839 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 840 | public int CalculateSize() { |
| 841 | int size = 0; |
| 842 | size += mapInt32Message_.CalculateSize(_map_mapInt32Message_codec); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 843 | if (_unknownFields != null) { |
| 844 | size += _unknownFields.CalculateSize(); |
| 845 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 846 | return size; |
| 847 | } |
| 848 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 849 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 850 | public void MergeFrom(TestMessageMap other) { |
| 851 | if (other == null) { |
| 852 | return; |
| 853 | } |
| 854 | mapInt32Message_.Add(other.mapInt32Message_); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 855 | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 856 | } |
| 857 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 858 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 859 | public void MergeFrom(pb::CodedInputStream input) { |
| 860 | uint tag; |
| 861 | while ((tag = input.ReadTag()) != 0) { |
| 862 | switch(tag) { |
| 863 | default: |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 864 | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 865 | break; |
| 866 | case 10: { |
| 867 | mapInt32Message_.AddEntriesFrom(input, _map_mapInt32Message_codec); |
| 868 | break; |
| 869 | } |
| 870 | } |
| 871 | } |
| 872 | } |
| 873 | |
| 874 | } |
| 875 | |
| 876 | /// <summary> |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 877 | /// Two map fields share the same entry default instance. |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 878 | /// </summary> |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 879 | public sealed partial class TestSameTypeMap : pb::IMessage<TestSameTypeMap> { |
| 880 | private static readonly pb::MessageParser<TestSameTypeMap> _parser = new pb::MessageParser<TestSameTypeMap>(() => new TestSameTypeMap()); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 881 | private pb::UnknownFieldSet _unknownFields; |
| 882 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 883 | public static pb::MessageParser<TestSameTypeMap> Parser { get { return _parser; } } |
| 884 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 885 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 886 | public static pbr::MessageDescriptor Descriptor { |
| 887 | get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[3]; } |
| 888 | } |
| 889 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 890 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 891 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 892 | get { return Descriptor; } |
| 893 | } |
| 894 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 895 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 896 | public TestSameTypeMap() { |
| 897 | OnConstruction(); |
| 898 | } |
| 899 | |
| 900 | partial void OnConstruction(); |
| 901 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 902 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 903 | public TestSameTypeMap(TestSameTypeMap other) : this() { |
| 904 | map1_ = other.map1_.Clone(); |
| 905 | map2_ = other.map2_.Clone(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 906 | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 907 | } |
| 908 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 909 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 910 | public TestSameTypeMap Clone() { |
| 911 | return new TestSameTypeMap(this); |
| 912 | } |
| 913 | |
| 914 | /// <summary>Field number for the "map1" field.</summary> |
| 915 | public const int Map1FieldNumber = 1; |
| 916 | private static readonly pbc::MapField<int, int>.Codec _map_map1_codec |
| 917 | = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10); |
| 918 | private readonly pbc::MapField<int, int> map1_ = new pbc::MapField<int, int>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 919 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 920 | public pbc::MapField<int, int> Map1 { |
| 921 | get { return map1_; } |
| 922 | } |
| 923 | |
| 924 | /// <summary>Field number for the "map2" field.</summary> |
| 925 | public const int Map2FieldNumber = 2; |
| 926 | private static readonly pbc::MapField<int, int>.Codec _map_map2_codec |
| 927 | = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 18); |
| 928 | private readonly pbc::MapField<int, int> map2_ = new pbc::MapField<int, int>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 929 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 930 | public pbc::MapField<int, int> Map2 { |
| 931 | get { return map2_; } |
| 932 | } |
| 933 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 934 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 935 | public override bool Equals(object other) { |
| 936 | return Equals(other as TestSameTypeMap); |
| 937 | } |
| 938 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 939 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 940 | public bool Equals(TestSameTypeMap other) { |
| 941 | if (ReferenceEquals(other, null)) { |
| 942 | return false; |
| 943 | } |
| 944 | if (ReferenceEquals(other, this)) { |
| 945 | return true; |
| 946 | } |
| 947 | if (!Map1.Equals(other.Map1)) return false; |
| 948 | if (!Map2.Equals(other.Map2)) return false; |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 949 | return Equals(_unknownFields, other._unknownFields); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 950 | } |
| 951 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 952 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 953 | public override int GetHashCode() { |
| 954 | int hash = 1; |
| 955 | hash ^= Map1.GetHashCode(); |
| 956 | hash ^= Map2.GetHashCode(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 957 | if (_unknownFields != null) { |
| 958 | hash ^= _unknownFields.GetHashCode(); |
| 959 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 960 | return hash; |
| 961 | } |
| 962 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 963 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 964 | public override string ToString() { |
| 965 | return pb::JsonFormatter.ToDiagnosticString(this); |
| 966 | } |
| 967 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 968 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 969 | public void WriteTo(pb::CodedOutputStream output) { |
| 970 | map1_.WriteTo(output, _map_map1_codec); |
| 971 | map2_.WriteTo(output, _map_map2_codec); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 972 | if (_unknownFields != null) { |
| 973 | _unknownFields.WriteTo(output); |
| 974 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 975 | } |
| 976 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 977 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 978 | public int CalculateSize() { |
| 979 | int size = 0; |
| 980 | size += map1_.CalculateSize(_map_map1_codec); |
| 981 | size += map2_.CalculateSize(_map_map2_codec); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 982 | if (_unknownFields != null) { |
| 983 | size += _unknownFields.CalculateSize(); |
| 984 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 985 | return size; |
| 986 | } |
| 987 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 988 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 989 | public void MergeFrom(TestSameTypeMap other) { |
| 990 | if (other == null) { |
| 991 | return; |
| 992 | } |
| 993 | map1_.Add(other.map1_); |
| 994 | map2_.Add(other.map2_); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 995 | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 996 | } |
| 997 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 998 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 999 | public void MergeFrom(pb::CodedInputStream input) { |
| 1000 | uint tag; |
| 1001 | while ((tag = input.ReadTag()) != 0) { |
| 1002 | switch(tag) { |
| 1003 | default: |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1004 | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1005 | break; |
| 1006 | case 10: { |
| 1007 | map1_.AddEntriesFrom(input, _map_map1_codec); |
| 1008 | break; |
| 1009 | } |
| 1010 | case 18: { |
| 1011 | map2_.AddEntriesFrom(input, _map_map2_codec); |
| 1012 | break; |
| 1013 | } |
| 1014 | } |
| 1015 | } |
| 1016 | } |
| 1017 | |
| 1018 | } |
| 1019 | |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1020 | public sealed partial class TestArenaMap : pb::IMessage<TestArenaMap> { |
| 1021 | private static readonly pb::MessageParser<TestArenaMap> _parser = new pb::MessageParser<TestArenaMap>(() => new TestArenaMap()); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1022 | private pb::UnknownFieldSet _unknownFields; |
| 1023 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1024 | public static pb::MessageParser<TestArenaMap> Parser { get { return _parser; } } |
| 1025 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1026 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1027 | public static pbr::MessageDescriptor Descriptor { |
| 1028 | get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[4]; } |
| 1029 | } |
| 1030 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1031 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1032 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 1033 | get { return Descriptor; } |
| 1034 | } |
| 1035 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1036 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1037 | public TestArenaMap() { |
| 1038 | OnConstruction(); |
| 1039 | } |
| 1040 | |
| 1041 | partial void OnConstruction(); |
| 1042 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1043 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1044 | public TestArenaMap(TestArenaMap other) : this() { |
| 1045 | mapInt32Int32_ = other.mapInt32Int32_.Clone(); |
| 1046 | mapInt64Int64_ = other.mapInt64Int64_.Clone(); |
| 1047 | mapUint32Uint32_ = other.mapUint32Uint32_.Clone(); |
| 1048 | mapUint64Uint64_ = other.mapUint64Uint64_.Clone(); |
| 1049 | mapSint32Sint32_ = other.mapSint32Sint32_.Clone(); |
| 1050 | mapSint64Sint64_ = other.mapSint64Sint64_.Clone(); |
| 1051 | mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone(); |
| 1052 | mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone(); |
| 1053 | mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone(); |
| 1054 | mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone(); |
| 1055 | mapInt32Float_ = other.mapInt32Float_.Clone(); |
| 1056 | mapInt32Double_ = other.mapInt32Double_.Clone(); |
| 1057 | mapBoolBool_ = other.mapBoolBool_.Clone(); |
| 1058 | mapInt32Enum_ = other.mapInt32Enum_.Clone(); |
| 1059 | mapInt32ForeignMessage_ = other.mapInt32ForeignMessage_.Clone(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1060 | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1061 | } |
| 1062 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1063 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1064 | public TestArenaMap Clone() { |
| 1065 | return new TestArenaMap(this); |
| 1066 | } |
| 1067 | |
| 1068 | /// <summary>Field number for the "map_int32_int32" field.</summary> |
| 1069 | public const int MapInt32Int32FieldNumber = 1; |
| 1070 | private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec |
| 1071 | = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10); |
| 1072 | private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1073 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1074 | public pbc::MapField<int, int> MapInt32Int32 { |
| 1075 | get { return mapInt32Int32_; } |
| 1076 | } |
| 1077 | |
| 1078 | /// <summary>Field number for the "map_int64_int64" field.</summary> |
| 1079 | public const int MapInt64Int64FieldNumber = 2; |
| 1080 | private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec |
| 1081 | = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8), pb::FieldCodec.ForInt64(16), 18); |
| 1082 | private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1083 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1084 | public pbc::MapField<long, long> MapInt64Int64 { |
| 1085 | get { return mapInt64Int64_; } |
| 1086 | } |
| 1087 | |
| 1088 | /// <summary>Field number for the "map_uint32_uint32" field.</summary> |
| 1089 | public const int MapUint32Uint32FieldNumber = 3; |
| 1090 | private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec |
| 1091 | = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8), pb::FieldCodec.ForUInt32(16), 26); |
| 1092 | private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1093 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1094 | public pbc::MapField<uint, uint> MapUint32Uint32 { |
| 1095 | get { return mapUint32Uint32_; } |
| 1096 | } |
| 1097 | |
| 1098 | /// <summary>Field number for the "map_uint64_uint64" field.</summary> |
| 1099 | public const int MapUint64Uint64FieldNumber = 4; |
| 1100 | private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec |
| 1101 | = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8), pb::FieldCodec.ForUInt64(16), 34); |
| 1102 | private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1103 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1104 | public pbc::MapField<ulong, ulong> MapUint64Uint64 { |
| 1105 | get { return mapUint64Uint64_; } |
| 1106 | } |
| 1107 | |
| 1108 | /// <summary>Field number for the "map_sint32_sint32" field.</summary> |
| 1109 | public const int MapSint32Sint32FieldNumber = 5; |
| 1110 | private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec |
| 1111 | = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8), pb::FieldCodec.ForSInt32(16), 42); |
| 1112 | private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1113 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1114 | public pbc::MapField<int, int> MapSint32Sint32 { |
| 1115 | get { return mapSint32Sint32_; } |
| 1116 | } |
| 1117 | |
| 1118 | /// <summary>Field number for the "map_sint64_sint64" field.</summary> |
| 1119 | public const int MapSint64Sint64FieldNumber = 6; |
| 1120 | private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec |
| 1121 | = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8), pb::FieldCodec.ForSInt64(16), 50); |
| 1122 | private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1123 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1124 | public pbc::MapField<long, long> MapSint64Sint64 { |
| 1125 | get { return mapSint64Sint64_; } |
| 1126 | } |
| 1127 | |
| 1128 | /// <summary>Field number for the "map_fixed32_fixed32" field.</summary> |
| 1129 | public const int MapFixed32Fixed32FieldNumber = 7; |
| 1130 | private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec |
| 1131 | = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13), pb::FieldCodec.ForFixed32(21), 58); |
| 1132 | private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1133 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1134 | public pbc::MapField<uint, uint> MapFixed32Fixed32 { |
| 1135 | get { return mapFixed32Fixed32_; } |
| 1136 | } |
| 1137 | |
| 1138 | /// <summary>Field number for the "map_fixed64_fixed64" field.</summary> |
| 1139 | public const int MapFixed64Fixed64FieldNumber = 8; |
| 1140 | private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec |
| 1141 | = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9), pb::FieldCodec.ForFixed64(17), 66); |
| 1142 | private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1143 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1144 | public pbc::MapField<ulong, ulong> MapFixed64Fixed64 { |
| 1145 | get { return mapFixed64Fixed64_; } |
| 1146 | } |
| 1147 | |
| 1148 | /// <summary>Field number for the "map_sfixed32_sfixed32" field.</summary> |
| 1149 | public const int MapSfixed32Sfixed32FieldNumber = 9; |
| 1150 | private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec |
| 1151 | = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13), pb::FieldCodec.ForSFixed32(21), 74); |
| 1152 | private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1153 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1154 | public pbc::MapField<int, int> MapSfixed32Sfixed32 { |
| 1155 | get { return mapSfixed32Sfixed32_; } |
| 1156 | } |
| 1157 | |
| 1158 | /// <summary>Field number for the "map_sfixed64_sfixed64" field.</summary> |
| 1159 | public const int MapSfixed64Sfixed64FieldNumber = 10; |
| 1160 | private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec |
| 1161 | = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9), pb::FieldCodec.ForSFixed64(17), 82); |
| 1162 | private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1163 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1164 | public pbc::MapField<long, long> MapSfixed64Sfixed64 { |
| 1165 | get { return mapSfixed64Sfixed64_; } |
| 1166 | } |
| 1167 | |
| 1168 | /// <summary>Field number for the "map_int32_float" field.</summary> |
| 1169 | public const int MapInt32FloatFieldNumber = 11; |
| 1170 | private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec |
| 1171 | = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForFloat(21), 90); |
| 1172 | private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1173 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1174 | public pbc::MapField<int, float> MapInt32Float { |
| 1175 | get { return mapInt32Float_; } |
| 1176 | } |
| 1177 | |
| 1178 | /// <summary>Field number for the "map_int32_double" field.</summary> |
| 1179 | public const int MapInt32DoubleFieldNumber = 12; |
| 1180 | private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec |
| 1181 | = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForDouble(17), 98); |
| 1182 | private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1183 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1184 | public pbc::MapField<int, double> MapInt32Double { |
| 1185 | get { return mapInt32Double_; } |
| 1186 | } |
| 1187 | |
| 1188 | /// <summary>Field number for the "map_bool_bool" field.</summary> |
| 1189 | public const int MapBoolBoolFieldNumber = 13; |
| 1190 | private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec |
| 1191 | = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8), pb::FieldCodec.ForBool(16), 106); |
| 1192 | private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1193 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1194 | public pbc::MapField<bool, bool> MapBoolBool { |
| 1195 | get { return mapBoolBool_; } |
| 1196 | } |
| 1197 | |
| 1198 | /// <summary>Field number for the "map_int32_enum" field.</summary> |
| 1199 | public const int MapInt32EnumFieldNumber = 14; |
| 1200 | private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec _map_mapInt32Enum_codec |
| 1201 | = 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); |
| 1202 | private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> mapInt32Enum_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1203 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1204 | public pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> MapInt32Enum { |
| 1205 | get { return mapInt32Enum_; } |
| 1206 | } |
| 1207 | |
| 1208 | /// <summary>Field number for the "map_int32_foreign_message" field.</summary> |
| 1209 | public const int MapInt32ForeignMessageFieldNumber = 15; |
| 1210 | private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec _map_mapInt32ForeignMessage_codec |
| 1211 | = 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); |
| 1212 | private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> mapInt32ForeignMessage_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1213 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1214 | public pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> MapInt32ForeignMessage { |
| 1215 | get { return mapInt32ForeignMessage_; } |
| 1216 | } |
| 1217 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1218 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1219 | public override bool Equals(object other) { |
| 1220 | return Equals(other as TestArenaMap); |
| 1221 | } |
| 1222 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1223 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1224 | public bool Equals(TestArenaMap other) { |
| 1225 | if (ReferenceEquals(other, null)) { |
| 1226 | return false; |
| 1227 | } |
| 1228 | if (ReferenceEquals(other, this)) { |
| 1229 | return true; |
| 1230 | } |
| 1231 | if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false; |
| 1232 | if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false; |
| 1233 | if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false; |
| 1234 | if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false; |
| 1235 | if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false; |
| 1236 | if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false; |
| 1237 | if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false; |
| 1238 | if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false; |
| 1239 | if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false; |
| 1240 | if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false; |
| 1241 | if (!MapInt32Float.Equals(other.MapInt32Float)) return false; |
| 1242 | if (!MapInt32Double.Equals(other.MapInt32Double)) return false; |
| 1243 | if (!MapBoolBool.Equals(other.MapBoolBool)) return false; |
| 1244 | if (!MapInt32Enum.Equals(other.MapInt32Enum)) return false; |
| 1245 | if (!MapInt32ForeignMessage.Equals(other.MapInt32ForeignMessage)) return false; |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1246 | return Equals(_unknownFields, other._unknownFields); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1247 | } |
| 1248 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1249 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1250 | public override int GetHashCode() { |
| 1251 | int hash = 1; |
| 1252 | hash ^= MapInt32Int32.GetHashCode(); |
| 1253 | hash ^= MapInt64Int64.GetHashCode(); |
| 1254 | hash ^= MapUint32Uint32.GetHashCode(); |
| 1255 | hash ^= MapUint64Uint64.GetHashCode(); |
| 1256 | hash ^= MapSint32Sint32.GetHashCode(); |
| 1257 | hash ^= MapSint64Sint64.GetHashCode(); |
| 1258 | hash ^= MapFixed32Fixed32.GetHashCode(); |
| 1259 | hash ^= MapFixed64Fixed64.GetHashCode(); |
| 1260 | hash ^= MapSfixed32Sfixed32.GetHashCode(); |
| 1261 | hash ^= MapSfixed64Sfixed64.GetHashCode(); |
| 1262 | hash ^= MapInt32Float.GetHashCode(); |
| 1263 | hash ^= MapInt32Double.GetHashCode(); |
| 1264 | hash ^= MapBoolBool.GetHashCode(); |
| 1265 | hash ^= MapInt32Enum.GetHashCode(); |
| 1266 | hash ^= MapInt32ForeignMessage.GetHashCode(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1267 | if (_unknownFields != null) { |
| 1268 | hash ^= _unknownFields.GetHashCode(); |
| 1269 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1270 | return hash; |
| 1271 | } |
| 1272 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1273 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1274 | public override string ToString() { |
| 1275 | return pb::JsonFormatter.ToDiagnosticString(this); |
| 1276 | } |
| 1277 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1278 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1279 | public void WriteTo(pb::CodedOutputStream output) { |
| 1280 | mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec); |
| 1281 | mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec); |
| 1282 | mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec); |
| 1283 | mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec); |
| 1284 | mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec); |
| 1285 | mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec); |
| 1286 | mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec); |
| 1287 | mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec); |
| 1288 | mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec); |
| 1289 | mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec); |
| 1290 | mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec); |
| 1291 | mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec); |
| 1292 | mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec); |
| 1293 | mapInt32Enum_.WriteTo(output, _map_mapInt32Enum_codec); |
| 1294 | mapInt32ForeignMessage_.WriteTo(output, _map_mapInt32ForeignMessage_codec); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1295 | if (_unknownFields != null) { |
| 1296 | _unknownFields.WriteTo(output); |
| 1297 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1298 | } |
| 1299 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1300 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1301 | public int CalculateSize() { |
| 1302 | int size = 0; |
| 1303 | size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec); |
| 1304 | size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec); |
| 1305 | size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec); |
| 1306 | size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec); |
| 1307 | size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec); |
| 1308 | size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec); |
| 1309 | size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec); |
| 1310 | size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec); |
| 1311 | size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec); |
| 1312 | size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec); |
| 1313 | size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec); |
| 1314 | size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec); |
| 1315 | size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec); |
| 1316 | size += mapInt32Enum_.CalculateSize(_map_mapInt32Enum_codec); |
| 1317 | size += mapInt32ForeignMessage_.CalculateSize(_map_mapInt32ForeignMessage_codec); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1318 | if (_unknownFields != null) { |
| 1319 | size += _unknownFields.CalculateSize(); |
| 1320 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1321 | return size; |
| 1322 | } |
| 1323 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1324 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1325 | public void MergeFrom(TestArenaMap other) { |
| 1326 | if (other == null) { |
| 1327 | return; |
| 1328 | } |
| 1329 | mapInt32Int32_.Add(other.mapInt32Int32_); |
| 1330 | mapInt64Int64_.Add(other.mapInt64Int64_); |
| 1331 | mapUint32Uint32_.Add(other.mapUint32Uint32_); |
| 1332 | mapUint64Uint64_.Add(other.mapUint64Uint64_); |
| 1333 | mapSint32Sint32_.Add(other.mapSint32Sint32_); |
| 1334 | mapSint64Sint64_.Add(other.mapSint64Sint64_); |
| 1335 | mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_); |
| 1336 | mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_); |
| 1337 | mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_); |
| 1338 | mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_); |
| 1339 | mapInt32Float_.Add(other.mapInt32Float_); |
| 1340 | mapInt32Double_.Add(other.mapInt32Double_); |
| 1341 | mapBoolBool_.Add(other.mapBoolBool_); |
| 1342 | mapInt32Enum_.Add(other.mapInt32Enum_); |
| 1343 | mapInt32ForeignMessage_.Add(other.mapInt32ForeignMessage_); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1344 | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1345 | } |
| 1346 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1347 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1348 | public void MergeFrom(pb::CodedInputStream input) { |
| 1349 | uint tag; |
| 1350 | while ((tag = input.ReadTag()) != 0) { |
| 1351 | switch(tag) { |
| 1352 | default: |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1353 | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1354 | break; |
| 1355 | case 10: { |
| 1356 | mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec); |
| 1357 | break; |
| 1358 | } |
| 1359 | case 18: { |
| 1360 | mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec); |
| 1361 | break; |
| 1362 | } |
| 1363 | case 26: { |
| 1364 | mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec); |
| 1365 | break; |
| 1366 | } |
| 1367 | case 34: { |
| 1368 | mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec); |
| 1369 | break; |
| 1370 | } |
| 1371 | case 42: { |
| 1372 | mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec); |
| 1373 | break; |
| 1374 | } |
| 1375 | case 50: { |
| 1376 | mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec); |
| 1377 | break; |
| 1378 | } |
| 1379 | case 58: { |
| 1380 | mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec); |
| 1381 | break; |
| 1382 | } |
| 1383 | case 66: { |
| 1384 | mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec); |
| 1385 | break; |
| 1386 | } |
| 1387 | case 74: { |
| 1388 | mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec); |
| 1389 | break; |
| 1390 | } |
| 1391 | case 82: { |
| 1392 | mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec); |
| 1393 | break; |
| 1394 | } |
| 1395 | case 90: { |
| 1396 | mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec); |
| 1397 | break; |
| 1398 | } |
| 1399 | case 98: { |
| 1400 | mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec); |
| 1401 | break; |
| 1402 | } |
| 1403 | case 106: { |
| 1404 | mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec); |
| 1405 | break; |
| 1406 | } |
| 1407 | case 114: { |
| 1408 | mapInt32Enum_.AddEntriesFrom(input, _map_mapInt32Enum_codec); |
| 1409 | break; |
| 1410 | } |
| 1411 | case 122: { |
| 1412 | mapInt32ForeignMessage_.AddEntriesFrom(input, _map_mapInt32ForeignMessage_codec); |
| 1413 | break; |
| 1414 | } |
| 1415 | } |
| 1416 | } |
| 1417 | } |
| 1418 | |
| 1419 | } |
| 1420 | |
| 1421 | /// <summary> |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1422 | /// Previously, message containing enum called Type cannot be used as value of |
| 1423 | /// map field. |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1424 | /// </summary> |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1425 | public sealed partial class MessageContainingEnumCalledType : pb::IMessage<MessageContainingEnumCalledType> { |
| 1426 | private static readonly pb::MessageParser<MessageContainingEnumCalledType> _parser = new pb::MessageParser<MessageContainingEnumCalledType>(() => new MessageContainingEnumCalledType()); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1427 | private pb::UnknownFieldSet _unknownFields; |
| 1428 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1429 | public static pb::MessageParser<MessageContainingEnumCalledType> Parser { get { return _parser; } } |
| 1430 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1431 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1432 | public static pbr::MessageDescriptor Descriptor { |
| 1433 | get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[5]; } |
| 1434 | } |
| 1435 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1436 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1437 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 1438 | get { return Descriptor; } |
| 1439 | } |
| 1440 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1441 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1442 | public MessageContainingEnumCalledType() { |
| 1443 | OnConstruction(); |
| 1444 | } |
| 1445 | |
| 1446 | partial void OnConstruction(); |
| 1447 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1448 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1449 | public MessageContainingEnumCalledType(MessageContainingEnumCalledType other) : this() { |
| 1450 | type_ = other.type_.Clone(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1451 | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1452 | } |
| 1453 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1454 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1455 | public MessageContainingEnumCalledType Clone() { |
| 1456 | return new MessageContainingEnumCalledType(this); |
| 1457 | } |
| 1458 | |
| 1459 | /// <summary>Field number for the "type" field.</summary> |
| 1460 | public const int TypeFieldNumber = 1; |
| 1461 | private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>.Codec _map_type_codec |
| 1462 | = 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); |
| 1463 | private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType> type_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1464 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1465 | public pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType> Type { |
| 1466 | get { return type_; } |
| 1467 | } |
| 1468 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1469 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1470 | public override bool Equals(object other) { |
| 1471 | return Equals(other as MessageContainingEnumCalledType); |
| 1472 | } |
| 1473 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1474 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1475 | public bool Equals(MessageContainingEnumCalledType other) { |
| 1476 | if (ReferenceEquals(other, null)) { |
| 1477 | return false; |
| 1478 | } |
| 1479 | if (ReferenceEquals(other, this)) { |
| 1480 | return true; |
| 1481 | } |
| 1482 | if (!Type.Equals(other.Type)) return false; |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1483 | return Equals(_unknownFields, other._unknownFields); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1484 | } |
| 1485 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1486 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1487 | public override int GetHashCode() { |
| 1488 | int hash = 1; |
| 1489 | hash ^= Type.GetHashCode(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1490 | if (_unknownFields != null) { |
| 1491 | hash ^= _unknownFields.GetHashCode(); |
| 1492 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1493 | return hash; |
| 1494 | } |
| 1495 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1496 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1497 | public override string ToString() { |
| 1498 | return pb::JsonFormatter.ToDiagnosticString(this); |
| 1499 | } |
| 1500 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1501 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1502 | public void WriteTo(pb::CodedOutputStream output) { |
| 1503 | type_.WriteTo(output, _map_type_codec); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1504 | if (_unknownFields != null) { |
| 1505 | _unknownFields.WriteTo(output); |
| 1506 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1507 | } |
| 1508 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1509 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1510 | public int CalculateSize() { |
| 1511 | int size = 0; |
| 1512 | size += type_.CalculateSize(_map_type_codec); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1513 | if (_unknownFields != null) { |
| 1514 | size += _unknownFields.CalculateSize(); |
| 1515 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1516 | return size; |
| 1517 | } |
| 1518 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1519 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1520 | public void MergeFrom(MessageContainingEnumCalledType other) { |
| 1521 | if (other == null) { |
| 1522 | return; |
| 1523 | } |
| 1524 | type_.Add(other.type_); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1525 | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1526 | } |
| 1527 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1528 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1529 | public void MergeFrom(pb::CodedInputStream input) { |
| 1530 | uint tag; |
| 1531 | while ((tag = input.ReadTag()) != 0) { |
| 1532 | switch(tag) { |
| 1533 | default: |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1534 | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1535 | break; |
| 1536 | case 10: { |
| 1537 | type_.AddEntriesFrom(input, _map_type_codec); |
| 1538 | break; |
| 1539 | } |
| 1540 | } |
| 1541 | } |
| 1542 | } |
| 1543 | |
| 1544 | #region Nested types |
| 1545 | /// <summary>Container for nested types declared in the MessageContainingEnumCalledType message type.</summary> |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1546 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1547 | public static partial class Types { |
| 1548 | public enum Type { |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1549 | [pbr::OriginalName("TYPE_FOO")] Foo = 0, |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1550 | } |
| 1551 | |
| 1552 | } |
| 1553 | #endregion |
| 1554 | |
| 1555 | } |
| 1556 | |
| 1557 | /// <summary> |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1558 | /// Previously, message cannot contain map field called "entry". |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1559 | /// </summary> |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1560 | public sealed partial class MessageContainingMapCalledEntry : pb::IMessage<MessageContainingMapCalledEntry> { |
| 1561 | private static readonly pb::MessageParser<MessageContainingMapCalledEntry> _parser = new pb::MessageParser<MessageContainingMapCalledEntry>(() => new MessageContainingMapCalledEntry()); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1562 | private pb::UnknownFieldSet _unknownFields; |
| 1563 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1564 | public static pb::MessageParser<MessageContainingMapCalledEntry> Parser { get { return _parser; } } |
| 1565 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1566 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1567 | public static pbr::MessageDescriptor Descriptor { |
| 1568 | get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[6]; } |
| 1569 | } |
| 1570 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1571 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1572 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 1573 | get { return Descriptor; } |
| 1574 | } |
| 1575 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1576 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1577 | public MessageContainingMapCalledEntry() { |
| 1578 | OnConstruction(); |
| 1579 | } |
| 1580 | |
| 1581 | partial void OnConstruction(); |
| 1582 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1583 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1584 | public MessageContainingMapCalledEntry(MessageContainingMapCalledEntry other) : this() { |
| 1585 | entry_ = other.entry_.Clone(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1586 | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1587 | } |
| 1588 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1589 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1590 | public MessageContainingMapCalledEntry Clone() { |
| 1591 | return new MessageContainingMapCalledEntry(this); |
| 1592 | } |
| 1593 | |
| 1594 | /// <summary>Field number for the "entry" field.</summary> |
| 1595 | public const int EntryFieldNumber = 1; |
| 1596 | private static readonly pbc::MapField<int, int>.Codec _map_entry_codec |
| 1597 | = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10); |
| 1598 | private readonly pbc::MapField<int, int> entry_ = new pbc::MapField<int, int>(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1599 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1600 | public pbc::MapField<int, int> Entry { |
| 1601 | get { return entry_; } |
| 1602 | } |
| 1603 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1604 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1605 | public override bool Equals(object other) { |
| 1606 | return Equals(other as MessageContainingMapCalledEntry); |
| 1607 | } |
| 1608 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1609 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1610 | public bool Equals(MessageContainingMapCalledEntry other) { |
| 1611 | if (ReferenceEquals(other, null)) { |
| 1612 | return false; |
| 1613 | } |
| 1614 | if (ReferenceEquals(other, this)) { |
| 1615 | return true; |
| 1616 | } |
| 1617 | if (!Entry.Equals(other.Entry)) return false; |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1618 | return Equals(_unknownFields, other._unknownFields); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1619 | } |
| 1620 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1621 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1622 | public override int GetHashCode() { |
| 1623 | int hash = 1; |
| 1624 | hash ^= Entry.GetHashCode(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1625 | if (_unknownFields != null) { |
| 1626 | hash ^= _unknownFields.GetHashCode(); |
| 1627 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1628 | return hash; |
| 1629 | } |
| 1630 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1631 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1632 | public override string ToString() { |
| 1633 | return pb::JsonFormatter.ToDiagnosticString(this); |
| 1634 | } |
| 1635 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1636 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1637 | public void WriteTo(pb::CodedOutputStream output) { |
| 1638 | entry_.WriteTo(output, _map_entry_codec); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1639 | if (_unknownFields != null) { |
| 1640 | _unknownFields.WriteTo(output); |
| 1641 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1642 | } |
| 1643 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1644 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1645 | public int CalculateSize() { |
| 1646 | int size = 0; |
| 1647 | size += entry_.CalculateSize(_map_entry_codec); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1648 | if (_unknownFields != null) { |
| 1649 | size += _unknownFields.CalculateSize(); |
| 1650 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1651 | return size; |
| 1652 | } |
| 1653 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1654 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1655 | public void MergeFrom(MessageContainingMapCalledEntry other) { |
| 1656 | if (other == null) { |
| 1657 | return; |
| 1658 | } |
| 1659 | entry_.Add(other.entry_); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1660 | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1661 | } |
| 1662 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1663 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1664 | public void MergeFrom(pb::CodedInputStream input) { |
| 1665 | uint tag; |
| 1666 | while ((tag = input.ReadTag()) != 0) { |
| 1667 | switch(tag) { |
| 1668 | default: |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1669 | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1670 | break; |
| 1671 | case 10: { |
| 1672 | entry_.AddEntriesFrom(input, _map_entry_codec); |
| 1673 | break; |
| 1674 | } |
| 1675 | } |
| 1676 | } |
| 1677 | } |
| 1678 | |
| 1679 | } |
| 1680 | |
| 1681 | #endregion |
| 1682 | |
| 1683 | } |
| 1684 | |
| 1685 | #endregion Designer generated code |