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