Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Side by Side Diff: third_party/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs

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

Powered by Google App Engine
This is Rietveld 408576698