blob: 51715a0c0351f01d93cc809072352b27a5936d4c [file] [log] [blame]
Austin Schuh40c16522018-10-28 20:27:54 -07001// <auto-generated>
2// Generated by the protocol buffer compiler. DO NOT EDIT!
3// source: map_unittest_proto3.proto
4// </auto-generated>
Brian Silverman9c614bc2016-02-15 20:20:02 -05005#pragma warning disable 1591, 0612, 3021
6#region Designer generated code
7
8using pb = global::Google.Protobuf;
9using pbc = global::Google.Protobuf.Collections;
10using pbr = global::Google.Protobuf.Reflection;
11using scg = global::System.Collections.Generic;
12namespace Google.Protobuf.TestProtos {
13
Austin Schuh40c16522018-10-28 20:27:54 -070014 /// <summary>Holder for reflection information generated from map_unittest_proto3.proto</summary>
Brian Silverman9c614bc2016-02-15 20:20:02 -050015 public static partial class MapUnittestProto3Reflection {
16
17 #region Descriptor
Austin Schuh40c16522018-10-28 20:27:54 -070018 /// <summary>File descriptor for map_unittest_proto3.proto</summary>
Brian Silverman9c614bc2016-02-15 20:20:02 -050019 public static pbr::FileDescriptor Descriptor {
20 get { return descriptor; }
21 }
22 private static pbr::FileDescriptor descriptor;
23
24 static MapUnittestProto3Reflection() {
25 byte[] descriptorData = global::System.Convert.FromBase64String(
26 string.Concat(
Austin Schuh40c16522018-10-28 20:27:54 -070027 "ChltYXBfdW5pdHRlc3RfcHJvdG8zLnByb3RvEhJwcm90b2J1Zl91bml0dGVz",
28 "dDMaFXVuaXR0ZXN0X3Byb3RvMy5wcm90byKpEgoHVGVzdE1hcBJHCg9tYXBf",
29 "aW50MzJfaW50MzIYASADKAsyLi5wcm90b2J1Zl91bml0dGVzdDMuVGVzdE1h",
30 "cC5NYXBJbnQzMkludDMyRW50cnkSRwoPbWFwX2ludDY0X2ludDY0GAIgAygL",
31 "Mi4ucHJvdG9idWZfdW5pdHRlc3QzLlRlc3RNYXAuTWFwSW50NjRJbnQ2NEVu",
32 "dHJ5EksKEW1hcF91aW50MzJfdWludDMyGAMgAygLMjAucHJvdG9idWZfdW5p",
33 "dHRlc3QzLlRlc3RNY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a2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ASo/CgdNYXBFbnVtEhAKDE1B",
149 "UF9FTlVNX0ZPTxAAEhAKDE1BUF9FTlVNX0JBUhABEhAKDE1BUF9FTlVNX0JB",
150 "WhACQh2qAhpHb29nbGUuUHJvdG9idWYuVGVzdFByb3Rvc2IGcHJvdG8z"));
Brian Silverman9c614bc2016-02-15 20:20:02 -0500151 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
152 new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.UnittestProto3Reflection.Descriptor, },
153 new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.TestProtos.MapEnum), }, new pbr::GeneratedClrTypeInfo[] {
154 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMap), global::Google.Protobuf.TestProtos.TestMap.Parser, new[]{ "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapStringString", "MapInt32Bytes", "MapInt32Enum", "MapInt32ForeignMessage" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, }),
155 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMapSubmessage), global::Google.Protobuf.TestProtos.TestMapSubmessage.Parser, new[]{ "TestMap" }, null, null, null),
156 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestMessageMap), global::Google.Protobuf.TestProtos.TestMessageMap.Parser, new[]{ "MapInt32Message" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
157 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestSameTypeMap), global::Google.Protobuf.TestProtos.TestSameTypeMap.Parser, new[]{ "Map1", "Map2" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }),
158 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestArenaMap), global::Google.Protobuf.TestProtos.TestArenaMap.Parser, new[]{ "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapInt32Enum", "MapInt32ForeignMessage" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, }),
159 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType), global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType.Parser, new[]{ "Type" }, null, new[]{ typeof(global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType.Types.Type) }, new pbr::GeneratedClrTypeInfo[] { null, }),
160 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.MessageContainingMapCalledEntry), global::Google.Protobuf.TestProtos.MessageContainingMapCalledEntry.Parser, new[]{ "Entry" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
161 }));
162 }
163 #endregion
164
165 }
166 #region Enums
167 public enum MapEnum {
Austin Schuh40c16522018-10-28 20:27:54 -0700168 [pbr::OriginalName("MAP_ENUM_FOO")] Foo = 0,
169 [pbr::OriginalName("MAP_ENUM_BAR")] Bar = 1,
170 [pbr::OriginalName("MAP_ENUM_BAZ")] Baz = 2,
Brian Silverman9c614bc2016-02-15 20:20:02 -0500171 }
172
173 #endregion
174
175 #region Messages
176 /// <summary>
Austin Schuh40c16522018-10-28 20:27:54 -0700177 /// Tests maps.
Brian Silverman9c614bc2016-02-15 20:20:02 -0500178 /// </summary>
Brian Silverman9c614bc2016-02-15 20:20:02 -0500179 public sealed partial class TestMap : pb::IMessage<TestMap> {
180 private static readonly pb::MessageParser<TestMap> _parser = new pb::MessageParser<TestMap>(() => new TestMap());
Austin Schuh40c16522018-10-28 20:27:54 -0700181 private pb::UnknownFieldSet _unknownFields;
182 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500183 public static pb::MessageParser<TestMap> Parser { get { return _parser; } }
184
Austin Schuh40c16522018-10-28 20:27:54 -0700185 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500186 public static pbr::MessageDescriptor Descriptor {
187 get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[0]; }
188 }
189
Austin Schuh40c16522018-10-28 20:27:54 -0700190 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500191 pbr::MessageDescriptor pb::IMessage.Descriptor {
192 get { return Descriptor; }
193 }
194
Austin Schuh40c16522018-10-28 20:27:54 -0700195 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500196 public TestMap() {
197 OnConstruction();
198 }
199
200 partial void OnConstruction();
201
Austin Schuh40c16522018-10-28 20:27:54 -0700202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500203 public TestMap(TestMap other) : this() {
204 mapInt32Int32_ = other.mapInt32Int32_.Clone();
205 mapInt64Int64_ = other.mapInt64Int64_.Clone();
206 mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
207 mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
208 mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
209 mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
210 mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
211 mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
212 mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
213 mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
214 mapInt32Float_ = other.mapInt32Float_.Clone();
215 mapInt32Double_ = other.mapInt32Double_.Clone();
216 mapBoolBool_ = other.mapBoolBool_.Clone();
217 mapStringString_ = other.mapStringString_.Clone();
218 mapInt32Bytes_ = other.mapInt32Bytes_.Clone();
219 mapInt32Enum_ = other.mapInt32Enum_.Clone();
220 mapInt32ForeignMessage_ = other.mapInt32ForeignMessage_.Clone();
Austin Schuh40c16522018-10-28 20:27:54 -0700221 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500222 }
223
Austin Schuh40c16522018-10-28 20:27:54 -0700224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500225 public TestMap Clone() {
226 return new TestMap(this);
227 }
228
229 /// <summary>Field number for the "map_int32_int32" field.</summary>
230 public const int MapInt32Int32FieldNumber = 1;
231 private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
232 = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
233 private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
Austin Schuh40c16522018-10-28 20:27:54 -0700234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500235 public pbc::MapField<int, int> MapInt32Int32 {
236 get { return mapInt32Int32_; }
237 }
238
239 /// <summary>Field number for the "map_int64_int64" field.</summary>
240 public const int MapInt64Int64FieldNumber = 2;
241 private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
242 = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8), pb::FieldCodec.ForInt64(16), 18);
243 private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
Austin Schuh40c16522018-10-28 20:27:54 -0700244 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500245 public pbc::MapField<long, long> MapInt64Int64 {
246 get { return mapInt64Int64_; }
247 }
248
249 /// <summary>Field number for the "map_uint32_uint32" field.</summary>
250 public const int MapUint32Uint32FieldNumber = 3;
251 private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
252 = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8), pb::FieldCodec.ForUInt32(16), 26);
253 private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>();
Austin Schuh40c16522018-10-28 20:27:54 -0700254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500255 public pbc::MapField<uint, uint> MapUint32Uint32 {
256 get { return mapUint32Uint32_; }
257 }
258
259 /// <summary>Field number for the "map_uint64_uint64" field.</summary>
260 public const int MapUint64Uint64FieldNumber = 4;
261 private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec
262 = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8), pb::FieldCodec.ForUInt64(16), 34);
263 private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>();
Austin Schuh40c16522018-10-28 20:27:54 -0700264 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500265 public pbc::MapField<ulong, ulong> MapUint64Uint64 {
266 get { return mapUint64Uint64_; }
267 }
268
269 /// <summary>Field number for the "map_sint32_sint32" field.</summary>
270 public const int MapSint32Sint32FieldNumber = 5;
271 private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec
272 = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8), pb::FieldCodec.ForSInt32(16), 42);
273 private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>();
Austin Schuh40c16522018-10-28 20:27:54 -0700274 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500275 public pbc::MapField<int, int> MapSint32Sint32 {
276 get { return mapSint32Sint32_; }
277 }
278
279 /// <summary>Field number for the "map_sint64_sint64" field.</summary>
280 public const int MapSint64Sint64FieldNumber = 6;
281 private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec
282 = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8), pb::FieldCodec.ForSInt64(16), 50);
283 private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>();
Austin Schuh40c16522018-10-28 20:27:54 -0700284 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500285 public pbc::MapField<long, long> MapSint64Sint64 {
286 get { return mapSint64Sint64_; }
287 }
288
289 /// <summary>Field number for the "map_fixed32_fixed32" field.</summary>
290 public const int MapFixed32Fixed32FieldNumber = 7;
291 private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec
292 = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13), pb::FieldCodec.ForFixed32(21), 58);
293 private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>();
Austin Schuh40c16522018-10-28 20:27:54 -0700294 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500295 public pbc::MapField<uint, uint> MapFixed32Fixed32 {
296 get { return mapFixed32Fixed32_; }
297 }
298
299 /// <summary>Field number for the "map_fixed64_fixed64" field.</summary>
300 public const int MapFixed64Fixed64FieldNumber = 8;
301 private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec
302 = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9), pb::FieldCodec.ForFixed64(17), 66);
303 private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>();
Austin Schuh40c16522018-10-28 20:27:54 -0700304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500305 public pbc::MapField<ulong, ulong> MapFixed64Fixed64 {
306 get { return mapFixed64Fixed64_; }
307 }
308
309 /// <summary>Field number for the "map_sfixed32_sfixed32" field.</summary>
310 public const int MapSfixed32Sfixed32FieldNumber = 9;
311 private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec
312 = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13), pb::FieldCodec.ForSFixed32(21), 74);
313 private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>();
Austin Schuh40c16522018-10-28 20:27:54 -0700314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500315 public pbc::MapField<int, int> MapSfixed32Sfixed32 {
316 get { return mapSfixed32Sfixed32_; }
317 }
318
319 /// <summary>Field number for the "map_sfixed64_sfixed64" field.</summary>
320 public const int MapSfixed64Sfixed64FieldNumber = 10;
321 private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec
322 = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9), pb::FieldCodec.ForSFixed64(17), 82);
323 private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>();
Austin Schuh40c16522018-10-28 20:27:54 -0700324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500325 public pbc::MapField<long, long> MapSfixed64Sfixed64 {
326 get { return mapSfixed64Sfixed64_; }
327 }
328
329 /// <summary>Field number for the "map_int32_float" field.</summary>
330 public const int MapInt32FloatFieldNumber = 11;
331 private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec
332 = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForFloat(21), 90);
333 private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>();
Austin Schuh40c16522018-10-28 20:27:54 -0700334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500335 public pbc::MapField<int, float> MapInt32Float {
336 get { return mapInt32Float_; }
337 }
338
339 /// <summary>Field number for the "map_int32_double" field.</summary>
340 public const int MapInt32DoubleFieldNumber = 12;
341 private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec
342 = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForDouble(17), 98);
343 private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>();
Austin Schuh40c16522018-10-28 20:27:54 -0700344 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500345 public pbc::MapField<int, double> MapInt32Double {
346 get { return mapInt32Double_; }
347 }
348
349 /// <summary>Field number for the "map_bool_bool" field.</summary>
350 public const int MapBoolBoolFieldNumber = 13;
351 private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec
352 = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8), pb::FieldCodec.ForBool(16), 106);
353 private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>();
Austin Schuh40c16522018-10-28 20:27:54 -0700354 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500355 public pbc::MapField<bool, bool> MapBoolBool {
356 get { return mapBoolBool_; }
357 }
358
359 /// <summary>Field number for the "map_string_string" field.</summary>
360 public const int MapStringStringFieldNumber = 14;
361 private static readonly pbc::MapField<string, string>.Codec _map_mapStringString_codec
362 = new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForString(18), 114);
363 private readonly pbc::MapField<string, string> mapStringString_ = new pbc::MapField<string, string>();
Austin Schuh40c16522018-10-28 20:27:54 -0700364 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500365 public pbc::MapField<string, string> MapStringString {
366 get { return mapStringString_; }
367 }
368
369 /// <summary>Field number for the "map_int32_bytes" field.</summary>
370 public const int MapInt32BytesFieldNumber = 15;
371 private static readonly pbc::MapField<int, pb::ByteString>.Codec _map_mapInt32Bytes_codec
372 = new pbc::MapField<int, pb::ByteString>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForBytes(18), 122);
373 private readonly pbc::MapField<int, pb::ByteString> mapInt32Bytes_ = new pbc::MapField<int, pb::ByteString>();
Austin Schuh40c16522018-10-28 20:27:54 -0700374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500375 public pbc::MapField<int, pb::ByteString> MapInt32Bytes {
376 get { return mapInt32Bytes_; }
377 }
378
379 /// <summary>Field number for the "map_int32_enum" field.</summary>
380 public const int MapInt32EnumFieldNumber = 16;
381 private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec _map_mapInt32Enum_codec
382 = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Google.Protobuf.TestProtos.MapEnum) x), 130);
383 private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> mapInt32Enum_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>();
Austin Schuh40c16522018-10-28 20:27:54 -0700384 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500385 public pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> MapInt32Enum {
386 get { return mapInt32Enum_; }
387 }
388
389 /// <summary>Field number for the "map_int32_foreign_message" field.</summary>
390 public const int MapInt32ForeignMessageFieldNumber = 17;
391 private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec _map_mapInt32ForeignMessage_codec
392 = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.ForeignMessage.Parser), 138);
393 private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> mapInt32ForeignMessage_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>();
Austin Schuh40c16522018-10-28 20:27:54 -0700394 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500395 public pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> MapInt32ForeignMessage {
396 get { return mapInt32ForeignMessage_; }
397 }
398
Austin Schuh40c16522018-10-28 20:27:54 -0700399 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500400 public override bool Equals(object other) {
401 return Equals(other as TestMap);
402 }
403
Austin Schuh40c16522018-10-28 20:27:54 -0700404 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500405 public bool Equals(TestMap other) {
406 if (ReferenceEquals(other, null)) {
407 return false;
408 }
409 if (ReferenceEquals(other, this)) {
410 return true;
411 }
412 if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
413 if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
414 if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
415 if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
416 if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
417 if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
418 if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
419 if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
420 if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
421 if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
422 if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
423 if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
424 if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
425 if (!MapStringString.Equals(other.MapStringString)) return false;
426 if (!MapInt32Bytes.Equals(other.MapInt32Bytes)) return false;
427 if (!MapInt32Enum.Equals(other.MapInt32Enum)) return false;
428 if (!MapInt32ForeignMessage.Equals(other.MapInt32ForeignMessage)) return false;
Austin Schuh40c16522018-10-28 20:27:54 -0700429 return Equals(_unknownFields, other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500430 }
431
Austin Schuh40c16522018-10-28 20:27:54 -0700432 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500433 public override int GetHashCode() {
434 int hash = 1;
435 hash ^= MapInt32Int32.GetHashCode();
436 hash ^= MapInt64Int64.GetHashCode();
437 hash ^= MapUint32Uint32.GetHashCode();
438 hash ^= MapUint64Uint64.GetHashCode();
439 hash ^= MapSint32Sint32.GetHashCode();
440 hash ^= MapSint64Sint64.GetHashCode();
441 hash ^= MapFixed32Fixed32.GetHashCode();
442 hash ^= MapFixed64Fixed64.GetHashCode();
443 hash ^= MapSfixed32Sfixed32.GetHashCode();
444 hash ^= MapSfixed64Sfixed64.GetHashCode();
445 hash ^= MapInt32Float.GetHashCode();
446 hash ^= MapInt32Double.GetHashCode();
447 hash ^= MapBoolBool.GetHashCode();
448 hash ^= MapStringString.GetHashCode();
449 hash ^= MapInt32Bytes.GetHashCode();
450 hash ^= MapInt32Enum.GetHashCode();
451 hash ^= MapInt32ForeignMessage.GetHashCode();
Austin Schuh40c16522018-10-28 20:27:54 -0700452 if (_unknownFields != null) {
453 hash ^= _unknownFields.GetHashCode();
454 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500455 return hash;
456 }
457
Austin Schuh40c16522018-10-28 20:27:54 -0700458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500459 public override string ToString() {
460 return pb::JsonFormatter.ToDiagnosticString(this);
461 }
462
Austin Schuh40c16522018-10-28 20:27:54 -0700463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500464 public void WriteTo(pb::CodedOutputStream output) {
465 mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
466 mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
467 mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec);
468 mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec);
469 mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec);
470 mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec);
471 mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec);
472 mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec);
473 mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec);
474 mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec);
475 mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec);
476 mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec);
477 mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec);
478 mapStringString_.WriteTo(output, _map_mapStringString_codec);
479 mapInt32Bytes_.WriteTo(output, _map_mapInt32Bytes_codec);
480 mapInt32Enum_.WriteTo(output, _map_mapInt32Enum_codec);
481 mapInt32ForeignMessage_.WriteTo(output, _map_mapInt32ForeignMessage_codec);
Austin Schuh40c16522018-10-28 20:27:54 -0700482 if (_unknownFields != null) {
483 _unknownFields.WriteTo(output);
484 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500485 }
486
Austin Schuh40c16522018-10-28 20:27:54 -0700487 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500488 public int CalculateSize() {
489 int size = 0;
490 size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec);
491 size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec);
492 size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec);
493 size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec);
494 size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec);
495 size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec);
496 size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec);
497 size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec);
498 size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec);
499 size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec);
500 size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec);
501 size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec);
502 size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec);
503 size += mapStringString_.CalculateSize(_map_mapStringString_codec);
504 size += mapInt32Bytes_.CalculateSize(_map_mapInt32Bytes_codec);
505 size += mapInt32Enum_.CalculateSize(_map_mapInt32Enum_codec);
506 size += mapInt32ForeignMessage_.CalculateSize(_map_mapInt32ForeignMessage_codec);
Austin Schuh40c16522018-10-28 20:27:54 -0700507 if (_unknownFields != null) {
508 size += _unknownFields.CalculateSize();
509 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500510 return size;
511 }
512
Austin Schuh40c16522018-10-28 20:27:54 -0700513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500514 public void MergeFrom(TestMap other) {
515 if (other == null) {
516 return;
517 }
518 mapInt32Int32_.Add(other.mapInt32Int32_);
519 mapInt64Int64_.Add(other.mapInt64Int64_);
520 mapUint32Uint32_.Add(other.mapUint32Uint32_);
521 mapUint64Uint64_.Add(other.mapUint64Uint64_);
522 mapSint32Sint32_.Add(other.mapSint32Sint32_);
523 mapSint64Sint64_.Add(other.mapSint64Sint64_);
524 mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_);
525 mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_);
526 mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_);
527 mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_);
528 mapInt32Float_.Add(other.mapInt32Float_);
529 mapInt32Double_.Add(other.mapInt32Double_);
530 mapBoolBool_.Add(other.mapBoolBool_);
531 mapStringString_.Add(other.mapStringString_);
532 mapInt32Bytes_.Add(other.mapInt32Bytes_);
533 mapInt32Enum_.Add(other.mapInt32Enum_);
534 mapInt32ForeignMessage_.Add(other.mapInt32ForeignMessage_);
Austin Schuh40c16522018-10-28 20:27:54 -0700535 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500536 }
537
Austin Schuh40c16522018-10-28 20:27:54 -0700538 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500539 public void MergeFrom(pb::CodedInputStream input) {
540 uint tag;
541 while ((tag = input.ReadTag()) != 0) {
542 switch(tag) {
543 default:
Austin Schuh40c16522018-10-28 20:27:54 -0700544 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500545 break;
546 case 10: {
547 mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec);
548 break;
549 }
550 case 18: {
551 mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec);
552 break;
553 }
554 case 26: {
555 mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec);
556 break;
557 }
558 case 34: {
559 mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec);
560 break;
561 }
562 case 42: {
563 mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec);
564 break;
565 }
566 case 50: {
567 mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec);
568 break;
569 }
570 case 58: {
571 mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec);
572 break;
573 }
574 case 66: {
575 mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec);
576 break;
577 }
578 case 74: {
579 mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec);
580 break;
581 }
582 case 82: {
583 mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec);
584 break;
585 }
586 case 90: {
587 mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec);
588 break;
589 }
590 case 98: {
591 mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec);
592 break;
593 }
594 case 106: {
595 mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec);
596 break;
597 }
598 case 114: {
599 mapStringString_.AddEntriesFrom(input, _map_mapStringString_codec);
600 break;
601 }
602 case 122: {
603 mapInt32Bytes_.AddEntriesFrom(input, _map_mapInt32Bytes_codec);
604 break;
605 }
606 case 130: {
607 mapInt32Enum_.AddEntriesFrom(input, _map_mapInt32Enum_codec);
608 break;
609 }
610 case 138: {
611 mapInt32ForeignMessage_.AddEntriesFrom(input, _map_mapInt32ForeignMessage_codec);
612 break;
613 }
614 }
615 }
616 }
617
618 }
619
Brian Silverman9c614bc2016-02-15 20:20:02 -0500620 public sealed partial class TestMapSubmessage : pb::IMessage<TestMapSubmessage> {
621 private static readonly pb::MessageParser<TestMapSubmessage> _parser = new pb::MessageParser<TestMapSubmessage>(() => new TestMapSubmessage());
Austin Schuh40c16522018-10-28 20:27:54 -0700622 private pb::UnknownFieldSet _unknownFields;
623 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500624 public static pb::MessageParser<TestMapSubmessage> Parser { get { return _parser; } }
625
Austin Schuh40c16522018-10-28 20:27:54 -0700626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500627 public static pbr::MessageDescriptor Descriptor {
628 get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[1]; }
629 }
630
Austin Schuh40c16522018-10-28 20:27:54 -0700631 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500632 pbr::MessageDescriptor pb::IMessage.Descriptor {
633 get { return Descriptor; }
634 }
635
Austin Schuh40c16522018-10-28 20:27:54 -0700636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500637 public TestMapSubmessage() {
638 OnConstruction();
639 }
640
641 partial void OnConstruction();
642
Austin Schuh40c16522018-10-28 20:27:54 -0700643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500644 public TestMapSubmessage(TestMapSubmessage other) : this() {
Austin Schuh40c16522018-10-28 20:27:54 -0700645 testMap_ = other.testMap_ != null ? other.testMap_.Clone() : null;
646 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500647 }
648
Austin Schuh40c16522018-10-28 20:27:54 -0700649 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500650 public TestMapSubmessage Clone() {
651 return new TestMapSubmessage(this);
652 }
653
654 /// <summary>Field number for the "test_map" field.</summary>
655 public const int TestMapFieldNumber = 1;
656 private global::Google.Protobuf.TestProtos.TestMap testMap_;
Austin Schuh40c16522018-10-28 20:27:54 -0700657 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500658 public global::Google.Protobuf.TestProtos.TestMap TestMap {
659 get { return testMap_; }
660 set {
661 testMap_ = value;
662 }
663 }
664
Austin Schuh40c16522018-10-28 20:27:54 -0700665 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500666 public override bool Equals(object other) {
667 return Equals(other as TestMapSubmessage);
668 }
669
Austin Schuh40c16522018-10-28 20:27:54 -0700670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500671 public bool Equals(TestMapSubmessage other) {
672 if (ReferenceEquals(other, null)) {
673 return false;
674 }
675 if (ReferenceEquals(other, this)) {
676 return true;
677 }
678 if (!object.Equals(TestMap, other.TestMap)) return false;
Austin Schuh40c16522018-10-28 20:27:54 -0700679 return Equals(_unknownFields, other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500680 }
681
Austin Schuh40c16522018-10-28 20:27:54 -0700682 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500683 public override int GetHashCode() {
684 int hash = 1;
685 if (testMap_ != null) hash ^= TestMap.GetHashCode();
Austin Schuh40c16522018-10-28 20:27:54 -0700686 if (_unknownFields != null) {
687 hash ^= _unknownFields.GetHashCode();
688 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500689 return hash;
690 }
691
Austin Schuh40c16522018-10-28 20:27:54 -0700692 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500693 public override string ToString() {
694 return pb::JsonFormatter.ToDiagnosticString(this);
695 }
696
Austin Schuh40c16522018-10-28 20:27:54 -0700697 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500698 public void WriteTo(pb::CodedOutputStream output) {
699 if (testMap_ != null) {
700 output.WriteRawTag(10);
701 output.WriteMessage(TestMap);
702 }
Austin Schuh40c16522018-10-28 20:27:54 -0700703 if (_unknownFields != null) {
704 _unknownFields.WriteTo(output);
705 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500706 }
707
Austin Schuh40c16522018-10-28 20:27:54 -0700708 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500709 public int CalculateSize() {
710 int size = 0;
711 if (testMap_ != null) {
712 size += 1 + pb::CodedOutputStream.ComputeMessageSize(TestMap);
713 }
Austin Schuh40c16522018-10-28 20:27:54 -0700714 if (_unknownFields != null) {
715 size += _unknownFields.CalculateSize();
716 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500717 return size;
718 }
719
Austin Schuh40c16522018-10-28 20:27:54 -0700720 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500721 public void MergeFrom(TestMapSubmessage other) {
722 if (other == null) {
723 return;
724 }
725 if (other.testMap_ != null) {
726 if (testMap_ == null) {
727 testMap_ = new global::Google.Protobuf.TestProtos.TestMap();
728 }
729 TestMap.MergeFrom(other.TestMap);
730 }
Austin Schuh40c16522018-10-28 20:27:54 -0700731 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500732 }
733
Austin Schuh40c16522018-10-28 20:27:54 -0700734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500735 public void MergeFrom(pb::CodedInputStream input) {
736 uint tag;
737 while ((tag = input.ReadTag()) != 0) {
738 switch(tag) {
739 default:
Austin Schuh40c16522018-10-28 20:27:54 -0700740 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500741 break;
742 case 10: {
743 if (testMap_ == null) {
744 testMap_ = new global::Google.Protobuf.TestProtos.TestMap();
745 }
746 input.ReadMessage(testMap_);
747 break;
748 }
749 }
750 }
751 }
752
753 }
754
Brian Silverman9c614bc2016-02-15 20:20:02 -0500755 public sealed partial class TestMessageMap : pb::IMessage<TestMessageMap> {
756 private static readonly pb::MessageParser<TestMessageMap> _parser = new pb::MessageParser<TestMessageMap>(() => new TestMessageMap());
Austin Schuh40c16522018-10-28 20:27:54 -0700757 private pb::UnknownFieldSet _unknownFields;
758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500759 public static pb::MessageParser<TestMessageMap> Parser { get { return _parser; } }
760
Austin Schuh40c16522018-10-28 20:27:54 -0700761 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500762 public static pbr::MessageDescriptor Descriptor {
763 get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[2]; }
764 }
765
Austin Schuh40c16522018-10-28 20:27:54 -0700766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500767 pbr::MessageDescriptor pb::IMessage.Descriptor {
768 get { return Descriptor; }
769 }
770
Austin Schuh40c16522018-10-28 20:27:54 -0700771 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500772 public TestMessageMap() {
773 OnConstruction();
774 }
775
776 partial void OnConstruction();
777
Austin Schuh40c16522018-10-28 20:27:54 -0700778 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500779 public TestMessageMap(TestMessageMap other) : this() {
780 mapInt32Message_ = other.mapInt32Message_.Clone();
Austin Schuh40c16522018-10-28 20:27:54 -0700781 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500782 }
783
Austin Schuh40c16522018-10-28 20:27:54 -0700784 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500785 public TestMessageMap Clone() {
786 return new TestMessageMap(this);
787 }
788
789 /// <summary>Field number for the "map_int32_message" field.</summary>
790 public const int MapInt32MessageFieldNumber = 1;
791 private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>.Codec _map_mapInt32Message_codec
792 = new pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.TestAllTypes.Parser), 10);
793 private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes> mapInt32Message_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes>();
Austin Schuh40c16522018-10-28 20:27:54 -0700794 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500795 public pbc::MapField<int, global::Google.Protobuf.TestProtos.TestAllTypes> MapInt32Message {
796 get { return mapInt32Message_; }
797 }
798
Austin Schuh40c16522018-10-28 20:27:54 -0700799 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500800 public override bool Equals(object other) {
801 return Equals(other as TestMessageMap);
802 }
803
Austin Schuh40c16522018-10-28 20:27:54 -0700804 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500805 public bool Equals(TestMessageMap other) {
806 if (ReferenceEquals(other, null)) {
807 return false;
808 }
809 if (ReferenceEquals(other, this)) {
810 return true;
811 }
812 if (!MapInt32Message.Equals(other.MapInt32Message)) return false;
Austin Schuh40c16522018-10-28 20:27:54 -0700813 return Equals(_unknownFields, other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500814 }
815
Austin Schuh40c16522018-10-28 20:27:54 -0700816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500817 public override int GetHashCode() {
818 int hash = 1;
819 hash ^= MapInt32Message.GetHashCode();
Austin Schuh40c16522018-10-28 20:27:54 -0700820 if (_unknownFields != null) {
821 hash ^= _unknownFields.GetHashCode();
822 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500823 return hash;
824 }
825
Austin Schuh40c16522018-10-28 20:27:54 -0700826 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500827 public override string ToString() {
828 return pb::JsonFormatter.ToDiagnosticString(this);
829 }
830
Austin Schuh40c16522018-10-28 20:27:54 -0700831 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500832 public void WriteTo(pb::CodedOutputStream output) {
833 mapInt32Message_.WriteTo(output, _map_mapInt32Message_codec);
Austin Schuh40c16522018-10-28 20:27:54 -0700834 if (_unknownFields != null) {
835 _unknownFields.WriteTo(output);
836 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500837 }
838
Austin Schuh40c16522018-10-28 20:27:54 -0700839 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500840 public int CalculateSize() {
841 int size = 0;
842 size += mapInt32Message_.CalculateSize(_map_mapInt32Message_codec);
Austin Schuh40c16522018-10-28 20:27:54 -0700843 if (_unknownFields != null) {
844 size += _unknownFields.CalculateSize();
845 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500846 return size;
847 }
848
Austin Schuh40c16522018-10-28 20:27:54 -0700849 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500850 public void MergeFrom(TestMessageMap other) {
851 if (other == null) {
852 return;
853 }
854 mapInt32Message_.Add(other.mapInt32Message_);
Austin Schuh40c16522018-10-28 20:27:54 -0700855 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500856 }
857
Austin Schuh40c16522018-10-28 20:27:54 -0700858 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500859 public void MergeFrom(pb::CodedInputStream input) {
860 uint tag;
861 while ((tag = input.ReadTag()) != 0) {
862 switch(tag) {
863 default:
Austin Schuh40c16522018-10-28 20:27:54 -0700864 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500865 break;
866 case 10: {
867 mapInt32Message_.AddEntriesFrom(input, _map_mapInt32Message_codec);
868 break;
869 }
870 }
871 }
872 }
873
874 }
875
876 /// <summary>
Austin Schuh40c16522018-10-28 20:27:54 -0700877 /// Two map fields share the same entry default instance.
Brian Silverman9c614bc2016-02-15 20:20:02 -0500878 /// </summary>
Brian Silverman9c614bc2016-02-15 20:20:02 -0500879 public sealed partial class TestSameTypeMap : pb::IMessage<TestSameTypeMap> {
880 private static readonly pb::MessageParser<TestSameTypeMap> _parser = new pb::MessageParser<TestSameTypeMap>(() => new TestSameTypeMap());
Austin Schuh40c16522018-10-28 20:27:54 -0700881 private pb::UnknownFieldSet _unknownFields;
882 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500883 public static pb::MessageParser<TestSameTypeMap> Parser { get { return _parser; } }
884
Austin Schuh40c16522018-10-28 20:27:54 -0700885 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500886 public static pbr::MessageDescriptor Descriptor {
887 get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[3]; }
888 }
889
Austin Schuh40c16522018-10-28 20:27:54 -0700890 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500891 pbr::MessageDescriptor pb::IMessage.Descriptor {
892 get { return Descriptor; }
893 }
894
Austin Schuh40c16522018-10-28 20:27:54 -0700895 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500896 public TestSameTypeMap() {
897 OnConstruction();
898 }
899
900 partial void OnConstruction();
901
Austin Schuh40c16522018-10-28 20:27:54 -0700902 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500903 public TestSameTypeMap(TestSameTypeMap other) : this() {
904 map1_ = other.map1_.Clone();
905 map2_ = other.map2_.Clone();
Austin Schuh40c16522018-10-28 20:27:54 -0700906 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500907 }
908
Austin Schuh40c16522018-10-28 20:27:54 -0700909 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500910 public TestSameTypeMap Clone() {
911 return new TestSameTypeMap(this);
912 }
913
914 /// <summary>Field number for the "map1" field.</summary>
915 public const int Map1FieldNumber = 1;
916 private static readonly pbc::MapField<int, int>.Codec _map_map1_codec
917 = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
918 private readonly pbc::MapField<int, int> map1_ = new pbc::MapField<int, int>();
Austin Schuh40c16522018-10-28 20:27:54 -0700919 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500920 public pbc::MapField<int, int> Map1 {
921 get { return map1_; }
922 }
923
924 /// <summary>Field number for the "map2" field.</summary>
925 public const int Map2FieldNumber = 2;
926 private static readonly pbc::MapField<int, int>.Codec _map_map2_codec
927 = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 18);
928 private readonly pbc::MapField<int, int> map2_ = new pbc::MapField<int, int>();
Austin Schuh40c16522018-10-28 20:27:54 -0700929 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500930 public pbc::MapField<int, int> Map2 {
931 get { return map2_; }
932 }
933
Austin Schuh40c16522018-10-28 20:27:54 -0700934 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500935 public override bool Equals(object other) {
936 return Equals(other as TestSameTypeMap);
937 }
938
Austin Schuh40c16522018-10-28 20:27:54 -0700939 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500940 public bool Equals(TestSameTypeMap other) {
941 if (ReferenceEquals(other, null)) {
942 return false;
943 }
944 if (ReferenceEquals(other, this)) {
945 return true;
946 }
947 if (!Map1.Equals(other.Map1)) return false;
948 if (!Map2.Equals(other.Map2)) return false;
Austin Schuh40c16522018-10-28 20:27:54 -0700949 return Equals(_unknownFields, other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500950 }
951
Austin Schuh40c16522018-10-28 20:27:54 -0700952 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500953 public override int GetHashCode() {
954 int hash = 1;
955 hash ^= Map1.GetHashCode();
956 hash ^= Map2.GetHashCode();
Austin Schuh40c16522018-10-28 20:27:54 -0700957 if (_unknownFields != null) {
958 hash ^= _unknownFields.GetHashCode();
959 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500960 return hash;
961 }
962
Austin Schuh40c16522018-10-28 20:27:54 -0700963 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500964 public override string ToString() {
965 return pb::JsonFormatter.ToDiagnosticString(this);
966 }
967
Austin Schuh40c16522018-10-28 20:27:54 -0700968 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500969 public void WriteTo(pb::CodedOutputStream output) {
970 map1_.WriteTo(output, _map_map1_codec);
971 map2_.WriteTo(output, _map_map2_codec);
Austin Schuh40c16522018-10-28 20:27:54 -0700972 if (_unknownFields != null) {
973 _unknownFields.WriteTo(output);
974 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500975 }
976
Austin Schuh40c16522018-10-28 20:27:54 -0700977 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500978 public int CalculateSize() {
979 int size = 0;
980 size += map1_.CalculateSize(_map_map1_codec);
981 size += map2_.CalculateSize(_map_map2_codec);
Austin Schuh40c16522018-10-28 20:27:54 -0700982 if (_unknownFields != null) {
983 size += _unknownFields.CalculateSize();
984 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500985 return size;
986 }
987
Austin Schuh40c16522018-10-28 20:27:54 -0700988 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500989 public void MergeFrom(TestSameTypeMap other) {
990 if (other == null) {
991 return;
992 }
993 map1_.Add(other.map1_);
994 map2_.Add(other.map2_);
Austin Schuh40c16522018-10-28 20:27:54 -0700995 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500996 }
997
Austin Schuh40c16522018-10-28 20:27:54 -0700998 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500999 public void MergeFrom(pb::CodedInputStream input) {
1000 uint tag;
1001 while ((tag = input.ReadTag()) != 0) {
1002 switch(tag) {
1003 default:
Austin Schuh40c16522018-10-28 20:27:54 -07001004 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001005 break;
1006 case 10: {
1007 map1_.AddEntriesFrom(input, _map_map1_codec);
1008 break;
1009 }
1010 case 18: {
1011 map2_.AddEntriesFrom(input, _map_map2_codec);
1012 break;
1013 }
1014 }
1015 }
1016 }
1017
1018 }
1019
Brian Silverman9c614bc2016-02-15 20:20:02 -05001020 public sealed partial class TestArenaMap : pb::IMessage<TestArenaMap> {
1021 private static readonly pb::MessageParser<TestArenaMap> _parser = new pb::MessageParser<TestArenaMap>(() => new TestArenaMap());
Austin Schuh40c16522018-10-28 20:27:54 -07001022 private pb::UnknownFieldSet _unknownFields;
1023 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001024 public static pb::MessageParser<TestArenaMap> Parser { get { return _parser; } }
1025
Austin Schuh40c16522018-10-28 20:27:54 -07001026 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001027 public static pbr::MessageDescriptor Descriptor {
1028 get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[4]; }
1029 }
1030
Austin Schuh40c16522018-10-28 20:27:54 -07001031 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001032 pbr::MessageDescriptor pb::IMessage.Descriptor {
1033 get { return Descriptor; }
1034 }
1035
Austin Schuh40c16522018-10-28 20:27:54 -07001036 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001037 public TestArenaMap() {
1038 OnConstruction();
1039 }
1040
1041 partial void OnConstruction();
1042
Austin Schuh40c16522018-10-28 20:27:54 -07001043 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001044 public TestArenaMap(TestArenaMap other) : this() {
1045 mapInt32Int32_ = other.mapInt32Int32_.Clone();
1046 mapInt64Int64_ = other.mapInt64Int64_.Clone();
1047 mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
1048 mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
1049 mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
1050 mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
1051 mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
1052 mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
1053 mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
1054 mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
1055 mapInt32Float_ = other.mapInt32Float_.Clone();
1056 mapInt32Double_ = other.mapInt32Double_.Clone();
1057 mapBoolBool_ = other.mapBoolBool_.Clone();
1058 mapInt32Enum_ = other.mapInt32Enum_.Clone();
1059 mapInt32ForeignMessage_ = other.mapInt32ForeignMessage_.Clone();
Austin Schuh40c16522018-10-28 20:27:54 -07001060 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001061 }
1062
Austin Schuh40c16522018-10-28 20:27:54 -07001063 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001064 public TestArenaMap Clone() {
1065 return new TestArenaMap(this);
1066 }
1067
1068 /// <summary>Field number for the "map_int32_int32" field.</summary>
1069 public const int MapInt32Int32FieldNumber = 1;
1070 private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
1071 = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
1072 private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
Austin Schuh40c16522018-10-28 20:27:54 -07001073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001074 public pbc::MapField<int, int> MapInt32Int32 {
1075 get { return mapInt32Int32_; }
1076 }
1077
1078 /// <summary>Field number for the "map_int64_int64" field.</summary>
1079 public const int MapInt64Int64FieldNumber = 2;
1080 private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
1081 = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8), pb::FieldCodec.ForInt64(16), 18);
1082 private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
Austin Schuh40c16522018-10-28 20:27:54 -07001083 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001084 public pbc::MapField<long, long> MapInt64Int64 {
1085 get { return mapInt64Int64_; }
1086 }
1087
1088 /// <summary>Field number for the "map_uint32_uint32" field.</summary>
1089 public const int MapUint32Uint32FieldNumber = 3;
1090 private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
1091 = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8), pb::FieldCodec.ForUInt32(16), 26);
1092 private readonly pbc::MapField<uint, uint> mapUint32Uint32_ = new pbc::MapField<uint, uint>();
Austin Schuh40c16522018-10-28 20:27:54 -07001093 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001094 public pbc::MapField<uint, uint> MapUint32Uint32 {
1095 get { return mapUint32Uint32_; }
1096 }
1097
1098 /// <summary>Field number for the "map_uint64_uint64" field.</summary>
1099 public const int MapUint64Uint64FieldNumber = 4;
1100 private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapUint64Uint64_codec
1101 = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForUInt64(8), pb::FieldCodec.ForUInt64(16), 34);
1102 private readonly pbc::MapField<ulong, ulong> mapUint64Uint64_ = new pbc::MapField<ulong, ulong>();
Austin Schuh40c16522018-10-28 20:27:54 -07001103 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001104 public pbc::MapField<ulong, ulong> MapUint64Uint64 {
1105 get { return mapUint64Uint64_; }
1106 }
1107
1108 /// <summary>Field number for the "map_sint32_sint32" field.</summary>
1109 public const int MapSint32Sint32FieldNumber = 5;
1110 private static readonly pbc::MapField<int, int>.Codec _map_mapSint32Sint32_codec
1111 = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSInt32(8), pb::FieldCodec.ForSInt32(16), 42);
1112 private readonly pbc::MapField<int, int> mapSint32Sint32_ = new pbc::MapField<int, int>();
Austin Schuh40c16522018-10-28 20:27:54 -07001113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001114 public pbc::MapField<int, int> MapSint32Sint32 {
1115 get { return mapSint32Sint32_; }
1116 }
1117
1118 /// <summary>Field number for the "map_sint64_sint64" field.</summary>
1119 public const int MapSint64Sint64FieldNumber = 6;
1120 private static readonly pbc::MapField<long, long>.Codec _map_mapSint64Sint64_codec
1121 = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSInt64(8), pb::FieldCodec.ForSInt64(16), 50);
1122 private readonly pbc::MapField<long, long> mapSint64Sint64_ = new pbc::MapField<long, long>();
Austin Schuh40c16522018-10-28 20:27:54 -07001123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001124 public pbc::MapField<long, long> MapSint64Sint64 {
1125 get { return mapSint64Sint64_; }
1126 }
1127
1128 /// <summary>Field number for the "map_fixed32_fixed32" field.</summary>
1129 public const int MapFixed32Fixed32FieldNumber = 7;
1130 private static readonly pbc::MapField<uint, uint>.Codec _map_mapFixed32Fixed32_codec
1131 = new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForFixed32(13), pb::FieldCodec.ForFixed32(21), 58);
1132 private readonly pbc::MapField<uint, uint> mapFixed32Fixed32_ = new pbc::MapField<uint, uint>();
Austin Schuh40c16522018-10-28 20:27:54 -07001133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001134 public pbc::MapField<uint, uint> MapFixed32Fixed32 {
1135 get { return mapFixed32Fixed32_; }
1136 }
1137
1138 /// <summary>Field number for the "map_fixed64_fixed64" field.</summary>
1139 public const int MapFixed64Fixed64FieldNumber = 8;
1140 private static readonly pbc::MapField<ulong, ulong>.Codec _map_mapFixed64Fixed64_codec
1141 = new pbc::MapField<ulong, ulong>.Codec(pb::FieldCodec.ForFixed64(9), pb::FieldCodec.ForFixed64(17), 66);
1142 private readonly pbc::MapField<ulong, ulong> mapFixed64Fixed64_ = new pbc::MapField<ulong, ulong>();
Austin Schuh40c16522018-10-28 20:27:54 -07001143 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001144 public pbc::MapField<ulong, ulong> MapFixed64Fixed64 {
1145 get { return mapFixed64Fixed64_; }
1146 }
1147
1148 /// <summary>Field number for the "map_sfixed32_sfixed32" field.</summary>
1149 public const int MapSfixed32Sfixed32FieldNumber = 9;
1150 private static readonly pbc::MapField<int, int>.Codec _map_mapSfixed32Sfixed32_codec
1151 = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForSFixed32(13), pb::FieldCodec.ForSFixed32(21), 74);
1152 private readonly pbc::MapField<int, int> mapSfixed32Sfixed32_ = new pbc::MapField<int, int>();
Austin Schuh40c16522018-10-28 20:27:54 -07001153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001154 public pbc::MapField<int, int> MapSfixed32Sfixed32 {
1155 get { return mapSfixed32Sfixed32_; }
1156 }
1157
1158 /// <summary>Field number for the "map_sfixed64_sfixed64" field.</summary>
1159 public const int MapSfixed64Sfixed64FieldNumber = 10;
1160 private static readonly pbc::MapField<long, long>.Codec _map_mapSfixed64Sfixed64_codec
1161 = new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForSFixed64(9), pb::FieldCodec.ForSFixed64(17), 82);
1162 private readonly pbc::MapField<long, long> mapSfixed64Sfixed64_ = new pbc::MapField<long, long>();
Austin Schuh40c16522018-10-28 20:27:54 -07001163 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001164 public pbc::MapField<long, long> MapSfixed64Sfixed64 {
1165 get { return mapSfixed64Sfixed64_; }
1166 }
1167
1168 /// <summary>Field number for the "map_int32_float" field.</summary>
1169 public const int MapInt32FloatFieldNumber = 11;
1170 private static readonly pbc::MapField<int, float>.Codec _map_mapInt32Float_codec
1171 = new pbc::MapField<int, float>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForFloat(21), 90);
1172 private readonly pbc::MapField<int, float> mapInt32Float_ = new pbc::MapField<int, float>();
Austin Schuh40c16522018-10-28 20:27:54 -07001173 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001174 public pbc::MapField<int, float> MapInt32Float {
1175 get { return mapInt32Float_; }
1176 }
1177
1178 /// <summary>Field number for the "map_int32_double" field.</summary>
1179 public const int MapInt32DoubleFieldNumber = 12;
1180 private static readonly pbc::MapField<int, double>.Codec _map_mapInt32Double_codec
1181 = new pbc::MapField<int, double>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForDouble(17), 98);
1182 private readonly pbc::MapField<int, double> mapInt32Double_ = new pbc::MapField<int, double>();
Austin Schuh40c16522018-10-28 20:27:54 -07001183 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001184 public pbc::MapField<int, double> MapInt32Double {
1185 get { return mapInt32Double_; }
1186 }
1187
1188 /// <summary>Field number for the "map_bool_bool" field.</summary>
1189 public const int MapBoolBoolFieldNumber = 13;
1190 private static readonly pbc::MapField<bool, bool>.Codec _map_mapBoolBool_codec
1191 = new pbc::MapField<bool, bool>.Codec(pb::FieldCodec.ForBool(8), pb::FieldCodec.ForBool(16), 106);
1192 private readonly pbc::MapField<bool, bool> mapBoolBool_ = new pbc::MapField<bool, bool>();
Austin Schuh40c16522018-10-28 20:27:54 -07001193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001194 public pbc::MapField<bool, bool> MapBoolBool {
1195 get { return mapBoolBool_; }
1196 }
1197
1198 /// <summary>Field number for the "map_int32_enum" field.</summary>
1199 public const int MapInt32EnumFieldNumber = 14;
1200 private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec _map_mapInt32Enum_codec
1201 = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Google.Protobuf.TestProtos.MapEnum) x), 114);
1202 private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> mapInt32Enum_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum>();
Austin Schuh40c16522018-10-28 20:27:54 -07001203 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001204 public pbc::MapField<int, global::Google.Protobuf.TestProtos.MapEnum> MapInt32Enum {
1205 get { return mapInt32Enum_; }
1206 }
1207
1208 /// <summary>Field number for the "map_int32_foreign_message" field.</summary>
1209 public const int MapInt32ForeignMessageFieldNumber = 15;
1210 private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec _map_mapInt32ForeignMessage_codec
1211 = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.ForeignMessage.Parser), 122);
1212 private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> mapInt32ForeignMessage_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage>();
Austin Schuh40c16522018-10-28 20:27:54 -07001213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001214 public pbc::MapField<int, global::Google.Protobuf.TestProtos.ForeignMessage> MapInt32ForeignMessage {
1215 get { return mapInt32ForeignMessage_; }
1216 }
1217
Austin Schuh40c16522018-10-28 20:27:54 -07001218 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001219 public override bool Equals(object other) {
1220 return Equals(other as TestArenaMap);
1221 }
1222
Austin Schuh40c16522018-10-28 20:27:54 -07001223 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001224 public bool Equals(TestArenaMap other) {
1225 if (ReferenceEquals(other, null)) {
1226 return false;
1227 }
1228 if (ReferenceEquals(other, this)) {
1229 return true;
1230 }
1231 if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
1232 if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
1233 if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
1234 if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
1235 if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
1236 if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
1237 if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
1238 if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
1239 if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
1240 if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
1241 if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
1242 if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
1243 if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
1244 if (!MapInt32Enum.Equals(other.MapInt32Enum)) return false;
1245 if (!MapInt32ForeignMessage.Equals(other.MapInt32ForeignMessage)) return false;
Austin Schuh40c16522018-10-28 20:27:54 -07001246 return Equals(_unknownFields, other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001247 }
1248
Austin Schuh40c16522018-10-28 20:27:54 -07001249 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001250 public override int GetHashCode() {
1251 int hash = 1;
1252 hash ^= MapInt32Int32.GetHashCode();
1253 hash ^= MapInt64Int64.GetHashCode();
1254 hash ^= MapUint32Uint32.GetHashCode();
1255 hash ^= MapUint64Uint64.GetHashCode();
1256 hash ^= MapSint32Sint32.GetHashCode();
1257 hash ^= MapSint64Sint64.GetHashCode();
1258 hash ^= MapFixed32Fixed32.GetHashCode();
1259 hash ^= MapFixed64Fixed64.GetHashCode();
1260 hash ^= MapSfixed32Sfixed32.GetHashCode();
1261 hash ^= MapSfixed64Sfixed64.GetHashCode();
1262 hash ^= MapInt32Float.GetHashCode();
1263 hash ^= MapInt32Double.GetHashCode();
1264 hash ^= MapBoolBool.GetHashCode();
1265 hash ^= MapInt32Enum.GetHashCode();
1266 hash ^= MapInt32ForeignMessage.GetHashCode();
Austin Schuh40c16522018-10-28 20:27:54 -07001267 if (_unknownFields != null) {
1268 hash ^= _unknownFields.GetHashCode();
1269 }
Brian Silverman9c614bc2016-02-15 20:20:02 -05001270 return hash;
1271 }
1272
Austin Schuh40c16522018-10-28 20:27:54 -07001273 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001274 public override string ToString() {
1275 return pb::JsonFormatter.ToDiagnosticString(this);
1276 }
1277
Austin Schuh40c16522018-10-28 20:27:54 -07001278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001279 public void WriteTo(pb::CodedOutputStream output) {
1280 mapInt32Int32_.WriteTo(output, _map_mapInt32Int32_codec);
1281 mapInt64Int64_.WriteTo(output, _map_mapInt64Int64_codec);
1282 mapUint32Uint32_.WriteTo(output, _map_mapUint32Uint32_codec);
1283 mapUint64Uint64_.WriteTo(output, _map_mapUint64Uint64_codec);
1284 mapSint32Sint32_.WriteTo(output, _map_mapSint32Sint32_codec);
1285 mapSint64Sint64_.WriteTo(output, _map_mapSint64Sint64_codec);
1286 mapFixed32Fixed32_.WriteTo(output, _map_mapFixed32Fixed32_codec);
1287 mapFixed64Fixed64_.WriteTo(output, _map_mapFixed64Fixed64_codec);
1288 mapSfixed32Sfixed32_.WriteTo(output, _map_mapSfixed32Sfixed32_codec);
1289 mapSfixed64Sfixed64_.WriteTo(output, _map_mapSfixed64Sfixed64_codec);
1290 mapInt32Float_.WriteTo(output, _map_mapInt32Float_codec);
1291 mapInt32Double_.WriteTo(output, _map_mapInt32Double_codec);
1292 mapBoolBool_.WriteTo(output, _map_mapBoolBool_codec);
1293 mapInt32Enum_.WriteTo(output, _map_mapInt32Enum_codec);
1294 mapInt32ForeignMessage_.WriteTo(output, _map_mapInt32ForeignMessage_codec);
Austin Schuh40c16522018-10-28 20:27:54 -07001295 if (_unknownFields != null) {
1296 _unknownFields.WriteTo(output);
1297 }
Brian Silverman9c614bc2016-02-15 20:20:02 -05001298 }
1299
Austin Schuh40c16522018-10-28 20:27:54 -07001300 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001301 public int CalculateSize() {
1302 int size = 0;
1303 size += mapInt32Int32_.CalculateSize(_map_mapInt32Int32_codec);
1304 size += mapInt64Int64_.CalculateSize(_map_mapInt64Int64_codec);
1305 size += mapUint32Uint32_.CalculateSize(_map_mapUint32Uint32_codec);
1306 size += mapUint64Uint64_.CalculateSize(_map_mapUint64Uint64_codec);
1307 size += mapSint32Sint32_.CalculateSize(_map_mapSint32Sint32_codec);
1308 size += mapSint64Sint64_.CalculateSize(_map_mapSint64Sint64_codec);
1309 size += mapFixed32Fixed32_.CalculateSize(_map_mapFixed32Fixed32_codec);
1310 size += mapFixed64Fixed64_.CalculateSize(_map_mapFixed64Fixed64_codec);
1311 size += mapSfixed32Sfixed32_.CalculateSize(_map_mapSfixed32Sfixed32_codec);
1312 size += mapSfixed64Sfixed64_.CalculateSize(_map_mapSfixed64Sfixed64_codec);
1313 size += mapInt32Float_.CalculateSize(_map_mapInt32Float_codec);
1314 size += mapInt32Double_.CalculateSize(_map_mapInt32Double_codec);
1315 size += mapBoolBool_.CalculateSize(_map_mapBoolBool_codec);
1316 size += mapInt32Enum_.CalculateSize(_map_mapInt32Enum_codec);
1317 size += mapInt32ForeignMessage_.CalculateSize(_map_mapInt32ForeignMessage_codec);
Austin Schuh40c16522018-10-28 20:27:54 -07001318 if (_unknownFields != null) {
1319 size += _unknownFields.CalculateSize();
1320 }
Brian Silverman9c614bc2016-02-15 20:20:02 -05001321 return size;
1322 }
1323
Austin Schuh40c16522018-10-28 20:27:54 -07001324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001325 public void MergeFrom(TestArenaMap other) {
1326 if (other == null) {
1327 return;
1328 }
1329 mapInt32Int32_.Add(other.mapInt32Int32_);
1330 mapInt64Int64_.Add(other.mapInt64Int64_);
1331 mapUint32Uint32_.Add(other.mapUint32Uint32_);
1332 mapUint64Uint64_.Add(other.mapUint64Uint64_);
1333 mapSint32Sint32_.Add(other.mapSint32Sint32_);
1334 mapSint64Sint64_.Add(other.mapSint64Sint64_);
1335 mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_);
1336 mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_);
1337 mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_);
1338 mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_);
1339 mapInt32Float_.Add(other.mapInt32Float_);
1340 mapInt32Double_.Add(other.mapInt32Double_);
1341 mapBoolBool_.Add(other.mapBoolBool_);
1342 mapInt32Enum_.Add(other.mapInt32Enum_);
1343 mapInt32ForeignMessage_.Add(other.mapInt32ForeignMessage_);
Austin Schuh40c16522018-10-28 20:27:54 -07001344 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001345 }
1346
Austin Schuh40c16522018-10-28 20:27:54 -07001347 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001348 public void MergeFrom(pb::CodedInputStream input) {
1349 uint tag;
1350 while ((tag = input.ReadTag()) != 0) {
1351 switch(tag) {
1352 default:
Austin Schuh40c16522018-10-28 20:27:54 -07001353 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001354 break;
1355 case 10: {
1356 mapInt32Int32_.AddEntriesFrom(input, _map_mapInt32Int32_codec);
1357 break;
1358 }
1359 case 18: {
1360 mapInt64Int64_.AddEntriesFrom(input, _map_mapInt64Int64_codec);
1361 break;
1362 }
1363 case 26: {
1364 mapUint32Uint32_.AddEntriesFrom(input, _map_mapUint32Uint32_codec);
1365 break;
1366 }
1367 case 34: {
1368 mapUint64Uint64_.AddEntriesFrom(input, _map_mapUint64Uint64_codec);
1369 break;
1370 }
1371 case 42: {
1372 mapSint32Sint32_.AddEntriesFrom(input, _map_mapSint32Sint32_codec);
1373 break;
1374 }
1375 case 50: {
1376 mapSint64Sint64_.AddEntriesFrom(input, _map_mapSint64Sint64_codec);
1377 break;
1378 }
1379 case 58: {
1380 mapFixed32Fixed32_.AddEntriesFrom(input, _map_mapFixed32Fixed32_codec);
1381 break;
1382 }
1383 case 66: {
1384 mapFixed64Fixed64_.AddEntriesFrom(input, _map_mapFixed64Fixed64_codec);
1385 break;
1386 }
1387 case 74: {
1388 mapSfixed32Sfixed32_.AddEntriesFrom(input, _map_mapSfixed32Sfixed32_codec);
1389 break;
1390 }
1391 case 82: {
1392 mapSfixed64Sfixed64_.AddEntriesFrom(input, _map_mapSfixed64Sfixed64_codec);
1393 break;
1394 }
1395 case 90: {
1396 mapInt32Float_.AddEntriesFrom(input, _map_mapInt32Float_codec);
1397 break;
1398 }
1399 case 98: {
1400 mapInt32Double_.AddEntriesFrom(input, _map_mapInt32Double_codec);
1401 break;
1402 }
1403 case 106: {
1404 mapBoolBool_.AddEntriesFrom(input, _map_mapBoolBool_codec);
1405 break;
1406 }
1407 case 114: {
1408 mapInt32Enum_.AddEntriesFrom(input, _map_mapInt32Enum_codec);
1409 break;
1410 }
1411 case 122: {
1412 mapInt32ForeignMessage_.AddEntriesFrom(input, _map_mapInt32ForeignMessage_codec);
1413 break;
1414 }
1415 }
1416 }
1417 }
1418
1419 }
1420
1421 /// <summary>
Austin Schuh40c16522018-10-28 20:27:54 -07001422 /// Previously, message containing enum called Type cannot be used as value of
1423 /// map field.
Brian Silverman9c614bc2016-02-15 20:20:02 -05001424 /// </summary>
Brian Silverman9c614bc2016-02-15 20:20:02 -05001425 public sealed partial class MessageContainingEnumCalledType : pb::IMessage<MessageContainingEnumCalledType> {
1426 private static readonly pb::MessageParser<MessageContainingEnumCalledType> _parser = new pb::MessageParser<MessageContainingEnumCalledType>(() => new MessageContainingEnumCalledType());
Austin Schuh40c16522018-10-28 20:27:54 -07001427 private pb::UnknownFieldSet _unknownFields;
1428 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001429 public static pb::MessageParser<MessageContainingEnumCalledType> Parser { get { return _parser; } }
1430
Austin Schuh40c16522018-10-28 20:27:54 -07001431 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001432 public static pbr::MessageDescriptor Descriptor {
1433 get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[5]; }
1434 }
1435
Austin Schuh40c16522018-10-28 20:27:54 -07001436 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001437 pbr::MessageDescriptor pb::IMessage.Descriptor {
1438 get { return Descriptor; }
1439 }
1440
Austin Schuh40c16522018-10-28 20:27:54 -07001441 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001442 public MessageContainingEnumCalledType() {
1443 OnConstruction();
1444 }
1445
1446 partial void OnConstruction();
1447
Austin Schuh40c16522018-10-28 20:27:54 -07001448 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001449 public MessageContainingEnumCalledType(MessageContainingEnumCalledType other) : this() {
1450 type_ = other.type_.Clone();
Austin Schuh40c16522018-10-28 20:27:54 -07001451 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001452 }
1453
Austin Schuh40c16522018-10-28 20:27:54 -07001454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001455 public MessageContainingEnumCalledType Clone() {
1456 return new MessageContainingEnumCalledType(this);
1457 }
1458
1459 /// <summary>Field number for the "type" field.</summary>
1460 public const int TypeFieldNumber = 1;
1461 private static readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>.Codec _map_type_codec
1462 = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType.Parser), 10);
1463 private readonly pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType> type_ = new pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType>();
Austin Schuh40c16522018-10-28 20:27:54 -07001464 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001465 public pbc::MapField<int, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType> Type {
1466 get { return type_; }
1467 }
1468
Austin Schuh40c16522018-10-28 20:27:54 -07001469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001470 public override bool Equals(object other) {
1471 return Equals(other as MessageContainingEnumCalledType);
1472 }
1473
Austin Schuh40c16522018-10-28 20:27:54 -07001474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001475 public bool Equals(MessageContainingEnumCalledType other) {
1476 if (ReferenceEquals(other, null)) {
1477 return false;
1478 }
1479 if (ReferenceEquals(other, this)) {
1480 return true;
1481 }
1482 if (!Type.Equals(other.Type)) return false;
Austin Schuh40c16522018-10-28 20:27:54 -07001483 return Equals(_unknownFields, other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001484 }
1485
Austin Schuh40c16522018-10-28 20:27:54 -07001486 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001487 public override int GetHashCode() {
1488 int hash = 1;
1489 hash ^= Type.GetHashCode();
Austin Schuh40c16522018-10-28 20:27:54 -07001490 if (_unknownFields != null) {
1491 hash ^= _unknownFields.GetHashCode();
1492 }
Brian Silverman9c614bc2016-02-15 20:20:02 -05001493 return hash;
1494 }
1495
Austin Schuh40c16522018-10-28 20:27:54 -07001496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001497 public override string ToString() {
1498 return pb::JsonFormatter.ToDiagnosticString(this);
1499 }
1500
Austin Schuh40c16522018-10-28 20:27:54 -07001501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001502 public void WriteTo(pb::CodedOutputStream output) {
1503 type_.WriteTo(output, _map_type_codec);
Austin Schuh40c16522018-10-28 20:27:54 -07001504 if (_unknownFields != null) {
1505 _unknownFields.WriteTo(output);
1506 }
Brian Silverman9c614bc2016-02-15 20:20:02 -05001507 }
1508
Austin Schuh40c16522018-10-28 20:27:54 -07001509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001510 public int CalculateSize() {
1511 int size = 0;
1512 size += type_.CalculateSize(_map_type_codec);
Austin Schuh40c16522018-10-28 20:27:54 -07001513 if (_unknownFields != null) {
1514 size += _unknownFields.CalculateSize();
1515 }
Brian Silverman9c614bc2016-02-15 20:20:02 -05001516 return size;
1517 }
1518
Austin Schuh40c16522018-10-28 20:27:54 -07001519 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001520 public void MergeFrom(MessageContainingEnumCalledType other) {
1521 if (other == null) {
1522 return;
1523 }
1524 type_.Add(other.type_);
Austin Schuh40c16522018-10-28 20:27:54 -07001525 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001526 }
1527
Austin Schuh40c16522018-10-28 20:27:54 -07001528 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001529 public void MergeFrom(pb::CodedInputStream input) {
1530 uint tag;
1531 while ((tag = input.ReadTag()) != 0) {
1532 switch(tag) {
1533 default:
Austin Schuh40c16522018-10-28 20:27:54 -07001534 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001535 break;
1536 case 10: {
1537 type_.AddEntriesFrom(input, _map_type_codec);
1538 break;
1539 }
1540 }
1541 }
1542 }
1543
1544 #region Nested types
1545 /// <summary>Container for nested types declared in the MessageContainingEnumCalledType message type.</summary>
Austin Schuh40c16522018-10-28 20:27:54 -07001546 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001547 public static partial class Types {
1548 public enum Type {
Austin Schuh40c16522018-10-28 20:27:54 -07001549 [pbr::OriginalName("TYPE_FOO")] Foo = 0,
Brian Silverman9c614bc2016-02-15 20:20:02 -05001550 }
1551
1552 }
1553 #endregion
1554
1555 }
1556
1557 /// <summary>
Austin Schuh40c16522018-10-28 20:27:54 -07001558 /// Previously, message cannot contain map field called "entry".
Brian Silverman9c614bc2016-02-15 20:20:02 -05001559 /// </summary>
Brian Silverman9c614bc2016-02-15 20:20:02 -05001560 public sealed partial class MessageContainingMapCalledEntry : pb::IMessage<MessageContainingMapCalledEntry> {
1561 private static readonly pb::MessageParser<MessageContainingMapCalledEntry> _parser = new pb::MessageParser<MessageContainingMapCalledEntry>(() => new MessageContainingMapCalledEntry());
Austin Schuh40c16522018-10-28 20:27:54 -07001562 private pb::UnknownFieldSet _unknownFields;
1563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001564 public static pb::MessageParser<MessageContainingMapCalledEntry> Parser { get { return _parser; } }
1565
Austin Schuh40c16522018-10-28 20:27:54 -07001566 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001567 public static pbr::MessageDescriptor Descriptor {
1568 get { return global::Google.Protobuf.TestProtos.MapUnittestProto3Reflection.Descriptor.MessageTypes[6]; }
1569 }
1570
Austin Schuh40c16522018-10-28 20:27:54 -07001571 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001572 pbr::MessageDescriptor pb::IMessage.Descriptor {
1573 get { return Descriptor; }
1574 }
1575
Austin Schuh40c16522018-10-28 20:27:54 -07001576 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001577 public MessageContainingMapCalledEntry() {
1578 OnConstruction();
1579 }
1580
1581 partial void OnConstruction();
1582
Austin Schuh40c16522018-10-28 20:27:54 -07001583 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001584 public MessageContainingMapCalledEntry(MessageContainingMapCalledEntry other) : this() {
1585 entry_ = other.entry_.Clone();
Austin Schuh40c16522018-10-28 20:27:54 -07001586 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001587 }
1588
Austin Schuh40c16522018-10-28 20:27:54 -07001589 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001590 public MessageContainingMapCalledEntry Clone() {
1591 return new MessageContainingMapCalledEntry(this);
1592 }
1593
1594 /// <summary>Field number for the "entry" field.</summary>
1595 public const int EntryFieldNumber = 1;
1596 private static readonly pbc::MapField<int, int>.Codec _map_entry_codec
1597 = new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
1598 private readonly pbc::MapField<int, int> entry_ = new pbc::MapField<int, int>();
Austin Schuh40c16522018-10-28 20:27:54 -07001599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001600 public pbc::MapField<int, int> Entry {
1601 get { return entry_; }
1602 }
1603
Austin Schuh40c16522018-10-28 20:27:54 -07001604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001605 public override bool Equals(object other) {
1606 return Equals(other as MessageContainingMapCalledEntry);
1607 }
1608
Austin Schuh40c16522018-10-28 20:27:54 -07001609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001610 public bool Equals(MessageContainingMapCalledEntry other) {
1611 if (ReferenceEquals(other, null)) {
1612 return false;
1613 }
1614 if (ReferenceEquals(other, this)) {
1615 return true;
1616 }
1617 if (!Entry.Equals(other.Entry)) return false;
Austin Schuh40c16522018-10-28 20:27:54 -07001618 return Equals(_unknownFields, other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001619 }
1620
Austin Schuh40c16522018-10-28 20:27:54 -07001621 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001622 public override int GetHashCode() {
1623 int hash = 1;
1624 hash ^= Entry.GetHashCode();
Austin Schuh40c16522018-10-28 20:27:54 -07001625 if (_unknownFields != null) {
1626 hash ^= _unknownFields.GetHashCode();
1627 }
Brian Silverman9c614bc2016-02-15 20:20:02 -05001628 return hash;
1629 }
1630
Austin Schuh40c16522018-10-28 20:27:54 -07001631 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001632 public override string ToString() {
1633 return pb::JsonFormatter.ToDiagnosticString(this);
1634 }
1635
Austin Schuh40c16522018-10-28 20:27:54 -07001636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001637 public void WriteTo(pb::CodedOutputStream output) {
1638 entry_.WriteTo(output, _map_entry_codec);
Austin Schuh40c16522018-10-28 20:27:54 -07001639 if (_unknownFields != null) {
1640 _unknownFields.WriteTo(output);
1641 }
Brian Silverman9c614bc2016-02-15 20:20:02 -05001642 }
1643
Austin Schuh40c16522018-10-28 20:27:54 -07001644 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001645 public int CalculateSize() {
1646 int size = 0;
1647 size += entry_.CalculateSize(_map_entry_codec);
Austin Schuh40c16522018-10-28 20:27:54 -07001648 if (_unknownFields != null) {
1649 size += _unknownFields.CalculateSize();
1650 }
Brian Silverman9c614bc2016-02-15 20:20:02 -05001651 return size;
1652 }
1653
Austin Schuh40c16522018-10-28 20:27:54 -07001654 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001655 public void MergeFrom(MessageContainingMapCalledEntry other) {
1656 if (other == null) {
1657 return;
1658 }
1659 entry_.Add(other.entry_);
Austin Schuh40c16522018-10-28 20:27:54 -07001660 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001661 }
1662
Austin Schuh40c16522018-10-28 20:27:54 -07001663 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001664 public void MergeFrom(pb::CodedInputStream input) {
1665 uint tag;
1666 while ((tag = input.ReadTag()) != 0) {
1667 switch(tag) {
1668 default:
Austin Schuh40c16522018-10-28 20:27:54 -07001669 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
Brian Silverman9c614bc2016-02-15 20:20:02 -05001670 break;
1671 case 10: {
1672 entry_.AddEntriesFrom(input, _map_entry_codec);
1673 break;
1674 }
1675 }
1676 }
1677 }
1678
1679 }
1680
1681 #endregion
1682
1683}
1684
1685#endregion Designer generated code