1 // <auto-generated> 2 // Generated by the protocol buffer compiler. DO NOT EDIT! 3 // source: map_unittest_proto3.proto 4 // </auto-generated> 5 #pragma warning disable 1591, 0612, 3021 6 #region Designer generated code 7 8 using pb = global::Google.Protobuf; 9 using pbc = global::Google.Protobuf.Collections; 10 using pbr = global::Google.Protobuf.Reflection; 11 using scg = global::System.Collections.Generic; 12 namespace Google.Protobuf.TestProtos { 13 14 /// <summary>Holder for reflection information generated from map_unittest_proto3.proto</summary> 15 public static partial class MapUnittestProto3Reflection { 16 17 #region Descriptor 18 /// <summary>File descriptor for map_unittest_proto3.proto</summary> 19 public static pbr::FileDescriptor Descriptor { 20 get { return descriptor; } 21 } 22 private static pbr::FileDescriptor descriptor; 23 MapUnittestProto3Reflection()24 static MapUnittestProto3Reflection() { 25 byte[] descriptorData = global::System.Convert.FromBase64String( 26 string.Concat( 27 "ChltYXBfdW5pdHRlc3RfcHJvdG8zLnByb3RvEhJwcm90b2J1Zl91bml0dGVz", 28 "dDMaFXVuaXR0ZXN0X3Byb3RvMy5wcm90byKpEgoHVGVzdE1hcBJHCg9tYXBf", 29 "aW50MzJfaW50MzIYASADKAsyLi5wcm90b2J1Zl91bml0dGVzdDMuVGVzdE1h", 30 "cC5NYXBJbnQzMkludDMyRW50cnkSRwoPbWFwX2ludDY0X2ludDY0GAIgAygL", 31 "Mi4ucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RNYXAuTWFwSW50NjRJbnQ2NEVu", 32 "dHJ5EksKEW1hcF91aW50MzJfdWludDMyGAMgAygLMjAucHJvdG9idWZfdW5p", 33 "dHRlc3QzLlRlc3RNYXAuTWFwVWludDMyVWludDMyRW50cnkSSwoRbWFwX3Vp", 34 "bnQ2NF91aW50NjQYBCADKAsyMC5wcm90b2J1Zl91bml0dGVzdDMuVGVzdE1h", 35 "cC5NYXBVaW50NjRVaW50NjRFbnRyeRJLChFtYXBfc2ludDMyX3NpbnQzMhgF", 36 "IAMoCzIwLnByb3RvYnVmX3VuaXR0Z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FileDescriptor.FromGeneratedCode(descriptorData, 152 new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor, }, 153 new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.TestProtos.MapEnum), }, null, new pbr::GeneratedClrTypeInfo[] { 154 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMap), global::Google.Protobuf.TestProtos.TestMap.Parser, new[]{ "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapStringString", "MapInt32Bytes", "MapInt32Enum", "MapInt32ForeignMessage" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, }), 155 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMapSubmessage), global::Google.Protobuf.TestProtos.TestMapSubmessage.Parser, new[]{ "TestMap" }, null, null, null, null), 156 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMessageMap), global::Google.Protobuf.TestProtos.TestMessageMap.Parser, new[]{ "MapInt32Message" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), 157 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestSameTypeMap), global::Google.Protobuf.TestProtos.TestSameTypeMap.Parser, new[]{ "Map1", "Map2" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }), 158 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestArenaMap), global::Google.Protobuf.TestProtos.TestArenaMap.Parser, new[]{ "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapInt32Enum", "MapInt32ForeignMessage" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, }), 159 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType), global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType.Parser, new[]{ "Type" }, null, new[]{ typeof(global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType.Types.Type) }, null, new pbr::GeneratedClrTypeInfo[] { null, }), 160 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.MessageContainingMapCalledEntry), global::Google.Protobuf.TestProtos.MessageContainingMapCalledEntry.Parser, new[]{ "Entry" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) 161 })); 162 } 163 #endregion 164 165 } 166 #region Enums 167 public enum MapEnum { 168 [pbr::OriginalName("MAP_ENUM_FOO")] Foo = 0, 169 [pbr::OriginalName("MAP_ENUM_BAR")] Bar = 1, 170 [pbr::OriginalName("MAP_ENUM_BAZ")] Baz = 2, 171 } 172 173 #endregion 174 175 #region Messages 176 /// <summary> 177 /// Tests maps. 178 /// </summary> 179 public sealed partial class TestMap : pb::IMessage<TestMap> { 180 private static readonly pb::MessageParser<TestMap> _parser = new pb::MessageParser<TestMap>(() => new TestMap()); 181 private pb::UnknownFieldSet _unknownFields; 182 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 183 public static pb::MessageParser<TestMap> Parser { get { return _parser; } } 184 185 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 186 public static pbr::MessageDescriptor Descriptor { 187 get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[0]; } 188 } 189 190 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 191 pbr::MessageDescriptor pb::IMessage.Descriptor { 192 get { return Descriptor; } 193 } 194 195 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] TestMap()196 public TestMap() { 197 OnConstruction(); 198 } 199 OnConstruction()200 partial void OnConstruction(); 201 202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] TestMap(TestMap other)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(); 221 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 222 } 223 224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()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, 0), pb::FieldCodec.ForInt32(16, 0), 10); 233 private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>(); 234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0L), pb::FieldCodec.ForInt64(16, 0L), 18); 243 private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>(); 244 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0), pb::FieldCodec.ForUInt32(16, 0), 26); 253 private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>(); 254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0UL), pb::FieldCodec.ForUInt64(16, 0UL), 34); 263 private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>(); 264 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0), pb::FieldCodec.ForSInt32(16, 0), 42); 273 private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>(); 274 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0L), pb::FieldCodec.ForSInt64(16, 0L), 50); 283 private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>(); 284 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0), pb::FieldCodec.ForFixed32(21, 0), 58); 293 private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>(); 294 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0UL), pb::FieldCodec.ForFixed64(17, 0UL), 66); 303 private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>(); 304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0), pb::FieldCodec.ForSFixed32(21, 0), 74); 313 private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>(); 314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0L), pb::FieldCodec.ForSFixed64(17, 0L), 82); 323 private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>(); 324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0), pb::FieldCodec.ForFloat(21, 0F), 90); 333 private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>(); 334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0), pb::FieldCodec.ForDouble(17, 0D), 98); 343 private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>(); 344 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, false), pb::FieldCodec.ForBool(16, false), 106); 353 private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>(); 354 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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>(); 364 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0), pb::FieldCodec.ForBytes(18, pb::ByteString.Empty), 122); 373 private readonly pbc::MapField<int, pb::ByteString> mapInt32Bytes_ = new pbc::MapField<int, pb::ByteString>(); 374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Google.Protobuf.TestProtos.MapEnum) x, global::Google.Protobuf.TestProtos.MapEnum.Foo), 130); 383 private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> mapInt32Enum_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>(); 384 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 385 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, 0), 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>(); 394 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 395 public pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> MapInt32ForeignMessage { 396 get { return mapInt32ForeignMessage_; } 397 } 398 399 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)400 public override bool Equals(object other) { 401 return Equals(other as TestMap); 402 } 403 404 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(TestMap other)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; 429 return Equals(_unknownFields, other._unknownFields); 430 } 431 432 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()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(); 452 if (_unknownFields != null) { 453 hash ^= _unknownFields.GetHashCode(); 454 } 455 return hash; 456 } 457 458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()459 public override string ToString() { 460 return pb::JsonFormatter.ToDiagnosticString(this); 461 } 462 463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)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); 482 if (_unknownFields != null) { 483 _unknownFields.WriteTo(output); 484 } 485 } 486 487 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()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); 507 if (_unknownFields != null) { 508 size += _unknownFields.CalculateSize(); 509 } 510 return size; 511 } 512 513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(TestMap other)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_); 535 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 536 } 537 538 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)539 public void MergeFrom(pb::CodedInputStream input) { 540 uint tag; 541 while ((tag = input.ReadTag()) != 0) { 542 switch(tag) { 543 default: 544 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 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 620 public sealed partial class TestMapSubmessage : pb::IMessage<TestMapSubmessage> { 621 private static readonly pb::MessageParser<TestMapSubmessage> _parser = new pb::MessageParser<TestMapSubmessage>(() => new TestMapSubmessage()); 622 private pb::UnknownFieldSet _unknownFields; 623 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 624 public static pb::MessageParser<TestMapSubmessage> Parser { get { return _parser; } } 625 626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 627 public static pbr::MessageDescriptor Descriptor { 628 get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[1]; } 629 } 630 631 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 632 pbr::MessageDescriptor pb::IMessage.Descriptor { 633 get { return Descriptor; } 634 } 635 636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] TestMapSubmessage()637 public TestMapSubmessage() { 638 OnConstruction(); 639 } 640 OnConstruction()641 partial void OnConstruction(); 642 643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] TestMapSubmessage(TestMapSubmessage other)644 public TestMapSubmessage(TestMapSubmessage other) : this() { 645 testMap_ = other.testMap_ != null ? other.testMap_.Clone() : null; 646 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 647 } 648 649 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()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_; 657 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 658 public global::Google.Protobuf.TestProtos.TestMap TestMap { 659 get { return testMap_; } 660 set { 661 testMap_ = value; 662 } 663 } 664 665 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)666 public override bool Equals(object other) { 667 return Equals(other as TestMapSubmessage); 668 } 669 670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(TestMapSubmessage other)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; 679 return Equals(_unknownFields, other._unknownFields); 680 } 681 682 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()683 public override int GetHashCode() { 684 int hash = 1; 685 if (testMap_ != null) hash ^= TestMap.GetHashCode(); 686 if (_unknownFields != null) { 687 hash ^= _unknownFields.GetHashCode(); 688 } 689 return hash; 690 } 691 692 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()693 public override string ToString() { 694 return pb::JsonFormatter.ToDiagnosticString(this); 695 } 696 697 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)698 public void WriteTo(pb::CodedOutputStream output) { 699 if (testMap_ != null) { 700 output.WriteRawTag(10); 701 output.WriteMessage(TestMap); 702 } 703 if (_unknownFields != null) { 704 _unknownFields.WriteTo(output); 705 } 706 } 707 708 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()709 public int CalculateSize() { 710 int size = 0; 711 if (testMap_ != null) { 712 size += 1 + pb::CodedOutputStream.ComputeMessageSize(TestMap); 713 } 714 if (_unknownFields != null) { 715 size += _unknownFields.CalculateSize(); 716 } 717 return size; 718 } 719 720 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(TestMapSubmessage other)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 } 731 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 732 } 733 734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)735 public void MergeFrom(pb::CodedInputStream input) { 736 uint tag; 737 while ((tag = input.ReadTag()) != 0) { 738 switch(tag) { 739 default: 740 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 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 755 public sealed partial class TestMessageMap : pb::IMessage<TestMessageMap> { 756 private static readonly pb::MessageParser<TestMessageMap> _parser = new pb::MessageParser<TestMessageMap>(() => new TestMessageMap()); 757 private pb::UnknownFieldSet _unknownFields; 758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 759 public static pb::MessageParser<TestMessageMap> Parser { get { return _parser; } } 760 761 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 762 public static pbr::MessageDescriptor Descriptor { 763 get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[2]; } 764 } 765 766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 767 pbr::MessageDescriptor pb::IMessage.Descriptor { 768 get { return Descriptor; } 769 } 770 771 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] TestMessageMap()772 public TestMessageMap() { 773 OnConstruction(); 774 } 775 OnConstruction()776 partial void OnConstruction(); 777 778 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] TestMessageMap(TestMessageMap other)779 public TestMessageMap(TestMessageMap other) : this() { 780 mapInt32Message_ = other.mapInt32Message_.Clone(); 781 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 782 } 783 784 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()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, 0), 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>(); 794 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 795 public pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes> MapInt32Message { 796 get { return mapInt32Message_; } 797 } 798 799 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)800 public override bool Equals(object other) { 801 return Equals(other as TestMessageMap); 802 } 803 804 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(TestMessageMap other)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; 813 return Equals(_unknownFields, other._unknownFields); 814 } 815 816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()817 public override int GetHashCode() { 818 int hash = 1; 819 hash ^= MapInt32Message.GetHashCode(); 820 if (_unknownFields != null) { 821 hash ^= _unknownFields.GetHashCode(); 822 } 823 return hash; 824 } 825 826 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()827 public override string ToString() { 828 return pb::JsonFormatter.ToDiagnosticString(this); 829 } 830 831 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)832 public void WriteTo(pb::CodedOutputStream output) { 833 mapInt32Message_.WriteTo(output, _map_mapInt32Message_codec); 834 if (_unknownFields != null) { 835 _unknownFields.WriteTo(output); 836 } 837 } 838 839 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()840 public int CalculateSize() { 841 int size = 0; 842 size += mapInt32Message_.CalculateSize(_map_mapInt32Message_codec); 843 if (_unknownFields != null) { 844 size += _unknownFields.CalculateSize(); 845 } 846 return size; 847 } 848 849 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(TestMessageMap other)850 public void MergeFrom(TestMessageMap other) { 851 if (other == null) { 852 return; 853 } 854 mapInt32Message_.Add(other.mapInt32Message_); 855 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 856 } 857 858 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)859 public void MergeFrom(pb::CodedInputStream input) { 860 uint tag; 861 while ((tag = input.ReadTag()) != 0) { 862 switch(tag) { 863 default: 864 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 865 break; 866 case 10: { 867 mapInt32Message_.AddEntriesFrom(input, _map_mapInt32Message_codec); 868 break; 869 } 870 } 871 } 872 } 873 874 } 875 876 /// <summary> 877 /// Two map fields share the same entry default instance. 878 /// </summary> 879 public sealed partial class TestSameTypeMap : pb::IMessage<TestSameTypeMap> { 880 private static readonly pb::MessageParser<TestSameTypeMap> _parser = new pb::MessageParser<TestSameTypeMap>(() => new TestSameTypeMap()); 881 private pb::UnknownFieldSet _unknownFields; 882 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 883 public static pb::MessageParser<TestSameTypeMap> Parser { get { return _parser; } } 884 885 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 886 public static pbr::MessageDescriptor Descriptor { 887 get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[3]; } 888 } 889 890 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 891 pbr::MessageDescriptor pb::IMessage.Descriptor { 892 get { return Descriptor; } 893 } 894 895 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] TestSameTypeMap()896 public TestSameTypeMap() { 897 OnConstruction(); 898 } 899 OnConstruction()900 partial void OnConstruction(); 901 902 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] TestSameTypeMap(TestSameTypeMap other)903 public TestSameTypeMap(TestSameTypeMap other) : this() { 904 map1_ = other.map1_.Clone(); 905 map2_ = other.map2_.Clone(); 906 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 907 } 908 909 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()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, 0), pb::FieldCodec.ForInt32(16, 0), 10); 918 private readonly pbc::MapField<int, int> map1_ = new pbc::MapField<int, int>(); 919 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0), pb::FieldCodec.ForInt32(16, 0), 18); 928 private readonly pbc::MapField<int, int> map2_ = new pbc::MapField<int, int>(); 929 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 930 public pbc::MapField<int, int> Map2 { 931 get { return map2_; } 932 } 933 934 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)935 public override bool Equals(object other) { 936 return Equals(other as TestSameTypeMap); 937 } 938 939 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(TestSameTypeMap other)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; 949 return Equals(_unknownFields, other._unknownFields); 950 } 951 952 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()953 public override int GetHashCode() { 954 int hash = 1; 955 hash ^= Map1.GetHashCode(); 956 hash ^= Map2.GetHashCode(); 957 if (_unknownFields != null) { 958 hash ^= _unknownFields.GetHashCode(); 959 } 960 return hash; 961 } 962 963 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()964 public override string ToString() { 965 return pb::JsonFormatter.ToDiagnosticString(this); 966 } 967 968 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)969 public void WriteTo(pb::CodedOutputStream output) { 970 map1_.WriteTo(output, _map_map1_codec); 971 map2_.WriteTo(output, _map_map2_codec); 972 if (_unknownFields != null) { 973 _unknownFields.WriteTo(output); 974 } 975 } 976 977 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()978 public int CalculateSize() { 979 int size = 0; 980 size += map1_.CalculateSize(_map_map1_codec); 981 size += map2_.CalculateSize(_map_map2_codec); 982 if (_unknownFields != null) { 983 size += _unknownFields.CalculateSize(); 984 } 985 return size; 986 } 987 988 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(TestSameTypeMap other)989 public void MergeFrom(TestSameTypeMap other) { 990 if (other == null) { 991 return; 992 } 993 map1_.Add(other.map1_); 994 map2_.Add(other.map2_); 995 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 996 } 997 998 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)999 public void MergeFrom(pb::CodedInputStream input) { 1000 uint tag; 1001 while ((tag = input.ReadTag()) != 0) { 1002 switch(tag) { 1003 default: 1004 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 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 1020 public sealed partial class TestArenaMap : pb::IMessage<TestArenaMap> { 1021 private static readonly pb::MessageParser<TestArenaMap> _parser = new pb::MessageParser<TestArenaMap>(() => new TestArenaMap()); 1022 private pb::UnknownFieldSet _unknownFields; 1023 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1024 public static pb::MessageParser<TestArenaMap> Parser { get { return _parser; } } 1025 1026 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1027 public static pbr::MessageDescriptor Descriptor { 1028 get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[4]; } 1029 } 1030 1031 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1032 pbr::MessageDescriptor pb::IMessage.Descriptor { 1033 get { return Descriptor; } 1034 } 1035 1036 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] TestArenaMap()1037 public TestArenaMap() { 1038 OnConstruction(); 1039 } 1040 OnConstruction()1041 partial void OnConstruction(); 1042 1043 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] TestArenaMap(TestArenaMap other)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(); 1060 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1061 } 1062 1063 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()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, 0), pb::FieldCodec.ForInt32(16, 0), 10); 1072 private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>(); 1073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0L), pb::FieldCodec.ForInt64(16, 0L), 18); 1082 private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>(); 1083 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0), pb::FieldCodec.ForUInt32(16, 0), 26); 1092 private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>(); 1093 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0UL), pb::FieldCodec.ForUInt64(16, 0UL), 34); 1102 private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>(); 1103 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0), pb::FieldCodec.ForSInt32(16, 0), 42); 1112 private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>(); 1113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0L), pb::FieldCodec.ForSInt64(16, 0L), 50); 1122 private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>(); 1123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0), pb::FieldCodec.ForFixed32(21, 0), 58); 1132 private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>(); 1133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0UL), pb::FieldCodec.ForFixed64(17, 0UL), 66); 1142 private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>(); 1143 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0), pb::FieldCodec.ForSFixed32(21, 0), 74); 1152 private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>(); 1153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0L), pb::FieldCodec.ForSFixed64(17, 0L), 82); 1162 private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>(); 1163 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0), pb::FieldCodec.ForFloat(21, 0F), 90); 1172 private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>(); 1173 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0), pb::FieldCodec.ForDouble(17, 0D), 98); 1182 private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>(); 1183 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, false), pb::FieldCodec.ForBool(16, false), 106); 1192 private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>(); 1193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 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, 0), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Google.Protobuf.TestProtos.MapEnum) x, global::Google.Protobuf.TestProtos.MapEnum.Foo), 114); 1202 private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> mapInt32Enum_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>(); 1203 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1204 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, 0), 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>(); 1213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1214 public pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> MapInt32ForeignMessage { 1215 get { return mapInt32ForeignMessage_; } 1216 } 1217 1218 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)1219 public override bool Equals(object other) { 1220 return Equals(other as TestArenaMap); 1221 } 1222 1223 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(TestArenaMap other)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; 1246 return Equals(_unknownFields, other._unknownFields); 1247 } 1248 1249 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()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(); 1267 if (_unknownFields != null) { 1268 hash ^= _unknownFields.GetHashCode(); 1269 } 1270 return hash; 1271 } 1272 1273 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1274 public override string ToString() { 1275 return pb::JsonFormatter.ToDiagnosticString(this); 1276 } 1277 1278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)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); 1295 if (_unknownFields != null) { 1296 _unknownFields.WriteTo(output); 1297 } 1298 } 1299 1300 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()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); 1318 if (_unknownFields != null) { 1319 size += _unknownFields.CalculateSize(); 1320 } 1321 return size; 1322 } 1323 1324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(TestArenaMap other)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_); 1344 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1345 } 1346 1347 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1348 public void MergeFrom(pb::CodedInputStream input) { 1349 uint tag; 1350 while ((tag = input.ReadTag()) != 0) { 1351 switch(tag) { 1352 default: 1353 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 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> 1422 /// Previously, message containing enum called Type cannot be used as value of 1423 /// map field. 1424 /// </summary> 1425 public sealed partial class MessageContainingEnumCalledType : pb::IMessage<MessageContainingEnumCalledType> { 1426 private static readonly pb::MessageParser<MessageContainingEnumCalledType> _parser = new pb::MessageParser<MessageContainingEnumCalledType>(() => new MessageContainingEnumCalledType()); 1427 private pb::UnknownFieldSet _unknownFields; 1428 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1429 public static pb::MessageParser<MessageContainingEnumCalledType> Parser { get { return _parser; } } 1430 1431 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1432 public static pbr::MessageDescriptor Descriptor { 1433 get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[5]; } 1434 } 1435 1436 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1437 pbr::MessageDescriptor pb::IMessage.Descriptor { 1438 get { return Descriptor; } 1439 } 1440 1441 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MessageContainingEnumCalledType()1442 public MessageContainingEnumCalledType() { 1443 OnConstruction(); 1444 } 1445 OnConstruction()1446 partial void OnConstruction(); 1447 1448 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MessageContainingEnumCalledType(MessageContainingEnumCalledType other)1449 public MessageContainingEnumCalledType(MessageContainingEnumCalledType other) : this() { 1450 type_ = other.type_.Clone(); 1451 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1452 } 1453 1454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()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, 0), 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>(); 1464 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1465 public pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType> Type { 1466 get { return type_; } 1467 } 1468 1469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)1470 public override bool Equals(object other) { 1471 return Equals(other as MessageContainingEnumCalledType); 1472 } 1473 1474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(MessageContainingEnumCalledType other)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; 1483 return Equals(_unknownFields, other._unknownFields); 1484 } 1485 1486 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()1487 public override int GetHashCode() { 1488 int hash = 1; 1489 hash ^= Type.GetHashCode(); 1490 if (_unknownFields != null) { 1491 hash ^= _unknownFields.GetHashCode(); 1492 } 1493 return hash; 1494 } 1495 1496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1497 public override string ToString() { 1498 return pb::JsonFormatter.ToDiagnosticString(this); 1499 } 1500 1501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)1502 public void WriteTo(pb::CodedOutputStream output) { 1503 type_.WriteTo(output, _map_type_codec); 1504 if (_unknownFields != null) { 1505 _unknownFields.WriteTo(output); 1506 } 1507 } 1508 1509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()1510 public int CalculateSize() { 1511 int size = 0; 1512 size += type_.CalculateSize(_map_type_codec); 1513 if (_unknownFields != null) { 1514 size += _unknownFields.CalculateSize(); 1515 } 1516 return size; 1517 } 1518 1519 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(MessageContainingEnumCalledType other)1520 public void MergeFrom(MessageContainingEnumCalledType other) { 1521 if (other == null) { 1522 return; 1523 } 1524 type_.Add(other.type_); 1525 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1526 } 1527 1528 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1529 public void MergeFrom(pb::CodedInputStream input) { 1530 uint tag; 1531 while ((tag = input.ReadTag()) != 0) { 1532 switch(tag) { 1533 default: 1534 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 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> 1546 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1547 public static partial class Types { 1548 public enum Type { 1549 [pbr::OriginalName("TYPE_FOO")] Foo = 0, 1550 } 1551 1552 } 1553 #endregion 1554 1555 } 1556 1557 /// <summary> 1558 /// Previously, message cannot contain map field called "entry". 1559 /// </summary> 1560 public sealed partial class MessageContainingMapCalledEntry : pb::IMessage<MessageContainingMapCalledEntry> { 1561 private static readonly pb::MessageParser<MessageContainingMapCalledEntry> _parser = new pb::MessageParser<MessageContainingMapCalledEntry>(() => new MessageContainingMapCalledEntry()); 1562 private pb::UnknownFieldSet _unknownFields; 1563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1564 public static pb::MessageParser<MessageContainingMapCalledEntry> Parser { get { return _parser; } } 1565 1566 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1567 public static pbr::MessageDescriptor Descriptor { 1568 get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[6]; } 1569 } 1570 1571 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1572 pbr::MessageDescriptor pb::IMessage.Descriptor { 1573 get { return Descriptor; } 1574 } 1575 1576 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MessageContainingMapCalledEntry()1577 public MessageContainingMapCalledEntry() { 1578 OnConstruction(); 1579 } 1580 OnConstruction()1581 partial void OnConstruction(); 1582 1583 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MessageContainingMapCalledEntry(MessageContainingMapCalledEntry other)1584 public MessageContainingMapCalledEntry(MessageContainingMapCalledEntry other) : this() { 1585 entry_ = other.entry_.Clone(); 1586 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1587 } 1588 1589 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()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, 0), pb::FieldCodec.ForInt32(16, 0), 10); 1598 private readonly pbc::MapField<int, int> entry_ = new pbc::MapField<int, int>(); 1599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1600 public pbc::MapField<int, int> Entry { 1601 get { return entry_; } 1602 } 1603 1604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)1605 public override bool Equals(object other) { 1606 return Equals(other as MessageContainingMapCalledEntry); 1607 } 1608 1609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(MessageContainingMapCalledEntry other)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; 1618 return Equals(_unknownFields, other._unknownFields); 1619 } 1620 1621 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()1622 public override int GetHashCode() { 1623 int hash = 1; 1624 hash ^= Entry.GetHashCode(); 1625 if (_unknownFields != null) { 1626 hash ^= _unknownFields.GetHashCode(); 1627 } 1628 return hash; 1629 } 1630 1631 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1632 public override string ToString() { 1633 return pb::JsonFormatter.ToDiagnosticString(this); 1634 } 1635 1636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)1637 public void WriteTo(pb::CodedOutputStream output) { 1638 entry_.WriteTo(output, _map_entry_codec); 1639 if (_unknownFields != null) { 1640 _unknownFields.WriteTo(output); 1641 } 1642 } 1643 1644 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()1645 public int CalculateSize() { 1646 int size = 0; 1647 size += entry_.CalculateSize(_map_entry_codec); 1648 if (_unknownFields != null) { 1649 size += _unknownFields.CalculateSize(); 1650 } 1651 return size; 1652 } 1653 1654 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(MessageContainingMapCalledEntry other)1655 public void MergeFrom(MessageContainingMapCalledEntry other) { 1656 if (other == null) { 1657 return; 1658 } 1659 entry_.Add(other.entry_); 1660 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1661 } 1662 1663 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1664 public void MergeFrom(pb::CodedInputStream input) { 1665 uint tag; 1666 while ((tag = input.ReadTag()) != 0) { 1667 switch(tag) { 1668 default: 1669 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 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 1686