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