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